Skip to content

Commit

Permalink
net/igc: Support Intel I226V.
Browse files Browse the repository at this point in the history
This commit supported Intel I226V.

Signed-off-by: ouyangxiangzhen <[email protected]>
  • Loading branch information
Fix-Point authored and anchao committed Nov 5, 2024
1 parent f6a72ad commit 5450b50
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,10 @@ config NET_IGC_I225LM
bool "Intel I225LM"
default n

config NET_IGC_I226V
bool "Intel I226V"
default n

endif # NET_IGC

endif # NETDEVICES
16 changes: 16 additions & 0 deletions drivers/net/igc.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,29 @@ static const struct igc_type_s g_igc_i225lm =
};
#endif

#ifdef CONFIG_NET_IGC_I226V
/* Intel I226V */

static const struct igc_type_s g_igc_i226v =
{
.desc_align = 128,
.mta_regs = 128
};
#endif

static const struct pci_device_id_s g_igc_id_table[] =
{
#ifdef CONFIG_NET_IGC_I225LM
{
PCI_DEVICE(0x8086, 0x15f2),
.driver_data = (uintptr_t)&g_igc_i225lm
},
#endif
#ifdef CONFIG_NET_IGC_I226V
{
PCI_DEVICE(0x8086, 0x125c),
.driver_data = (uintptr_t)&g_igc_i226v
},
#endif
{ }
};
Expand Down

0 comments on commit 5450b50

Please sign in to comment.