Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/cavium/octopci.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
static void octopci_identify(driver_t *, device_t); | static void octopci_identify(driver_t *, device_t); | ||||
static int octopci_probe(device_t); | static int octopci_probe(device_t); | ||||
static int octopci_attach(device_t); | static int octopci_attach(device_t); | ||||
static int octopci_read_ivar(device_t, device_t, int, | static int octopci_read_ivar(device_t, device_t, int, | ||||
uintptr_t *); | uintptr_t *); | ||||
static struct resource *octopci_alloc_resource(device_t, device_t, int, int *, | static struct resource *octopci_alloc_resource(device_t, device_t, int, int *, | ||||
u_long, u_long, u_long, u_int); | rman_res_t, rman_res_t, | ||||
rman_res_t, u_int); | |||||
static int octopci_activate_resource(device_t, device_t, int, int, | static int octopci_activate_resource(device_t, device_t, int, int, | ||||
struct resource *); | struct resource *); | ||||
static int octopci_maxslots(device_t); | static int octopci_maxslots(device_t); | ||||
static uint32_t octopci_read_config(device_t, u_int, u_int, u_int, u_int, int); | static uint32_t octopci_read_config(device_t, u_int, u_int, u_int, u_int, int); | ||||
static void octopci_write_config(device_t, u_int, u_int, u_int, u_int, | static void octopci_write_config(device_t, u_int, u_int, u_int, u_int, | ||||
uint32_t, int); | uint32_t, int); | ||||
static int octopci_route_interrupt(device_t, device_t, int); | static int octopci_route_interrupt(device_t, device_t, int); | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
return (0); | return (0); | ||||
} | } | ||||
return (ENOENT); | return (ENOENT); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
octopci_alloc_resource(device_t bus, device_t child, int type, int *rid, | octopci_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 octopci_softc *sc; | struct octopci_softc *sc; | ||||
struct resource *res; | struct resource *res; | ||||
struct rman *rm; | struct rman *rm; | ||||
int error; | int error; | ||||
sc = device_get_softc(bus); | sc = device_get_softc(bus); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |