root / hw / e1000_hw.h @ 7e0a9247
History | View | Annotate | Download (49.6 kB)
1 | 7c23b892 | balrog | /*******************************************************************************
|
---|---|---|---|
2 | 7c23b892 | balrog | |
3 | 7c23b892 | balrog | Intel PRO/1000 Linux driver
|
4 | 7c23b892 | balrog | Copyright(c) 1999 - 2006 Intel Corporation.
|
5 | 7c23b892 | balrog | |
6 | 7c23b892 | balrog | This program is free software; you can redistribute it and/or modify it
|
7 | 7c23b892 | balrog | under the terms and conditions of the GNU General Public License,
|
8 | 7c23b892 | balrog | version 2, as published by the Free Software Foundation.
|
9 | 7c23b892 | balrog | |
10 | 7c23b892 | balrog | This program is distributed in the hope it will be useful, but WITHOUT
|
11 | 7c23b892 | balrog | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
12 | 7c23b892 | balrog | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
13 | 7c23b892 | balrog | more details.
|
14 | 7c23b892 | balrog | |
15 | 7c23b892 | balrog | You should have received a copy of the GNU General Public License along with
|
16 | 8167ee88 | Blue Swirl | this program; if not, see <http://www.gnu.org/licenses/>.
|
17 | 7c23b892 | balrog | |
18 | 7c23b892 | balrog | The full GNU General Public License is included in this distribution in
|
19 | 7c23b892 | balrog | the file called "COPYING".
|
20 | 7c23b892 | balrog | |
21 | 7c23b892 | balrog | Contact Information:
|
22 | 7c23b892 | balrog | Linux NICS <linux.nics@intel.com>
|
23 | 7c23b892 | balrog | e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
|
24 | 7c23b892 | balrog | Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
|
25 | 7c23b892 | balrog | |
26 | 7c23b892 | balrog | *******************************************************************************/
|
27 | 7c23b892 | balrog | |
28 | 7c23b892 | balrog | /* e1000_hw.h
|
29 | 7c23b892 | balrog | * Structures, enums, and macros for the MAC
|
30 | 7c23b892 | balrog | */
|
31 | 7c23b892 | balrog | |
32 | 7c23b892 | balrog | #ifndef _E1000_HW_H_
|
33 | 7c23b892 | balrog | #define _E1000_HW_H_
|
34 | 7c23b892 | balrog | |
35 | 7c23b892 | balrog | |
36 | 7c23b892 | balrog | /* PCI Device IDs */
|
37 | 7c23b892 | balrog | #define E1000_DEV_ID_82542 0x1000 |
38 | 7c23b892 | balrog | #define E1000_DEV_ID_82543GC_FIBER 0x1001 |
39 | 7c23b892 | balrog | #define E1000_DEV_ID_82543GC_COPPER 0x1004 |
40 | 7c23b892 | balrog | #define E1000_DEV_ID_82544EI_COPPER 0x1008 |
41 | 7c23b892 | balrog | #define E1000_DEV_ID_82544EI_FIBER 0x1009 |
42 | 7c23b892 | balrog | #define E1000_DEV_ID_82544GC_COPPER 0x100C |
43 | 7c23b892 | balrog | #define E1000_DEV_ID_82544GC_LOM 0x100D |
44 | 7c23b892 | balrog | #define E1000_DEV_ID_82540EM 0x100E |
45 | 7c23b892 | balrog | #define E1000_DEV_ID_82540EM_LOM 0x1015 |
46 | 7c23b892 | balrog | #define E1000_DEV_ID_82540EP_LOM 0x1016 |
47 | 7c23b892 | balrog | #define E1000_DEV_ID_82540EP 0x1017 |
48 | 7c23b892 | balrog | #define E1000_DEV_ID_82540EP_LP 0x101E |
49 | 7c23b892 | balrog | #define E1000_DEV_ID_82545EM_COPPER 0x100F |
50 | 7c23b892 | balrog | #define E1000_DEV_ID_82545EM_FIBER 0x1011 |
51 | 7c23b892 | balrog | #define E1000_DEV_ID_82545GM_COPPER 0x1026 |
52 | 7c23b892 | balrog | #define E1000_DEV_ID_82545GM_FIBER 0x1027 |
53 | 7c23b892 | balrog | #define E1000_DEV_ID_82545GM_SERDES 0x1028 |
54 | 7c23b892 | balrog | #define E1000_DEV_ID_82546EB_COPPER 0x1010 |
55 | 7c23b892 | balrog | #define E1000_DEV_ID_82546EB_FIBER 0x1012 |
56 | 7c23b892 | balrog | #define E1000_DEV_ID_82546EB_QUAD_COPPER 0x101D |
57 | 7c23b892 | balrog | #define E1000_DEV_ID_82541EI 0x1013 |
58 | 7c23b892 | balrog | #define E1000_DEV_ID_82541EI_MOBILE 0x1018 |
59 | 7c23b892 | balrog | #define E1000_DEV_ID_82541ER_LOM 0x1014 |
60 | 7c23b892 | balrog | #define E1000_DEV_ID_82541ER 0x1078 |
61 | 7c23b892 | balrog | #define E1000_DEV_ID_82547GI 0x1075 |
62 | 7c23b892 | balrog | #define E1000_DEV_ID_82541GI 0x1076 |
63 | 7c23b892 | balrog | #define E1000_DEV_ID_82541GI_MOBILE 0x1077 |
64 | 7c23b892 | balrog | #define E1000_DEV_ID_82541GI_LF 0x107C |
65 | 7c23b892 | balrog | #define E1000_DEV_ID_82546GB_COPPER 0x1079 |
66 | 7c23b892 | balrog | #define E1000_DEV_ID_82546GB_FIBER 0x107A |
67 | 7c23b892 | balrog | #define E1000_DEV_ID_82546GB_SERDES 0x107B |
68 | 7c23b892 | balrog | #define E1000_DEV_ID_82546GB_PCIE 0x108A |
69 | 7c23b892 | balrog | #define E1000_DEV_ID_82546GB_QUAD_COPPER 0x1099 |
70 | 7c23b892 | balrog | #define E1000_DEV_ID_82547EI 0x1019 |
71 | 7c23b892 | balrog | #define E1000_DEV_ID_82547EI_MOBILE 0x101A |
72 | 7c23b892 | balrog | #define E1000_DEV_ID_82571EB_COPPER 0x105E |
73 | 7c23b892 | balrog | #define E1000_DEV_ID_82571EB_FIBER 0x105F |
74 | 7c23b892 | balrog | #define E1000_DEV_ID_82571EB_SERDES 0x1060 |
75 | 7c23b892 | balrog | #define E1000_DEV_ID_82571EB_QUAD_COPPER 0x10A4 |
76 | 7c23b892 | balrog | #define E1000_DEV_ID_82571PT_QUAD_COPPER 0x10D5 |
77 | 7c23b892 | balrog | #define E1000_DEV_ID_82571EB_QUAD_FIBER 0x10A5 |
78 | 7c23b892 | balrog | #define E1000_DEV_ID_82571EB_QUAD_COPPER_LOWPROFILE 0x10BC |
79 | 7c23b892 | balrog | #define E1000_DEV_ID_82571EB_SERDES_DUAL 0x10D9 |
80 | 7c23b892 | balrog | #define E1000_DEV_ID_82571EB_SERDES_QUAD 0x10DA |
81 | 7c23b892 | balrog | #define E1000_DEV_ID_82572EI_COPPER 0x107D |
82 | 7c23b892 | balrog | #define E1000_DEV_ID_82572EI_FIBER 0x107E |
83 | 7c23b892 | balrog | #define E1000_DEV_ID_82572EI_SERDES 0x107F |
84 | 7c23b892 | balrog | #define E1000_DEV_ID_82572EI 0x10B9 |
85 | 7c23b892 | balrog | #define E1000_DEV_ID_82573E 0x108B |
86 | 7c23b892 | balrog | #define E1000_DEV_ID_82573E_IAMT 0x108C |
87 | 7c23b892 | balrog | #define E1000_DEV_ID_82573L 0x109A |
88 | 7c23b892 | balrog | #define E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3 0x10B5 |
89 | 7c23b892 | balrog | #define E1000_DEV_ID_80003ES2LAN_COPPER_DPT 0x1096 |
90 | 7c23b892 | balrog | #define E1000_DEV_ID_80003ES2LAN_SERDES_DPT 0x1098 |
91 | 7c23b892 | balrog | #define E1000_DEV_ID_80003ES2LAN_COPPER_SPT 0x10BA |
92 | 7c23b892 | balrog | #define E1000_DEV_ID_80003ES2LAN_SERDES_SPT 0x10BB |
93 | 7c23b892 | balrog | |
94 | 7c23b892 | balrog | #define E1000_DEV_ID_ICH8_IGP_M_AMT 0x1049 |
95 | 7c23b892 | balrog | #define E1000_DEV_ID_ICH8_IGP_AMT 0x104A |
96 | 7c23b892 | balrog | #define E1000_DEV_ID_ICH8_IGP_C 0x104B |
97 | 7c23b892 | balrog | #define E1000_DEV_ID_ICH8_IFE 0x104C |
98 | 7c23b892 | balrog | #define E1000_DEV_ID_ICH8_IFE_GT 0x10C4 |
99 | 7c23b892 | balrog | #define E1000_DEV_ID_ICH8_IFE_G 0x10C5 |
100 | 7c23b892 | balrog | #define E1000_DEV_ID_ICH8_IGP_M 0x104D |
101 | 7c23b892 | balrog | |
102 | 7c23b892 | balrog | /* Register Set. (82543, 82544)
|
103 | 7c23b892 | balrog | *
|
104 | 7c23b892 | balrog | * Registers are defined to be 32 bits and should be accessed as 32 bit values.
|
105 | 7c23b892 | balrog | * These registers are physically located on the NIC, but are mapped into the
|
106 | 7c23b892 | balrog | * host memory address space.
|
107 | 7c23b892 | balrog | *
|
108 | 7c23b892 | balrog | * RW - register is both readable and writable
|
109 | 7c23b892 | balrog | * RO - register is read only
|
110 | 7c23b892 | balrog | * WO - register is write only
|
111 | 7c23b892 | balrog | * R/clr - register is read only and is cleared when read
|
112 | 7c23b892 | balrog | * A - register array
|
113 | 7c23b892 | balrog | */
|
114 | 7c23b892 | balrog | #define E1000_CTRL 0x00000 /* Device Control - RW */ |
115 | 7c23b892 | balrog | #define E1000_CTRL_DUP 0x00004 /* Device Control Duplicate (Shadow) - RW */ |
116 | 7c23b892 | balrog | #define E1000_STATUS 0x00008 /* Device Status - RO */ |
117 | 7c23b892 | balrog | #define E1000_EECD 0x00010 /* EEPROM/Flash Control - RW */ |
118 | 7c23b892 | balrog | #define E1000_EERD 0x00014 /* EEPROM Read - RW */ |
119 | 7c23b892 | balrog | #define E1000_CTRL_EXT 0x00018 /* Extended Device Control - RW */ |
120 | 7c23b892 | balrog | #define E1000_FLA 0x0001C /* Flash Access - RW */ |
121 | 7c23b892 | balrog | #define E1000_MDIC 0x00020 /* MDI Control - RW */ |
122 | 7c23b892 | balrog | #define E1000_SCTL 0x00024 /* SerDes Control - RW */ |
123 | 7c23b892 | balrog | #define E1000_FEXTNVM 0x00028 /* Future Extended NVM register */ |
124 | 7c23b892 | balrog | #define E1000_FCAL 0x00028 /* Flow Control Address Low - RW */ |
125 | 7c23b892 | balrog | #define E1000_FCAH 0x0002C /* Flow Control Address High -RW */ |
126 | 7c23b892 | balrog | #define E1000_FCT 0x00030 /* Flow Control Type - RW */ |
127 | 7c23b892 | balrog | #define E1000_VET 0x00038 /* VLAN Ether Type - RW */ |
128 | 7c23b892 | balrog | #define E1000_ICR 0x000C0 /* Interrupt Cause Read - R/clr */ |
129 | 7c23b892 | balrog | #define E1000_ITR 0x000C4 /* Interrupt Throttling Rate - RW */ |
130 | 7c23b892 | balrog | #define E1000_ICS 0x000C8 /* Interrupt Cause Set - WO */ |
131 | 7c23b892 | balrog | #define E1000_IMS 0x000D0 /* Interrupt Mask Set - RW */ |
132 | 7c23b892 | balrog | #define E1000_IMC 0x000D8 /* Interrupt Mask Clear - WO */ |
133 | 7c23b892 | balrog | #define E1000_IAM 0x000E0 /* Interrupt Acknowledge Auto Mask */ |
134 | 7c23b892 | balrog | #define E1000_RCTL 0x00100 /* RX Control - RW */ |
135 | 7c23b892 | balrog | #define E1000_RDTR1 0x02820 /* RX Delay Timer (1) - RW */ |
136 | 7c23b892 | balrog | #define E1000_RDBAL1 0x02900 /* RX Descriptor Base Address Low (1) - RW */ |
137 | 7c23b892 | balrog | #define E1000_RDBAH1 0x02904 /* RX Descriptor Base Address High (1) - RW */ |
138 | 7c23b892 | balrog | #define E1000_RDLEN1 0x02908 /* RX Descriptor Length (1) - RW */ |
139 | 7c23b892 | balrog | #define E1000_RDH1 0x02910 /* RX Descriptor Head (1) - RW */ |
140 | 7c23b892 | balrog | #define E1000_RDT1 0x02918 /* RX Descriptor Tail (1) - RW */ |
141 | 7c23b892 | balrog | #define E1000_FCTTV 0x00170 /* Flow Control Transmit Timer Value - RW */ |
142 | 7c23b892 | balrog | #define E1000_TXCW 0x00178 /* TX Configuration Word - RW */ |
143 | 7c23b892 | balrog | #define E1000_RXCW 0x00180 /* RX Configuration Word - RO */ |
144 | 7c23b892 | balrog | #define E1000_TCTL 0x00400 /* TX Control - RW */ |
145 | 7c23b892 | balrog | #define E1000_TCTL_EXT 0x00404 /* Extended TX Control - RW */ |
146 | 7c23b892 | balrog | #define E1000_TIPG 0x00410 /* TX Inter-packet gap -RW */ |
147 | 7c23b892 | balrog | #define E1000_TBT 0x00448 /* TX Burst Timer - RW */ |
148 | 7c23b892 | balrog | #define E1000_AIT 0x00458 /* Adaptive Interframe Spacing Throttle - RW */ |
149 | 7c23b892 | balrog | #define E1000_LEDCTL 0x00E00 /* LED Control - RW */ |
150 | 7c23b892 | balrog | #define E1000_EXTCNF_CTRL 0x00F00 /* Extended Configuration Control */ |
151 | 7c23b892 | balrog | #define E1000_EXTCNF_SIZE 0x00F08 /* Extended Configuration Size */ |
152 | 7c23b892 | balrog | #define E1000_PHY_CTRL 0x00F10 /* PHY Control Register in CSR */ |
153 | 7c23b892 | balrog | #define FEXTNVM_SW_CONFIG 0x0001 |
154 | 7c23b892 | balrog | #define E1000_PBA 0x01000 /* Packet Buffer Allocation - RW */ |
155 | 7c23b892 | balrog | #define E1000_PBS 0x01008 /* Packet Buffer Size */ |
156 | 7c23b892 | balrog | #define E1000_EEMNGCTL 0x01010 /* MNG EEprom Control */ |
157 | 7c23b892 | balrog | #define E1000_FLASH_UPDATES 1000 |
158 | 7c23b892 | balrog | #define E1000_EEARBC 0x01024 /* EEPROM Auto Read Bus Control */ |
159 | 7c23b892 | balrog | #define E1000_FLASHT 0x01028 /* FLASH Timer Register */ |
160 | 7c23b892 | balrog | #define E1000_EEWR 0x0102C /* EEPROM Write Register - RW */ |
161 | 7c23b892 | balrog | #define E1000_FLSWCTL 0x01030 /* FLASH control register */ |
162 | 7c23b892 | balrog | #define E1000_FLSWDATA 0x01034 /* FLASH data register */ |
163 | 7c23b892 | balrog | #define E1000_FLSWCNT 0x01038 /* FLASH Access Counter */ |
164 | 7c23b892 | balrog | #define E1000_FLOP 0x0103C /* FLASH Opcode Register */ |
165 | 7c23b892 | balrog | #define E1000_ERT 0x02008 /* Early Rx Threshold - RW */ |
166 | 7c23b892 | balrog | #define E1000_FCRTL 0x02160 /* Flow Control Receive Threshold Low - RW */ |
167 | 7c23b892 | balrog | #define E1000_FCRTH 0x02168 /* Flow Control Receive Threshold High - RW */ |
168 | 7c23b892 | balrog | #define E1000_PSRCTL 0x02170 /* Packet Split Receive Control - RW */ |
169 | 7c23b892 | balrog | #define E1000_RDBAL 0x02800 /* RX Descriptor Base Address Low - RW */ |
170 | 7c23b892 | balrog | #define E1000_RDBAH 0x02804 /* RX Descriptor Base Address High - RW */ |
171 | 7c23b892 | balrog | #define E1000_RDLEN 0x02808 /* RX Descriptor Length - RW */ |
172 | 7c23b892 | balrog | #define E1000_RDH 0x02810 /* RX Descriptor Head - RW */ |
173 | 7c23b892 | balrog | #define E1000_RDT 0x02818 /* RX Descriptor Tail - RW */ |
174 | 7c23b892 | balrog | #define E1000_RDTR 0x02820 /* RX Delay Timer - RW */ |
175 | 7c23b892 | balrog | #define E1000_RDBAL0 E1000_RDBAL /* RX Desc Base Address Low (0) - RW */ |
176 | 7c23b892 | balrog | #define E1000_RDBAH0 E1000_RDBAH /* RX Desc Base Address High (0) - RW */ |
177 | 7c23b892 | balrog | #define E1000_RDLEN0 E1000_RDLEN /* RX Desc Length (0) - RW */ |
178 | 7c23b892 | balrog | #define E1000_RDH0 E1000_RDH /* RX Desc Head (0) - RW */ |
179 | 7c23b892 | balrog | #define E1000_RDT0 E1000_RDT /* RX Desc Tail (0) - RW */ |
180 | 7c23b892 | balrog | #define E1000_RDTR0 E1000_RDTR /* RX Delay Timer (0) - RW */ |
181 | 7c23b892 | balrog | #define E1000_RXDCTL 0x02828 /* RX Descriptor Control queue 0 - RW */ |
182 | 7c23b892 | balrog | #define E1000_RXDCTL1 0x02928 /* RX Descriptor Control queue 1 - RW */ |
183 | 7c23b892 | balrog | #define E1000_RADV 0x0282C /* RX Interrupt Absolute Delay Timer - RW */ |
184 | 7c23b892 | balrog | #define E1000_RSRPD 0x02C00 /* RX Small Packet Detect - RW */ |
185 | 7c23b892 | balrog | #define E1000_RAID 0x02C08 /* Receive Ack Interrupt Delay - RW */ |
186 | 7c23b892 | balrog | #define E1000_TXDMAC 0x03000 /* TX DMA Control - RW */ |
187 | 7c23b892 | balrog | #define E1000_KABGTXD 0x03004 /* AFE Band Gap Transmit Ref Data */ |
188 | 7c23b892 | balrog | #define E1000_TDFH 0x03410 /* TX Data FIFO Head - RW */ |
189 | 7c23b892 | balrog | #define E1000_TDFT 0x03418 /* TX Data FIFO Tail - RW */ |
190 | 7c23b892 | balrog | #define E1000_TDFHS 0x03420 /* TX Data FIFO Head Saved - RW */ |
191 | 7c23b892 | balrog | #define E1000_TDFTS 0x03428 /* TX Data FIFO Tail Saved - RW */ |
192 | 7c23b892 | balrog | #define E1000_TDFPC 0x03430 /* TX Data FIFO Packet Count - RW */ |
193 | 7c23b892 | balrog | #define E1000_TDBAL 0x03800 /* TX Descriptor Base Address Low - RW */ |
194 | 7c23b892 | balrog | #define E1000_TDBAH 0x03804 /* TX Descriptor Base Address High - RW */ |
195 | 7c23b892 | balrog | #define E1000_TDLEN 0x03808 /* TX Descriptor Length - RW */ |
196 | 7c23b892 | balrog | #define E1000_TDH 0x03810 /* TX Descriptor Head - RW */ |
197 | 7c23b892 | balrog | #define E1000_TDT 0x03818 /* TX Descripotr Tail - RW */ |
198 | 7c23b892 | balrog | #define E1000_TIDV 0x03820 /* TX Interrupt Delay Value - RW */ |
199 | 7c23b892 | balrog | #define E1000_TXDCTL 0x03828 /* TX Descriptor Control - RW */ |
200 | 7c23b892 | balrog | #define E1000_TADV 0x0382C /* TX Interrupt Absolute Delay Val - RW */ |
201 | 7c23b892 | balrog | #define E1000_TSPMT 0x03830 /* TCP Segmentation PAD & Min Threshold - RW */ |
202 | 7c23b892 | balrog | #define E1000_TARC0 0x03840 /* TX Arbitration Count (0) */ |
203 | 7c23b892 | balrog | #define E1000_TDBAL1 0x03900 /* TX Desc Base Address Low (1) - RW */ |
204 | 7c23b892 | balrog | #define E1000_TDBAH1 0x03904 /* TX Desc Base Address High (1) - RW */ |
205 | 7c23b892 | balrog | #define E1000_TDLEN1 0x03908 /* TX Desc Length (1) - RW */ |
206 | 7c23b892 | balrog | #define E1000_TDH1 0x03910 /* TX Desc Head (1) - RW */ |
207 | 7c23b892 | balrog | #define E1000_TDT1 0x03918 /* TX Desc Tail (1) - RW */ |
208 | 7c23b892 | balrog | #define E1000_TXDCTL1 0x03928 /* TX Descriptor Control (1) - RW */ |
209 | 7c23b892 | balrog | #define E1000_TARC1 0x03940 /* TX Arbitration Count (1) */ |
210 | 7c23b892 | balrog | #define E1000_CRCERRS 0x04000 /* CRC Error Count - R/clr */ |
211 | 7c23b892 | balrog | #define E1000_ALGNERRC 0x04004 /* Alignment Error Count - R/clr */ |
212 | 7c23b892 | balrog | #define E1000_SYMERRS 0x04008 /* Symbol Error Count - R/clr */ |
213 | 7c23b892 | balrog | #define E1000_RXERRC 0x0400C /* Receive Error Count - R/clr */ |
214 | 7c23b892 | balrog | #define E1000_MPC 0x04010 /* Missed Packet Count - R/clr */ |
215 | 7c23b892 | balrog | #define E1000_SCC 0x04014 /* Single Collision Count - R/clr */ |
216 | 7c23b892 | balrog | #define E1000_ECOL 0x04018 /* Excessive Collision Count - R/clr */ |
217 | 7c23b892 | balrog | #define E1000_MCC 0x0401C /* Multiple Collision Count - R/clr */ |
218 | 7c23b892 | balrog | #define E1000_LATECOL 0x04020 /* Late Collision Count - R/clr */ |
219 | 7c23b892 | balrog | #define E1000_COLC 0x04028 /* Collision Count - R/clr */ |
220 | 7c23b892 | balrog | #define E1000_DC 0x04030 /* Defer Count - R/clr */ |
221 | 7c23b892 | balrog | #define E1000_TNCRS 0x04034 /* TX-No CRS - R/clr */ |
222 | 7c23b892 | balrog | #define E1000_SEC 0x04038 /* Sequence Error Count - R/clr */ |
223 | 7c23b892 | balrog | #define E1000_CEXTERR 0x0403C /* Carrier Extension Error Count - R/clr */ |
224 | 7c23b892 | balrog | #define E1000_RLEC 0x04040 /* Receive Length Error Count - R/clr */ |
225 | 7c23b892 | balrog | #define E1000_XONRXC 0x04048 /* XON RX Count - R/clr */ |
226 | 7c23b892 | balrog | #define E1000_XONTXC 0x0404C /* XON TX Count - R/clr */ |
227 | 7c23b892 | balrog | #define E1000_XOFFRXC 0x04050 /* XOFF RX Count - R/clr */ |
228 | 7c23b892 | balrog | #define E1000_XOFFTXC 0x04054 /* XOFF TX Count - R/clr */ |
229 | 7c23b892 | balrog | #define E1000_FCRUC 0x04058 /* Flow Control RX Unsupported Count- R/clr */ |
230 | 7c23b892 | balrog | #define E1000_PRC64 0x0405C /* Packets RX (64 bytes) - R/clr */ |
231 | 7c23b892 | balrog | #define E1000_PRC127 0x04060 /* Packets RX (65-127 bytes) - R/clr */ |
232 | 7c23b892 | balrog | #define E1000_PRC255 0x04064 /* Packets RX (128-255 bytes) - R/clr */ |
233 | 7c23b892 | balrog | #define E1000_PRC511 0x04068 /* Packets RX (255-511 bytes) - R/clr */ |
234 | 7c23b892 | balrog | #define E1000_PRC1023 0x0406C /* Packets RX (512-1023 bytes) - R/clr */ |
235 | 7c23b892 | balrog | #define E1000_PRC1522 0x04070 /* Packets RX (1024-1522 bytes) - R/clr */ |
236 | 7c23b892 | balrog | #define E1000_GPRC 0x04074 /* Good Packets RX Count - R/clr */ |
237 | 7c23b892 | balrog | #define E1000_BPRC 0x04078 /* Broadcast Packets RX Count - R/clr */ |
238 | 7c23b892 | balrog | #define E1000_MPRC 0x0407C /* Multicast Packets RX Count - R/clr */ |
239 | 7c23b892 | balrog | #define E1000_GPTC 0x04080 /* Good Packets TX Count - R/clr */ |
240 | 7c23b892 | balrog | #define E1000_GORCL 0x04088 /* Good Octets RX Count Low - R/clr */ |
241 | 7c23b892 | balrog | #define E1000_GORCH 0x0408C /* Good Octets RX Count High - R/clr */ |
242 | 7c23b892 | balrog | #define E1000_GOTCL 0x04090 /* Good Octets TX Count Low - R/clr */ |
243 | 7c23b892 | balrog | #define E1000_GOTCH 0x04094 /* Good Octets TX Count High - R/clr */ |
244 | 7c23b892 | balrog | #define E1000_RNBC 0x040A0 /* RX No Buffers Count - R/clr */ |
245 | 7c23b892 | balrog | #define E1000_RUC 0x040A4 /* RX Undersize Count - R/clr */ |
246 | 7c23b892 | balrog | #define E1000_RFC 0x040A8 /* RX Fragment Count - R/clr */ |
247 | 7c23b892 | balrog | #define E1000_ROC 0x040AC /* RX Oversize Count - R/clr */ |
248 | 7c23b892 | balrog | #define E1000_RJC 0x040B0 /* RX Jabber Count - R/clr */ |
249 | 7c23b892 | balrog | #define E1000_MGTPRC 0x040B4 /* Management Packets RX Count - R/clr */ |
250 | 7c23b892 | balrog | #define E1000_MGTPDC 0x040B8 /* Management Packets Dropped Count - R/clr */ |
251 | 7c23b892 | balrog | #define E1000_MGTPTC 0x040BC /* Management Packets TX Count - R/clr */ |
252 | 7c23b892 | balrog | #define E1000_TORL 0x040C0 /* Total Octets RX Low - R/clr */ |
253 | 7c23b892 | balrog | #define E1000_TORH 0x040C4 /* Total Octets RX High - R/clr */ |
254 | 7c23b892 | balrog | #define E1000_TOTL 0x040C8 /* Total Octets TX Low - R/clr */ |
255 | 7c23b892 | balrog | #define E1000_TOTH 0x040CC /* Total Octets TX High - R/clr */ |
256 | 7c23b892 | balrog | #define E1000_TPR 0x040D0 /* Total Packets RX - R/clr */ |
257 | 7c23b892 | balrog | #define E1000_TPT 0x040D4 /* Total Packets TX - R/clr */ |
258 | 7c23b892 | balrog | #define E1000_PTC64 0x040D8 /* Packets TX (64 bytes) - R/clr */ |
259 | 7c23b892 | balrog | #define E1000_PTC127 0x040DC /* Packets TX (65-127 bytes) - R/clr */ |
260 | 7c23b892 | balrog | #define E1000_PTC255 0x040E0 /* Packets TX (128-255 bytes) - R/clr */ |
261 | 7c23b892 | balrog | #define E1000_PTC511 0x040E4 /* Packets TX (256-511 bytes) - R/clr */ |
262 | 7c23b892 | balrog | #define E1000_PTC1023 0x040E8 /* Packets TX (512-1023 bytes) - R/clr */ |
263 | 7c23b892 | balrog | #define E1000_PTC1522 0x040EC /* Packets TX (1024-1522 Bytes) - R/clr */ |
264 | 7c23b892 | balrog | #define E1000_MPTC 0x040F0 /* Multicast Packets TX Count - R/clr */ |
265 | 7c23b892 | balrog | #define E1000_BPTC 0x040F4 /* Broadcast Packets TX Count - R/clr */ |
266 | 7c23b892 | balrog | #define E1000_TSCTC 0x040F8 /* TCP Segmentation Context TX - R/clr */ |
267 | 7c23b892 | balrog | #define E1000_TSCTFC 0x040FC /* TCP Segmentation Context TX Fail - R/clr */ |
268 | 7c23b892 | balrog | #define E1000_IAC 0x04100 /* Interrupt Assertion Count */ |
269 | 7c23b892 | balrog | #define E1000_ICRXPTC 0x04104 /* Interrupt Cause Rx Packet Timer Expire Count */ |
270 | 7c23b892 | balrog | #define E1000_ICRXATC 0x04108 /* Interrupt Cause Rx Absolute Timer Expire Count */ |
271 | 7c23b892 | balrog | #define E1000_ICTXPTC 0x0410C /* Interrupt Cause Tx Packet Timer Expire Count */ |
272 | 7c23b892 | balrog | #define E1000_ICTXATC 0x04110 /* Interrupt Cause Tx Absolute Timer Expire Count */ |
273 | 7c23b892 | balrog | #define E1000_ICTXQEC 0x04118 /* Interrupt Cause Tx Queue Empty Count */ |
274 | 7c23b892 | balrog | #define E1000_ICTXQMTC 0x0411C /* Interrupt Cause Tx Queue Minimum Threshold Count */ |
275 | 7c23b892 | balrog | #define E1000_ICRXDMTC 0x04120 /* Interrupt Cause Rx Descriptor Minimum Threshold Count */ |
276 | 7c23b892 | balrog | #define E1000_ICRXOC 0x04124 /* Interrupt Cause Receiver Overrun Count */ |
277 | 7c23b892 | balrog | #define E1000_RXCSUM 0x05000 /* RX Checksum Control - RW */ |
278 | 7c23b892 | balrog | #define E1000_RFCTL 0x05008 /* Receive Filter Control*/ |
279 | 7c23b892 | balrog | #define E1000_MTA 0x05200 /* Multicast Table Array - RW Array */ |
280 | 7c23b892 | balrog | #define E1000_RA 0x05400 /* Receive Address - RW Array */ |
281 | 7c23b892 | balrog | #define E1000_VFTA 0x05600 /* VLAN Filter Table Array - RW Array */ |
282 | 7c23b892 | balrog | #define E1000_WUC 0x05800 /* Wakeup Control - RW */ |
283 | 7c23b892 | balrog | #define E1000_WUFC 0x05808 /* Wakeup Filter Control - RW */ |
284 | 7c23b892 | balrog | #define E1000_WUS 0x05810 /* Wakeup Status - RO */ |
285 | 7c23b892 | balrog | #define E1000_MANC 0x05820 /* Management Control - RW */ |
286 | 7c23b892 | balrog | #define E1000_IPAV 0x05838 /* IP Address Valid - RW */ |
287 | 7c23b892 | balrog | #define E1000_IP4AT 0x05840 /* IPv4 Address Table - RW Array */ |
288 | 7c23b892 | balrog | #define E1000_IP6AT 0x05880 /* IPv6 Address Table - RW Array */ |
289 | 7c23b892 | balrog | #define E1000_WUPL 0x05900 /* Wakeup Packet Length - RW */ |
290 | 7c23b892 | balrog | #define E1000_WUPM 0x05A00 /* Wakeup Packet Memory - RO A */ |
291 | 7c23b892 | balrog | #define E1000_FFLT 0x05F00 /* Flexible Filter Length Table - RW Array */ |
292 | 7c23b892 | balrog | #define E1000_HOST_IF 0x08800 /* Host Interface */ |
293 | 7c23b892 | balrog | #define E1000_FFMT 0x09000 /* Flexible Filter Mask Table - RW Array */ |
294 | 7c23b892 | balrog | #define E1000_FFVT 0x09800 /* Flexible Filter Value Table - RW Array */ |
295 | 7c23b892 | balrog | |
296 | 7c23b892 | balrog | #define E1000_KUMCTRLSTA 0x00034 /* MAC-PHY interface - RW */ |
297 | 7c23b892 | balrog | #define E1000_MDPHYA 0x0003C /* PHY address - RW */ |
298 | 66a0a2cb | Dong Xu Wang | #define E1000_MANC2H 0x05860 /* Management Control To Host - RW */ |
299 | 7c23b892 | balrog | #define E1000_SW_FW_SYNC 0x05B5C /* Software-Firmware Synchronization - RW */ |
300 | 7c23b892 | balrog | |
301 | 7c23b892 | balrog | #define E1000_GCR 0x05B00 /* PCI-Ex Control */ |
302 | 7c23b892 | balrog | #define E1000_GSCL_1 0x05B10 /* PCI-Ex Statistic Control #1 */ |
303 | 7c23b892 | balrog | #define E1000_GSCL_2 0x05B14 /* PCI-Ex Statistic Control #2 */ |
304 | 7c23b892 | balrog | #define E1000_GSCL_3 0x05B18 /* PCI-Ex Statistic Control #3 */ |
305 | 7c23b892 | balrog | #define E1000_GSCL_4 0x05B1C /* PCI-Ex Statistic Control #4 */ |
306 | 7c23b892 | balrog | #define E1000_FACTPS 0x05B30 /* Function Active and Power State to MNG */ |
307 | 7c23b892 | balrog | #define E1000_SWSM 0x05B50 /* SW Semaphore */ |
308 | 7c23b892 | balrog | #define E1000_FWSM 0x05B54 /* FW Semaphore */ |
309 | 7c23b892 | balrog | #define E1000_FFLT_DBG 0x05F04 /* Debug Register */ |
310 | 7c23b892 | balrog | #define E1000_HICR 0x08F00 /* Host Inteface Control */ |
311 | 7c23b892 | balrog | |
312 | 7c23b892 | balrog | /* RSS registers */
|
313 | 7c23b892 | balrog | #define E1000_CPUVEC 0x02C10 /* CPU Vector Register - RW */ |
314 | 7c23b892 | balrog | #define E1000_MRQC 0x05818 /* Multiple Receive Control - RW */ |
315 | 7c23b892 | balrog | #define E1000_RETA 0x05C00 /* Redirection Table - RW Array */ |
316 | 7c23b892 | balrog | #define E1000_RSSRK 0x05C80 /* RSS Random Key - RW Array */ |
317 | 7c23b892 | balrog | #define E1000_RSSIM 0x05864 /* RSS Interrupt Mask */ |
318 | 7c23b892 | balrog | #define E1000_RSSIR 0x05868 /* RSS Interrupt Request */ |
319 | 7c23b892 | balrog | |
320 | 7c23b892 | balrog | /* PHY 1000 MII Register/Bit Definitions */
|
321 | 7c23b892 | balrog | /* PHY Registers defined by IEEE */
|
322 | 7c23b892 | balrog | #define PHY_CTRL 0x00 /* Control Register */ |
323 | 7c23b892 | balrog | #define PHY_STATUS 0x01 /* Status Regiser */ |
324 | 7c23b892 | balrog | #define PHY_ID1 0x02 /* Phy Id Reg (word 1) */ |
325 | 7c23b892 | balrog | #define PHY_ID2 0x03 /* Phy Id Reg (word 2) */ |
326 | 7c23b892 | balrog | #define PHY_AUTONEG_ADV 0x04 /* Autoneg Advertisement */ |
327 | 7c23b892 | balrog | #define PHY_LP_ABILITY 0x05 /* Link Partner Ability (Base Page) */ |
328 | 7c23b892 | balrog | #define PHY_AUTONEG_EXP 0x06 /* Autoneg Expansion Reg */ |
329 | 7c23b892 | balrog | #define PHY_NEXT_PAGE_TX 0x07 /* Next Page TX */ |
330 | 7c23b892 | balrog | #define PHY_LP_NEXT_PAGE 0x08 /* Link Partner Next Page */ |
331 | 7c23b892 | balrog | #define PHY_1000T_CTRL 0x09 /* 1000Base-T Control Reg */ |
332 | 7c23b892 | balrog | #define PHY_1000T_STATUS 0x0A /* 1000Base-T Status Reg */ |
333 | 7c23b892 | balrog | #define PHY_EXT_STATUS 0x0F /* Extended Status Reg */ |
334 | 7c23b892 | balrog | |
335 | 7c23b892 | balrog | #define MAX_PHY_REG_ADDRESS 0x1F /* 5 bit address bus (0-0x1F) */ |
336 | 7c23b892 | balrog | #define MAX_PHY_MULTI_PAGE_REG 0xF /* Registers equal on all pages */ |
337 | 7c23b892 | balrog | |
338 | 7c23b892 | balrog | /* M88E1000 Specific Registers */
|
339 | 7c23b892 | balrog | #define M88E1000_PHY_SPEC_CTRL 0x10 /* PHY Specific Control Register */ |
340 | 7c23b892 | balrog | #define M88E1000_PHY_SPEC_STATUS 0x11 /* PHY Specific Status Register */ |
341 | 7c23b892 | balrog | #define M88E1000_INT_ENABLE 0x12 /* Interrupt Enable Register */ |
342 | 7c23b892 | balrog | #define M88E1000_INT_STATUS 0x13 /* Interrupt Status Register */ |
343 | 7c23b892 | balrog | #define M88E1000_EXT_PHY_SPEC_CTRL 0x14 /* Extended PHY Specific Control */ |
344 | 7c23b892 | balrog | #define M88E1000_RX_ERR_CNTR 0x15 /* Receive Error Counter */ |
345 | 7c23b892 | balrog | |
346 | 7c23b892 | balrog | #define M88E1000_PHY_EXT_CTRL 0x1A /* PHY extend control register */ |
347 | 7c23b892 | balrog | #define M88E1000_PHY_PAGE_SELECT 0x1D /* Reg 29 for page number setting */ |
348 | 7c23b892 | balrog | #define M88E1000_PHY_GEN_CONTROL 0x1E /* Its meaning depends on reg 29 */ |
349 | 7c23b892 | balrog | #define M88E1000_PHY_VCO_REG_BIT8 0x100 /* Bits 8 & 11 are adjusted for */ |
350 | 7c23b892 | balrog | #define M88E1000_PHY_VCO_REG_BIT11 0x800 /* improved BER performance */ |
351 | 7c23b892 | balrog | |
352 | 2e54cc21 | Jason Wang | /* PHY Control Register */
|
353 | 2e54cc21 | Jason Wang | #define MII_CR_SPEED_SELECT_MSB 0x0040 /* bits 6,13: 10=1000, 01=100, 00=10 */ |
354 | 2e54cc21 | Jason Wang | #define MII_CR_COLL_TEST_ENABLE 0x0080 /* Collision test enable */ |
355 | 2e54cc21 | Jason Wang | #define MII_CR_FULL_DUPLEX 0x0100 /* FDX =1, half duplex =0 */ |
356 | 2e54cc21 | Jason Wang | #define MII_CR_RESTART_AUTO_NEG 0x0200 /* Restart auto negotiation */ |
357 | 2e54cc21 | Jason Wang | #define MII_CR_ISOLATE 0x0400 /* Isolate PHY from MII */ |
358 | 2e54cc21 | Jason Wang | #define MII_CR_POWER_DOWN 0x0800 /* Power down */ |
359 | 2e54cc21 | Jason Wang | #define MII_CR_AUTO_NEG_EN 0x1000 /* Auto Neg Enable */ |
360 | 2e54cc21 | Jason Wang | #define MII_CR_SPEED_SELECT_LSB 0x2000 /* bits 6,13: 10=1000, 01=100, 00=10 */ |
361 | 2e54cc21 | Jason Wang | #define MII_CR_LOOPBACK 0x4000 /* 0 = normal, 1 = loopback */ |
362 | 2e54cc21 | Jason Wang | #define MII_CR_RESET 0x8000 /* 0 = normal, 1 = PHY reset */ |
363 | 2e54cc21 | Jason Wang | |
364 | d4044c2a | Bjรธrn Mork | /* PHY Status Register */
|
365 | d4044c2a | Bjรธrn Mork | #define MII_SR_EXTENDED_CAPS 0x0001 /* Extended register capabilities */ |
366 | d4044c2a | Bjรธrn Mork | #define MII_SR_JABBER_DETECT 0x0002 /* Jabber Detected */ |
367 | d4044c2a | Bjรธrn Mork | #define MII_SR_LINK_STATUS 0x0004 /* Link Status 1 = link */ |
368 | d4044c2a | Bjรธrn Mork | #define MII_SR_AUTONEG_CAPS 0x0008 /* Auto Neg Capable */ |
369 | d4044c2a | Bjรธrn Mork | #define MII_SR_REMOTE_FAULT 0x0010 /* Remote Fault Detect */ |
370 | d4044c2a | Bjรธrn Mork | #define MII_SR_AUTONEG_COMPLETE 0x0020 /* Auto Neg Complete */ |
371 | d4044c2a | Bjรธrn Mork | #define MII_SR_PREAMBLE_SUPPRESS 0x0040 /* Preamble may be suppressed */ |
372 | d4044c2a | Bjรธrn Mork | #define MII_SR_EXTENDED_STATUS 0x0100 /* Ext. status info in Reg 0x0F */ |
373 | d4044c2a | Bjรธrn Mork | #define MII_SR_100T2_HD_CAPS 0x0200 /* 100T2 Half Duplex Capable */ |
374 | d4044c2a | Bjรธrn Mork | #define MII_SR_100T2_FD_CAPS 0x0400 /* 100T2 Full Duplex Capable */ |
375 | d4044c2a | Bjรธrn Mork | #define MII_SR_10T_HD_CAPS 0x0800 /* 10T Half Duplex Capable */ |
376 | d4044c2a | Bjรธrn Mork | #define MII_SR_10T_FD_CAPS 0x1000 /* 10T Full Duplex Capable */ |
377 | d4044c2a | Bjรธrn Mork | #define MII_SR_100X_HD_CAPS 0x2000 /* 100X Half Duplex Capable */ |
378 | d4044c2a | Bjรธrn Mork | #define MII_SR_100X_FD_CAPS 0x4000 /* 100X Full Duplex Capable */ |
379 | d4044c2a | Bjรธrn Mork | #define MII_SR_100T4_CAPS 0x8000 /* 100T4 Capable */ |
380 | d4044c2a | Bjรธrn Mork | |
381 | 7c23b892 | balrog | /* Interrupt Cause Read */
|
382 | 7c23b892 | balrog | #define E1000_ICR_TXDW 0x00000001 /* Transmit desc written back */ |
383 | 7c23b892 | balrog | #define E1000_ICR_TXQE 0x00000002 /* Transmit Queue empty */ |
384 | 7c23b892 | balrog | #define E1000_ICR_LSC 0x00000004 /* Link Status Change */ |
385 | 7c23b892 | balrog | #define E1000_ICR_RXSEQ 0x00000008 /* rx sequence error */ |
386 | 7c23b892 | balrog | #define E1000_ICR_RXDMT0 0x00000010 /* rx desc min. threshold (0) */ |
387 | 7c23b892 | balrog | #define E1000_ICR_RXO 0x00000040 /* rx overrun */ |
388 | 7c23b892 | balrog | #define E1000_ICR_RXT0 0x00000080 /* rx timer intr (ring 0) */ |
389 | 7c23b892 | balrog | #define E1000_ICR_MDAC 0x00000200 /* MDIO access complete */ |
390 | 7c23b892 | balrog | #define E1000_ICR_RXCFG 0x00000400 /* RX /c/ ordered set */ |
391 | 7c23b892 | balrog | #define E1000_ICR_GPI_EN0 0x00000800 /* GP Int 0 */ |
392 | 7c23b892 | balrog | #define E1000_ICR_GPI_EN1 0x00001000 /* GP Int 1 */ |
393 | 7c23b892 | balrog | #define E1000_ICR_GPI_EN2 0x00002000 /* GP Int 2 */ |
394 | 7c23b892 | balrog | #define E1000_ICR_GPI_EN3 0x00004000 /* GP Int 3 */ |
395 | 7c23b892 | balrog | #define E1000_ICR_TXD_LOW 0x00008000 |
396 | 7c23b892 | balrog | #define E1000_ICR_SRPD 0x00010000 |
397 | 7c23b892 | balrog | #define E1000_ICR_ACK 0x00020000 /* Receive Ack frame */ |
398 | 7c23b892 | balrog | #define E1000_ICR_MNG 0x00040000 /* Manageability event */ |
399 | 7c23b892 | balrog | #define E1000_ICR_DOCK 0x00080000 /* Dock/Undock */ |
400 | 7c23b892 | balrog | #define E1000_ICR_INT_ASSERTED 0x80000000 /* If this bit asserted, the driver should claim the interrupt */ |
401 | 7c23b892 | balrog | #define E1000_ICR_RXD_FIFO_PAR0 0x00100000 /* queue 0 Rx descriptor FIFO parity error */ |
402 | 7c23b892 | balrog | #define E1000_ICR_TXD_FIFO_PAR0 0x00200000 /* queue 0 Tx descriptor FIFO parity error */ |
403 | 7c23b892 | balrog | #define E1000_ICR_HOST_ARB_PAR 0x00400000 /* host arb read buffer parity error */ |
404 | 7c23b892 | balrog | #define E1000_ICR_PB_PAR 0x00800000 /* packet buffer parity error */ |
405 | 7c23b892 | balrog | #define E1000_ICR_RXD_FIFO_PAR1 0x01000000 /* queue 1 Rx descriptor FIFO parity error */ |
406 | 7c23b892 | balrog | #define E1000_ICR_TXD_FIFO_PAR1 0x02000000 /* queue 1 Tx descriptor FIFO parity error */ |
407 | 7c23b892 | balrog | #define E1000_ICR_ALL_PARITY 0x03F00000 /* all parity error bits */ |
408 | 7c23b892 | balrog | #define E1000_ICR_DSW 0x00000020 /* FW changed the status of DISSW bit in the FWSM */ |
409 | 7c23b892 | balrog | #define E1000_ICR_PHYINT 0x00001000 /* LAN connected device generates an interrupt */ |
410 | 7c23b892 | balrog | #define E1000_ICR_EPRST 0x00100000 /* ME handware reset occurs */ |
411 | 7c23b892 | balrog | |
412 | 7c23b892 | balrog | /* Interrupt Cause Set */
|
413 | 7c23b892 | balrog | #define E1000_ICS_TXDW E1000_ICR_TXDW /* Transmit desc written back */ |
414 | 7c23b892 | balrog | #define E1000_ICS_TXQE E1000_ICR_TXQE /* Transmit Queue empty */ |
415 | 7c23b892 | balrog | #define E1000_ICS_LSC E1000_ICR_LSC /* Link Status Change */ |
416 | 7c23b892 | balrog | #define E1000_ICS_RXSEQ E1000_ICR_RXSEQ /* rx sequence error */ |
417 | 7c23b892 | balrog | #define E1000_ICS_RXDMT0 E1000_ICR_RXDMT0 /* rx desc min. threshold */ |
418 | 7c23b892 | balrog | #define E1000_ICS_RXO E1000_ICR_RXO /* rx overrun */ |
419 | 7c23b892 | balrog | #define E1000_ICS_RXT0 E1000_ICR_RXT0 /* rx timer intr */ |
420 | 7c23b892 | balrog | #define E1000_ICS_MDAC E1000_ICR_MDAC /* MDIO access complete */ |
421 | 7c23b892 | balrog | #define E1000_ICS_RXCFG E1000_ICR_RXCFG /* RX /c/ ordered set */ |
422 | 7c23b892 | balrog | #define E1000_ICS_GPI_EN0 E1000_ICR_GPI_EN0 /* GP Int 0 */ |
423 | 7c23b892 | balrog | #define E1000_ICS_GPI_EN1 E1000_ICR_GPI_EN1 /* GP Int 1 */ |
424 | 7c23b892 | balrog | #define E1000_ICS_GPI_EN2 E1000_ICR_GPI_EN2 /* GP Int 2 */ |
425 | 7c23b892 | balrog | #define E1000_ICS_GPI_EN3 E1000_ICR_GPI_EN3 /* GP Int 3 */ |
426 | 7c23b892 | balrog | #define E1000_ICS_TXD_LOW E1000_ICR_TXD_LOW
|
427 | 7c23b892 | balrog | #define E1000_ICS_SRPD E1000_ICR_SRPD
|
428 | 7c23b892 | balrog | #define E1000_ICS_ACK E1000_ICR_ACK /* Receive Ack frame */ |
429 | 7c23b892 | balrog | #define E1000_ICS_MNG E1000_ICR_MNG /* Manageability event */ |
430 | 7c23b892 | balrog | #define E1000_ICS_DOCK E1000_ICR_DOCK /* Dock/Undock */ |
431 | 7c23b892 | balrog | #define E1000_ICS_RXD_FIFO_PAR0 E1000_ICR_RXD_FIFO_PAR0 /* queue 0 Rx descriptor FIFO parity error */ |
432 | 7c23b892 | balrog | #define E1000_ICS_TXD_FIFO_PAR0 E1000_ICR_TXD_FIFO_PAR0 /* queue 0 Tx descriptor FIFO parity error */ |
433 | 7c23b892 | balrog | #define E1000_ICS_HOST_ARB_PAR E1000_ICR_HOST_ARB_PAR /* host arb read buffer parity error */ |
434 | 7c23b892 | balrog | #define E1000_ICS_PB_PAR E1000_ICR_PB_PAR /* packet buffer parity error */ |
435 | 7c23b892 | balrog | #define E1000_ICS_RXD_FIFO_PAR1 E1000_ICR_RXD_FIFO_PAR1 /* queue 1 Rx descriptor FIFO parity error */ |
436 | 7c23b892 | balrog | #define E1000_ICS_TXD_FIFO_PAR1 E1000_ICR_TXD_FIFO_PAR1 /* queue 1 Tx descriptor FIFO parity error */ |
437 | 7c23b892 | balrog | #define E1000_ICS_DSW E1000_ICR_DSW
|
438 | 7c23b892 | balrog | #define E1000_ICS_PHYINT E1000_ICR_PHYINT
|
439 | 7c23b892 | balrog | #define E1000_ICS_EPRST E1000_ICR_EPRST
|
440 | 7c23b892 | balrog | |
441 | 7c23b892 | balrog | /* Interrupt Mask Set */
|
442 | 7c23b892 | balrog | #define E1000_IMS_TXDW E1000_ICR_TXDW /* Transmit desc written back */ |
443 | 7c23b892 | balrog | #define E1000_IMS_TXQE E1000_ICR_TXQE /* Transmit Queue empty */ |
444 | 7c23b892 | balrog | #define E1000_IMS_LSC E1000_ICR_LSC /* Link Status Change */ |
445 | 7c23b892 | balrog | #define E1000_IMS_RXSEQ E1000_ICR_RXSEQ /* rx sequence error */ |
446 | 7c23b892 | balrog | #define E1000_IMS_RXDMT0 E1000_ICR_RXDMT0 /* rx desc min. threshold */ |
447 | 7c23b892 | balrog | #define E1000_IMS_RXO E1000_ICR_RXO /* rx overrun */ |
448 | 7c23b892 | balrog | #define E1000_IMS_RXT0 E1000_ICR_RXT0 /* rx timer intr */ |
449 | 7c23b892 | balrog | #define E1000_IMS_MDAC E1000_ICR_MDAC /* MDIO access complete */ |
450 | 7c23b892 | balrog | #define E1000_IMS_RXCFG E1000_ICR_RXCFG /* RX /c/ ordered set */ |
451 | 7c23b892 | balrog | #define E1000_IMS_GPI_EN0 E1000_ICR_GPI_EN0 /* GP Int 0 */ |
452 | 7c23b892 | balrog | #define E1000_IMS_GPI_EN1 E1000_ICR_GPI_EN1 /* GP Int 1 */ |
453 | 7c23b892 | balrog | #define E1000_IMS_GPI_EN2 E1000_ICR_GPI_EN2 /* GP Int 2 */ |
454 | 7c23b892 | balrog | #define E1000_IMS_GPI_EN3 E1000_ICR_GPI_EN3 /* GP Int 3 */ |
455 | 7c23b892 | balrog | #define E1000_IMS_TXD_LOW E1000_ICR_TXD_LOW
|
456 | 7c23b892 | balrog | #define E1000_IMS_SRPD E1000_ICR_SRPD
|
457 | 7c23b892 | balrog | #define E1000_IMS_ACK E1000_ICR_ACK /* Receive Ack frame */ |
458 | 7c23b892 | balrog | #define E1000_IMS_MNG E1000_ICR_MNG /* Manageability event */ |
459 | 7c23b892 | balrog | #define E1000_IMS_DOCK E1000_ICR_DOCK /* Dock/Undock */ |
460 | 7c23b892 | balrog | #define E1000_IMS_RXD_FIFO_PAR0 E1000_ICR_RXD_FIFO_PAR0 /* queue 0 Rx descriptor FIFO parity error */ |
461 | 7c23b892 | balrog | #define E1000_IMS_TXD_FIFO_PAR0 E1000_ICR_TXD_FIFO_PAR0 /* queue 0 Tx descriptor FIFO parity error */ |
462 | 7c23b892 | balrog | #define E1000_IMS_HOST_ARB_PAR E1000_ICR_HOST_ARB_PAR /* host arb read buffer parity error */ |
463 | 7c23b892 | balrog | #define E1000_IMS_PB_PAR E1000_ICR_PB_PAR /* packet buffer parity error */ |
464 | 7c23b892 | balrog | #define E1000_IMS_RXD_FIFO_PAR1 E1000_ICR_RXD_FIFO_PAR1 /* queue 1 Rx descriptor FIFO parity error */ |
465 | 7c23b892 | balrog | #define E1000_IMS_TXD_FIFO_PAR1 E1000_ICR_TXD_FIFO_PAR1 /* queue 1 Tx descriptor FIFO parity error */ |
466 | 7c23b892 | balrog | #define E1000_IMS_DSW E1000_ICR_DSW
|
467 | 7c23b892 | balrog | #define E1000_IMS_PHYINT E1000_ICR_PHYINT
|
468 | 7c23b892 | balrog | #define E1000_IMS_EPRST E1000_ICR_EPRST
|
469 | 7c23b892 | balrog | |
470 | 7c23b892 | balrog | /* Interrupt Mask Clear */
|
471 | 7c23b892 | balrog | #define E1000_IMC_TXDW E1000_ICR_TXDW /* Transmit desc written back */ |
472 | 7c23b892 | balrog | #define E1000_IMC_TXQE E1000_ICR_TXQE /* Transmit Queue empty */ |
473 | 7c23b892 | balrog | #define E1000_IMC_LSC E1000_ICR_LSC /* Link Status Change */ |
474 | 7c23b892 | balrog | #define E1000_IMC_RXSEQ E1000_ICR_RXSEQ /* rx sequence error */ |
475 | 7c23b892 | balrog | #define E1000_IMC_RXDMT0 E1000_ICR_RXDMT0 /* rx desc min. threshold */ |
476 | 7c23b892 | balrog | #define E1000_IMC_RXO E1000_ICR_RXO /* rx overrun */ |
477 | 7c23b892 | balrog | #define E1000_IMC_RXT0 E1000_ICR_RXT0 /* rx timer intr */ |
478 | 7c23b892 | balrog | #define E1000_IMC_MDAC E1000_ICR_MDAC /* MDIO access complete */ |
479 | 7c23b892 | balrog | #define E1000_IMC_RXCFG E1000_ICR_RXCFG /* RX /c/ ordered set */ |
480 | 7c23b892 | balrog | #define E1000_IMC_GPI_EN0 E1000_ICR_GPI_EN0 /* GP Int 0 */ |
481 | 7c23b892 | balrog | #define E1000_IMC_GPI_EN1 E1000_ICR_GPI_EN1 /* GP Int 1 */ |
482 | 7c23b892 | balrog | #define E1000_IMC_GPI_EN2 E1000_ICR_GPI_EN2 /* GP Int 2 */ |
483 | 7c23b892 | balrog | #define E1000_IMC_GPI_EN3 E1000_ICR_GPI_EN3 /* GP Int 3 */ |
484 | 7c23b892 | balrog | #define E1000_IMC_TXD_LOW E1000_ICR_TXD_LOW
|
485 | 7c23b892 | balrog | #define E1000_IMC_SRPD E1000_ICR_SRPD
|
486 | 7c23b892 | balrog | #define E1000_IMC_ACK E1000_ICR_ACK /* Receive Ack frame */ |
487 | 7c23b892 | balrog | #define E1000_IMC_MNG E1000_ICR_MNG /* Manageability event */ |
488 | 7c23b892 | balrog | #define E1000_IMC_DOCK E1000_ICR_DOCK /* Dock/Undock */ |
489 | 7c23b892 | balrog | #define E1000_IMC_RXD_FIFO_PAR0 E1000_ICR_RXD_FIFO_PAR0 /* queue 0 Rx descriptor FIFO parity error */ |
490 | 7c23b892 | balrog | #define E1000_IMC_TXD_FIFO_PAR0 E1000_ICR_TXD_FIFO_PAR0 /* queue 0 Tx descriptor FIFO parity error */ |
491 | 7c23b892 | balrog | #define E1000_IMC_HOST_ARB_PAR E1000_ICR_HOST_ARB_PAR /* host arb read buffer parity error */ |
492 | 7c23b892 | balrog | #define E1000_IMC_PB_PAR E1000_ICR_PB_PAR /* packet buffer parity error */ |
493 | 7c23b892 | balrog | #define E1000_IMC_RXD_FIFO_PAR1 E1000_ICR_RXD_FIFO_PAR1 /* queue 1 Rx descriptor FIFO parity error */ |
494 | 7c23b892 | balrog | #define E1000_IMC_TXD_FIFO_PAR1 E1000_ICR_TXD_FIFO_PAR1 /* queue 1 Tx descriptor FIFO parity error */ |
495 | 7c23b892 | balrog | #define E1000_IMC_DSW E1000_ICR_DSW
|
496 | 7c23b892 | balrog | #define E1000_IMC_PHYINT E1000_ICR_PHYINT
|
497 | 7c23b892 | balrog | #define E1000_IMC_EPRST E1000_ICR_EPRST
|
498 | 7c23b892 | balrog | |
499 | 7c23b892 | balrog | /* Receive Control */
|
500 | 7c23b892 | balrog | #define E1000_RCTL_RST 0x00000001 /* Software reset */ |
501 | 7c23b892 | balrog | #define E1000_RCTL_EN 0x00000002 /* enable */ |
502 | 7c23b892 | balrog | #define E1000_RCTL_SBP 0x00000004 /* store bad packet */ |
503 | 7c23b892 | balrog | #define E1000_RCTL_UPE 0x00000008 /* unicast promiscuous enable */ |
504 | 7c23b892 | balrog | #define E1000_RCTL_MPE 0x00000010 /* multicast promiscuous enab */ |
505 | 7c23b892 | balrog | #define E1000_RCTL_LPE 0x00000020 /* long packet enable */ |
506 | 7c23b892 | balrog | #define E1000_RCTL_LBM_NO 0x00000000 /* no loopback mode */ |
507 | 7c23b892 | balrog | #define E1000_RCTL_LBM_MAC 0x00000040 /* MAC loopback mode */ |
508 | 7c23b892 | balrog | #define E1000_RCTL_LBM_SLP 0x00000080 /* serial link loopback mode */ |
509 | 7c23b892 | balrog | #define E1000_RCTL_LBM_TCVR 0x000000C0 /* tcvr loopback mode */ |
510 | 7c23b892 | balrog | #define E1000_RCTL_DTYP_MASK 0x00000C00 /* Descriptor type mask */ |
511 | 7c23b892 | balrog | #define E1000_RCTL_DTYP_PS 0x00000400 /* Packet Split descriptor */ |
512 | 7c23b892 | balrog | #define E1000_RCTL_RDMTS_HALF 0x00000000 /* rx desc min threshold size */ |
513 | 7c23b892 | balrog | #define E1000_RCTL_RDMTS_QUAT 0x00000100 /* rx desc min threshold size */ |
514 | 7c23b892 | balrog | #define E1000_RCTL_RDMTS_EIGTH 0x00000200 /* rx desc min threshold size */ |
515 | 7c23b892 | balrog | #define E1000_RCTL_MO_SHIFT 12 /* multicast offset shift */ |
516 | 7c23b892 | balrog | #define E1000_RCTL_MO_0 0x00000000 /* multicast offset 11:0 */ |
517 | 7c23b892 | balrog | #define E1000_RCTL_MO_1 0x00001000 /* multicast offset 12:1 */ |
518 | 7c23b892 | balrog | #define E1000_RCTL_MO_2 0x00002000 /* multicast offset 13:2 */ |
519 | 7c23b892 | balrog | #define E1000_RCTL_MO_3 0x00003000 /* multicast offset 15:4 */ |
520 | 7c23b892 | balrog | #define E1000_RCTL_MDR 0x00004000 /* multicast desc ring 0 */ |
521 | 7c23b892 | balrog | #define E1000_RCTL_BAM 0x00008000 /* broadcast enable */ |
522 | 7c23b892 | balrog | /* these buffer sizes are valid if E1000_RCTL_BSEX is 0 */
|
523 | 7c23b892 | balrog | #define E1000_RCTL_SZ_2048 0x00000000 /* rx buffer size 2048 */ |
524 | 7c23b892 | balrog | #define E1000_RCTL_SZ_1024 0x00010000 /* rx buffer size 1024 */ |
525 | 7c23b892 | balrog | #define E1000_RCTL_SZ_512 0x00020000 /* rx buffer size 512 */ |
526 | 7c23b892 | balrog | #define E1000_RCTL_SZ_256 0x00030000 /* rx buffer size 256 */ |
527 | 7c23b892 | balrog | /* these buffer sizes are valid if E1000_RCTL_BSEX is 1 */
|
528 | 7c23b892 | balrog | #define E1000_RCTL_SZ_16384 0x00010000 /* rx buffer size 16384 */ |
529 | 7c23b892 | balrog | #define E1000_RCTL_SZ_8192 0x00020000 /* rx buffer size 8192 */ |
530 | 7c23b892 | balrog | #define E1000_RCTL_SZ_4096 0x00030000 /* rx buffer size 4096 */ |
531 | 7c23b892 | balrog | #define E1000_RCTL_VFE 0x00040000 /* vlan filter enable */ |
532 | 7c23b892 | balrog | #define E1000_RCTL_CFIEN 0x00080000 /* canonical form enable */ |
533 | 7c23b892 | balrog | #define E1000_RCTL_CFI 0x00100000 /* canonical form indicator */ |
534 | 7c23b892 | balrog | #define E1000_RCTL_DPF 0x00400000 /* discard pause frames */ |
535 | 7c23b892 | balrog | #define E1000_RCTL_PMCF 0x00800000 /* pass MAC control frames */ |
536 | 7c23b892 | balrog | #define E1000_RCTL_BSEX 0x02000000 /* Buffer size extension */ |
537 | 7c23b892 | balrog | #define E1000_RCTL_SECRC 0x04000000 /* Strip Ethernet CRC */ |
538 | 7c23b892 | balrog | #define E1000_RCTL_FLXBUF_MASK 0x78000000 /* Flexible buffer size */ |
539 | 7c23b892 | balrog | #define E1000_RCTL_FLXBUF_SHIFT 27 /* Flexible buffer shift */ |
540 | 7c23b892 | balrog | |
541 | 7c23b892 | balrog | |
542 | 7c23b892 | balrog | #define E1000_EEPROM_SWDPIN0 0x0001 /* SWDPIN 0 EEPROM Value */ |
543 | 7c23b892 | balrog | #define E1000_EEPROM_LED_LOGIC 0x0020 /* Led Logic Word */ |
544 | 7c23b892 | balrog | #define E1000_EEPROM_RW_REG_DATA 16 /* Offset to data in EEPROM read/write registers */ |
545 | 457044d1 | aurel32 | #define E1000_EEPROM_RW_REG_DONE 0x10 /* Offset to READ/WRITE done bit */ |
546 | 7c23b892 | balrog | #define E1000_EEPROM_RW_REG_START 1 /* First bit for telling part to start operation */ |
547 | 457044d1 | aurel32 | #define E1000_EEPROM_RW_ADDR_SHIFT 8 /* Shift to the address bits */ |
548 | 7c23b892 | balrog | #define E1000_EEPROM_POLL_WRITE 1 /* Flag for polling for write complete */ |
549 | 7c23b892 | balrog | #define E1000_EEPROM_POLL_READ 0 /* Flag for polling for read complete */ |
550 | 7c23b892 | balrog | /* Register Bit Masks */
|
551 | 7c23b892 | balrog | /* Device Control */
|
552 | 7c23b892 | balrog | #define E1000_CTRL_FD 0x00000001 /* Full duplex.0=half; 1=full */ |
553 | 7c23b892 | balrog | #define E1000_CTRL_BEM 0x00000002 /* Endian Mode.0=little,1=big */ |
554 | 7c23b892 | balrog | #define E1000_CTRL_PRIOR 0x00000004 /* Priority on PCI. 0=rx,1=fair */ |
555 | 7c23b892 | balrog | #define E1000_CTRL_GIO_MASTER_DISABLE 0x00000004 /*Blocks new Master requests */ |
556 | 7c23b892 | balrog | #define E1000_CTRL_LRST 0x00000008 /* Link reset. 0=normal,1=reset */ |
557 | 7c23b892 | balrog | #define E1000_CTRL_TME 0x00000010 /* Test mode. 0=normal,1=test */ |
558 | 7c23b892 | balrog | #define E1000_CTRL_SLE 0x00000020 /* Serial Link on 0=dis,1=en */ |
559 | 7c23b892 | balrog | #define E1000_CTRL_ASDE 0x00000020 /* Auto-speed detect enable */ |
560 | 7c23b892 | balrog | #define E1000_CTRL_SLU 0x00000040 /* Set link up (Force Link) */ |
561 | 7c23b892 | balrog | #define E1000_CTRL_ILOS 0x00000080 /* Invert Loss-Of Signal */ |
562 | 7c23b892 | balrog | #define E1000_CTRL_SPD_SEL 0x00000300 /* Speed Select Mask */ |
563 | 7c23b892 | balrog | #define E1000_CTRL_SPD_10 0x00000000 /* Force 10Mb */ |
564 | 7c23b892 | balrog | #define E1000_CTRL_SPD_100 0x00000100 /* Force 100Mb */ |
565 | 7c23b892 | balrog | #define E1000_CTRL_SPD_1000 0x00000200 /* Force 1Gb */ |
566 | 7c23b892 | balrog | #define E1000_CTRL_BEM32 0x00000400 /* Big Endian 32 mode */ |
567 | 7c23b892 | balrog | #define E1000_CTRL_FRCSPD 0x00000800 /* Force Speed */ |
568 | 7c23b892 | balrog | #define E1000_CTRL_FRCDPX 0x00001000 /* Force Duplex */ |
569 | 7c23b892 | balrog | #define E1000_CTRL_D_UD_EN 0x00002000 /* Dock/Undock enable */ |
570 | 7c23b892 | balrog | #define E1000_CTRL_D_UD_POLARITY 0x00004000 /* Defined polarity of Dock/Undock indication in SDP[0] */ |
571 | 7c23b892 | balrog | #define E1000_CTRL_FORCE_PHY_RESET 0x00008000 /* Reset both PHY ports, through PHYRST_N pin */ |
572 | 7c23b892 | balrog | #define E1000_CTRL_EXT_LINK_EN 0x00010000 /* enable link status from external LINK_0 and LINK_1 pins */ |
573 | 7c23b892 | balrog | #define E1000_CTRL_SWDPIN0 0x00040000 /* SWDPIN 0 value */ |
574 | 7c23b892 | balrog | #define E1000_CTRL_SWDPIN1 0x00080000 /* SWDPIN 1 value */ |
575 | 7c23b892 | balrog | #define E1000_CTRL_SWDPIN2 0x00100000 /* SWDPIN 2 value */ |
576 | 7c23b892 | balrog | #define E1000_CTRL_SWDPIN3 0x00200000 /* SWDPIN 3 value */ |
577 | 7c23b892 | balrog | #define E1000_CTRL_SWDPIO0 0x00400000 /* SWDPIN 0 Input or output */ |
578 | 7c23b892 | balrog | #define E1000_CTRL_SWDPIO1 0x00800000 /* SWDPIN 1 input or output */ |
579 | 7c23b892 | balrog | #define E1000_CTRL_SWDPIO2 0x01000000 /* SWDPIN 2 input or output */ |
580 | 7c23b892 | balrog | #define E1000_CTRL_SWDPIO3 0x02000000 /* SWDPIN 3 input or output */ |
581 | 7c23b892 | balrog | #define E1000_CTRL_RST 0x04000000 /* Global reset */ |
582 | 7c23b892 | balrog | #define E1000_CTRL_RFCE 0x08000000 /* Receive Flow Control enable */ |
583 | 7c23b892 | balrog | #define E1000_CTRL_TFCE 0x10000000 /* Transmit flow control enable */ |
584 | 7c23b892 | balrog | #define E1000_CTRL_RTE 0x20000000 /* Routing tag enable */ |
585 | 7c23b892 | balrog | #define E1000_CTRL_VME 0x40000000 /* IEEE VLAN mode enable */ |
586 | 7c23b892 | balrog | #define E1000_CTRL_PHY_RST 0x80000000 /* PHY Reset */ |
587 | 7c23b892 | balrog | #define E1000_CTRL_SW2FW_INT 0x02000000 /* Initiate an interrupt to manageability engine */ |
588 | 7c23b892 | balrog | |
589 | 7c23b892 | balrog | /* Device Status */
|
590 | 7c23b892 | balrog | #define E1000_STATUS_FD 0x00000001 /* Full duplex.0=half,1=full */ |
591 | 7c23b892 | balrog | #define E1000_STATUS_LU 0x00000002 /* Link up.0=no,1=link */ |
592 | 7c23b892 | balrog | #define E1000_STATUS_FUNC_MASK 0x0000000C /* PCI Function Mask */ |
593 | 7c23b892 | balrog | #define E1000_STATUS_FUNC_SHIFT 2 |
594 | 7c23b892 | balrog | #define E1000_STATUS_FUNC_0 0x00000000 /* Function 0 */ |
595 | 7c23b892 | balrog | #define E1000_STATUS_FUNC_1 0x00000004 /* Function 1 */ |
596 | 7c23b892 | balrog | #define E1000_STATUS_TXOFF 0x00000010 /* transmission paused */ |
597 | 7c23b892 | balrog | #define E1000_STATUS_TBIMODE 0x00000020 /* TBI mode */ |
598 | 7c23b892 | balrog | #define E1000_STATUS_SPEED_MASK 0x000000C0 |
599 | 7c23b892 | balrog | #define E1000_STATUS_SPEED_10 0x00000000 /* Speed 10Mb/s */ |
600 | 7c23b892 | balrog | #define E1000_STATUS_SPEED_100 0x00000040 /* Speed 100Mb/s */ |
601 | 7c23b892 | balrog | #define E1000_STATUS_SPEED_1000 0x00000080 /* Speed 1000Mb/s */ |
602 | 7c23b892 | balrog | #define E1000_STATUS_LAN_INIT_DONE 0x00000200 /* Lan Init Completion |
603 | 7c23b892 | balrog | by EEPROM/Flash */
|
604 | 7c23b892 | balrog | #define E1000_STATUS_ASDV 0x00000300 /* Auto speed detect value */ |
605 | 7c23b892 | balrog | #define E1000_STATUS_DOCK_CI 0x00000800 /* Change in Dock/Undock state. Clear on write '0'. */ |
606 | 7c23b892 | balrog | #define E1000_STATUS_GIO_MASTER_ENABLE 0x00080000 /* Status of Master requests. */ |
607 | 7c23b892 | balrog | #define E1000_STATUS_MTXCKOK 0x00000400 /* MTX clock running OK */ |
608 | 7c23b892 | balrog | #define E1000_STATUS_PCI66 0x00000800 /* In 66Mhz slot */ |
609 | 7c23b892 | balrog | #define E1000_STATUS_BUS64 0x00001000 /* In 64 bit slot */ |
610 | 7c23b892 | balrog | #define E1000_STATUS_PCIX_MODE 0x00002000 /* PCI-X mode */ |
611 | 7c23b892 | balrog | #define E1000_STATUS_PCIX_SPEED 0x0000C000 /* PCI-X bus speed */ |
612 | 7c23b892 | balrog | #define E1000_STATUS_BMC_SKU_0 0x00100000 /* BMC USB redirect disabled */ |
613 | 7c23b892 | balrog | #define E1000_STATUS_BMC_SKU_1 0x00200000 /* BMC SRAM disabled */ |
614 | 7c23b892 | balrog | #define E1000_STATUS_BMC_SKU_2 0x00400000 /* BMC SDRAM disabled */ |
615 | 7c23b892 | balrog | #define E1000_STATUS_BMC_CRYPTO 0x00800000 /* BMC crypto disabled */ |
616 | 7c23b892 | balrog | #define E1000_STATUS_BMC_LITE 0x01000000 /* BMC external code execution disabled */ |
617 | 7c23b892 | balrog | #define E1000_STATUS_RGMII_ENABLE 0x02000000 /* RGMII disabled */ |
618 | 7c23b892 | balrog | #define E1000_STATUS_FUSE_8 0x04000000 |
619 | 7c23b892 | balrog | #define E1000_STATUS_FUSE_9 0x08000000 |
620 | 7c23b892 | balrog | #define E1000_STATUS_SERDES0_DIS 0x10000000 /* SERDES disabled on port 0 */ |
621 | 7c23b892 | balrog | #define E1000_STATUS_SERDES1_DIS 0x20000000 /* SERDES disabled on port 1 */ |
622 | 7c23b892 | balrog | |
623 | 7c23b892 | balrog | /* EEPROM/Flash Control */
|
624 | 7c23b892 | balrog | #define E1000_EECD_SK 0x00000001 /* EEPROM Clock */ |
625 | 7c23b892 | balrog | #define E1000_EECD_CS 0x00000002 /* EEPROM Chip Select */ |
626 | 7c23b892 | balrog | #define E1000_EECD_DI 0x00000004 /* EEPROM Data In */ |
627 | 7c23b892 | balrog | #define E1000_EECD_DO 0x00000008 /* EEPROM Data Out */ |
628 | 7c23b892 | balrog | #define E1000_EECD_FWE_MASK 0x00000030 |
629 | 7c23b892 | balrog | #define E1000_EECD_FWE_DIS 0x00000010 /* Disable FLASH writes */ |
630 | 7c23b892 | balrog | #define E1000_EECD_FWE_EN 0x00000020 /* Enable FLASH writes */ |
631 | 7c23b892 | balrog | #define E1000_EECD_FWE_SHIFT 4 |
632 | 7c23b892 | balrog | #define E1000_EECD_REQ 0x00000040 /* EEPROM Access Request */ |
633 | 7c23b892 | balrog | #define E1000_EECD_GNT 0x00000080 /* EEPROM Access Grant */ |
634 | 7c23b892 | balrog | #define E1000_EECD_PRES 0x00000100 /* EEPROM Present */ |
635 | 7c23b892 | balrog | #define E1000_EECD_SIZE 0x00000200 /* EEPROM Size (0=64 word 1=256 word) */ |
636 | 7c23b892 | balrog | #define E1000_EECD_ADDR_BITS 0x00000400 /* EEPROM Addressing bits based on type |
637 | 7c23b892 | balrog | * (0-small, 1-large) */
|
638 | 7c23b892 | balrog | #define E1000_EECD_TYPE 0x00002000 /* EEPROM Type (1-SPI, 0-Microwire) */ |
639 | 7c23b892 | balrog | #ifndef E1000_EEPROM_GRANT_ATTEMPTS
|
640 | 7c23b892 | balrog | #define E1000_EEPROM_GRANT_ATTEMPTS 1000 /* EEPROM # attempts to gain grant */ |
641 | 7c23b892 | balrog | #endif
|
642 | 7c23b892 | balrog | #define E1000_EECD_AUTO_RD 0x00000200 /* EEPROM Auto Read done */ |
643 | 7c23b892 | balrog | #define E1000_EECD_SIZE_EX_MASK 0x00007800 /* EEprom Size */ |
644 | 7c23b892 | balrog | #define E1000_EECD_SIZE_EX_SHIFT 11 |
645 | 7c23b892 | balrog | #define E1000_EECD_NVADDS 0x00018000 /* NVM Address Size */ |
646 | 7c23b892 | balrog | #define E1000_EECD_SELSHAD 0x00020000 /* Select Shadow RAM */ |
647 | 7c23b892 | balrog | #define E1000_EECD_INITSRAM 0x00040000 /* Initialize Shadow RAM */ |
648 | 7c23b892 | balrog | #define E1000_EECD_FLUPD 0x00080000 /* Update FLASH */ |
649 | 7c23b892 | balrog | #define E1000_EECD_AUPDEN 0x00100000 /* Enable Autonomous FLASH update */ |
650 | 7c23b892 | balrog | #define E1000_EECD_SHADV 0x00200000 /* Shadow RAM Data Valid */ |
651 | 7c23b892 | balrog | #define E1000_EECD_SEC1VAL 0x00400000 /* Sector One Valid */ |
652 | 7c23b892 | balrog | #define E1000_EECD_SECVAL_SHIFT 22 |
653 | 7c23b892 | balrog | #define E1000_STM_OPCODE 0xDB00 |
654 | 7c23b892 | balrog | #define E1000_HICR_FW_RESET 0xC0 |
655 | 7c23b892 | balrog | |
656 | 7c23b892 | balrog | #define E1000_SHADOW_RAM_WORDS 2048 |
657 | 7c23b892 | balrog | #define E1000_ICH_NVM_SIG_WORD 0x13 |
658 | 7c23b892 | balrog | #define E1000_ICH_NVM_SIG_MASK 0xC0 |
659 | 7c23b892 | balrog | |
660 | 7c23b892 | balrog | /* MDI Control */
|
661 | 7c23b892 | balrog | #define E1000_MDIC_DATA_MASK 0x0000FFFF |
662 | 7c23b892 | balrog | #define E1000_MDIC_REG_MASK 0x001F0000 |
663 | 7c23b892 | balrog | #define E1000_MDIC_REG_SHIFT 16 |
664 | 7c23b892 | balrog | #define E1000_MDIC_PHY_MASK 0x03E00000 |
665 | 7c23b892 | balrog | #define E1000_MDIC_PHY_SHIFT 21 |
666 | 7c23b892 | balrog | #define E1000_MDIC_OP_WRITE 0x04000000 |
667 | 7c23b892 | balrog | #define E1000_MDIC_OP_READ 0x08000000 |
668 | 7c23b892 | balrog | #define E1000_MDIC_READY 0x10000000 |
669 | 7c23b892 | balrog | #define E1000_MDIC_INT_EN 0x20000000 |
670 | 7c23b892 | balrog | #define E1000_MDIC_ERROR 0x40000000 |
671 | 7c23b892 | balrog | |
672 | 7c23b892 | balrog | /* EEPROM Commands - Microwire */
|
673 | 7c23b892 | balrog | #define EEPROM_READ_OPCODE_MICROWIRE 0x6 /* EEPROM read opcode */ |
674 | 7c23b892 | balrog | #define EEPROM_WRITE_OPCODE_MICROWIRE 0x5 /* EEPROM write opcode */ |
675 | 7c23b892 | balrog | #define EEPROM_ERASE_OPCODE_MICROWIRE 0x7 /* EEPROM erase opcode */ |
676 | 7c23b892 | balrog | #define EEPROM_EWEN_OPCODE_MICROWIRE 0x13 /* EEPROM erase/write enable */ |
677 | 7c23b892 | balrog | #define EEPROM_EWDS_OPCODE_MICROWIRE 0x10 /* EEPROM erast/write disable */ |
678 | 7c23b892 | balrog | |
679 | 7c23b892 | balrog | /* EEPROM Word Offsets */
|
680 | 7c23b892 | balrog | #define EEPROM_COMPAT 0x0003 |
681 | 7c23b892 | balrog | #define EEPROM_ID_LED_SETTINGS 0x0004 |
682 | 7c23b892 | balrog | #define EEPROM_VERSION 0x0005 |
683 | 7c23b892 | balrog | #define EEPROM_SERDES_AMPLITUDE 0x0006 /* For SERDES output amplitude adjustment. */ |
684 | 7c23b892 | balrog | #define EEPROM_PHY_CLASS_WORD 0x0007 |
685 | 7c23b892 | balrog | #define EEPROM_INIT_CONTROL1_REG 0x000A |
686 | 7c23b892 | balrog | #define EEPROM_INIT_CONTROL2_REG 0x000F |
687 | 7c23b892 | balrog | #define EEPROM_SWDEF_PINS_CTRL_PORT_1 0x0010 |
688 | 7c23b892 | balrog | #define EEPROM_INIT_CONTROL3_PORT_B 0x0014 |
689 | 7c23b892 | balrog | #define EEPROM_INIT_3GIO_3 0x001A |
690 | 7c23b892 | balrog | #define EEPROM_SWDEF_PINS_CTRL_PORT_0 0x0020 |
691 | 7c23b892 | balrog | #define EEPROM_INIT_CONTROL3_PORT_A 0x0024 |
692 | 7c23b892 | balrog | #define EEPROM_CFG 0x0012 |
693 | 7c23b892 | balrog | #define EEPROM_FLASH_VERSION 0x0032 |
694 | 7c23b892 | balrog | #define EEPROM_CHECKSUM_REG 0x003F |
695 | 7c23b892 | balrog | |
696 | 7c23b892 | balrog | #define E1000_EEPROM_CFG_DONE 0x00040000 /* MNG config cycle done */ |
697 | 7c23b892 | balrog | #define E1000_EEPROM_CFG_DONE_PORT_1 0x00080000 /* ...for second port */ |
698 | 7c23b892 | balrog | |
699 | 7c23b892 | balrog | /* Transmit Descriptor */
|
700 | 7c23b892 | balrog | struct e1000_tx_desc {
|
701 | 7c23b892 | balrog | uint64_t buffer_addr; /* Address of the descriptor's data buffer */
|
702 | 7c23b892 | balrog | union {
|
703 | 7c23b892 | balrog | uint32_t data; |
704 | 7c23b892 | balrog | struct {
|
705 | 7c23b892 | balrog | uint16_t length; /* Data buffer length */
|
706 | 7c23b892 | balrog | uint8_t cso; /* Checksum offset */
|
707 | 7c23b892 | balrog | uint8_t cmd; /* Descriptor control */
|
708 | 7c23b892 | balrog | } flags; |
709 | 7c23b892 | balrog | } lower; |
710 | 7c23b892 | balrog | union {
|
711 | 7c23b892 | balrog | uint32_t data; |
712 | 7c23b892 | balrog | struct {
|
713 | 7c23b892 | balrog | uint8_t status; /* Descriptor status */
|
714 | 7c23b892 | balrog | uint8_t css; /* Checksum start */
|
715 | 7c23b892 | balrog | uint16_t special; |
716 | 7c23b892 | balrog | } fields; |
717 | 7c23b892 | balrog | } upper; |
718 | 7c23b892 | balrog | }; |
719 | 7c23b892 | balrog | |
720 | 7c23b892 | balrog | /* Transmit Descriptor bit definitions */
|
721 | 7c23b892 | balrog | #define E1000_TXD_DTYP_D 0x00100000 /* Data Descriptor */ |
722 | 7c23b892 | balrog | #define E1000_TXD_DTYP_C 0x00000000 /* Context Descriptor */ |
723 | 7c23b892 | balrog | #define E1000_TXD_POPTS_IXSM 0x01 /* Insert IP checksum */ |
724 | 7c23b892 | balrog | #define E1000_TXD_POPTS_TXSM 0x02 /* Insert TCP/UDP checksum */ |
725 | 7c23b892 | balrog | #define E1000_TXD_CMD_EOP 0x01000000 /* End of Packet */ |
726 | 7c23b892 | balrog | #define E1000_TXD_CMD_IFCS 0x02000000 /* Insert FCS (Ethernet CRC) */ |
727 | 7c23b892 | balrog | #define E1000_TXD_CMD_IC 0x04000000 /* Insert Checksum */ |
728 | 7c23b892 | balrog | #define E1000_TXD_CMD_RS 0x08000000 /* Report Status */ |
729 | 7c23b892 | balrog | #define E1000_TXD_CMD_RPS 0x10000000 /* Report Packet Sent */ |
730 | 7c23b892 | balrog | #define E1000_TXD_CMD_DEXT 0x20000000 /* Descriptor extension (0 = legacy) */ |
731 | 7c23b892 | balrog | #define E1000_TXD_CMD_VLE 0x40000000 /* Add VLAN tag */ |
732 | 7c23b892 | balrog | #define E1000_TXD_CMD_IDE 0x80000000 /* Enable Tidv register */ |
733 | 7c23b892 | balrog | #define E1000_TXD_STAT_DD 0x00000001 /* Descriptor Done */ |
734 | 7c23b892 | balrog | #define E1000_TXD_STAT_EC 0x00000002 /* Excess Collisions */ |
735 | 7c23b892 | balrog | #define E1000_TXD_STAT_LC 0x00000004 /* Late Collisions */ |
736 | 7c23b892 | balrog | #define E1000_TXD_STAT_TU 0x00000008 /* Transmit underrun */ |
737 | 7c23b892 | balrog | #define E1000_TXD_CMD_TCP 0x01000000 /* TCP packet */ |
738 | 7c23b892 | balrog | #define E1000_TXD_CMD_IP 0x02000000 /* IP packet */ |
739 | 7c23b892 | balrog | #define E1000_TXD_CMD_TSE 0x04000000 /* TCP Seg enable */ |
740 | 7c23b892 | balrog | #define E1000_TXD_STAT_TC 0x00000004 /* Tx Underrun */ |
741 | 7c23b892 | balrog | |
742 | 7c23b892 | balrog | /* Transmit Control */
|
743 | 7c23b892 | balrog | #define E1000_TCTL_RST 0x00000001 /* software reset */ |
744 | 7c23b892 | balrog | #define E1000_TCTL_EN 0x00000002 /* enable tx */ |
745 | 7c23b892 | balrog | #define E1000_TCTL_BCE 0x00000004 /* busy check enable */ |
746 | 7c23b892 | balrog | #define E1000_TCTL_PSP 0x00000008 /* pad short packets */ |
747 | 7c23b892 | balrog | #define E1000_TCTL_CT 0x00000ff0 /* collision threshold */ |
748 | 7c23b892 | balrog | #define E1000_TCTL_COLD 0x003ff000 /* collision distance */ |
749 | 7c23b892 | balrog | #define E1000_TCTL_SWXOFF 0x00400000 /* SW Xoff transmission */ |
750 | 7c23b892 | balrog | #define E1000_TCTL_PBE 0x00800000 /* Packet Burst Enable */ |
751 | 7c23b892 | balrog | #define E1000_TCTL_RTLC 0x01000000 /* Re-transmit on late collision */ |
752 | 7c23b892 | balrog | #define E1000_TCTL_NRTU 0x02000000 /* No Re-transmit on underrun */ |
753 | 7c23b892 | balrog | #define E1000_TCTL_MULR 0x10000000 /* Multiple request support */ |
754 | 7c23b892 | balrog | |
755 | 7c23b892 | balrog | /* Receive Descriptor */
|
756 | 7c23b892 | balrog | struct e1000_rx_desc {
|
757 | 7c23b892 | balrog | uint64_t buffer_addr; /* Address of the descriptor's data buffer */
|
758 | 7c23b892 | balrog | uint16_t length; /* Length of data DMAed into data buffer */
|
759 | 7c23b892 | balrog | uint16_t csum; /* Packet checksum */
|
760 | 7c23b892 | balrog | uint8_t status; /* Descriptor status */
|
761 | 7c23b892 | balrog | uint8_t errors; /* Descriptor Errors */
|
762 | 7c23b892 | balrog | uint16_t special; |
763 | 7c23b892 | balrog | }; |
764 | 7c23b892 | balrog | |
765 | 1654b2d6 | aurel32 | /* Receive Descriptor bit definitions */
|
766 | 7c23b892 | balrog | #define E1000_RXD_STAT_DD 0x01 /* Descriptor Done */ |
767 | 7c23b892 | balrog | #define E1000_RXD_STAT_EOP 0x02 /* End of Packet */ |
768 | 7c23b892 | balrog | #define E1000_RXD_STAT_IXSM 0x04 /* Ignore checksum */ |
769 | 7c23b892 | balrog | #define E1000_RXD_STAT_VP 0x08 /* IEEE VLAN Packet */ |
770 | 7c23b892 | balrog | #define E1000_RXD_STAT_UDPCS 0x10 /* UDP xsum caculated */ |
771 | 7c23b892 | balrog | #define E1000_RXD_STAT_TCPCS 0x20 /* TCP xsum calculated */ |
772 | 7c23b892 | balrog | #define E1000_RXD_STAT_IPCS 0x40 /* IP xsum calculated */ |
773 | 7c23b892 | balrog | #define E1000_RXD_STAT_PIF 0x80 /* passed in-exact filter */ |
774 | 7c23b892 | balrog | #define E1000_RXD_STAT_IPIDV 0x200 /* IP identification valid */ |
775 | 7c23b892 | balrog | #define E1000_RXD_STAT_UDPV 0x400 /* Valid UDP checksum */ |
776 | 7c23b892 | balrog | #define E1000_RXD_STAT_ACK 0x8000 /* ACK Packet indication */ |
777 | 7c23b892 | balrog | #define E1000_RXD_ERR_CE 0x01 /* CRC Error */ |
778 | 7c23b892 | balrog | #define E1000_RXD_ERR_SE 0x02 /* Symbol Error */ |
779 | 7c23b892 | balrog | #define E1000_RXD_ERR_SEQ 0x04 /* Sequence Error */ |
780 | 7c23b892 | balrog | #define E1000_RXD_ERR_CXE 0x10 /* Carrier Extension Error */ |
781 | 7c23b892 | balrog | #define E1000_RXD_ERR_TCPE 0x20 /* TCP/UDP Checksum Error */ |
782 | 7c23b892 | balrog | #define E1000_RXD_ERR_IPE 0x40 /* IP Checksum Error */ |
783 | 7c23b892 | balrog | #define E1000_RXD_ERR_RXE 0x80 /* Rx Data Error */ |
784 | 7c23b892 | balrog | #define E1000_RXD_SPC_VLAN_MASK 0x0FFF /* VLAN ID is in lower 12 bits */ |
785 | 7c23b892 | balrog | #define E1000_RXD_SPC_PRI_MASK 0xE000 /* Priority is in upper 3 bits */ |
786 | 7c23b892 | balrog | #define E1000_RXD_SPC_PRI_SHIFT 13 |
787 | 7c23b892 | balrog | #define E1000_RXD_SPC_CFI_MASK 0x1000 /* CFI is bit 12 */ |
788 | 7c23b892 | balrog | #define E1000_RXD_SPC_CFI_SHIFT 12 |
789 | 7c23b892 | balrog | |
790 | 7c23b892 | balrog | #define E1000_RXDEXT_STATERR_CE 0x01000000 |
791 | 7c23b892 | balrog | #define E1000_RXDEXT_STATERR_SE 0x02000000 |
792 | 7c23b892 | balrog | #define E1000_RXDEXT_STATERR_SEQ 0x04000000 |
793 | 7c23b892 | balrog | #define E1000_RXDEXT_STATERR_CXE 0x10000000 |
794 | 7c23b892 | balrog | #define E1000_RXDEXT_STATERR_TCPE 0x20000000 |
795 | 7c23b892 | balrog | #define E1000_RXDEXT_STATERR_IPE 0x40000000 |
796 | 7c23b892 | balrog | #define E1000_RXDEXT_STATERR_RXE 0x80000000 |
797 | 7c23b892 | balrog | |
798 | 7c23b892 | balrog | #define E1000_RXDPS_HDRSTAT_HDRSP 0x00008000 |
799 | 7c23b892 | balrog | #define E1000_RXDPS_HDRSTAT_HDRLEN_MASK 0x000003FF |
800 | 7c23b892 | balrog | |
801 | 7c23b892 | balrog | /* Receive Address */
|
802 | 7c23b892 | balrog | #define E1000_RAH_AV 0x80000000 /* Receive descriptor valid */ |
803 | 7c23b892 | balrog | |
804 | 7c23b892 | balrog | /* Offload Context Descriptor */
|
805 | 7c23b892 | balrog | struct e1000_context_desc {
|
806 | 7c23b892 | balrog | union {
|
807 | 7c23b892 | balrog | uint32_t ip_config; |
808 | 7c23b892 | balrog | struct {
|
809 | 7c23b892 | balrog | uint8_t ipcss; /* IP checksum start */
|
810 | 7c23b892 | balrog | uint8_t ipcso; /* IP checksum offset */
|
811 | 7c23b892 | balrog | uint16_t ipcse; /* IP checksum end */
|
812 | 7c23b892 | balrog | } ip_fields; |
813 | 7c23b892 | balrog | } lower_setup; |
814 | 7c23b892 | balrog | union {
|
815 | 7c23b892 | balrog | uint32_t tcp_config; |
816 | 7c23b892 | balrog | struct {
|
817 | 7c23b892 | balrog | uint8_t tucss; /* TCP checksum start */
|
818 | 7c23b892 | balrog | uint8_t tucso; /* TCP checksum offset */
|
819 | 7c23b892 | balrog | uint16_t tucse; /* TCP checksum end */
|
820 | 7c23b892 | balrog | } tcp_fields; |
821 | 7c23b892 | balrog | } upper_setup; |
822 | 7c23b892 | balrog | uint32_t cmd_and_length; /* */
|
823 | 7c23b892 | balrog | union {
|
824 | 7c23b892 | balrog | uint32_t data; |
825 | 7c23b892 | balrog | struct {
|
826 | 7c23b892 | balrog | uint8_t status; /* Descriptor status */
|
827 | 7c23b892 | balrog | uint8_t hdr_len; /* Header length */
|
828 | 7c23b892 | balrog | uint16_t mss; /* Maximum segment size */
|
829 | 7c23b892 | balrog | } fields; |
830 | 7c23b892 | balrog | } tcp_seg_setup; |
831 | 7c23b892 | balrog | }; |
832 | 7c23b892 | balrog | |
833 | 7c23b892 | balrog | /* Offload data descriptor */
|
834 | 7c23b892 | balrog | struct e1000_data_desc {
|
835 | 7c23b892 | balrog | uint64_t buffer_addr; /* Address of the descriptor's buffer address */
|
836 | 7c23b892 | balrog | union {
|
837 | 7c23b892 | balrog | uint32_t data; |
838 | 7c23b892 | balrog | struct {
|
839 | 7c23b892 | balrog | uint16_t length; /* Data buffer length */
|
840 | 7c23b892 | balrog | uint8_t typ_len_ext; /* */
|
841 | 7c23b892 | balrog | uint8_t cmd; /* */
|
842 | 7c23b892 | balrog | } flags; |
843 | 7c23b892 | balrog | } lower; |
844 | 7c23b892 | balrog | union {
|
845 | 7c23b892 | balrog | uint32_t data; |
846 | 7c23b892 | balrog | struct {
|
847 | 7c23b892 | balrog | uint8_t status; /* Descriptor status */
|
848 | 7c23b892 | balrog | uint8_t popts; /* Packet Options */
|
849 | 7c23b892 | balrog | uint16_t special; /* */
|
850 | 7c23b892 | balrog | } fields; |
851 | 7c23b892 | balrog | } upper; |
852 | 7c23b892 | balrog | }; |
853 | 7c23b892 | balrog | |
854 | 7c23b892 | balrog | /* Management Control */
|
855 | 7c23b892 | balrog | #define E1000_MANC_SMBUS_EN 0x00000001 /* SMBus Enabled - RO */ |
856 | 7c23b892 | balrog | #define E1000_MANC_ASF_EN 0x00000002 /* ASF Enabled - RO */ |
857 | 7c23b892 | balrog | #define E1000_MANC_R_ON_FORCE 0x00000004 /* Reset on Force TCO - RO */ |
858 | 7c23b892 | balrog | #define E1000_MANC_RMCP_EN 0x00000100 /* Enable RCMP 026Fh Filtering */ |
859 | 7c23b892 | balrog | #define E1000_MANC_0298_EN 0x00000200 /* Enable RCMP 0298h Filtering */ |
860 | 7c23b892 | balrog | #define E1000_MANC_IPV4_EN 0x00000400 /* Enable IPv4 */ |
861 | 7c23b892 | balrog | #define E1000_MANC_IPV6_EN 0x00000800 /* Enable IPv6 */ |
862 | 7c23b892 | balrog | #define E1000_MANC_SNAP_EN 0x00001000 /* Accept LLC/SNAP */ |
863 | 7c23b892 | balrog | #define E1000_MANC_ARP_EN 0x00002000 /* Enable ARP Request Filtering */ |
864 | 7c23b892 | balrog | #define E1000_MANC_NEIGHBOR_EN 0x00004000 /* Enable Neighbor Discovery |
865 | 7c23b892 | balrog | * Filtering */
|
866 | 7c23b892 | balrog | #define E1000_MANC_ARP_RES_EN 0x00008000 /* Enable ARP response Filtering */ |
867 | 7c23b892 | balrog | #define E1000_MANC_TCO_RESET 0x00010000 /* TCO Reset Occurred */ |
868 | 7c23b892 | balrog | #define E1000_MANC_RCV_TCO_EN 0x00020000 /* Receive TCO Packets Enabled */ |
869 | 7c23b892 | balrog | #define E1000_MANC_REPORT_STATUS 0x00040000 /* Status Reporting Enabled */ |
870 | 7c23b892 | balrog | #define E1000_MANC_RCV_ALL 0x00080000 /* Receive All Enabled */ |
871 | 7c23b892 | balrog | #define E1000_MANC_BLK_PHY_RST_ON_IDE 0x00040000 /* Block phy resets */ |
872 | 7c23b892 | balrog | #define E1000_MANC_EN_MAC_ADDR_FILTER 0x00100000 /* Enable MAC address |
873 | 7c23b892 | balrog | * filtering */
|
874 | 7c23b892 | balrog | #define E1000_MANC_EN_MNG2HOST 0x00200000 /* Enable MNG packets to host |
875 | 7c23b892 | balrog | * memory */
|
876 | 7c23b892 | balrog | #define E1000_MANC_EN_IP_ADDR_FILTER 0x00400000 /* Enable IP address |
877 | 7c23b892 | balrog | * filtering */
|
878 | 7c23b892 | balrog | #define E1000_MANC_EN_XSUM_FILTER 0x00800000 /* Enable checksum filtering */ |
879 | 7c23b892 | balrog | #define E1000_MANC_BR_EN 0x01000000 /* Enable broadcast filtering */ |
880 | 7c23b892 | balrog | #define E1000_MANC_SMB_REQ 0x01000000 /* SMBus Request */ |
881 | 7c23b892 | balrog | #define E1000_MANC_SMB_GNT 0x02000000 /* SMBus Grant */ |
882 | 7c23b892 | balrog | #define E1000_MANC_SMB_CLK_IN 0x04000000 /* SMBus Clock In */ |
883 | 7c23b892 | balrog | #define E1000_MANC_SMB_DATA_IN 0x08000000 /* SMBus Data In */ |
884 | 7c23b892 | balrog | #define E1000_MANC_SMB_DATA_OUT 0x10000000 /* SMBus Data Out */ |
885 | 7c23b892 | balrog | #define E1000_MANC_SMB_CLK_OUT 0x20000000 /* SMBus Clock Out */ |
886 | 7c23b892 | balrog | |
887 | 7c23b892 | balrog | #define E1000_MANC_SMB_DATA_OUT_SHIFT 28 /* SMBus Data Out Shift */ |
888 | 7c23b892 | balrog | #define E1000_MANC_SMB_CLK_OUT_SHIFT 29 /* SMBus Clock Out Shift */ |
889 | 7c23b892 | balrog | |
890 | 7c23b892 | balrog | /* For checksumming, the sum of all words in the EEPROM should equal 0xBABA. */
|
891 | 7c23b892 | balrog | #define EEPROM_SUM 0xBABA |
892 | 7c23b892 | balrog | |
893 | 7c23b892 | balrog | #endif /* _E1000_HW_H_ */ |