Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ce/if_ce.c
Show First 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static int ce_probe (device_t dev) | static int ce_probe (device_t dev) | ||||
{ | { | ||||
const struct pci_device_table *ced; | const struct pci_device_table *ced; | ||||
ced = PCI_MATCH(dev, ce_devs); | ced = PCI_MATCH(dev, ce_devs); | ||||
if (ced == NULL) | if (ced == NULL) | ||||
return ENXIO; | return (ENXIO); | ||||
device_set_desc(dev, ced->description); | device_set_desc(dev, ced->descr); | ||||
return BUS_PROBE_DEFAULT; | return (BUS_PROBE_DEFAULT); | ||||
} | } | ||||
static void ce_timeout (void *arg) | static void ce_timeout (void *arg) | ||||
{ | { | ||||
drv_t *d; | drv_t *d; | ||||
int s, i, k; | int s, i, k; | ||||
for (i = 0; i < NBRD; ++i) { | for (i = 0; i < NBRD; ++i) { | ||||
▲ Show 20 Lines • Show All 2,295 Lines • ▼ Show 20 Lines | |||||
#if __FreeBSD_version >= 500000 | #if __FreeBSD_version >= 500000 | ||||
#ifdef NETGRAPH | #ifdef NETGRAPH | ||||
MODULE_DEPEND (ng_ce, netgraph, NG_ABI_VERSION, NG_ABI_VERSION, NG_ABI_VERSION); | MODULE_DEPEND (ng_ce, netgraph, NG_ABI_VERSION, NG_ABI_VERSION, NG_ABI_VERSION); | ||||
#else | #else | ||||
MODULE_DEPEND (ce, sppp, 1, 1, 1); | MODULE_DEPEND (ce, sppp, 1, 1, 1); | ||||
#endif | #endif | ||||
#ifdef KLD_MODULE | #ifdef KLD_MODULE | ||||
DRIVER_MODULE (cemod, pci, ce_driver, ce_devclass, ce_modevent, NULL); | DRIVER_MODULE (cemod, pci, ce_driver, ce_devclass, ce_modevent, NULL); | ||||
MODULE_PNP_INFO("U16:vendor; U16:device;D:#", pci, cemod, ce_devs, | PCI_PNP_INFO(ce_devs); | ||||
sizeof(ce_devs[0]), nitems(ce_devs)); | |||||
#else | #else | ||||
DRIVER_MODULE (ce, pci, ce_driver, ce_devclass, ce_modevent, NULL); | DRIVER_MODULE (ce, pci, ce_driver, ce_devclass, ce_modevent, NULL); | ||||
MODULE_PNP_INFO("U16:vendor; U16:device;D:#", pci, ce, ce_devs, | PCI_PNP_INFO(ce_devs); | ||||
sizeof(ce_devs[0]), nitems(ce_devs)); | |||||
#endif | #endif | ||||
#endif /* NPCI */ | #endif /* NPCI */ |