summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/e1000.c
diff options
context:
space:
mode:
authorMichael Brown2005-04-13 01:05:00 +0200
committerMichael Brown2005-04-13 01:05:00 +0200
commit4e3e389200c08054aed55eb58fa8c0b8a9c5331c (patch)
treea428a83798ef188a790558ecb40ae0b0c10e0cd2 /src/drivers/net/e1000.c
parentUse dev's print_info method to print standardised information about (diff)
downloadipxe-4e3e389200c08054aed55eb58fa8c0b8a9c5331c.tar.gz
ipxe-4e3e389200c08054aed55eb58fa8c0b8a9c5331c.tar.xz
ipxe-4e3e389200c08054aed55eb58fa8c0b8a9c5331c.zip
Auto-updated using
perl -pi -0777 -e 's/static struct pci_driver (\w+) __pci_driver = {.*\.name\s*=\s*(\"\S+\").*\.probe\s*=\s*(\w+).*\.ids\s*=\s*(\w+).*\.class\s*=\s*(\w+).*?};/static struct pci_driver $1 =\n\tPCI_DRIVER ( $2, $4, $5 );\n\nBOOT_DRIVER ( $2, $3 );/ms' *.c perl -pi -e 's/(PCI_DRIVER \(.*, )0 \);/${1}PCI_NO_CLASS );/' *.c
Diffstat (limited to 'src/drivers/net/e1000.c')
-rw-r--r--src/drivers/net/e1000.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/drivers/net/e1000.c b/src/drivers/net/e1000.c
index 7c572656..4def9e4c 100644
--- a/src/drivers/net/e1000.c
+++ b/src/drivers/net/e1000.c
@@ -3703,11 +3703,7 @@ PCI_ROM(0x8086, 0x107a, "e1000-82546gb-fiber", "Intel EtherExpressPro1000 8
PCI_ROM(0x8086, 0x107b, "e1000-82546gb-serdes", "Intel EtherExpressPro1000 82546GB SERDES"),
};
-static struct pci_driver e1000_driver __pci_driver = {
- .type = NIC_DRIVER,
- .name = "E1000",
- .probe = e1000_probe,
- .ids = e1000_nics,
- .id_count = sizeof(e1000_nics)/sizeof(e1000_nics[0]),
- .class = 0,
-};
+static struct pci_driver e1000_driver =
+ PCI_DRIVER ( "E1000", e1000_nics, PCI_NO_CLASS );
+
+BOOT_DRIVER ( "E1000", e1000_probe );