diff options
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/net/r8168.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/drivers/net/r8168.c b/src/drivers/net/r8168.c index 18e2aff7c5..5606859489 100644 --- a/src/drivers/net/r8168.c +++ b/src/drivers/net/r8168.c @@ -17,6 +17,7 @@ #include <device/pci.h> #include <device/pci_ops.h> #include <device/pci_def.h> +#include <device/pci_ids.h> #include <delay.h> #include <fmap.h> #include <types.h> @@ -360,10 +361,16 @@ static struct device_operations r8168_ops = { #endif }; +static const unsigned short pci_device_ids[] = { + PCI_DEVICE_ID_REALTEK_8168, + PCI_DEVICE_ID_REALTEK_8125, + 0 +}; + static const struct pci_driver r8168_driver __pci_driver = { .ops = &r8168_ops, - .vendor = 0x10ec, - .device = 0x8168, + .vendor = PCI_VENDOR_ID_REALTEK, + .devices = pci_device_ids, }; struct chip_operations drivers_net_ops = { |