Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/idt/idtpci.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
sc->sc_busno = result; | sc->sc_busno = result; | ||||
return (0); | return (0); | ||||
} | } | ||||
return (ENOENT); | return (ENOENT); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
idtpci_alloc_resource(device_t bus, device_t child, int type, int *rid, | idtpci_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 idtpci_softc *sc = device_get_softc(bus); | struct idtpci_softc *sc = device_get_softc(bus); | ||||
struct resource *rv = NULL; | struct resource *rv = NULL; | ||||
struct rman *rm1, *rm2; | struct rman *rm1, *rm2; | ||||
switch (type) { | switch (type) { | ||||
case SYS_RES_IRQ: | case SYS_RES_IRQ: | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |