diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-01-23 01:41:17 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-01-23 01:41:17 +0000 |
commit | 2611eb5bc02fb66ca8bf95d1edb225358a76748c (patch) | |
tree | 58ba51172b03d8782a04819605bc84cf4870237c /sys/pci/if_wxvar.h | |
parent | 06afe280099a5adb1ea5fa13b4448044e0fc0607 (diff) | |
download | FreeBSD-src-2611eb5bc02fb66ca8bf95d1edb225358a76748c.zip FreeBSD-src-2611eb5bc02fb66ca8bf95d1edb225358a76748c.tar.gz |
Add a pointer in the softc that will point to partially received packet.
Set up index increments for receive descriptors based on whether
the PADDED_CELL define is set.
Diffstat (limited to 'sys/pci/if_wxvar.h')
-rw-r--r-- | sys/pci/if_wxvar.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/pci/if_wxvar.h b/sys/pci/if_wxvar.h index 3454567..dd9179f 100644 --- a/sys/pci/if_wxvar.h +++ b/sys/pci/if_wxvar.h @@ -283,6 +283,7 @@ typedef struct wx_softc { rxpkt_t *rbase; /* base of soft rdesc list */ u_int16_t rnxt; /* next descriptor to check */ u_int16_t _pad; + struct mbuf *rpending; /* pending partial packet */ /* * Transmit Management @@ -313,5 +314,10 @@ 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 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)) +#ifdef PADDED_CELL +#define RXINCR 2 +#else +#define RXINCR 1 +#endif +#define R_NXT_IDX(x) ((x + RXINCR) & (WX_MAX_RDESC - 1)) +#define R_PREV_IDX(x) ((x - RXINCR) & (WX_MAX_RDESC - 1)) |