Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/nexus.c
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
static struct rman mem_rman; | static struct rman mem_rman; | ||||
static int nexus_probe(device_t); | static int nexus_probe(device_t); | ||||
static int nexus_attach(device_t); | static int nexus_attach(device_t); | ||||
static int nexus_print_child(device_t, device_t); | static int nexus_print_child(device_t, device_t); | ||||
static device_t nexus_add_child(device_t, u_int, const char *, int); | static device_t nexus_add_child(device_t, u_int, const char *, int); | ||||
static struct resource *nexus_alloc_resource(device_t, device_t, int, int *, | static struct resource *nexus_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 nexus_activate_resource(device_t, device_t, int, int, | static int nexus_activate_resource(device_t, device_t, int, int, | ||||
struct resource *); | struct resource *); | ||||
#ifdef ARM_INTRNG | #ifdef ARM_INTRNG | ||||
#ifdef SMP | #ifdef SMP | ||||
static int nexus_bind_intr(device_t, device_t, struct resource *, int); | static int nexus_bind_intr(device_t, device_t, struct resource *, int); | ||||
#endif | #endif | ||||
#endif | #endif | ||||
static int nexus_config_intr(device_t dev, int irq, enum intr_trigger trig, | static int nexus_config_intr(device_t dev, int irq, enum intr_trigger trig, | ||||
▲ Show 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Allocate a resource on behalf of child. NB: child is usually going to be a | * Allocate a resource on behalf of child. NB: child is usually going to be a | ||||
* child of one of our descendants, not a direct child of nexus0. | * child of one of our descendants, not a direct child of nexus0. | ||||
* (Exceptions include footbridge.) | * (Exceptions include footbridge.) | ||||
*/ | */ | ||||
static struct resource * | static struct resource * | ||||
nexus_alloc_resource(device_t bus, device_t child, int type, int *rid, | nexus_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 resource *rv; | struct resource *rv; | ||||
struct rman *rm; | struct rman *rm; | ||||
int needactivate = flags & RF_ACTIVE; | int needactivate = flags & RF_ACTIVE; | ||||
flags &= ~RF_ACTIVE; | flags &= ~RF_ACTIVE; | ||||
switch (type) { | switch (type) { | ||||
▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines |