Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/puc/puc_pccard.c
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | puc_pccard_probe(device_t dev) | ||||
if (error) | if (error) | ||||
return(error); | return(error); | ||||
if (!strcmp(vendor, "PCMCIA") && !strcmp(product, "RS-COM 2P")) | if (!strcmp(vendor, "PCMCIA") && !strcmp(product, "RS-COM 2P")) | ||||
return (puc_bfe_probe(dev, &puc_pccard_rscom)); | return (puc_bfe_probe(dev, &puc_pccard_rscom)); | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
static int | |||||
puc_pccard_attach(device_t dev) | |||||
{ | |||||
int error; | |||||
error = puc_bfe_attach(dev); | |||||
if (error == 0) | |||||
gone_in_dev(dev, 13, "pccard removed"); | |||||
return (error); | |||||
} | |||||
static device_method_t puc_pccard_methods[] = { | static device_method_t puc_pccard_methods[] = { | ||||
/* Device interface */ | /* Device interface */ | ||||
DEVMETHOD(device_probe, puc_pccard_probe), | DEVMETHOD(device_probe, puc_pccard_probe), | ||||
DEVMETHOD(device_attach, puc_bfe_attach), | DEVMETHOD(device_attach, puc_pccard_attach), | ||||
DEVMETHOD(device_detach, puc_bfe_detach), | DEVMETHOD(device_detach, puc_bfe_detach), | ||||
DEVMETHOD(bus_alloc_resource, puc_bus_alloc_resource), | DEVMETHOD(bus_alloc_resource, puc_bus_alloc_resource), | ||||
DEVMETHOD(bus_release_resource, puc_bus_release_resource), | DEVMETHOD(bus_release_resource, puc_bus_release_resource), | ||||
DEVMETHOD(bus_get_resource, puc_bus_get_resource), | DEVMETHOD(bus_get_resource, puc_bus_get_resource), | ||||
DEVMETHOD(bus_read_ivar, puc_bus_read_ivar), | DEVMETHOD(bus_read_ivar, puc_bus_read_ivar), | ||||
DEVMETHOD(bus_setup_intr, puc_bus_setup_intr), | DEVMETHOD(bus_setup_intr, puc_bus_setup_intr), | ||||
DEVMETHOD(bus_teardown_intr, puc_bus_teardown_intr), | DEVMETHOD(bus_teardown_intr, puc_bus_teardown_intr), | ||||
Show All 14 Lines |