e1000: Add support for [Tiger, Alder, Meteor] Lake
Add support for current and future client platform PCI IDs. These are all I219 variants and have no known driver changes versus previous generation client platform I219 variants. Reviewed by: markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29801
This commit is contained in:
parent
758c9d54d4
commit
59690eab57
@ -327,6 +327,26 @@ s32 e1000_set_mac_type(struct e1000_hw *hw)
|
|||||||
case E1000_DEV_ID_PCH_CMP_I219_V11:
|
case E1000_DEV_ID_PCH_CMP_I219_V11:
|
||||||
mac->type = e1000_pch_cnp;
|
mac->type = e1000_pch_cnp;
|
||||||
break;
|
break;
|
||||||
|
case E1000_DEV_ID_PCH_TGP_I219_LM13:
|
||||||
|
case E1000_DEV_ID_PCH_TGP_I219_V13:
|
||||||
|
case E1000_DEV_ID_PCH_TGP_I219_LM14:
|
||||||
|
case E1000_DEV_ID_PCH_TGP_I219_V14:
|
||||||
|
case E1000_DEV_ID_PCH_TGP_I219_LM15:
|
||||||
|
case E1000_DEV_ID_PCH_TGP_I219_V15:
|
||||||
|
mac->type = e1000_pch_tgp;
|
||||||
|
break;
|
||||||
|
case E1000_DEV_ID_PCH_ADL_I219_LM16:
|
||||||
|
case E1000_DEV_ID_PCH_ADL_I219_V16:
|
||||||
|
case E1000_DEV_ID_PCH_ADL_I219_LM17:
|
||||||
|
case E1000_DEV_ID_PCH_ADL_I219_V17:
|
||||||
|
mac->type = e1000_pch_adp;
|
||||||
|
break;
|
||||||
|
case E1000_DEV_ID_PCH_MTP_I219_LM18:
|
||||||
|
case E1000_DEV_ID_PCH_MTP_I219_V18:
|
||||||
|
case E1000_DEV_ID_PCH_MTP_I219_LM19:
|
||||||
|
case E1000_DEV_ID_PCH_MTP_I219_V19:
|
||||||
|
mac->type = e1000_pch_mtp;
|
||||||
|
break;
|
||||||
case E1000_DEV_ID_82575EB_COPPER:
|
case E1000_DEV_ID_82575EB_COPPER:
|
||||||
case E1000_DEV_ID_82575EB_FIBER_SERDES:
|
case E1000_DEV_ID_82575EB_FIBER_SERDES:
|
||||||
case E1000_DEV_ID_82575GB_QUAD_COPPER:
|
case E1000_DEV_ID_82575GB_QUAD_COPPER:
|
||||||
@ -479,6 +499,9 @@ s32 e1000_setup_init_funcs(struct e1000_hw *hw, bool init_device)
|
|||||||
case e1000_pch_lpt:
|
case e1000_pch_lpt:
|
||||||
case e1000_pch_spt:
|
case e1000_pch_spt:
|
||||||
case e1000_pch_cnp:
|
case e1000_pch_cnp:
|
||||||
|
case e1000_pch_tgp:
|
||||||
|
case e1000_pch_adp:
|
||||||
|
case e1000_pch_mtp:
|
||||||
e1000_init_function_pointers_ich8lan(hw);
|
e1000_init_function_pointers_ich8lan(hw);
|
||||||
break;
|
break;
|
||||||
case e1000_82575:
|
case e1000_82575:
|
||||||
|
@ -161,6 +161,20 @@ struct e1000_hw;
|
|||||||
#define E1000_DEV_ID_PCH_CMP_I219_V11 0x0D4D
|
#define E1000_DEV_ID_PCH_CMP_I219_V11 0x0D4D
|
||||||
#define E1000_DEV_ID_PCH_CMP_I219_LM12 0x0D53
|
#define E1000_DEV_ID_PCH_CMP_I219_LM12 0x0D53
|
||||||
#define E1000_DEV_ID_PCH_CMP_I219_V12 0x0D55
|
#define E1000_DEV_ID_PCH_CMP_I219_V12 0x0D55
|
||||||
|
#define E1000_DEV_ID_PCH_TGP_I219_LM13 0x15FB
|
||||||
|
#define E1000_DEV_ID_PCH_TGP_I219_V13 0x15FC
|
||||||
|
#define E1000_DEV_ID_PCH_TGP_I219_LM14 0x15F9
|
||||||
|
#define E1000_DEV_ID_PCH_TGP_I219_V14 0x15FA
|
||||||
|
#define E1000_DEV_ID_PCH_TGP_I219_LM15 0x15F4
|
||||||
|
#define E1000_DEV_ID_PCH_TGP_I219_V15 0x15F5
|
||||||
|
#define E1000_DEV_ID_PCH_ADL_I219_LM16 0x1A1E
|
||||||
|
#define E1000_DEV_ID_PCH_ADL_I219_V16 0x1A1F
|
||||||
|
#define E1000_DEV_ID_PCH_ADL_I219_LM17 0x1A1C
|
||||||
|
#define E1000_DEV_ID_PCH_ADL_I219_V17 0x1A1D
|
||||||
|
#define E1000_DEV_ID_PCH_MTP_I219_LM18 0x550A
|
||||||
|
#define E1000_DEV_ID_PCH_MTP_I219_V18 0x550B
|
||||||
|
#define E1000_DEV_ID_PCH_MTP_I219_LM19 0x550C
|
||||||
|
#define E1000_DEV_ID_PCH_MTP_I219_V19 0x550D
|
||||||
#define E1000_DEV_ID_82576 0x10C9
|
#define E1000_DEV_ID_82576 0x10C9
|
||||||
#define E1000_DEV_ID_82576_FIBER 0x10E6
|
#define E1000_DEV_ID_82576_FIBER 0x10E6
|
||||||
#define E1000_DEV_ID_82576_SERDES 0x10E7
|
#define E1000_DEV_ID_82576_SERDES 0x10E7
|
||||||
@ -248,6 +262,9 @@ enum e1000_mac_type {
|
|||||||
e1000_pch_lpt,
|
e1000_pch_lpt,
|
||||||
e1000_pch_spt,
|
e1000_pch_spt,
|
||||||
e1000_pch_cnp,
|
e1000_pch_cnp,
|
||||||
|
e1000_pch_tgp,
|
||||||
|
e1000_pch_adp,
|
||||||
|
e1000_pch_mtp,
|
||||||
e1000_82575,
|
e1000_82575,
|
||||||
e1000_82576,
|
e1000_82576,
|
||||||
e1000_82580,
|
e1000_82580,
|
||||||
|
@ -346,6 +346,9 @@ static s32 e1000_init_phy_workarounds_pchlan(struct e1000_hw *hw)
|
|||||||
case e1000_pch_lpt:
|
case e1000_pch_lpt:
|
||||||
case e1000_pch_spt:
|
case e1000_pch_spt:
|
||||||
case e1000_pch_cnp:
|
case e1000_pch_cnp:
|
||||||
|
case e1000_pch_tgp:
|
||||||
|
case e1000_pch_adp:
|
||||||
|
case e1000_pch_mtp:
|
||||||
if (e1000_phy_is_accessible_pchlan(hw))
|
if (e1000_phy_is_accessible_pchlan(hw))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -495,6 +498,9 @@ static s32 e1000_init_phy_params_pchlan(struct e1000_hw *hw)
|
|||||||
case e1000_pch_lpt:
|
case e1000_pch_lpt:
|
||||||
case e1000_pch_spt:
|
case e1000_pch_spt:
|
||||||
case e1000_pch_cnp:
|
case e1000_pch_cnp:
|
||||||
|
case e1000_pch_tgp:
|
||||||
|
case e1000_pch_adp:
|
||||||
|
case e1000_pch_mtp:
|
||||||
/* In case the PHY needs to be in mdio slow mode,
|
/* In case the PHY needs to be in mdio slow mode,
|
||||||
* set slow mode and try to get the PHY id again.
|
* set slow mode and try to get the PHY id again.
|
||||||
*/
|
*/
|
||||||
@ -794,6 +800,9 @@ static s32 e1000_init_mac_params_ich8lan(struct e1000_hw *hw)
|
|||||||
case e1000_pch_lpt:
|
case e1000_pch_lpt:
|
||||||
case e1000_pch_spt:
|
case e1000_pch_spt:
|
||||||
case e1000_pch_cnp:
|
case e1000_pch_cnp:
|
||||||
|
case e1000_pch_tgp:
|
||||||
|
case e1000_pch_adp:
|
||||||
|
case e1000_pch_mtp:
|
||||||
/* multicast address update for pch2 */
|
/* multicast address update for pch2 */
|
||||||
mac->ops.update_mc_addr_list =
|
mac->ops.update_mc_addr_list =
|
||||||
e1000_update_mc_addr_list_pch2lan;
|
e1000_update_mc_addr_list_pch2lan;
|
||||||
@ -1832,6 +1841,9 @@ void e1000_init_function_pointers_ich8lan(struct e1000_hw *hw)
|
|||||||
case e1000_pch_lpt:
|
case e1000_pch_lpt:
|
||||||
case e1000_pch_spt:
|
case e1000_pch_spt:
|
||||||
case e1000_pch_cnp:
|
case e1000_pch_cnp:
|
||||||
|
case e1000_pch_tgp:
|
||||||
|
case e1000_pch_adp:
|
||||||
|
case e1000_pch_mtp:
|
||||||
hw->phy.ops.init_params = e1000_init_phy_params_pchlan;
|
hw->phy.ops.init_params = e1000_init_phy_params_pchlan;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -2288,6 +2300,9 @@ static s32 e1000_sw_lcd_config_ich8lan(struct e1000_hw *hw)
|
|||||||
case e1000_pch_lpt:
|
case e1000_pch_lpt:
|
||||||
case e1000_pch_spt:
|
case e1000_pch_spt:
|
||||||
case e1000_pch_cnp:
|
case e1000_pch_cnp:
|
||||||
|
case e1000_pch_tgp:
|
||||||
|
case e1000_pch_adp:
|
||||||
|
case e1000_pch_mtp:
|
||||||
sw_cfg_mask = E1000_FEXTNVM_SW_CONFIG_ICH8M;
|
sw_cfg_mask = E1000_FEXTNVM_SW_CONFIG_ICH8M;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -3408,6 +3423,9 @@ static s32 e1000_valid_nvm_bank_detect_ich8lan(struct e1000_hw *hw, u32 *bank)
|
|||||||
switch (hw->mac.type) {
|
switch (hw->mac.type) {
|
||||||
case e1000_pch_spt:
|
case e1000_pch_spt:
|
||||||
case e1000_pch_cnp:
|
case e1000_pch_cnp:
|
||||||
|
case e1000_pch_tgp:
|
||||||
|
case e1000_pch_adp:
|
||||||
|
case e1000_pch_mtp:
|
||||||
bank1_offset = nvm->flash_bank_size;
|
bank1_offset = nvm->flash_bank_size;
|
||||||
act_offset = E1000_ICH_NVM_SIG_WORD;
|
act_offset = E1000_ICH_NVM_SIG_WORD;
|
||||||
|
|
||||||
@ -4377,6 +4395,9 @@ static s32 e1000_validate_nvm_checksum_ich8lan(struct e1000_hw *hw)
|
|||||||
case e1000_pch_lpt:
|
case e1000_pch_lpt:
|
||||||
case e1000_pch_spt:
|
case e1000_pch_spt:
|
||||||
case e1000_pch_cnp:
|
case e1000_pch_cnp:
|
||||||
|
case e1000_pch_tgp:
|
||||||
|
case e1000_pch_adp:
|
||||||
|
case e1000_pch_mtp:
|
||||||
word = NVM_COMPAT;
|
word = NVM_COMPAT;
|
||||||
valid_csum_mask = NVM_COMPAT_VALID_CSUM;
|
valid_csum_mask = NVM_COMPAT_VALID_CSUM;
|
||||||
break;
|
break;
|
||||||
|
@ -180,6 +180,20 @@ static pci_vendor_info_t em_vendor_info_array[] =
|
|||||||
PVID(0x8086, E1000_DEV_ID_PCH_CMP_I219_V11, "Intel(R) PRO/1000 Network Connection"),
|
PVID(0x8086, E1000_DEV_ID_PCH_CMP_I219_V11, "Intel(R) PRO/1000 Network Connection"),
|
||||||
PVID(0x8086, E1000_DEV_ID_PCH_CMP_I219_LM12, "Intel(R) PRO/1000 Network Connection"),
|
PVID(0x8086, E1000_DEV_ID_PCH_CMP_I219_LM12, "Intel(R) PRO/1000 Network Connection"),
|
||||||
PVID(0x8086, E1000_DEV_ID_PCH_CMP_I219_V12, "Intel(R) PRO/1000 Network Connection"),
|
PVID(0x8086, E1000_DEV_ID_PCH_CMP_I219_V12, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_TGP_I219_LM13, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_TGP_I219_V13, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_TGP_I219_LM14, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_TGP_I219_V14, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_TGP_I219_LM15, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_TGP_I219_V15, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_ADL_I219_LM16, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_ADL_I219_V16, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_ADL_I219_LM17, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_ADL_I219_V17, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_MTP_I219_LM18, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_MTP_I219_V18, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_MTP_I219_LM19, "Intel(R) PRO/1000 Network Connection"),
|
||||||
|
PVID(0x8086, E1000_DEV_ID_PCH_MTP_I219_V19, "Intel(R) PRO/1000 Network Connection"),
|
||||||
/* required last entry */
|
/* required last entry */
|
||||||
PVID_END
|
PVID_END
|
||||||
};
|
};
|
||||||
@ -1218,6 +1232,9 @@ em_if_mtu_set(if_ctx_t ctx, uint32_t mtu)
|
|||||||
case e1000_pch_lpt:
|
case e1000_pch_lpt:
|
||||||
case e1000_pch_spt:
|
case e1000_pch_spt:
|
||||||
case e1000_pch_cnp:
|
case e1000_pch_cnp:
|
||||||
|
case e1000_pch_tgp:
|
||||||
|
case e1000_pch_adp:
|
||||||
|
case e1000_pch_mtp:
|
||||||
case e1000_82574:
|
case e1000_82574:
|
||||||
case e1000_82583:
|
case e1000_82583:
|
||||||
case e1000_80003es2lan:
|
case e1000_80003es2lan:
|
||||||
@ -2516,6 +2533,9 @@ em_reset(if_ctx_t ctx)
|
|||||||
case e1000_pch_lpt:
|
case e1000_pch_lpt:
|
||||||
case e1000_pch_spt:
|
case e1000_pch_spt:
|
||||||
case e1000_pch_cnp:
|
case e1000_pch_cnp:
|
||||||
|
case e1000_pch_tgp:
|
||||||
|
case e1000_pch_adp:
|
||||||
|
case e1000_pch_mtp:
|
||||||
pba = E1000_PBA_26K;
|
pba = E1000_PBA_26K;
|
||||||
break;
|
break;
|
||||||
case e1000_82575:
|
case e1000_82575:
|
||||||
@ -2626,6 +2646,9 @@ em_reset(if_ctx_t ctx)
|
|||||||
case e1000_pch_lpt:
|
case e1000_pch_lpt:
|
||||||
case e1000_pch_spt:
|
case e1000_pch_spt:
|
||||||
case e1000_pch_cnp:
|
case e1000_pch_cnp:
|
||||||
|
case e1000_pch_tgp:
|
||||||
|
case e1000_pch_adp:
|
||||||
|
case e1000_pch_mtp:
|
||||||
hw->fc.high_water = 0x5C20;
|
hw->fc.high_water = 0x5C20;
|
||||||
hw->fc.low_water = 0x5048;
|
hw->fc.low_water = 0x5048;
|
||||||
hw->fc.pause_time = 0x0650;
|
hw->fc.pause_time = 0x0650;
|
||||||
|
Loading…
Reference in New Issue
Block a user