aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sk/xmaciireg.h
diff options
context:
space:
mode:
authorPyun YongHyeon <yongari@FreeBSD.org>2006-04-27 05:59:09 +0000
committerPyun YongHyeon <yongari@FreeBSD.org>2006-04-27 05:59:09 +0000
commit919133a8ef19a0f4e491fe78b4bf523fa4a3a6eb (patch)
tree3f345fe785f6ec9e4e38334d9a125fdfa937c2f3 /sys/dev/sk/xmaciireg.h
parentd902fb71da099e57eb2106639d4cf91e46d01168 (diff)
Notes
Diffstat (limited to 'sys/dev/sk/xmaciireg.h')
-rw-r--r--sys/dev/sk/xmaciireg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sk/xmaciireg.h b/sys/dev/sk/xmaciireg.h
index 38cd8cbbfb346..604073b72a38a 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