Lines Matching +full:12 +full:- +full:bit

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * drivers/net/dsa/mv88e6060.h - Marvell 88e6060 switch chip support
17 #define PORT_STATUS_PAUSE_EN BIT(15)
18 #define PORT_STATUS_MY_PAUSE BIT(14)
20 #define PORT_STATUS_RESOLVED BIT(13)
21 #define PORT_STATUS_LINK BIT(12)
22 #define PORT_STATUS_PORTMODE BIT(11)
23 #define PORT_STATUS_PHYMODE BIT(10)
24 #define PORT_STATUS_DUPLEX BIT(9)
25 #define PORT_STATUS_SPEED BIT(8)
32 #define PORT_CONTROL_FORCE_FLOW_CTRL BIT(15)
33 #define PORT_CONTROL_TRAILER BIT(14)
34 #define PORT_CONTROL_HEADER BIT(11)
35 #define PORT_CONTROL_INGRESS_MODE BIT(8)
36 #define PORT_CONTROL_VLAN_TUNNEL BIT(7)
43 #define PORT_VLAN_MAP_DBNUM_SHIFT 12
46 #define PORT_ASSOC_VECTOR_MONITOR BIT(15)
53 #define GLOBAL_STATUS_SW_MODE_MASK (0x3 << 12)
54 #define GLOBAL_STATUS_SW_MODE_0 (0x0 << 12)
55 #define GLOBAL_STATUS_SW_MODE_1 (0x1 << 12)
56 #define GLOBAL_STATUS_SW_MODE_2 (0x2 << 12)
57 #define GLOBAL_STATUS_SW_MODE_3 (0x3 << 12)
58 #define GLOBAL_STATUS_INIT_READY BIT(11)
59 #define GLOBAL_STATUS_ATU_FULL BIT(3)
60 #define GLOBAL_STATUS_ATU_DONE BIT(2)
61 #define GLOBAL_STATUS_PHY_INT BIT(1)
62 #define GLOBAL_STATUS_EEINT BIT(0)
64 #define GLOBAL_MAC_01_DIFF_ADDR BIT(8)
68 #define GLOBAL_CONTROL_DISCARD_EXCESS BIT(13)
69 #define GLOBAL_CONTROL_MAX_FRAME_1536 BIT(10)
70 #define GLOBAL_CONTROL_RELOAD_EEPROM BIT(9)
71 #define GLOBAL_CONTROL_CTRMODE BIT(8)
72 #define GLOBAL_CONTROL_ATU_FULL_EN BIT(3)
73 #define GLOBAL_CONTROL_ATU_DONE_EN BIT(2)
74 #define GLOBAL_CONTROL_PHYINT_EN BIT(1)
75 #define GLOBAL_CONTROL_EEPROM_DONE_EN BIT(0)
77 #define GLOBAL_ATU_CONTROL_SWRESET BIT(15)
78 #define GLOBAL_ATU_CONTROL_LEARNDIS BIT(14)
79 #define GLOBAL_ATU_CONTROL_ATUSIZE_256 (0x0 << 12)
80 #define GLOBAL_ATU_CONTROL_ATUSIZE_512 (0x1 << 12)
81 #define GLOBAL_ATU_CONTROL_ATUSIZE_1024 (0x2 << 12)
86 #define GLOBAL_ATU_OP_BUSY BIT(15)
87 #define GLOBAL_ATU_OP_NOP (0 << 12)
88 #define GLOBAL_ATU_OP_FLUSH_ALL ((1 << 12) | GLOBAL_ATU_OP_BUSY)
89 #define GLOBAL_ATU_OP_FLUSH_UNLOCKED ((2 << 12) | GLOBAL_ATU_OP_BUSY)
90 #define GLOBAL_ATU_OP_LOAD_DB ((3 << 12) | GLOBAL_ATU_OP_BUSY)
91 #define GLOBAL_ATU_OP_GET_NEXT_DB ((4 << 12) | GLOBAL_ATU_OP_BUSY)
92 #define GLOBAL_ATU_OP_FLUSH_DB ((5 << 12) | GLOBAL_ATU_OP_BUSY)
93 #define GLOBAL_ATU_OP_FLUSH_UNLOCKED_DB ((6 << 12) | GLOBAL_ATU_OP_BUSY)
110 * on the bus. When in multi-chip mode, the switch uses a