aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/e1000e/e1000.h
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2013-01-22 03:44:14 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2013-02-05 02:45:47 -0500
commit1b41db37f40dc682ee5d6fb47b3af545c3eabd1f (patch)
tree4fe5dd6daf50786ccad172f9c32b0366da511a87 /drivers/net/ethernet/intel/e1000e/e1000.h
parent21b5a6f8ff3cbcd7623187628320a4e7125120fb (diff)
e1000e: cosmetic move of #defines and prototypes to the new ich8lan.h
Move #defines and function prototypes specific to the ICH/PCH family of devices (ICH8/82562, ICH8/82566, ICH8/82567, ICH9/82562, ICH9/82566, ICH9/82567, ICH10/82567, 82577, 82578, 82579, I217, I218) to the new ich8lan.h header file (the convention for Intel wired ethernet drivers is to use the name of the first device in the family for related file and function names). These defines and function prototypes can be used by other files in the driver and moving them to the ICH/PCH-family-specific file makes it clearer to which devices they are applicable. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/e1000.h')
-rw-r--r--drivers/net/ethernet/intel/e1000e/e1000.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/e1000.h b/drivers/net/ethernet/intel/e1000e/e1000.h
index 12c5d4043505..7a383cd715d6 100644
--- a/drivers/net/ethernet/intel/e1000e/e1000.h
+++ b/drivers/net/ethernet/intel/e1000e/e1000.h
@@ -104,44 +104,6 @@ struct e1000_info;
104 (((page) & 0xFFFF) << PHY_PAGE_SHIFT) |\ 104 (((page) & 0xFFFF) << PHY_PAGE_SHIFT) |\
105 (((reg) & ~MAX_PHY_REG_ADDRESS) << (PHY_UPPER_SHIFT - PHY_PAGE_SHIFT))) 105 (((reg) & ~MAX_PHY_REG_ADDRESS) << (PHY_UPPER_SHIFT - PHY_PAGE_SHIFT)))
106 106
107/* PHY Wakeup Registers and defines */
108#define BM_PORT_GEN_CFG PHY_REG(BM_PORT_CTRL_PAGE, 17)
109#define BM_RCTL PHY_REG(BM_WUC_PAGE, 0)
110#define BM_WUC PHY_REG(BM_WUC_PAGE, 1)
111#define BM_WUFC PHY_REG(BM_WUC_PAGE, 2)
112#define BM_WUS PHY_REG(BM_WUC_PAGE, 3)
113#define BM_RAR_L(_i) (BM_PHY_REG(BM_WUC_PAGE, 16 + ((_i) << 2)))
114#define BM_RAR_M(_i) (BM_PHY_REG(BM_WUC_PAGE, 17 + ((_i) << 2)))
115#define BM_RAR_H(_i) (BM_PHY_REG(BM_WUC_PAGE, 18 + ((_i) << 2)))
116#define BM_RAR_CTRL(_i) (BM_PHY_REG(BM_WUC_PAGE, 19 + ((_i) << 2)))
117#define BM_MTA(_i) (BM_PHY_REG(BM_WUC_PAGE, 128 + ((_i) << 1)))
118
119#define BM_RCTL_UPE 0x0001 /* Unicast Promiscuous Mode */
120#define BM_RCTL_MPE 0x0002 /* Multicast Promiscuous Mode */
121#define BM_RCTL_MO_SHIFT 3 /* Multicast Offset Shift */
122#define BM_RCTL_MO_MASK (3 << 3) /* Multicast Offset Mask */
123#define BM_RCTL_BAM 0x0020 /* Broadcast Accept Mode */
124#define BM_RCTL_PMCF 0x0040 /* Pass MAC Control Frames */
125#define BM_RCTL_RFCE 0x0080 /* Rx Flow Control Enable */
126
127#define HV_STATS_PAGE 778
128#define HV_SCC_UPPER PHY_REG(HV_STATS_PAGE, 16) /* Single Collision Count */
129#define HV_SCC_LOWER PHY_REG(HV_STATS_PAGE, 17)
130#define HV_ECOL_UPPER PHY_REG(HV_STATS_PAGE, 18) /* Excessive Coll. Count */
131#define HV_ECOL_LOWER PHY_REG(HV_STATS_PAGE, 19)
132#define HV_MCC_UPPER PHY_REG(HV_STATS_PAGE, 20) /* Multiple Coll. Count */
133#define HV_MCC_LOWER PHY_REG(HV_STATS_PAGE, 21)
134#define HV_LATECOL_UPPER PHY_REG(HV_STATS_PAGE, 23) /* Late Collision Count */
135#define HV_LATECOL_LOWER PHY_REG(HV_STATS_PAGE, 24)
136#define HV_COLC_UPPER PHY_REG(HV_STATS_PAGE, 25) /* Collision Count */
137#define HV_COLC_LOWER PHY_REG(HV_STATS_PAGE, 26)
138#define HV_DC_UPPER PHY_REG(HV_STATS_PAGE, 27) /* Defer Count */
139#define HV_DC_LOWER PHY_REG(HV_STATS_PAGE, 28)
140#define HV_TNCRS_UPPER PHY_REG(HV_STATS_PAGE, 29) /* Transmit with no CRS */
141#define HV_TNCRS_LOWER PHY_REG(HV_STATS_PAGE, 30)
142
143#define E1000_FCRTV_PCH 0x05F40 /* PCH Flow Control Refresh Timer Value */
144
145/* BM PHY Copper Specific Status */ 107/* BM PHY Copper Specific Status */
146#define BM_CS_STATUS 17 108#define BM_CS_STATUS 17
147#define BM_CS_STATUS_LINK_UP 0x0400 109#define BM_CS_STATUS_LINK_UP 0x0400
@@ -156,9 +118,6 @@ struct e1000_info;
156#define HV_M_STATUS_SPEED_1000 0x0200 118#define HV_M_STATUS_SPEED_1000 0x0200
157#define HV_M_STATUS_LINK_UP 0x0040 119#define HV_M_STATUS_LINK_UP 0x0040
158 120
159#define E1000_ICH_FWSM_PCIM2PCI 0x01000000 /* ME PCIm-to-PCI active */
160#define E1000_ICH_FWSM_PCIM2PCI_COUNT 2000
161
162/* Time to wait before putting the device into D3 if there's no link (in ms). */ 121/* Time to wait before putting the device into D3 if there's no link (in ms). */
163#define LINK_TIMEOUT 100 122#define LINK_TIMEOUT 100
164 123
@@ -579,17 +538,6 @@ extern s32 e1000_read_pba_string_generic(struct e1000_hw *hw, u8 *pba_num,
579 538
580extern bool e1000e_enable_mng_pass_thru(struct e1000_hw *hw); 539extern bool e1000e_enable_mng_pass_thru(struct e1000_hw *hw);
581 540
582extern void e1000e_write_protect_nvm_ich8lan(struct e1000_hw *hw);
583extern void e1000e_set_kmrn_lock_loss_workaround_ich8lan(struct e1000_hw *hw,
584 bool state);
585extern void e1000e_igp3_phy_powerdown_workaround_ich8lan(struct e1000_hw *hw);
586extern void e1000e_gig_downshift_workaround_ich8lan(struct e1000_hw *hw);
587extern void e1000_suspend_workarounds_ich8lan(struct e1000_hw *hw);
588extern void e1000_resume_workarounds_pchlan(struct e1000_hw *hw);
589extern s32 e1000_configure_k1_ich8lan(struct e1000_hw *hw, bool k1_enable);
590extern s32 e1000_lv_jumbo_workaround_ich8lan(struct e1000_hw *hw, bool enable);
591extern void e1000_copy_rx_addrs_to_phy_ich8lan(struct e1000_hw *hw);
592
593extern s32 e1000e_check_for_copper_link(struct e1000_hw *hw); 541extern s32 e1000e_check_for_copper_link(struct e1000_hw *hw);
594extern s32 e1000e_check_for_fiber_link(struct e1000_hw *hw); 542extern s32 e1000e_check_for_fiber_link(struct e1000_hw *hw);
595extern s32 e1000e_check_for_serdes_link(struct e1000_hw *hw); 543extern s32 e1000e_check_for_serdes_link(struct e1000_hw *hw);
@@ -700,7 +648,6 @@ extern s32 e1000_get_phy_info_ife(struct e1000_hw *hw);
700extern s32 e1000_check_polarity_ife(struct e1000_hw *hw); 648extern s32 e1000_check_polarity_ife(struct e1000_hw *hw);
701extern s32 e1000_phy_force_speed_duplex_ife(struct e1000_hw *hw); 649extern s32 e1000_phy_force_speed_duplex_ife(struct e1000_hw *hw);
702extern s32 e1000_check_polarity_igp(struct e1000_hw *hw); 650extern s32 e1000_check_polarity_igp(struct e1000_hw *hw);
703extern s32 e1000_read_emi_reg_locked(struct e1000_hw *hw, u16 addr, u16 *data);
704extern void e1000e_ptp_init(struct e1000_adapter *adapter); 651extern void e1000e_ptp_init(struct e1000_adapter *adapter);
705extern void e1000e_ptp_remove(struct e1000_adapter *adapter); 652extern void e1000e_ptp_remove(struct e1000_adapter *adapter);
706 653