Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ral/if_ral_pci.c
Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Lines | static driver_t ral_pci_driver = { | ||||
"ral", | "ral", | ||||
ral_pci_methods, | ral_pci_methods, | ||||
sizeof (struct ral_pci_softc) | sizeof (struct ral_pci_softc) | ||||
}; | }; | ||||
static devclass_t ral_devclass; | static devclass_t ral_devclass; | ||||
DRIVER_MODULE(ral, pci, ral_pci_driver, ral_devclass, NULL, NULL); | DRIVER_MODULE(ral, pci, ral_pci_driver, ral_devclass, NULL, NULL); | ||||
MODULE_PNP_INFO("U16:vendor; U16:device; D:#", pci, ral, ral_pci_ids, | |||||
sizeof(ral_pci_ids[0]), nitems(ral_pci_ids) - 1); | |||||
static int | static int | ||||
ral_pci_probe(device_t dev) | ral_pci_probe(device_t dev) | ||||
{ | { | ||||
const struct ral_pci_ident *ident; | const struct ral_pci_ident *ident; | ||||
for (ident = ral_pci_ids; ident->name != NULL; ident++) { | for (ident = ral_pci_ids; ident->name != NULL; ident++) { | ||||
if (pci_get_vendor(dev) == ident->vendor && | if (pci_get_vendor(dev) == ident->vendor && | ||||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |