Changeset View
Changeset View
Standalone View
Standalone View
isa/isa_common.c
Show First 20 Lines • Show All 956 Lines • ▼ Show 20 Lines | isa_set_resource(device_t dev, device_t child, int type, int rid, | ||||
resource_list_add(rl, type, rid, start, start + count - 1, count); | resource_list_add(rl, type, rid, start, start + count - 1, count); | ||||
return (0); | return (0); | ||||
} | } | ||||
static struct resource_list * | static struct resource_list * | ||||
isa_get_resource_list (device_t dev, device_t child) | isa_get_resource_list (device_t dev, device_t child) | ||||
{ | { | ||||
struct isa_device* idev = DEVTOISA(child); | |||||
struct resource_list *rl = &idev->id_resources; | |||||
if (!rl) | return (&DEVTOISA(child)->id_resources); | ||||
return (NULL); | |||||
return (rl); | |||||
} | } | ||||
static int | static int | ||||
isa_add_config(device_t dev, device_t child, int priority, | isa_add_config(device_t dev, device_t child, int priority, | ||||
struct isa_config *config) | struct isa_config *config) | ||||
{ | { | ||||
struct isa_device* idev = DEVTOISA(child); | struct isa_device* idev = DEVTOISA(child); | ||||
struct isa_config_entry *newice, *ice; | struct isa_config_entry *newice, *ice; | ||||
▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines |