Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/eisa/eisaconf.c
Show First 20 Lines • Show All 346 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
eisa_write_ivar(device_t dev, device_t child, int which, uintptr_t value) | eisa_write_ivar(device_t dev, device_t child, int which, uintptr_t value) | ||||
{ | { | ||||
return (EINVAL); | return (EINVAL); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
eisa_alloc_resource(device_t dev, device_t child, int type, int *rid, | eisa_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) | ||||
{ | { | ||||
int isdefault; | int isdefault; | ||||
struct eisa_device *e_dev = device_get_ivars(child); | struct eisa_device *e_dev = device_get_ivars(child); | ||||
struct resource *rv, **rvp = 0; | struct resource *rv, **rvp = 0; | ||||
isdefault = (device_get_parent(child) == dev && | isdefault = (device_get_parent(child) == dev && | ||||
start == 0UL && end == ~0UL && count == 1); | start == 0UL && end == ~0UL && count == 1); | ||||
▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines |