Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/src/linux_pci.c
Show First 20 Lines • Show All 355 Lines • ▼ Show 20 Lines | linux_pci_probe(device_t dev) | ||||
const struct pci_device_id *id; | const struct pci_device_id *id; | ||||
struct pci_driver *pdrv; | struct pci_driver *pdrv; | ||||
if ((pdrv = linux_pci_find(dev, &id)) == NULL) | if ((pdrv = linux_pci_find(dev, &id)) == NULL) | ||||
return (ENXIO); | return (ENXIO); | ||||
if (device_get_driver(dev) != &pdrv->bsddriver) | if (device_get_driver(dev) != &pdrv->bsddriver) | ||||
return (ENXIO); | return (ENXIO); | ||||
device_set_desc(dev, pdrv->name); | device_set_desc(dev, pdrv->name); | ||||
return (0); | return (BUS_PROBE_DEFAULT); | ||||
} | } | ||||
static int | static int | ||||
linux_pci_attach(device_t dev) | linux_pci_attach(device_t dev) | ||||
{ | { | ||||
const struct pci_device_id *id; | const struct pci_device_id *id; | ||||
struct pci_driver *pdrv; | struct pci_driver *pdrv; | ||||
struct pci_dev *pdev; | struct pci_dev *pdev; | ||||
▲ Show 20 Lines • Show All 950 Lines • Show Last 20 Lines |