diff options
author | 2006-11-02 02:10:12 +0000 | |
---|---|---|
committer | 2006-11-02 02:10:12 +0000 | |
commit | be87a91bb113a1b6527b4a219c9f0986f2bc20de (patch) | |
tree | 8f71d3ed0dacec9b618c2f0044231fa9d9da11bf | |
parent | VIC_DEBUG is useless, so it goes away (diff) | |
download | wireguard-openbsd-be87a91bb113a1b6527b4a219c9f0986f2bc20de.tar.xz wireguard-openbsd-be87a91bb113a1b6527b4a219c9f0986f2bc20de.zip |
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; |