Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/atheros/ar724x_pci.c
Show First 20 Lines • Show All 459 Lines • ▼ Show 20 Lines | case PCIB_IVAR_BUS: | ||||
return (0); | return (0); | ||||
} | } | ||||
return (ENOENT); | return (ENOENT); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
ar724x_pci_alloc_resource(device_t bus, device_t child, int type, int *rid, | ar724x_pci_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 ar71xx_pci_softc *sc = device_get_softc(bus); | struct ar71xx_pci_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_IRQ: | case SYS_RES_IRQ: | ||||
rm = &sc->sc_irq_rman; | rm = &sc->sc_irq_rman; | ||||
▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines |