Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/beri/beri_simplebus.c
Context not available. | |||||
static int simplebus_activate_resource(device_t, device_t, int, int, | static int simplebus_activate_resource(device_t, device_t, int, int, | ||||
struct resource *); | struct resource *); | ||||
static struct resource *simplebus_alloc_resource(device_t, device_t, int, | static struct resource *simplebus_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 int simplebus_deactivate_resource(device_t, device_t, int, int, | static int simplebus_deactivate_resource(device_t, device_t, int, int, | ||||
struct resource *); | struct resource *); | ||||
static int simplebus_release_resource(device_t, device_t, int, int, | static int simplebus_release_resource(device_t, device_t, int, int, | ||||
Context not available. | |||||
static struct resource * | static struct resource * | ||||
simplebus_alloc_resource(device_t bus, device_t child, int type, int *rid, | simplebus_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) | ||||
{ | { | ||||
device_t ic; | device_t ic; | ||||
struct simplebus_devinfo *di; | struct simplebus_devinfo *di; | ||||
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. |