author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Thu, 27 Sep 2018 00:21:27 +0200 | |
branch | stable-1.5 |
changeset 2712 | 5d21d80777a6 |
parent 2586 | 5b89b4e38cdc |
permissions | -rw-r--r-- |
2586
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
1 |
/******************************************************************************* |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
2 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
3 |
Intel PRO/1000 Linux driver |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
4 |
Copyright(c) 1999 - 2013 Intel Corporation. |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
5 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
6 |
This program is free software; you can redistribute it and/or modify it |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
7 |
under the terms and conditions of the GNU General Public License, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
8 |
version 2, as published by the Free Software Foundation. |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
9 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
10 |
This program is distributed in the hope it will be useful, but WITHOUT |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
11 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
12 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
13 |
more details. |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
14 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
15 |
You should have received a copy of the GNU General Public License along with |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
16 |
this program; if not, write to the Free Software Foundation, Inc., |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
17 |
51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
18 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
19 |
The full GNU General Public License is included in this distribution in |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
20 |
the file called "COPYING". |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
21 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
22 |
Contact Information: |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
23 |
Linux NICS <linux.nics@intel.com> |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
24 |
e1000-devel Mailing List <e1000-devel@lists.sourceforge.net> |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
25 |
Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
26 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
27 |
*******************************************************************************/ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
28 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
29 |
#ifndef _E1000_HW_H_ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
30 |
#define _E1000_HW_H_ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
31 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
32 |
#include "regs-3.12-ethercat.h" |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
33 |
#include "defines-3.12-ethercat.h" |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
34 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
35 |
struct e1000_hw; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
36 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
37 |
#define E1000_DEV_ID_82571EB_COPPER 0x105E |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
38 |
#define E1000_DEV_ID_82571EB_FIBER 0x105F |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
39 |
#define E1000_DEV_ID_82571EB_SERDES 0x1060 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
40 |
#define E1000_DEV_ID_82571EB_QUAD_COPPER 0x10A4 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
41 |
#define E1000_DEV_ID_82571PT_QUAD_COPPER 0x10D5 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
42 |
#define E1000_DEV_ID_82571EB_QUAD_FIBER 0x10A5 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
43 |
#define E1000_DEV_ID_82571EB_QUAD_COPPER_LP 0x10BC |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
44 |
#define E1000_DEV_ID_82571EB_SERDES_DUAL 0x10D9 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
45 |
#define E1000_DEV_ID_82571EB_SERDES_QUAD 0x10DA |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
46 |
#define E1000_DEV_ID_82572EI_COPPER 0x107D |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
47 |
#define E1000_DEV_ID_82572EI_FIBER 0x107E |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
48 |
#define E1000_DEV_ID_82572EI_SERDES 0x107F |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
49 |
#define E1000_DEV_ID_82572EI 0x10B9 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
50 |
#define E1000_DEV_ID_82573E 0x108B |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
51 |
#define E1000_DEV_ID_82573E_IAMT 0x108C |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
52 |
#define E1000_DEV_ID_82573L 0x109A |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
53 |
#define E1000_DEV_ID_82574L 0x10D3 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
54 |
#define E1000_DEV_ID_82574LA 0x10F6 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
55 |
#define E1000_DEV_ID_82583V 0x150C |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
56 |
#define E1000_DEV_ID_80003ES2LAN_COPPER_DPT 0x1096 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
57 |
#define E1000_DEV_ID_80003ES2LAN_SERDES_DPT 0x1098 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
58 |
#define E1000_DEV_ID_80003ES2LAN_COPPER_SPT 0x10BA |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
59 |
#define E1000_DEV_ID_80003ES2LAN_SERDES_SPT 0x10BB |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
60 |
#define E1000_DEV_ID_ICH8_82567V_3 0x1501 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
61 |
#define E1000_DEV_ID_ICH8_IGP_M_AMT 0x1049 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
62 |
#define E1000_DEV_ID_ICH8_IGP_AMT 0x104A |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
63 |
#define E1000_DEV_ID_ICH8_IGP_C 0x104B |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
64 |
#define E1000_DEV_ID_ICH8_IFE 0x104C |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
65 |
#define E1000_DEV_ID_ICH8_IFE_GT 0x10C4 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
66 |
#define E1000_DEV_ID_ICH8_IFE_G 0x10C5 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
67 |
#define E1000_DEV_ID_ICH8_IGP_M 0x104D |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
68 |
#define E1000_DEV_ID_ICH9_IGP_AMT 0x10BD |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
69 |
#define E1000_DEV_ID_ICH9_BM 0x10E5 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
70 |
#define E1000_DEV_ID_ICH9_IGP_M_AMT 0x10F5 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
71 |
#define E1000_DEV_ID_ICH9_IGP_M 0x10BF |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
72 |
#define E1000_DEV_ID_ICH9_IGP_M_V 0x10CB |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
73 |
#define E1000_DEV_ID_ICH9_IGP_C 0x294C |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
74 |
#define E1000_DEV_ID_ICH9_IFE 0x10C0 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
75 |
#define E1000_DEV_ID_ICH9_IFE_GT 0x10C3 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
76 |
#define E1000_DEV_ID_ICH9_IFE_G 0x10C2 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
77 |
#define E1000_DEV_ID_ICH10_R_BM_LM 0x10CC |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
78 |
#define E1000_DEV_ID_ICH10_R_BM_LF 0x10CD |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
79 |
#define E1000_DEV_ID_ICH10_R_BM_V 0x10CE |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
80 |
#define E1000_DEV_ID_ICH10_D_BM_LM 0x10DE |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
81 |
#define E1000_DEV_ID_ICH10_D_BM_LF 0x10DF |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
82 |
#define E1000_DEV_ID_ICH10_D_BM_V 0x1525 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
83 |
#define E1000_DEV_ID_PCH_M_HV_LM 0x10EA |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
84 |
#define E1000_DEV_ID_PCH_M_HV_LC 0x10EB |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
85 |
#define E1000_DEV_ID_PCH_D_HV_DM 0x10EF |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
86 |
#define E1000_DEV_ID_PCH_D_HV_DC 0x10F0 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
87 |
#define E1000_DEV_ID_PCH2_LV_LM 0x1502 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
88 |
#define E1000_DEV_ID_PCH2_LV_V 0x1503 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
89 |
#define E1000_DEV_ID_PCH_LPT_I217_LM 0x153A |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
90 |
#define E1000_DEV_ID_PCH_LPT_I217_V 0x153B |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
91 |
#define E1000_DEV_ID_PCH_LPTLP_I218_LM 0x155A |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
92 |
#define E1000_DEV_ID_PCH_LPTLP_I218_V 0x1559 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
93 |
#define E1000_DEV_ID_PCH_I218_LM2 0x15A0 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
94 |
#define E1000_DEV_ID_PCH_I218_V2 0x15A1 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
95 |
#define E1000_DEV_ID_PCH_I218_LM3 0x15A2 /* Wildcat Point PCH */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
96 |
#define E1000_DEV_ID_PCH_I218_V3 0x15A3 /* Wildcat Point PCH */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
97 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
98 |
#define E1000_REVISION_4 4 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
99 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
100 |
#define E1000_FUNC_1 1 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
101 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
102 |
#define E1000_ALT_MAC_ADDRESS_OFFSET_LAN0 0 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
103 |
#define E1000_ALT_MAC_ADDRESS_OFFSET_LAN1 3 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
104 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
105 |
enum e1000_mac_type { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
106 |
e1000_82571, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
107 |
e1000_82572, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
108 |
e1000_82573, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
109 |
e1000_82574, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
110 |
e1000_82583, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
111 |
e1000_80003es2lan, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
112 |
e1000_ich8lan, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
113 |
e1000_ich9lan, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
114 |
e1000_ich10lan, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
115 |
e1000_pchlan, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
116 |
e1000_pch2lan, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
117 |
e1000_pch_lpt, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
118 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
119 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
120 |
enum e1000_media_type { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
121 |
e1000_media_type_unknown = 0, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
122 |
e1000_media_type_copper = 1, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
123 |
e1000_media_type_fiber = 2, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
124 |
e1000_media_type_internal_serdes = 3, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
125 |
e1000_num_media_types |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
126 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
127 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
128 |
enum e1000_nvm_type { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
129 |
e1000_nvm_unknown = 0, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
130 |
e1000_nvm_none, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
131 |
e1000_nvm_eeprom_spi, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
132 |
e1000_nvm_flash_hw, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
133 |
e1000_nvm_flash_sw |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
134 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
135 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
136 |
enum e1000_nvm_override { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
137 |
e1000_nvm_override_none = 0, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
138 |
e1000_nvm_override_spi_small, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
139 |
e1000_nvm_override_spi_large |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
140 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
141 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
142 |
enum e1000_phy_type { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
143 |
e1000_phy_unknown = 0, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
144 |
e1000_phy_none, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
145 |
e1000_phy_m88, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
146 |
e1000_phy_igp, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
147 |
e1000_phy_igp_2, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
148 |
e1000_phy_gg82563, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
149 |
e1000_phy_igp_3, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
150 |
e1000_phy_ife, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
151 |
e1000_phy_bm, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
152 |
e1000_phy_82578, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
153 |
e1000_phy_82577, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
154 |
e1000_phy_82579, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
155 |
e1000_phy_i217, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
156 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
157 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
158 |
enum e1000_bus_width { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
159 |
e1000_bus_width_unknown = 0, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
160 |
e1000_bus_width_pcie_x1, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
161 |
e1000_bus_width_pcie_x2, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
162 |
e1000_bus_width_pcie_x4 = 4, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
163 |
e1000_bus_width_32, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
164 |
e1000_bus_width_64, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
165 |
e1000_bus_width_reserved |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
166 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
167 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
168 |
enum e1000_1000t_rx_status { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
169 |
e1000_1000t_rx_status_not_ok = 0, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
170 |
e1000_1000t_rx_status_ok, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
171 |
e1000_1000t_rx_status_undefined = 0xFF |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
172 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
173 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
174 |
enum e1000_rev_polarity { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
175 |
e1000_rev_polarity_normal = 0, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
176 |
e1000_rev_polarity_reversed, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
177 |
e1000_rev_polarity_undefined = 0xFF |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
178 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
179 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
180 |
enum e1000_fc_mode { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
181 |
e1000_fc_none = 0, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
182 |
e1000_fc_rx_pause, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
183 |
e1000_fc_tx_pause, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
184 |
e1000_fc_full, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
185 |
e1000_fc_default = 0xFF |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
186 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
187 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
188 |
enum e1000_ms_type { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
189 |
e1000_ms_hw_default = 0, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
190 |
e1000_ms_force_master, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
191 |
e1000_ms_force_slave, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
192 |
e1000_ms_auto |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
193 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
194 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
195 |
enum e1000_smart_speed { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
196 |
e1000_smart_speed_default = 0, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
197 |
e1000_smart_speed_on, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
198 |
e1000_smart_speed_off |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
199 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
200 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
201 |
enum e1000_serdes_link_state { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
202 |
e1000_serdes_link_down = 0, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
203 |
e1000_serdes_link_autoneg_progress, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
204 |
e1000_serdes_link_autoneg_complete, |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
205 |
e1000_serdes_link_forced_up |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
206 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
207 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
208 |
/* Receive Descriptor - Extended */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
209 |
union e1000_rx_desc_extended { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
210 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
211 |
__le64 buffer_addr; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
212 |
__le64 reserved; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
213 |
} read; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
214 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
215 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
216 |
__le32 mrq; /* Multiple Rx Queues */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
217 |
union { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
218 |
__le32 rss; /* RSS Hash */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
219 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
220 |
__le16 ip_id; /* IP id */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
221 |
__le16 csum; /* Packet Checksum */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
222 |
} csum_ip; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
223 |
} hi_dword; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
224 |
} lower; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
225 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
226 |
__le32 status_error; /* ext status/error */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
227 |
__le16 length; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
228 |
__le16 vlan; /* VLAN tag */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
229 |
} upper; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
230 |
} wb; /* writeback */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
231 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
232 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
233 |
#define MAX_PS_BUFFERS 4 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
234 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
235 |
/* Number of packet split data buffers (not including the header buffer) */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
236 |
#define PS_PAGE_BUFFERS (MAX_PS_BUFFERS - 1) |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
237 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
238 |
/* Receive Descriptor - Packet Split */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
239 |
union e1000_rx_desc_packet_split { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
240 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
241 |
/* one buffer for protocol header(s), three data buffers */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
242 |
__le64 buffer_addr[MAX_PS_BUFFERS]; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
243 |
} read; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
244 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
245 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
246 |
__le32 mrq; /* Multiple Rx Queues */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
247 |
union { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
248 |
__le32 rss; /* RSS Hash */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
249 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
250 |
__le16 ip_id; /* IP id */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
251 |
__le16 csum; /* Packet Checksum */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
252 |
} csum_ip; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
253 |
} hi_dword; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
254 |
} lower; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
255 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
256 |
__le32 status_error; /* ext status/error */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
257 |
__le16 length0; /* length of buffer 0 */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
258 |
__le16 vlan; /* VLAN tag */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
259 |
} middle; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
260 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
261 |
__le16 header_status; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
262 |
/* length of buffers 1-3 */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
263 |
__le16 length[PS_PAGE_BUFFERS]; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
264 |
} upper; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
265 |
__le64 reserved; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
266 |
} wb; /* writeback */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
267 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
268 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
269 |
/* Transmit Descriptor */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
270 |
struct e1000_tx_desc { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
271 |
__le64 buffer_addr; /* Address of the descriptor's data buffer */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
272 |
union { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
273 |
__le32 data; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
274 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
275 |
__le16 length; /* Data buffer length */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
276 |
u8 cso; /* Checksum offset */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
277 |
u8 cmd; /* Descriptor control */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
278 |
} flags; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
279 |
} lower; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
280 |
union { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
281 |
__le32 data; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
282 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
283 |
u8 status; /* Descriptor status */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
284 |
u8 css; /* Checksum start */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
285 |
__le16 special; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
286 |
} fields; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
287 |
} upper; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
288 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
289 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
290 |
/* Offload Context Descriptor */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
291 |
struct e1000_context_desc { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
292 |
union { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
293 |
__le32 ip_config; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
294 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
295 |
u8 ipcss; /* IP checksum start */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
296 |
u8 ipcso; /* IP checksum offset */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
297 |
__le16 ipcse; /* IP checksum end */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
298 |
} ip_fields; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
299 |
} lower_setup; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
300 |
union { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
301 |
__le32 tcp_config; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
302 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
303 |
u8 tucss; /* TCP checksum start */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
304 |
u8 tucso; /* TCP checksum offset */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
305 |
__le16 tucse; /* TCP checksum end */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
306 |
} tcp_fields; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
307 |
} upper_setup; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
308 |
__le32 cmd_and_length; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
309 |
union { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
310 |
__le32 data; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
311 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
312 |
u8 status; /* Descriptor status */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
313 |
u8 hdr_len; /* Header length */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
314 |
__le16 mss; /* Maximum segment size */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
315 |
} fields; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
316 |
} tcp_seg_setup; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
317 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
318 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
319 |
/* Offload data descriptor */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
320 |
struct e1000_data_desc { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
321 |
__le64 buffer_addr; /* Address of the descriptor's buffer address */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
322 |
union { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
323 |
__le32 data; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
324 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
325 |
__le16 length; /* Data buffer length */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
326 |
u8 typ_len_ext; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
327 |
u8 cmd; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
328 |
} flags; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
329 |
} lower; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
330 |
union { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
331 |
__le32 data; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
332 |
struct { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
333 |
u8 status; /* Descriptor status */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
334 |
u8 popts; /* Packet Options */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
335 |
__le16 special; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
336 |
} fields; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
337 |
} upper; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
338 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
339 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
340 |
/* Statistics counters collected by the MAC */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
341 |
struct e1000_hw_stats { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
342 |
u64 crcerrs; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
343 |
u64 algnerrc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
344 |
u64 symerrs; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
345 |
u64 rxerrc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
346 |
u64 mpc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
347 |
u64 scc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
348 |
u64 ecol; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
349 |
u64 mcc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
350 |
u64 latecol; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
351 |
u64 colc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
352 |
u64 dc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
353 |
u64 tncrs; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
354 |
u64 sec; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
355 |
u64 cexterr; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
356 |
u64 rlec; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
357 |
u64 xonrxc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
358 |
u64 xontxc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
359 |
u64 xoffrxc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
360 |
u64 xofftxc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
361 |
u64 fcruc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
362 |
u64 prc64; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
363 |
u64 prc127; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
364 |
u64 prc255; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
365 |
u64 prc511; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
366 |
u64 prc1023; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
367 |
u64 prc1522; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
368 |
u64 gprc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
369 |
u64 bprc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
370 |
u64 mprc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
371 |
u64 gptc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
372 |
u64 gorc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
373 |
u64 gotc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
374 |
u64 rnbc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
375 |
u64 ruc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
376 |
u64 rfc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
377 |
u64 roc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
378 |
u64 rjc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
379 |
u64 mgprc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
380 |
u64 mgpdc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
381 |
u64 mgptc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
382 |
u64 tor; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
383 |
u64 tot; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
384 |
u64 tpr; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
385 |
u64 tpt; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
386 |
u64 ptc64; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
387 |
u64 ptc127; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
388 |
u64 ptc255; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
389 |
u64 ptc511; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
390 |
u64 ptc1023; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
391 |
u64 ptc1522; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
392 |
u64 mptc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
393 |
u64 bptc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
394 |
u64 tsctc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
395 |
u64 tsctfc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
396 |
u64 iac; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
397 |
u64 icrxptc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
398 |
u64 icrxatc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
399 |
u64 ictxptc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
400 |
u64 ictxatc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
401 |
u64 ictxqec; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
402 |
u64 ictxqmtc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
403 |
u64 icrxdmtc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
404 |
u64 icrxoc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
405 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
406 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
407 |
struct e1000_phy_stats { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
408 |
u32 idle_errors; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
409 |
u32 receive_errors; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
410 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
411 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
412 |
struct e1000_host_mng_dhcp_cookie { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
413 |
u32 signature; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
414 |
u8 status; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
415 |
u8 reserved0; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
416 |
u16 vlan_id; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
417 |
u32 reserved1; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
418 |
u16 reserved2; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
419 |
u8 reserved3; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
420 |
u8 checksum; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
421 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
422 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
423 |
/* Host Interface "Rev 1" */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
424 |
struct e1000_host_command_header { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
425 |
u8 command_id; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
426 |
u8 command_length; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
427 |
u8 command_options; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
428 |
u8 checksum; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
429 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
430 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
431 |
#define E1000_HI_MAX_DATA_LENGTH 252 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
432 |
struct e1000_host_command_info { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
433 |
struct e1000_host_command_header command_header; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
434 |
u8 command_data[E1000_HI_MAX_DATA_LENGTH]; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
435 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
436 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
437 |
/* Host Interface "Rev 2" */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
438 |
struct e1000_host_mng_command_header { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
439 |
u8 command_id; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
440 |
u8 checksum; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
441 |
u16 reserved1; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
442 |
u16 reserved2; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
443 |
u16 command_length; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
444 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
445 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
446 |
#define E1000_HI_MAX_MNG_DATA_LENGTH 0x6F8 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
447 |
struct e1000_host_mng_command_info { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
448 |
struct e1000_host_mng_command_header command_header; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
449 |
u8 command_data[E1000_HI_MAX_MNG_DATA_LENGTH]; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
450 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
451 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
452 |
#include "mac-3.12-ethercat.h" |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
453 |
#include "phy-3.12-ethercat.h" |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
454 |
#include "nvm-3.12-ethercat.h" |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
455 |
#include "manage-3.12-ethercat.h" |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
456 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
457 |
/* Function pointers for the MAC. */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
458 |
struct e1000_mac_operations { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
459 |
s32 (*id_led_init)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
460 |
s32 (*blink_led)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
461 |
bool (*check_mng_mode)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
462 |
s32 (*check_for_link)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
463 |
s32 (*cleanup_led)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
464 |
void (*clear_hw_cntrs)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
465 |
void (*clear_vfta)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
466 |
s32 (*get_bus_info)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
467 |
void (*set_lan_id)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
468 |
s32 (*get_link_up_info)(struct e1000_hw *, u16 *, u16 *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
469 |
s32 (*led_on)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
470 |
s32 (*led_off)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
471 |
void (*update_mc_addr_list)(struct e1000_hw *, u8 *, u32); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
472 |
s32 (*reset_hw)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
473 |
s32 (*init_hw)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
474 |
s32 (*setup_link)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
475 |
s32 (*setup_physical_interface)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
476 |
s32 (*setup_led)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
477 |
void (*write_vfta)(struct e1000_hw *, u32, u32); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
478 |
void (*config_collision_dist)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
479 |
void (*rar_set)(struct e1000_hw *, u8 *, u32); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
480 |
s32 (*read_mac_addr)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
481 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
482 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
483 |
/* When to use various PHY register access functions: |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
484 |
* |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
485 |
* Func Caller |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
486 |
* Function Does Does When to use |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
487 |
* ~~~~~~~~~~~~ ~~~~~ ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
488 |
* X_reg L,P,A n/a for simple PHY reg accesses |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
489 |
* X_reg_locked P,A L for multiple accesses of different regs |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
490 |
* on different pages |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
491 |
* X_reg_page A L,P for multiple accesses of different regs |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
492 |
* on the same page |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
493 |
* |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
494 |
* Where X=[read|write], L=locking, P=sets page, A=register access |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
495 |
* |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
496 |
*/ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
497 |
struct e1000_phy_operations { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
498 |
s32 (*acquire)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
499 |
s32 (*cfg_on_link_up)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
500 |
s32 (*check_polarity)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
501 |
s32 (*check_reset_block)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
502 |
s32 (*commit)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
503 |
s32 (*force_speed_duplex)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
504 |
s32 (*get_cfg_done)(struct e1000_hw *hw); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
505 |
s32 (*get_cable_length)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
506 |
s32 (*get_info)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
507 |
s32 (*set_page)(struct e1000_hw *, u16); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
508 |
s32 (*read_reg)(struct e1000_hw *, u32, u16 *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
509 |
s32 (*read_reg_locked)(struct e1000_hw *, u32, u16 *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
510 |
s32 (*read_reg_page)(struct e1000_hw *, u32, u16 *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
511 |
void (*release)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
512 |
s32 (*reset)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
513 |
s32 (*set_d0_lplu_state)(struct e1000_hw *, bool); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
514 |
s32 (*set_d3_lplu_state)(struct e1000_hw *, bool); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
515 |
s32 (*write_reg)(struct e1000_hw *, u32, u16); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
516 |
s32 (*write_reg_locked)(struct e1000_hw *, u32, u16); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
517 |
s32 (*write_reg_page)(struct e1000_hw *, u32, u16); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
518 |
void (*power_up)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
519 |
void (*power_down)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
520 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
521 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
522 |
/* Function pointers for the NVM. */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
523 |
struct e1000_nvm_operations { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
524 |
s32 (*acquire)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
525 |
s32 (*read)(struct e1000_hw *, u16, u16, u16 *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
526 |
void (*release)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
527 |
void (*reload)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
528 |
s32 (*update)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
529 |
s32 (*valid_led_default)(struct e1000_hw *, u16 *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
530 |
s32 (*validate)(struct e1000_hw *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
531 |
s32 (*write)(struct e1000_hw *, u16, u16, u16 *); |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
532 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
533 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
534 |
struct e1000_mac_info { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
535 |
struct e1000_mac_operations ops; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
536 |
u8 addr[ETH_ALEN]; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
537 |
u8 perm_addr[ETH_ALEN]; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
538 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
539 |
enum e1000_mac_type type; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
540 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
541 |
u32 collision_delta; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
542 |
u32 ledctl_default; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
543 |
u32 ledctl_mode1; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
544 |
u32 ledctl_mode2; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
545 |
u32 mc_filter_type; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
546 |
u32 tx_packet_delta; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
547 |
u32 txcw; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
548 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
549 |
u16 current_ifs_val; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
550 |
u16 ifs_max_val; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
551 |
u16 ifs_min_val; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
552 |
u16 ifs_ratio; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
553 |
u16 ifs_step_size; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
554 |
u16 mta_reg_count; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
555 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
556 |
/* Maximum size of the MTA register table in all supported adapters */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
557 |
#define MAX_MTA_REG 128 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
558 |
u32 mta_shadow[MAX_MTA_REG]; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
559 |
u16 rar_entry_count; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
560 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
561 |
u8 forced_speed_duplex; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
562 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
563 |
bool adaptive_ifs; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
564 |
bool has_fwsm; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
565 |
bool arc_subsystem_valid; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
566 |
bool autoneg; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
567 |
bool autoneg_failed; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
568 |
bool get_link_status; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
569 |
bool in_ifs_mode; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
570 |
bool serdes_has_link; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
571 |
bool tx_pkt_filtering; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
572 |
enum e1000_serdes_link_state serdes_link_state; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
573 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
574 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
575 |
struct e1000_phy_info { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
576 |
struct e1000_phy_operations ops; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
577 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
578 |
enum e1000_phy_type type; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
579 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
580 |
enum e1000_1000t_rx_status local_rx; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
581 |
enum e1000_1000t_rx_status remote_rx; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
582 |
enum e1000_ms_type ms_type; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
583 |
enum e1000_ms_type original_ms_type; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
584 |
enum e1000_rev_polarity cable_polarity; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
585 |
enum e1000_smart_speed smart_speed; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
586 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
587 |
u32 addr; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
588 |
u32 id; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
589 |
u32 reset_delay_us; /* in usec */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
590 |
u32 revision; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
591 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
592 |
enum e1000_media_type media_type; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
593 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
594 |
u16 autoneg_advertised; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
595 |
u16 autoneg_mask; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
596 |
u16 cable_length; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
597 |
u16 max_cable_length; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
598 |
u16 min_cable_length; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
599 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
600 |
u8 mdix; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
601 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
602 |
bool disable_polarity_correction; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
603 |
bool is_mdix; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
604 |
bool polarity_correction; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
605 |
bool speed_downgraded; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
606 |
bool autoneg_wait_to_complete; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
607 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
608 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
609 |
struct e1000_nvm_info { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
610 |
struct e1000_nvm_operations ops; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
611 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
612 |
enum e1000_nvm_type type; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
613 |
enum e1000_nvm_override override; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
614 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
615 |
u32 flash_bank_size; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
616 |
u32 flash_base_addr; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
617 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
618 |
u16 word_size; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
619 |
u16 delay_usec; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
620 |
u16 address_bits; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
621 |
u16 opcode_bits; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
622 |
u16 page_size; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
623 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
624 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
625 |
struct e1000_bus_info { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
626 |
enum e1000_bus_width width; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
627 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
628 |
u16 func; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
629 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
630 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
631 |
struct e1000_fc_info { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
632 |
u32 high_water; /* Flow control high-water mark */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
633 |
u32 low_water; /* Flow control low-water mark */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
634 |
u16 pause_time; /* Flow control pause timer */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
635 |
u16 refresh_time; /* Flow control refresh timer */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
636 |
bool send_xon; /* Flow control send XON */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
637 |
bool strict_ieee; /* Strict IEEE mode */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
638 |
enum e1000_fc_mode current_mode; /* FC mode in effect */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
639 |
enum e1000_fc_mode requested_mode; /* FC mode requested by caller */ |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
640 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
641 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
642 |
struct e1000_dev_spec_82571 { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
643 |
bool laa_is_present; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
644 |
u32 smb_counter; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
645 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
646 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
647 |
struct e1000_dev_spec_80003es2lan { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
648 |
bool mdic_wa_enable; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
649 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
650 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
651 |
struct e1000_shadow_ram { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
652 |
u16 value; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
653 |
bool modified; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
654 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
655 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
656 |
#define E1000_ICH8_SHADOW_RAM_WORDS 2048 |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
657 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
658 |
struct e1000_dev_spec_ich8lan { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
659 |
bool kmrn_lock_loss_workaround_enabled; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
660 |
struct e1000_shadow_ram shadow_ram[E1000_ICH8_SHADOW_RAM_WORDS]; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
661 |
bool nvm_k1_enabled; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
662 |
bool eee_disable; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
663 |
u16 eee_lp_ability; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
664 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
665 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
666 |
struct e1000_hw { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
667 |
struct e1000_adapter *adapter; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
668 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
669 |
void __iomem *hw_addr; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
670 |
void __iomem *flash_address; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
671 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
672 |
struct e1000_mac_info mac; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
673 |
struct e1000_fc_info fc; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
674 |
struct e1000_phy_info phy; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
675 |
struct e1000_nvm_info nvm; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
676 |
struct e1000_bus_info bus; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
677 |
struct e1000_host_mng_dhcp_cookie mng_cookie; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
678 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
679 |
union { |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
680 |
struct e1000_dev_spec_82571 e82571; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
681 |
struct e1000_dev_spec_80003es2lan e80003es2lan; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
682 |
struct e1000_dev_spec_ich8lan ich8lan; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
683 |
} dev_spec; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
684 |
}; |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
685 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
686 |
#include "82571-3.12-ethercat.h" |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
687 |
#include "80003es2lan-3.12-ethercat.h" |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
688 |
#include "ich8lan-3.12-ethercat.h" |
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
689 |
|
5b89b4e38cdc
Added all drivers for kernel 3.12.
Florian Pose <fp@igh-essen.com>
parents:
diff
changeset
|
690 |
#endif |