[OpenBIOS] [PATCH 6/6] pci: add Intel e1000 network device to PCI database
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Wed Sep 6 21:21:41 CEST 2017
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
drivers/pci_database.c | 6 ++++++
include/drivers/pci.h | 1 +
2 files changed, 7 insertions(+)
diff --git a/drivers/pci_database.c b/drivers/pci_database.c
index 432a63d..999b42b 100644
--- a/drivers/pci_database.c
+++ b/drivers/pci_database.c
@@ -147,6 +147,12 @@ static const pci_dev_t eth_devices[] = {
sunhme_config_cb, "ethernet",
},
{
+ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_E1000,
+ NULL, "e1000", NULL, "pci1086,100e\0",
+ 0, 0, 0,
+ eth_config_cb, "ethernet",
+ },
+ {
/* Virtio-network controller */
PCI_VENDOR_ID_REDHAT_QUMRANET, PCI_DEVICE_ID_VIRTIO_NET,
NULL, "virtio-net", NULL,
diff --git a/include/drivers/pci.h b/include/drivers/pci.h
index 0fd6e39..f0e386d 100644
--- a/include/drivers/pci.h
+++ b/include/drivers/pci.h
@@ -230,6 +230,7 @@ extern const pci_arch_t *arch;
#define PCI_VENDOR_ID_INTEL 0x8086
#define PCI_DEVICE_ID_INTEL_82378 0x0484
+#define PCI_DEVICE_ID_INTEL_E1000 0x100e
#define PCI_DEVICE_ID_INTEL_82441 0x1237
#endif /* _H_PCI */
--
1.7.10.4
More information about the OpenBIOS
mailing list