diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-02 02:10:13 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-02 02:10:13 +0000 |
commit | 7296b474e3c70044ad85f60837d4b868a244a127 (patch) | |
tree | bad82bb61a579f48077c2e29eaf889a5ca8e1014 | |
parent | ec5e745197fb75dbfb99c7146e3b87aa07c20b63 (diff) |
we sync regions in the dma area anymore, we just sync the whole thing. this
means the insane macro used to calculate the offset for syncing can go
away.
-rw-r--r-- | sys/dev/pci/if_vic.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c index 29e080b7478..dd16fab35d0 100644 --- a/sys/dev/pci/if_vic.c +++ b/sys/dev/pci/if_vic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vic.c,v 1.20 2006/11/02 02:08:18 dlg Exp $ */ +/* $OpenBSD: if_vic.c,v 1.21 2006/11/02 02:10:12 dlg Exp $ */ /* * Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org> @@ -72,10 +72,6 @@ #define VIC_TXURN_WARN(_sc) ((_sc)->sc_txpending >= ((_sc)->sc_ntxbuf - 5)) #define VIC_TXURN(_sc) ((_sc)->sc_txpending >= (_sc)->sc_ntxbuf) -#define VIC_OFF_TXDESC(_n) \ - (sizeof(struct vic_data) + \ - ((sc->sc_nrxbuf + VIC_QUEUE2_SIZE) * sizeof(struct vic_rxdesc)) + \ - ((_n) * sizeof(struct vic_txdesc))) struct vic_rxbuf { bus_dmamap_t rxb_dmamap; |