add a driver for rtl8306 switches
[openwrt.git] / target / linux / generic-2.6 / files / drivers / net / phy / ar8216.h
index a729ac4..b8a4f23 100644 (file)
@@ -26,6 +26,9 @@
 #define AR8216_REG_CTRL                        0x0000
 #define   AR8216_CTRL_RESET            BIT(31)
 
+#define AR8216_REG_GLOBAL_CTRL         0x0030
+#define   AR8216_GCTRL_MTU             BITS(0, 10)
+
 #define AR8216_REG_VTU                 0x0040
 #define   AR8216_VTU_OP                        BITS(0, 3)
 #define   AR8216_VTU_OP_NOOP           0x0
 #define   AR8216_PORT_VLAN_MODE                BITS(30, 2)
 #define   AR8216_PORT_VLAN_MODE_S      30
 
+#define AR8216_REG_PORT_RATE(_i)       (AR8216_PORT_OFFSET(_i) + 0x000c)
+#define AR8216_REG_PORT_PRIO(_i)       (AR8216_PORT_OFFSET(_i) + 0x0010)
+
 /* ingress 802.1q mode */
 enum {
        AR8216_IN_PORT_ONLY = 0,
This page took 0.019803 seconds and 4 git commands to generate.