Changeset View
Changeset View
Standalone View
Standalone View
sys/pc98/pc98/canbus.c
Context not available. | |||||
static int canbus_print_child(device_t, device_t); | static int canbus_print_child(device_t, device_t); | ||||
static device_t canbus_add_child(device_t, u_int, const char *, int); | static device_t canbus_add_child(device_t, u_int, const char *, int); | ||||
static struct resource * canbus_alloc_resource( | static struct resource * canbus_alloc_resource( | ||||
device_t, device_t, int, int *, u_long, u_long, u_long, u_int); | device_t, device_t, int, int *, rman_res_t, rman_res_t, rman_res_t, u_int); | ||||
static int canbus_activate_resource( | static int canbus_activate_resource( | ||||
device_t, device_t, int, int, struct resource *); | device_t, device_t, int, int, struct resource *); | ||||
static int canbus_deactivate_resource( | static int canbus_deactivate_resource( | ||||
Context not available. | |||||
static int canbus_release_resource( | static int canbus_release_resource( | ||||
device_t, device_t, int, int, struct resource *); | device_t, device_t, int, int, struct resource *); | ||||
static int canbus_set_resource ( | static int canbus_set_resource ( | ||||
device_t, device_t, int, int, u_long, u_long); | device_t, device_t, int, int, rman_res_t, rman_res_t); | ||||
static void canbus_delete_resource(device_t, device_t, int, int); | static void canbus_delete_resource(device_t, device_t, int, int); | ||||
/* canbus local function */ | /* canbus local function */ | ||||
Context not available. | |||||
static struct resource * | static struct resource * | ||||
canbus_alloc_resource(device_t dev, device_t child, int type, | canbus_alloc_resource(device_t dev, device_t child, int type, | ||||
int *rid, u_long start, u_long end, u_long count, u_int flags) | int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) | ||||
{ | { | ||||
return (BUS_ALLOC_RESOURCE(device_get_parent(dev), | return (BUS_ALLOC_RESOURCE(device_get_parent(dev), | ||||
child, type, rid, start, end, count, flags)); | child, type, rid, start, end, count, flags)); | ||||
Context not available. | |||||
static int | static int | ||||
canbus_set_resource ( | canbus_set_resource ( | ||||
device_t dev, device_t child, int type, int rid, u_long start, u_long count) | device_t dev, device_t child, int type, int rid, rman_res_t start, | ||||
rman_res_t count) | |||||
{ | { | ||||
struct canbus_device *cbdev = | struct canbus_device *cbdev = | ||||
(struct canbus_device *)device_get_ivars(child); | (struct canbus_device *)device_get_ivars(child); | ||||
Context not available. |