summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_wxvar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_wxvar.h')
-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