[OpenBIOS] [PATCH 03/11] pci: add AMD PCNET information to PCI database
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sat May 26 21:29:48 CEST 2018
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
drivers/pci_database.c | 6 ++++++
include/drivers/pci.h | 3 +++
2 files changed, 9 insertions(+)
diff --git a/drivers/pci_database.c b/drivers/pci_database.c
index 8da8b70..43e59e0 100644
--- a/drivers/pci_database.c
+++ b/drivers/pci_database.c
@@ -161,6 +161,12 @@ static const pci_dev_t eth_devices[] = {
NULL, NULL,
},
{
+ PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE,
+ NULL, "pcnet", NULL, "pci1022,2000\0",
+ 0, 0, 0,
+ eth_config_cb, "ethernet",
+ },
+ {
0xFFFF, 0xFFFF,
NULL, NULL, NULL, NULL,
-1, -1, -1,
diff --git a/include/drivers/pci.h b/include/drivers/pci.h
index f0e386d..b70eb3a 100644
--- a/include/drivers/pci.h
+++ b/include/drivers/pci.h
@@ -192,6 +192,9 @@ extern const pci_arch_t *arch;
#define PCI_DEVICE_ID_IBM_OPENPIC 0x0002
#define PCI_DEVICE_ID_IBM_OPENPIC2 0xffff
+#define PCI_VENDOR_ID_AMD 0x1022
+#define PCI_DEVICE_ID_AMD_LANCE 0x2000
+
#define PCI_VENDOR_ID_MOTOROLA 0x1057
#define PCI_DEVICE_ID_MOTOROLA_MPC106 0x0002
#define PCI_DEVICE_ID_MOTOROLA_RAVEN 0x4801
--
2.11.0
More information about the OpenBIOS
mailing list