Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sparc64/sbus/sbus.c
Show First 20 Lines • Show All 704 Lines • ▼ Show 20 Lines | if (INTIGN(vec) != sc->sc_ign || intr_vectors[vec].iv_ic != &sbus_ic) { | ||||
return (EINVAL); | return (EINVAL); | ||||
} | } | ||||
return (bus_generic_setup_intr(dev, child, ires, flags, filt, intr, | return (bus_generic_setup_intr(dev, child, ires, flags, filt, intr, | ||||
arg, cookiep)); | arg, cookiep)); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
sbus_alloc_resource(device_t bus, device_t child, int type, int *rid, | sbus_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 sbus_softc *sc; | struct sbus_softc *sc; | ||||
struct rman *rm; | struct rman *rm; | ||||
struct resource *rv; | struct resource *rv; | ||||
struct resource_list *rl; | struct resource_list *rl; | ||||
struct resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
device_t schild; | device_t schild; | ||||
bus_addr_t toffs; | bus_addr_t toffs; | ||||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | case SYS_RES_MEMORY: | ||||
/* FALLTHROUGH */ | /* FALLTHROUGH */ | ||||
default: | default: | ||||
return (EINVAL); | return (EINVAL); | ||||
} | } | ||||
} | } | ||||
static int | static int | ||||
sbus_adjust_resource(device_t bus, device_t child, int type, | sbus_adjust_resource(device_t bus, device_t child, int type, | ||||
struct resource *r, u_long start, u_long end) | struct resource *r, rman_res_t start, rman_res_t end) | ||||
{ | { | ||||
struct sbus_softc *sc; | struct sbus_softc *sc; | ||||
int i; | int i; | ||||
if (type == SYS_RES_MEMORY) { | if (type == SYS_RES_MEMORY) { | ||||
sc = device_get_softc(bus); | sc = device_get_softc(bus); | ||||
for (i = 0; i < sc->sc_nrange; i++) | for (i = 0; i < sc->sc_nrange; i++) | ||||
if (rman_is_region_manager(r, | if (rman_is_region_manager(r, | ||||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |