[OpenBIOS] [PATCH 3/5] pci: add PCI database entry for rtl8139 network card

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Wed Dec 30 17:44:19 CET 2015


This is taken from a patch submitted earlier by BALATON Zoltan <balaton at eik.bme.hu>.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
 openbios-devel/drivers/pci_database.c |    6 ++++++
 openbios-devel/include/drivers/pci.h  |    1 +
 2 files changed, 7 insertions(+)

diff --git a/openbios-devel/drivers/pci_database.c b/openbios-devel/drivers/pci_database.c
index 0070a78..9104c0b 100644
--- a/openbios-devel/drivers/pci_database.c
+++ b/openbios-devel/drivers/pci_database.c
@@ -129,6 +129,12 @@ static const pci_dev_t eth_devices[] = {
         NULL, "ethernet",
     },
     {
+        PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_RTL8139,
+        NULL, "RTL8139",   "RTL8139 PCI",  NULL,
+        0, 0, 0,
+        NULL, "ethernet",
+    },
+    {
         /* Virtio-network controller */
         PCI_VENDOR_ID_REDHAT_QUMRANET, PCI_DEVICE_ID_VIRTIO_NET,
         NULL, "virtio-net", NULL,
diff --git a/openbios-devel/include/drivers/pci.h b/openbios-devel/include/drivers/pci.h
index bee9183..d4d8757 100644
--- a/openbios-devel/include/drivers/pci.h
+++ b/openbios-devel/include/drivers/pci.h
@@ -203,6 +203,7 @@ extern const pci_arch_t *arch;
 
 #define PCI_VENDOR_ID_REALTEK            0x10ec
 #define PCI_DEVICE_ID_REALTEK_RTL8029    0x8029
+#define PCI_DEVICE_ID_REALTEK_RTL8139    0x8139
 
 #define PCI_VENDOR_ID_QEMU               0x1234
 #define PCI_DEVICE_ID_QEMU_VGA           0x1111
-- 
1.7.10.4




More information about the OpenBIOS mailing list