From 7d5f58b26b1bafd25e34a60d7abcf048ba915e72 Mon Sep 17 00:00:00 2001 From: mjacob Date: Tue, 18 Jan 2000 01:42:11 +0000 Subject: add a R_PREV_IDX macro --- sys/pci/if_wxvar.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/pci/if_wxvar.h') 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)) -- cgit v1.1