diff options
Diffstat (limited to 'sys/dev/ic/fxpvar.h')
-rw-r--r-- | sys/dev/ic/fxpvar.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/sys/dev/ic/fxpvar.h b/sys/dev/ic/fxpvar.h index 99c7f172676..5132ef41d5a 100644 --- a/sys/dev/ic/fxpvar.h +++ b/sys/dev/ic/fxpvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fxpvar.h,v 1.9 2001/09/17 16:24:49 jason Exp $ */ +/* $OpenBSD: fxpvar.h,v 1.10 2001/11/05 17:25:58 art Exp $ */ /* $NetBSD: if_fxpvar.h,v 1.1 1997/06/05 02:01:58 thorpej Exp $ */ /* @@ -129,29 +129,21 @@ extern int fxp_detach __P((struct fxp_softc *)); #define FXP_RXMAP_GET(sc) ((sc)->sc_rxmaps[(sc)->sc_rxfree++]) #define FXP_RXMAP_PUT(sc,map) ((sc)->sc_rxmaps[--(sc)->sc_rxfree] = (map)) -#ifdef __HAS_NEW_BUS_DMAMAP_SYNC -#define fxp_bus_dmamap_sync(t, m, o, l, p) \ - bus_dmamap_sync((t), (m), (o), (l), (p)) -#else -#define fxp_bus_dmamap_sync(t, m, o, l, p) \ - bus_dmamap_sync((t), (m), (p)) -#endif - #define FXP_TXCB_SYNC(sc, txs, p) \ - fxp_bus_dmamap_sync((sc)->sc_dmat, (sc)->tx_cb_map, (txs)->tx_off, \ + bus_dmamap_sync((sc)->sc_dmat, (sc)->tx_cb_map, (txs)->tx_off, \ sizeof(struct fxp_cb_tx), (p)) #define FXP_MCS_SYNC(sc, p) \ - fxp_bus_dmamap_sync((sc)->sc_dmat, (sc)->tx_cb_map, \ + bus_dmamap_sync((sc)->sc_dmat, (sc)->tx_cb_map, \ offsetof(struct fxp_ctrl, u.mcs), sizeof(struct fxp_cb_mcs), (p)) #define FXP_IAS_SYNC(sc, p) \ - fxp_bus_dmamap_sync((sc)->sc_dmat, (sc)->tx_cb_map, \ + bus_dmamap_sync((sc)->sc_dmat, (sc)->tx_cb_map, \ offsetof(struct fxp_ctrl, u.ias), sizeof(struct fxp_cb_ias), (p)) #define FXP_CFG_SYNC(sc, p) \ - fxp_bus_dmamap_sync((sc)->sc_dmat, (sc)->tx_cb_map, \ + bus_dmamap_sync((sc)->sc_dmat, (sc)->tx_cb_map, \ offsetof(struct fxp_ctrl, u.cfg), sizeof(struct fxp_cb_config), (p)) #define FXP_MBUF_SYNC(sc, m, p) \ - fxp_bus_dmamap_sync((sc)->sc_dmat, (m), 0, (m)->dm_mapsize, (p)) + bus_dmamap_sync((sc)->sc_dmat, (m), 0, (m)->dm_mapsize, (p)) |