iPXE
rtl8180.c
Go to the documentation of this file.
1 /* Realtek 8180 card: rtl818x driver + rtl8180 RF modules */
2 
3 FILE_LICENCE(GPL2_OR_LATER);
4 
5 #include <ipxe/pci.h>
6 #include "rtl818x.h"
7 
8 static struct pci_device_id rtl8180_nics[] = {
9  PCI_ROM(0x10ec, 0x8180, "rtl8180", "Realtek 8180", 0),
10  PCI_ROM(0x1799, 0x6001, "f5d6001", "Belkin F5D6001", 0),
11  PCI_ROM(0x1799, 0x6020, "f5d6020", "Belkin F5D6020", 0),
12  PCI_ROM(0x1186, 0x3300, "dwl510", "D-Link DWL-510", 0),
13 };
14 
15 struct pci_driver rtl8180_driver __pci_driver = {
16  .ids = rtl8180_nics,
17  .id_count = sizeof(rtl8180_nics) / sizeof(rtl8180_nics[0]),
18  .probe = rtl818x_probe,
19  .remove = rtl818x_remove,
20 };
21 
22 REQUIRING_SYMBOL(rtl8180_driver);
23 REQUIRE_OBJECT(rtl8180_grf5101);
24 REQUIRE_OBJECT(rtl8180_max2820);
25 REQUIRE_OBJECT(rtl8180_sa2400);
A PCI driver.
Definition: pci.h:224
struct pci_device_id * ids
PCI ID table.
Definition: pci.h:226
FILE_LICENCE(GPL2_OR_LATER)
struct pci_driver rtl8180_driver __pci_driver
Definition: rtl8180.c:15
PCI bus.
A PCI device ID list entry.
Definition: pci.h:151
REQUIRING_SYMBOL(rtl8180_driver)
static struct pci_device_id rtl8180_nics[]
Definition: rtl8180.c:8
void rtl818x_remove(struct pci_device *pdev)
Definition: rtl818x.c:827
REQUIRE_OBJECT(rtl8180_grf5101)
#define PCI_ROM(_vendor, _device, _name, _description, _data)
Definition: pci.h:283
int rtl818x_probe(struct pci_device *pdev)
Definition: rtl818x.c:652