summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-01-18 01:42:11 +0000
committermjacob <mjacob@FreeBSD.org>2000-01-18 01:42:11 +0000
commit7d5f58b26b1bafd25e34a60d7abcf048ba915e72 (patch)
treef931814c94c04f282a881b9f041824802da504d8 /sys/pci
parente8eebed1f33c8ddb583f8c2dbf4489a22349e49d (diff)
downloadFreeBSD-src-7d5f58b26b1bafd25e34a60d7abcf048ba915e72.zip
FreeBSD-src-7d5f58b26b1bafd25e34a60d7abcf048ba915e72.tar.gz
add a R_PREV_IDX macro
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_wxvar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/if_wxvar.h b/sys/pci/if_wxvar.h
index 0b29098..3454567 100644
--- a/sys/pci/if_wxvar.h
+++ b/sys/pci/if_wxvar.h
@@ -314,3 +314,4 @@ typedef struct wx_softc {
#define T_NXT_IDX(x) ((x + 1) & (WX_MAX_TDESC - 1))
#define WX_MAX_RDESC 64 /* number of receive descriptors */
#define R_NXT_IDX(x) ((x + 1) & (WX_MAX_RDESC - 1))
+#define R_PREV_IDX(x) ((x - 1) & (WX_MAX_RDESC - 1))
OpenPOWER on IntegriCloud