ar8216: add ARL table flushing per port
[openwrt/openwrt.git] / target / linux / generic / files / drivers / net / phy / ar8327.h
index 29eeb6271d15bf5254bd3aa74840fe7e28081dc9..8d1fb3b94333d662a50a18597f8f43881faf47b7 100644 (file)
 #define   AR8327_ATU_FUNC_OP_FLUSH             0x1
 #define   AR8327_ATU_FUNC_OP_LOAD              0x2
 #define   AR8327_ATU_FUNC_OP_PURGE             0x3
-#define   AR8327_ATU_FUNC_OP_FLUSH_LOCKED      0x4
-#define   AR8327_ATU_FUNC_OP_FLUSH_UNICAST     0x5
+#define   AR8327_ATU_FUNC_OP_FLUSH_UNLOCKED    0x4
+#define   AR8327_ATU_FUNC_OP_FLUSH_PORT                0x5
 #define   AR8327_ATU_FUNC_OP_GET_NEXT          0x6
 #define   AR8327_ATU_FUNC_OP_SEARCH_MAC                0x7
 #define   AR8327_ATU_FUNC_OP_CHANGE_TRUNK      0x8
+#define   AR8327_ATU_PORT_NUM                  BITS(8, 4)
+#define   AR8327_ATU_PORT_NUM_S                        8
 #define   AR8327_ATU_FUNC_BUSY                 BIT(31)
 
 #define AR8327_REG_VTU_FUNC0                   0x0610