Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/mv/mv_localbus.c
Context not available. | |||||
static int localbus_print_child(device_t, device_t); | static int localbus_print_child(device_t, device_t); | ||||
static struct resource *localbus_alloc_resource(device_t, device_t, int, | static struct resource *localbus_alloc_resource(device_t, device_t, int, | ||||
int *, u_long, u_long, u_long, u_int); | int *, rman_res_t, rman_res_t, rman_res_t, u_int); | ||||
static struct resource_list *localbus_get_resource_list(device_t, device_t); | static struct resource_list *localbus_get_resource_list(device_t, device_t); | ||||
static ofw_bus_get_devinfo_t localbus_get_devinfo; | static ofw_bus_get_devinfo_t localbus_get_devinfo; | ||||
Context not available. | |||||
static struct resource * | static struct resource * | ||||
localbus_alloc_resource(device_t bus, device_t child, int type, int *rid, | localbus_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 localbus_devinfo *di; | struct localbus_devinfo *di; | ||||
struct resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
Context not available. | |||||
* Request for the default allocation with a given rid: use resource | * Request for the default allocation with a given rid: use resource | ||||
* list stored in the local device info. | * list stored in the local device info. | ||||
*/ | */ | ||||
if ((start == 0UL) && (end == ~0UL)) { | if ((start == 0) && (end == ~0)) { | ||||
if ((di = device_get_ivars(child)) == NULL) | if ((di = device_get_ivars(child)) == NULL) | ||||
return (NULL); | return (NULL); | ||||
Context not available. |