summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-05-26 01:47:51 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-05-26 01:47:51 +0000
commit9783317716862c01c2c53f4301d043100b15f700 (patch)
treeb51b5d9c021fd56cf149cba0094c5e7b584a8a57 /sys/dev
parent033fdc3ba5b7b60f1bbd18784dfd07e0a133ae6c (diff)
cleanup
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_nx.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/pci/if_nx.c b/sys/dev/pci/if_nx.c
index 626112f64b9..beb85d3750f 100644
--- a/sys/dev/pci/if_nx.c
+++ b/sys/dev/pci/if_nx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nx.c,v 1.44 2007/05/26 01:42:18 reyk Exp $ */
+/* $OpenBSD: if_nx.c,v 1.45 2007/05/26 01:47:50 reyk Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
@@ -1622,6 +1622,7 @@ nx_start(struct ifnet *ifp)
struct nx_buf *nb;
struct nx_txdesc *txd;
bus_dmamap_t map;
+ u_int64_t port = nxp->nxp_id;
u_int32_t producer, len;
u_int i, idx, tx = 0;
@@ -1723,11 +1724,11 @@ nx_start(struct ifnet *ifp)
((len << NX_TXDESC0_LENGTH_S) & NX_TXDESC0_LENGTH_M);
txd->tx_word2 =
((idx << NX_TXDESC2_HANDLE_S) & NX_TXDESC2_HANDLE_M) |
- (((u_int64_t)nxp->nxp_id << NX_TXDESC2_PORT_S) & NX_TXDESC2_PORT_M) |
- (((u_int64_t)nxp->nxp_id << NX_TXDESC2_CTXID_S) & NX_TXDESC2_CTXID_M);
+ ((port << NX_TXDESC2_PORT_S) & NX_TXDESC2_PORT_M) |
+ ((port << NX_TXDESC2_CTXID_S) & NX_TXDESC2_CTXID_M);
- DPRINTF(NXDBG_TX, "%s(%s): txd "
- "%016x w0 %016x w2 %016x a1 %016x a2 %016x a3 %016x a4 %016x l %016x\n",
+ DPRINTF(NXDBG_TX, "%s(%s): txd w0:%016x w2:%016x "
+ "a1:%016x a2:%016x a3:%016x a4:%016x len:%016x\n",
DEVNAME(nx), __func__, txd->tx_word0, txd->tx_word2,
txd->tx_addr1, txd->tx_addr2, txd->tx_addr3, txd->tx_addr4,
txd->tx_buflength);
@@ -1744,7 +1745,7 @@ nx_start(struct ifnet *ifp)
}
bus_dmamap_sync(sc->sc_dmat, txm->nxm_map, 0, txm->nxm_size,
- BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
+ BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
if (tx) {
DPRINTF(NXDBG_TX, "%s(%s): producer 0x%08x\n",