Deleted Added
full compact
e1000_hw.h (194865) e1000_hw.h (200243)
1/******************************************************************************
2
3 Copyright (c) 2001-2009, Intel Corporation
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8

--- 16 unchanged lines hidden (view full) ---

25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 POSSIBILITY OF SUCH DAMAGE.
31
32******************************************************************************/
1/******************************************************************************
2
3 Copyright (c) 2001-2009, Intel Corporation
4 All rights reserved.
5
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
8

--- 16 unchanged lines hidden (view full) ---

25 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 POSSIBILITY OF SUCH DAMAGE.
31
32******************************************************************************/
33/*$FreeBSD: head/sys/dev/e1000/e1000_hw.h 194865 2009-06-24 17:41:29Z jfv $*/
33/*$FreeBSD: head/sys/dev/e1000/e1000_hw.h 200243 2009-12-08 01:07:44Z jfv $*/
34
35#ifndef _E1000_HW_H_
36#define _E1000_HW_H_
37
38#include "e1000_osdep.h"
39#include "e1000_regs.h"
40#include "e1000_defines.h"
41

--- 53 unchanged lines hidden (view full) ---

95#define E1000_DEV_ID_82573L 0x109A
96#define E1000_DEV_ID_82574L 0x10D3
97#define E1000_DEV_ID_82574LA 0x10F6
98#define E1000_DEV_ID_82583V 0x150C
99#define E1000_DEV_ID_80003ES2LAN_COPPER_DPT 0x1096
100#define E1000_DEV_ID_80003ES2LAN_SERDES_DPT 0x1098
101#define E1000_DEV_ID_80003ES2LAN_COPPER_SPT 0x10BA
102#define E1000_DEV_ID_80003ES2LAN_SERDES_SPT 0x10BB
34
35#ifndef _E1000_HW_H_
36#define _E1000_HW_H_
37
38#include "e1000_osdep.h"
39#include "e1000_regs.h"
40#include "e1000_defines.h"
41

--- 53 unchanged lines hidden (view full) ---

95#define E1000_DEV_ID_82573L 0x109A
96#define E1000_DEV_ID_82574L 0x10D3
97#define E1000_DEV_ID_82574LA 0x10F6
98#define E1000_DEV_ID_82583V 0x150C
99#define E1000_DEV_ID_80003ES2LAN_COPPER_DPT 0x1096
100#define E1000_DEV_ID_80003ES2LAN_SERDES_DPT 0x1098
101#define E1000_DEV_ID_80003ES2LAN_COPPER_SPT 0x10BA
102#define E1000_DEV_ID_80003ES2LAN_SERDES_SPT 0x10BB
103#define E1000_DEV_ID_ICH8_82567V_3 0x1501
103#define E1000_DEV_ID_ICH8_IGP_M_AMT 0x1049
104#define E1000_DEV_ID_ICH8_IGP_AMT 0x104A
105#define E1000_DEV_ID_ICH8_IGP_C 0x104B
106#define E1000_DEV_ID_ICH8_IFE 0x104C
107#define E1000_DEV_ID_ICH8_IFE_GT 0x10C4
108#define E1000_DEV_ID_ICH8_IFE_G 0x10C5
109#define E1000_DEV_ID_ICH8_IGP_M 0x104D
110#define E1000_DEV_ID_ICH9_IGP_M 0x10BF

--- 14 unchanged lines hidden (view full) ---

125#define E1000_DEV_ID_PCH_M_HV_LC 0x10EB
126#define E1000_DEV_ID_PCH_D_HV_DM 0x10EF
127#define E1000_DEV_ID_PCH_D_HV_DC 0x10F0
128#define E1000_DEV_ID_82576 0x10C9
129#define E1000_DEV_ID_82576_FIBER 0x10E6
130#define E1000_DEV_ID_82576_SERDES 0x10E7
131#define E1000_DEV_ID_82576_QUAD_COPPER 0x10E8
132#define E1000_DEV_ID_82576_NS 0x150A
104#define E1000_DEV_ID_ICH8_IGP_M_AMT 0x1049
105#define E1000_DEV_ID_ICH8_IGP_AMT 0x104A
106#define E1000_DEV_ID_ICH8_IGP_C 0x104B
107#define E1000_DEV_ID_ICH8_IFE 0x104C
108#define E1000_DEV_ID_ICH8_IFE_GT 0x10C4
109#define E1000_DEV_ID_ICH8_IFE_G 0x10C5
110#define E1000_DEV_ID_ICH8_IGP_M 0x104D
111#define E1000_DEV_ID_ICH9_IGP_M 0x10BF

--- 14 unchanged lines hidden (view full) ---

126#define E1000_DEV_ID_PCH_M_HV_LC 0x10EB
127#define E1000_DEV_ID_PCH_D_HV_DM 0x10EF
128#define E1000_DEV_ID_PCH_D_HV_DC 0x10F0
129#define E1000_DEV_ID_82576 0x10C9
130#define E1000_DEV_ID_82576_FIBER 0x10E6
131#define E1000_DEV_ID_82576_SERDES 0x10E7
132#define E1000_DEV_ID_82576_QUAD_COPPER 0x10E8
133#define E1000_DEV_ID_82576_NS 0x150A
133#define E1000_DEV_ID_82576_SERDES_QUAD 0x150D
134#define E1000_DEV_ID_82576_NS_SERDES 0x1518
135#define E1000_DEV_ID_82576_SERDES_QUAD 0x150D
134#define E1000_DEV_ID_82575EB_COPPER 0x10A7
135#define E1000_DEV_ID_82575EB_FIBER_SERDES 0x10A9
136#define E1000_DEV_ID_82575GB_QUAD_COPPER 0x10D6
137#define E1000_DEV_ID_82575GB_QUAD_COPPER_PM 0x10E2
136#define E1000_DEV_ID_82575EB_COPPER 0x10A7
137#define E1000_DEV_ID_82575EB_FIBER_SERDES 0x10A9
138#define E1000_DEV_ID_82575GB_QUAD_COPPER 0x10D6
139#define E1000_DEV_ID_82575GB_QUAD_COPPER_PM 0x10E2
140#define E1000_DEV_ID_82580_COPPER 0x150E
141#define E1000_DEV_ID_82580_FIBER 0x150F
142#define E1000_DEV_ID_82580_SERDES 0x1510
143#define E1000_DEV_ID_82580_SGMII 0x1511
144#define E1000_DEV_ID_82580_COPPER_DUAL 0x1516
145#define E1000_DEV_ID_82580_ER 0x151D
146#define E1000_DEV_ID_82580_ER_DUAL 0x151E
138#define E1000_REVISION_0 0
139#define E1000_REVISION_1 1
140#define E1000_REVISION_2 2
141#define E1000_REVISION_3 3
142#define E1000_REVISION_4 4
143
144#define E1000_FUNC_0 0
145#define E1000_FUNC_1 1
147#define E1000_REVISION_0 0
148#define E1000_REVISION_1 1
149#define E1000_REVISION_2 2
150#define E1000_REVISION_3 3
151#define E1000_REVISION_4 4
152
153#define E1000_FUNC_0 0
154#define E1000_FUNC_1 1
155#define E1000_FUNC_2 2
156#define E1000_FUNC_3 3
146
147#define E1000_ALT_MAC_ADDRESS_OFFSET_LAN0 0
148#define E1000_ALT_MAC_ADDRESS_OFFSET_LAN1 3
157
158#define E1000_ALT_MAC_ADDRESS_OFFSET_LAN0 0
159#define E1000_ALT_MAC_ADDRESS_OFFSET_LAN1 3
160#define E1000_ALT_MAC_ADDRESS_OFFSET_LAN2 6
161#define E1000_ALT_MAC_ADDRESS_OFFSET_LAN3 9
149
150enum e1000_mac_type {
151 e1000_undefined = 0,
152 e1000_82542,
153 e1000_82543,
154 e1000_82544,
155 e1000_82540,
156 e1000_82545,

--- 11 unchanged lines hidden (view full) ---

168 e1000_82583,
169 e1000_80003es2lan,
170 e1000_ich8lan,
171 e1000_ich9lan,
172 e1000_ich10lan,
173 e1000_pchlan,
174 e1000_82575,
175 e1000_82576,
162
163enum e1000_mac_type {
164 e1000_undefined = 0,
165 e1000_82542,
166 e1000_82543,
167 e1000_82544,
168 e1000_82540,
169 e1000_82545,

--- 11 unchanged lines hidden (view full) ---

181 e1000_82583,
182 e1000_80003es2lan,
183 e1000_ich8lan,
184 e1000_ich9lan,
185 e1000_ich10lan,
186 e1000_pchlan,
187 e1000_82575,
188 e1000_82576,
189 e1000_82580,
190 e1000_82580er,
176 e1000_num_macs /* List is 1-based, so subtract 1 for TRUE count. */
177};
178
179enum e1000_media_type {
180 e1000_media_type_unknown = 0,
181 e1000_media_type_copper = 1,
182 e1000_media_type_fiber = 2,
183 e1000_media_type_internal_serdes = 3,

--- 24 unchanged lines hidden (view full) ---

208 e1000_phy_igp,
209 e1000_phy_igp_2,
210 e1000_phy_gg82563,
211 e1000_phy_igp_3,
212 e1000_phy_ife,
213 e1000_phy_bm,
214 e1000_phy_82578,
215 e1000_phy_82577,
191 e1000_num_macs /* List is 1-based, so subtract 1 for TRUE count. */
192};
193
194enum e1000_media_type {
195 e1000_media_type_unknown = 0,
196 e1000_media_type_copper = 1,
197 e1000_media_type_fiber = 2,
198 e1000_media_type_internal_serdes = 3,

--- 24 unchanged lines hidden (view full) ---

223 e1000_phy_igp,
224 e1000_phy_igp_2,
225 e1000_phy_gg82563,
226 e1000_phy_igp_3,
227 e1000_phy_ife,
228 e1000_phy_bm,
229 e1000_phy_82578,
230 e1000_phy_82577,
231 e1000_phy_82580,
216 e1000_phy_vf,
217};
218
219enum e1000_bus_type {
220 e1000_bus_type_unknown = 0,
221 e1000_bus_type_pci,
222 e1000_bus_type_pcix,
223 e1000_bus_type_pci_express,

--- 386 unchanged lines hidden (view full) ---

610 s32 (*check_polarity)(struct e1000_hw *);
611 s32 (*check_reset_block)(struct e1000_hw *);
612 s32 (*commit)(struct e1000_hw *);
613 s32 (*force_speed_duplex)(struct e1000_hw *);
614 s32 (*get_cfg_done)(struct e1000_hw *hw);
615 s32 (*get_cable_length)(struct e1000_hw *);
616 s32 (*get_info)(struct e1000_hw *);
617 s32 (*read_reg)(struct e1000_hw *, u32, u16 *);
232 e1000_phy_vf,
233};
234
235enum e1000_bus_type {
236 e1000_bus_type_unknown = 0,
237 e1000_bus_type_pci,
238 e1000_bus_type_pcix,
239 e1000_bus_type_pci_express,

--- 386 unchanged lines hidden (view full) ---

626 s32 (*check_polarity)(struct e1000_hw *);
627 s32 (*check_reset_block)(struct e1000_hw *);
628 s32 (*commit)(struct e1000_hw *);
629 s32 (*force_speed_duplex)(struct e1000_hw *);
630 s32 (*get_cfg_done)(struct e1000_hw *hw);
631 s32 (*get_cable_length)(struct e1000_hw *);
632 s32 (*get_info)(struct e1000_hw *);
633 s32 (*read_reg)(struct e1000_hw *, u32, u16 *);
634 s32 (*read_reg_locked)(struct e1000_hw *, u32, u16 *);
618 void (*release)(struct e1000_hw *);
619 s32 (*reset)(struct e1000_hw *);
620 s32 (*set_d0_lplu_state)(struct e1000_hw *, bool);
621 s32 (*set_d3_lplu_state)(struct e1000_hw *, bool);
622 s32 (*write_reg)(struct e1000_hw *, u32, u16);
635 void (*release)(struct e1000_hw *);
636 s32 (*reset)(struct e1000_hw *);
637 s32 (*set_d0_lplu_state)(struct e1000_hw *, bool);
638 s32 (*set_d3_lplu_state)(struct e1000_hw *, bool);
639 s32 (*write_reg)(struct e1000_hw *, u32, u16);
640 s32 (*write_reg_locked)(struct e1000_hw *, u32, u16);
623 void (*power_up)(struct e1000_hw *);
624 void (*power_down)(struct e1000_hw *);
625};
626
627struct e1000_nvm_operations {
628 s32 (*init_params)(struct e1000_hw *);
629 s32 (*acquire)(struct e1000_hw *);
630 s32 (*read)(struct e1000_hw *, u16, u16, u16 *);

--- 21 unchanged lines hidden (view full) ---

652 u32 txcw;
653
654 u16 current_ifs_val;
655 u16 ifs_max_val;
656 u16 ifs_min_val;
657 u16 ifs_ratio;
658 u16 ifs_step_size;
659 u16 mta_reg_count;
641 void (*power_up)(struct e1000_hw *);
642 void (*power_down)(struct e1000_hw *);
643};
644
645struct e1000_nvm_operations {
646 s32 (*init_params)(struct e1000_hw *);
647 s32 (*acquire)(struct e1000_hw *);
648 s32 (*read)(struct e1000_hw *, u16, u16, u16 *);

--- 21 unchanged lines hidden (view full) ---

670 u32 txcw;
671
672 u16 current_ifs_val;
673 u16 ifs_max_val;
674 u16 ifs_min_val;
675 u16 ifs_ratio;
676 u16 ifs_step_size;
677 u16 mta_reg_count;
678 u16 uta_reg_count;
660
661 /* Maximum size of the MTA register table in all supported adapters */
662 #define MAX_MTA_REG 128
663 u32 mta_shadow[MAX_MTA_REG];
664 u16 rar_entry_count;
665
666 u8 forced_speed_duplex;
667

--- 95 unchanged lines hidden (view full) ---

763 bool init_phy_disabled;
764};
765
766struct e1000_dev_spec_82571 {
767 bool laa_is_present;
768 u32 smb_counter;
769};
770
679
680 /* Maximum size of the MTA register table in all supported adapters */
681 #define MAX_MTA_REG 128
682 u32 mta_shadow[MAX_MTA_REG];
683 u16 rar_entry_count;
684
685 u8 forced_speed_duplex;
686

--- 95 unchanged lines hidden (view full) ---

782 bool init_phy_disabled;
783};
784
785struct e1000_dev_spec_82571 {
786 bool laa_is_present;
787 u32 smb_counter;
788};
789
790struct e1000_dev_spec_80003es2lan {
791 bool mdic_wa_enable;
792};
793
771struct e1000_shadow_ram {
772 u16 value;
773 bool modified;
774};
775
776#define E1000_SHADOW_RAM_WORDS 2048
777
778struct e1000_dev_spec_ich8lan {
779 bool kmrn_lock_loss_workaround_enabled;
780 struct e1000_shadow_ram shadow_ram[E1000_SHADOW_RAM_WORDS];
794struct e1000_shadow_ram {
795 u16 value;
796 bool modified;
797};
798
799#define E1000_SHADOW_RAM_WORDS 2048
800
801struct e1000_dev_spec_ich8lan {
802 bool kmrn_lock_loss_workaround_enabled;
803 struct e1000_shadow_ram shadow_ram[E1000_SHADOW_RAM_WORDS];
804 E1000_MUTEX nvm_mutex;
805 E1000_MUTEX swflag_mutex;
806 bool nvm_k1_enabled;
781};
782
783struct e1000_dev_spec_82575 {
784 bool sgmii_active;
785 bool global_device_reset;
786};
787
788struct e1000_dev_spec_vf {

--- 16 unchanged lines hidden (view full) ---

805 struct e1000_bus_info bus;
806 struct e1000_host_mng_dhcp_cookie mng_cookie;
807
808 union {
809 struct e1000_dev_spec_82541 _82541;
810 struct e1000_dev_spec_82542 _82542;
811 struct e1000_dev_spec_82543 _82543;
812 struct e1000_dev_spec_82571 _82571;
807};
808
809struct e1000_dev_spec_82575 {
810 bool sgmii_active;
811 bool global_device_reset;
812};
813
814struct e1000_dev_spec_vf {

--- 16 unchanged lines hidden (view full) ---

831 struct e1000_bus_info bus;
832 struct e1000_host_mng_dhcp_cookie mng_cookie;
833
834 union {
835 struct e1000_dev_spec_82541 _82541;
836 struct e1000_dev_spec_82542 _82542;
837 struct e1000_dev_spec_82543 _82543;
838 struct e1000_dev_spec_82571 _82571;
839 struct e1000_dev_spec_80003es2lan _80003es2lan;
813 struct e1000_dev_spec_ich8lan ich8lan;
814 struct e1000_dev_spec_82575 _82575;
815 struct e1000_dev_spec_vf vf;
816 } dev_spec;
817
818 u16 device_id;
819 u16 subsystem_vendor_id;
820 u16 subsystem_device_id;

--- 21 unchanged lines hidden ---
840 struct e1000_dev_spec_ich8lan ich8lan;
841 struct e1000_dev_spec_82575 _82575;
842 struct e1000_dev_spec_vf vf;
843 } dev_spec;
844
845 u16 device_id;
846 u16 subsystem_vendor_id;
847 u16 subsystem_device_id;

--- 21 unchanged lines hidden ---