kernel - Add kabylake NIC PCI IDs
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 31 Aug 2017 20:21:57 +0000 (13:21 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 31 Aug 2017 20:21:57 +0000 (13:21 -0700)
* Add Kabylake NIC PCI ids.

E1000_DEV_ID_PCH_SPT_I219_LM3          0x15B9  /* LEWISBURG PCH */
E1000_DEV_ID_PCH_SPT_I219_LM4          0x15D7
E1000_DEV_ID_PCH_SPT_I219_V4           0x15D8
E1000_DEV_ID_PCH_SPT_I219_LM5          0x15E3
E1000_DEV_ID_PCH_SPT_I219_V5           0x15D6

Taken-from: FreeBSD

sys/dev/netif/em/if_em.c
sys/dev/netif/emx/if_emx.c
sys/dev/netif/ig_hal/e1000_api.c
sys/dev/netif/ig_hal/e1000_hw.h

index 9fa2643..c5781ed 100644 (file)
@@ -246,6 +246,11 @@ static const struct em_vendor_info em_vendor_info_array[] = {
        EM_EMX_DEVICE(PCH_SPT_I219_V),
        EM_EMX_DEVICE(PCH_SPT_I219_LM2),
        EM_EMX_DEVICE(PCH_SPT_I219_V2),
+       EM_EMX_DEVICE(PCH_SPT_I219_LM3),
+       EM_EMX_DEVICE(PCH_SPT_I219_LM4),
+       EM_EMX_DEVICE(PCH_SPT_I219_V4),
+       EM_EMX_DEVICE(PCH_SPT_I219_LM5),
+       EM_EMX_DEVICE(PCH_SPT_I219_V5),
 
        /* required last entry */
        EM_DEVICE_NULL
index 777d203..3e0bd11 100644 (file)
@@ -175,6 +175,11 @@ static const struct emx_device {
        EMX_DEVICE(PCH_SPT_I219_V),
        EMX_DEVICE(PCH_SPT_I219_LM2),
        EMX_DEVICE(PCH_SPT_I219_V2),
+       EMX_DEVICE(PCH_SPT_I219_LM3),
+       EMX_DEVICE(PCH_SPT_I219_LM4),
+       EMX_DEVICE(PCH_SPT_I219_V4),
+       EMX_DEVICE(PCH_SPT_I219_LM5),
+       EMX_DEVICE(PCH_SPT_I219_V5),
 
        /* required last entry */
        EMX_DEVICE_NULL
index 0b33d2c..254691d 100644 (file)
@@ -306,6 +306,11 @@ s32 e1000_set_mac_type(struct e1000_hw *hw)
        case E1000_DEV_ID_PCH_SPT_I219_V:
        case E1000_DEV_ID_PCH_SPT_I219_LM2:
        case E1000_DEV_ID_PCH_SPT_I219_V2:
+       case E1000_DEV_ID_PCH_SPT_I219_LM3:
+       case E1000_DEV_ID_PCH_SPT_I219_LM4:
+       case E1000_DEV_ID_PCH_SPT_I219_V4:
+       case E1000_DEV_ID_PCH_SPT_I219_LM5:
+       case E1000_DEV_ID_PCH_SPT_I219_V5:
                mac->type = e1000_pch_spt;
                break;
        case E1000_DEV_ID_82575EB_COPPER:
index 61a332d..9c19d05 100644 (file)
@@ -146,6 +146,11 @@ struct e1000_hw;
 #define E1000_DEV_ID_PCH_SPT_I219_V            0x1570
 #define E1000_DEV_ID_PCH_SPT_I219_LM2          0x15B7
 #define E1000_DEV_ID_PCH_SPT_I219_V2           0x15B8
+#define E1000_DEV_ID_PCH_SPT_I219_LM3          0x15B9  /* LEWISBURG PCH */
+#define E1000_DEV_ID_PCH_SPT_I219_LM4          0x15D7
+#define E1000_DEV_ID_PCH_SPT_I219_V4           0x15D8
+#define E1000_DEV_ID_PCH_SPT_I219_LM5          0x15E3
+#define E1000_DEV_ID_PCH_SPT_I219_V5           0x15D6
 
 #define E1000_DEV_ID_82576                     0x10C9
 #define E1000_DEV_ID_82576_FIBER               0x10E6