Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/mca/mca_bus.c
Show First 20 Lines • Show All 450 Lines • ▼ Show 20 Lines | default: | ||||
break; | break; | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
mca_alloc_resource (device_t dev, device_t child, int type, int *rid, | mca_alloc_resource (device_t dev, 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 mca_device * m_dev = device_get_ivars(child); | struct mca_device * m_dev = device_get_ivars(child); | ||||
struct resource_list_entry * rle; | struct resource_list_entry * rle; | ||||
int isdefault; | int isdefault; | ||||
int passthrough; | int passthrough; | ||||
isdefault = (start == 0UL && end == ~0UL); | isdefault = (start == 0UL && end == ~0UL); | ||||
passthrough = (device_get_parent(child) != dev); | passthrough = (device_get_parent(child) != dev); | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |