Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bhnd/bhnd_nexus.c
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | bhnd_nexus_deactivate_resource(device_t dev, device_t child, | ||||
if ((error = bus_deactivate_resource(child, type, rid, r->res))) | if ((error = bus_deactivate_resource(child, type, rid, r->res))) | ||||
return (error); | return (error); | ||||
r->direct = false; | r->direct = false; | ||||
return (0); | return (0); | ||||
} | } | ||||
static int | |||||
bhnd_nexus_get_intr_count(device_t dev, device_t child) | |||||
{ | |||||
// TODO: arch-specific interrupt handling. | |||||
return (0); | |||||
} | |||||
static device_method_t bhnd_nexus_methods[] = { | static device_method_t bhnd_nexus_methods[] = { | ||||
/* bhnd interface */ | /* bhnd interface */ | ||||
DEVMETHOD(bhnd_bus_activate_resource, bhnd_nexus_activate_resource), | DEVMETHOD(bhnd_bus_activate_resource, bhnd_nexus_activate_resource), | ||||
DEVMETHOD(bhnd_bus_deactivate_resource, bhnd_nexus_deactivate_resource), | DEVMETHOD(bhnd_bus_deactivate_resource, bhnd_nexus_deactivate_resource), | ||||
DEVMETHOD(bhnd_bus_is_hw_disabled, bhnd_nexus_is_hw_disabled), | DEVMETHOD(bhnd_bus_is_hw_disabled, bhnd_nexus_is_hw_disabled), | ||||
DEVMETHOD(bhnd_bus_get_attach_type, bhnd_nexus_get_attach_type), | DEVMETHOD(bhnd_bus_get_attach_type, bhnd_nexus_get_attach_type), | ||||
DEVMETHOD(bhnd_bus_get_intr_count, bhnd_nexus_get_intr_count), | |||||
DEVMETHOD_END | DEVMETHOD_END | ||||
}; | }; | ||||
DEFINE_CLASS_0(bhnd, bhnd_nexus_driver, bhnd_nexus_methods, | DEFINE_CLASS_0(bhnd, bhnd_nexus_driver, bhnd_nexus_methods, | ||||
sizeof(struct bhnd_softc)); | sizeof(struct bhnd_softc)); |