diff options
-rw-r--r-- | sys/dev/pci/if_nx.c | 8 | ||||
-rw-r--r-- | sys/dev/pci/if_nxreg.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/if_nx.c b/sys/dev/pci/if_nx.c index 957e2d3da2e..d36b4689f92 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.13 2007/04/27 19:44:47 reyk Exp $ */ +/* $OpenBSD: if_nx.c,v 1.14 2007/04/27 19:46:47 reyk Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org> @@ -70,7 +70,7 @@ int nx_debug = 0; } while (0) #define DPRINTREG(_reg) do { \ if (nx_debug) \ - printf("%s: 0x%08x: %08x\n", \ + printf("%s: 0x%08x: %08x\n", \ #_reg, _reg, nxb_read(sc, _reg)); \ } while (0) #else @@ -300,7 +300,7 @@ nxb_set_window(struct nxb_softc *sc, int window) if (sc->sc_window == window) return; - assert(window == 0 || window == 1); + assert(window == 0 || window == 1); val = nxb_read(sc, NXCRB_WINDOW(sc->sc_function)); if (window) val |= NXCRB_WINDOW_1; @@ -395,7 +395,7 @@ nx_print(void *aux, const char *parentname) if (parentname) printf("nx port %u at %s", - nxp->nxp_id, parentname); + nxp->nxp_id, parentname); else printf(" port %u", nxp->nxp_id); return (UNCONF); diff --git a/sys/dev/pci/if_nxreg.h b/sys/dev/pci/if_nxreg.h index e5e9fd517a7..a53a373530c 100644 --- a/sys/dev/pci/if_nxreg.h +++ b/sys/dev/pci/if_nxreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nxreg.h,v 1.4 2007/04/27 19:44:47 reyk Exp $ */ +/* $OpenBSD: if_nxreg.h,v 1.5 2007/04/27 19:46:47 reyk Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org> @@ -78,7 +78,7 @@ struct nx_txdesc { u_int16_t tx_buf4_length; /* length of buffer 4 */ u_int32_t tx_addr4_low; /* low address of buffer 4 */ u_int32_t tx_addr4_high; /* high address of buffer 4 */ -} __packed; +} __packed; struct nx_rxdesc { u_int16_t rx_handle; /* handle of the buffer */ |