add a R_PREV_IDX macro

This commit is contained in:
mjacob 2000-01-18 01:42:11 +00:00
parent e8eebed1f3
commit 7d5f58b26b

View File

@ -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))