add a R_PREV_IDX macro
This commit is contained in:
parent
e8eebed1f3
commit
7d5f58b26b
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user