Commit 031d7952 authored by Williams, Mitch A's avatar Williams, Mitch A Committed by Jeff Kirsher

igbvf: add support for i350 VF device

Add support to igbvf for the new i350 virtual function device.
Signed-off-by: default avatarMitch Williams <mitch.a.williams@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 0e512bfc
...@@ -97,6 +97,7 @@ struct igbvf_adapter; ...@@ -97,6 +97,7 @@ struct igbvf_adapter;
enum igbvf_boards { enum igbvf_boards {
board_vf, board_vf,
board_i350_vf,
}; };
struct igbvf_queue_stats { struct igbvf_queue_stats {
......
...@@ -64,8 +64,16 @@ static struct igbvf_info igbvf_vf_info = { ...@@ -64,8 +64,16 @@ static struct igbvf_info igbvf_vf_info = {
.init_ops = e1000_init_function_pointers_vf, .init_ops = e1000_init_function_pointers_vf,
}; };
static struct igbvf_info igbvf_i350_vf_info = {
.mac = e1000_vfadapt_i350,
.flags = 0,
.pba = 10,
.init_ops = e1000_init_function_pointers_vf,
};
static const struct igbvf_info *igbvf_info_tbl[] = { static const struct igbvf_info *igbvf_info_tbl[] = {
[board_vf] = &igbvf_vf_info, [board_vf] = &igbvf_vf_info,
[board_i350_vf] = &igbvf_i350_vf_info,
}; };
/** /**
...@@ -2865,6 +2873,7 @@ static struct pci_error_handlers igbvf_err_handler = { ...@@ -2865,6 +2873,7 @@ static struct pci_error_handlers igbvf_err_handler = {
static DEFINE_PCI_DEVICE_TABLE(igbvf_pci_tbl) = { static DEFINE_PCI_DEVICE_TABLE(igbvf_pci_tbl) = {
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_82576_VF), board_vf }, { PCI_VDEVICE(INTEL, E1000_DEV_ID_82576_VF), board_vf },
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_I350_VF), board_i350_vf },
{ } /* terminate list */ { } /* terminate list */
}; };
MODULE_DEVICE_TABLE(pci, igbvf_pci_tbl); MODULE_DEVICE_TABLE(pci, igbvf_pci_tbl);
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
struct e1000_hw; struct e1000_hw;
#define E1000_DEV_ID_82576_VF 0x10CA #define E1000_DEV_ID_82576_VF 0x10CA
#define E1000_DEV_ID_I350_VF 0x1520
#define E1000_REVISION_0 0 #define E1000_REVISION_0 0
#define E1000_REVISION_1 1 #define E1000_REVISION_1 1
#define E1000_REVISION_2 2 #define E1000_REVISION_2 2
...@@ -133,6 +134,7 @@ struct e1000_adv_tx_context_desc { ...@@ -133,6 +134,7 @@ struct e1000_adv_tx_context_desc {
enum e1000_mac_type { enum e1000_mac_type {
e1000_undefined = 0, e1000_undefined = 0,
e1000_vfadapt, e1000_vfadapt,
e1000_vfadapt_i350,
e1000_num_macs /* List is 1-based, so subtract 1 for true count. */ e1000_num_macs /* List is 1-based, so subtract 1 for true count. */
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment