summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-01-23 03:18:14 +0000
committermjacob <mjacob@FreeBSD.org>2000-01-23 03:18:14 +0000
commita441dee9030c209d23c2884e7a914824cbedb0f8 (patch)
treea4773961e62c73736bbca70b84801cc4f2d52558 /sys/pci
parent605075ef02d632699a256f83b46d6d36cde861bc (diff)
downloadFreeBSD-src-a441dee9030c209d23c2884e7a914824cbedb0f8.zip
FreeBSD-src-a441dee9030c209d23c2884e7a914824cbedb0f8.tar.gz
add PREVIOUS index macro for transmit side
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 dd9179f..2779e61 100644
--- a/sys/pci/if_wxvar.h
+++ b/sys/pci/if_wxvar.h
@@ -313,6 +313,7 @@ typedef struct wx_softc {
*/
#define WX_MAX_TDESC 256 /* number of transmit descriptors */
#define T_NXT_IDX(x) ((x + 1) & (WX_MAX_TDESC - 1))
+#define T_PREV_IDX(x) ((x - 1) & (WX_MAX_TDESC - 1))
#define WX_MAX_RDESC 64 /* number of receive descriptors */
#ifdef PADDED_CELL
#define RXINCR 2
OpenPOWER on IntegriCloud