Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/rt305x/rt305x_gpio.c
Show First 20 Lines • Show All 540 Lines • ▼ Show 20 Lines | rt305x_gpio_detach(device_t dev) | ||||
mtx_destroy(&sc->gpio_mtx); | mtx_destroy(&sc->gpio_mtx); | ||||
return(0); | return(0); | ||||
} | } | ||||
#ifdef notyet | #ifdef notyet | ||||
static struct resource * | static struct resource * | ||||
rt305x_gpio_alloc_resource(device_t bus, device_t child, int type, int *rid, | rt305x_gpio_alloc_resource(device_t bus, device_t child, int type, int *rid, | ||||
u_long start, u_long end, u_long count, u_int flags) | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) | ||||
{ | { | ||||
struct obio_softc *sc = device_get_softc(bus); | struct obio_softc *sc = device_get_softc(bus); | ||||
struct resource *rv; | struct resource *rv; | ||||
struct rman *rm; | struct rman *rm; | ||||
switch (type) { | switch (type) { | ||||
case SYS_RES_GPIO: | case SYS_RES_GPIO: | ||||
rm = &sc->gpio_rman; | rm = &sc->gpio_rman; | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |