Go to the documentation of this file.
15 #define OPCODE_OB_MAC_IOCB_FN0 0x01
16 #define OPCODE_OB_MAC_IOCB_FN2 0x21
18 #define OPCODE_IB_MAC_IOCB 0xF9
19 #define OPCODE_IB_3032_MAC_IOCB 0x09
20 #define OPCODE_IB_IP_IOCB 0xFA
21 #define OPCODE_IB_3032_IP_IOCB 0x0A
23 #define OPCODE_FUNC_ID_MASK 0x30
24 #define OUTBOUND_MAC_IOCB 0x01
26 #define FN0_MA_BITS_MASK 0x00
27 #define FN1_MA_BITS_MASK 0x80
32 #define OB_MAC_IOCB_REQ_MA 0xe0
33 #define OB_MAC_IOCB_REQ_F 0x10
34 #define OB_MAC_IOCB_REQ_X 0x08
35 #define OB_MAC_IOCB_REQ_D 0x02
36 #define OB_MAC_IOCB_REQ_I 0x01
38 #define OB_3032MAC_IOCB_REQ_IC 0x04
39 #define OB_3032MAC_IOCB_REQ_TC 0x02
40 #define OB_3032MAC_IOCB_REQ_UC 0x01
65 #define OB_MAC_IOCB_REQ_E 0x80000000
66 #define OB_MAC_IOCB_REQ_C 0x40000000
67 #define OB_MAC_IOCB_REQ_L 0x20000000
68 #define OB_MAC_IOCB_REQ_R 0x10000000
73 #define OB_MAC_IOCB_RSP_P 0x08
74 #define OB_MAC_IOCB_RSP_L 0x04
75 #define OB_MAC_IOCB_RSP_S 0x02
76 #define OB_MAC_IOCB_RSP_I 0x01
86 #define IB_MAC_IOCB_RSP_V 0x80
88 #define IB_MAC_IOCB_RSP_S 0x80
89 #define IB_MAC_IOCB_RSP_H1 0x40
90 #define IB_MAC_IOCB_RSP_H0 0x20
91 #define IB_MAC_IOCB_RSP_B 0x10
92 #define IB_MAC_IOCB_RSP_M 0x08
93 #define IB_MAC_IOCB_RSP_MA 0x07
105 #define OB_IP_IOCB_REQ_O 0x100
106 #define OB_IP_IOCB_REQ_H 0x008
107 #define OB_IP_IOCB_REQ_U 0x004
108 #define OB_IP_IOCB_REQ_D 0x002
109 #define OB_IP_IOCB_REQ_I 0x001
132 #define OB_IP_IOCB_REQ_E 0x80000000
133 #define OB_IP_IOCB_REQ_C 0x40000000
134 #define OB_IP_IOCB_REQ_L 0x20000000
135 #define OB_IP_IOCB_REQ_R 0x10000000
140 #define OB_MAC_IOCB_RSP_H 0x10
141 #define OB_MAC_IOCB_RSP_E 0x08
142 #define OB_MAC_IOCB_RSP_L 0x04
143 #define OB_MAC_IOCB_RSP_S 0x02
144 #define OB_MAC_IOCB_RSP_I 0x01
154 #define IB_IP_IOCB_RSP_3032_V 0x80
155 #define IB_IP_IOCB_RSP_3032_O 0x40
156 #define IB_IP_IOCB_RSP_3032_I 0x20
157 #define IB_IP_IOCB_RSP_3032_R 0x10
159 #define IB_IP_IOCB_RSP_S 0x80
160 #define IB_IP_IOCB_RSP_H1 0x40
161 #define IB_IP_IOCB_RSP_H0 0x20
162 #define IB_IP_IOCB_RSP_B 0x10
163 #define IB_IP_IOCB_RSP_M 0x08
164 #define IB_IP_IOCB_RSP_MA 0x07
168 #define IB_IP_IOCB_RSP_3032_ICE 0x01
169 #define IB_IP_IOCB_RSP_3032_CE 0x02
170 #define IB_IP_IOCB_RSP_3032_NUC 0x04
171 #define IB_IP_IOCB_RSP_3032_UDP 0x08
172 #define IB_IP_IOCB_RSP_3032_TCP 0x10
173 #define IB_IP_IOCB_RSP_3032_IPE 0x20
175 #define IB_IP_IOCB_RSP_R 0x01
191 #define PORT0_PHY_ADDRESS 0x1e00
192 #define PORT1_PHY_ADDRESS 0x1f00
194 #define ETHERNET_CRC_SIZE 4
196 #define MII_SCAN_REGISTER 0x00000001
198 #define PHY_ID_0_REG 2
199 #define PHY_ID_1_REG 3
201 #define PHY_OUI_1_MASK 0xfc00
202 #define PHY_MODEL_MASK 0x03f0
205 #define MII_AGERE_ADDR_1 0x00001000
206 #define MII_AGERE_ADDR_2 0x00001100
690 #define LS_64BITS(x) (u32)(0xffffffff & ((u64)x))
691 #define MS_64BITS(x) (u32)(0xffffffff & (((u64)x)>>16>>16) )
824 #define PORT_CONFIG_DEFAULT 0xf700
825 #define PORT_CONFIG_AUTO_NEG_ENABLED 0x8000
826 #define PORT_CONFIG_SYM_PAUSE_ENABLED 0x4000
827 #define PORT_CONFIG_FULL_DUPLEX_ENABLED 0x2000
828 #define PORT_CONFIG_HALF_DUPLEX_ENABLED 0x1000
829 #define PORT_CONFIG_1000MB_SPEED 0x0400
830 #define PORT_CONFIG_100MB_SPEED 0x0200
831 #define PORT_CONFIG_10MB_SPEED 0x0100
832 #define PORT_CONFIG_LINK_SPEED_MASK 0x0F00
873 #define EEPROM_BOARDID_STR_SIZE 16
874 #define EEPROM_SERIAL_NUM_SIZE 16
902 #define IPSEC_CONFIG_PRESENT 0x0001
929 #define QL3XXX_VENDOR_ID 0x1077
930 #define QL3022_DEVICE_ID 0x3022
931 #define QL3032_DEVICE_ID 0x3032
934 #define NORMAL_MTU_SIZE ETH_DATA_LEN
935 #define JUMBO_MTU_SIZE 9000
936 #define VLAN_ID_LEN 2
939 #define NUM_REQ_Q_ENTRIES 256
942 #define NUM_RSP_Q_ENTRIES 256
945 #define NUM_LBUFQ_ENTRIES 128
946 #define JUMBO_NUM_LBUFQ_ENTRIES 32
947 #define NUM_SBUFQ_ENTRIES 64
948 #define QL_SMALL_BUFFER_SIZE 32
949 #define QL_ADDR_ELE_PER_BUFQ_ENTRY \
950 (sizeof(struct lrg_buf_q_entry) / sizeof(struct bufq_addr_element))
952 #define NUM_SMALL_BUFFERS NUM_SBUFQ_ENTRIES * QL_ADDR_ELE_PER_BUFQ_ENTRY
954 #define QL_HEADER_SPACE 32
961 #define IAL_LAST_ENTRY 0x00000001
962 #define IAL_CONT_ENTRY 0x00000002
963 #define IAL_FLAG_MASK 0x00000003
987 #define QL_NO_RESET 0
988 #define QL_DO_RESET 1
1017 #define MAX_OAL_CNT ((MAX_SKB_FRAGS-1)/4 + 1)
1023 #define OAL_LAST_ENTRY 0x80000000
1024 #define OAL_CONT_ENTRY 0x40000000
1045 #define QL_BUF_TYPE_MACIOCB 0x01
1046 #define QL_BUF_TYPE_IPIOCB 0x02
1047 #define QL_BUF_TYPE_TCPIOCB 0x03