mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
pci: Remove igc produt config
to simplify the configuration since the driver could detect the device correctly Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Mateusz Szafoni
parent
775ff286a4
commit
d7209fabf4
@@ -205,7 +205,6 @@ static int igc_probe(FAR struct pci_device_s *dev);
|
||||
* Private Data
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_IGC_I225LM
|
||||
/* Intel I225LM */
|
||||
|
||||
static const struct igc_type_s g_igc_i225lm =
|
||||
@@ -213,32 +212,23 @@ static const struct igc_type_s g_igc_i225lm =
|
||||
.desc_align = 128,
|
||||
.mta_regs = 128
|
||||
};
|
||||
#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
|
||||
{ }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user