Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpi_resource.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
acpi_sysres_attach(device_t dev) | acpi_sysres_attach(device_t dev) | ||||
{ | { | ||||
device_t bus; | device_t bus; | ||||
struct resource_list_entry *bus_rle, *dev_rle; | struct resource_list_entry *bus_rle, *dev_rle; | ||||
struct resource_list *bus_rl, *dev_rl; | struct resource_list *bus_rl, *dev_rl; | ||||
int done, type; | int done, type; | ||||
u_long start, end, count; | rman_res_t start, end, count; | ||||
/* | /* | ||||
* Loop through all current resources to see if the new one overlaps | * Loop through all current resources to see if the new one overlaps | ||||
* any existing ones. If so, grow the old one up and/or down | * any existing ones. If so, grow the old one up and/or down | ||||
* accordingly. Discard any that are wholly contained in the old. If | * accordingly. Discard any that are wholly contained in the old. If | ||||
* the resource is unique, add it to the parent. It will later go into | * the resource is unique, add it to the parent. It will later go into | ||||
* the rman pool. | * the rman pool. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |