diff options
Diffstat (limited to 'sys/dev/sk/xmaciireg.h')
-rw-r--r-- | sys/dev/sk/xmaciireg.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sk/xmaciireg.h b/sys/dev/sk/xmaciireg.h index 38cd8cb..604073b 100644 --- a/sys/dev/sk/xmaciireg.h +++ b/sys/dev/sk/xmaciireg.h @@ -317,6 +317,9 @@ #define XM_RXSTAT_VLAN_LEV1 0x00010000 #define XM_RXSTAT_VLAN_LEV2 0x00020000 #define XM_RXSTAT_LEN 0xFFFC0000 +#define XM_RXSTAT_LENSHIFT 18 + +#define XM_RXSTAT_BYTES(x) ((x) >> XM_RXSTAT_LENSHIFT) /* * XMAC PHY registers, indirectly accessed through |