Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpi.c
| Show First 20 Lines • Show All 1,574 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (acpi_is_resource_managed(bus, r)) | if (acpi_is_resource_managed(bus, r)) | ||||
| return (rman_adjust_resource(r, start, end)); | return (rman_adjust_resource(r, start, end)); | ||||
| return (bus_generic_adjust_resource(bus, child, r, start, end)); | return (bus_generic_adjust_resource(bus, child, r, start, end)); | ||||
| } | } | ||||
| static int | static int | ||||
| acpi_release_resource(device_t bus, device_t child, int type, int rid, | acpi_release_resource(device_t bus, device_t child, struct resource *r) | ||||
| struct resource *r) | |||||
| { | { | ||||
| /* | /* | ||||
| * If this resource belongs to one of our internal managers, | * If this resource belongs to one of our internal managers, | ||||
| * deactivate it and release it to the local pool. | * deactivate it and release it to the local pool. | ||||
| */ | */ | ||||
| if (acpi_is_resource_managed(bus, r)) | if (acpi_is_resource_managed(bus, r)) | ||||
| return (bus_generic_rman_release_resource(bus, child, type, rid, r)); | return (bus_generic_rman_release_resource(bus, child, r)); | ||||
| return (bus_generic_rl_release_resource(bus, child, type, rid, r)); | return (bus_generic_rl_release_resource(bus, child, r)); | ||||
| } | } | ||||
| static void | static void | ||||
| acpi_delete_resource(device_t bus, device_t child, int type, int rid) | acpi_delete_resource(device_t bus, device_t child, int type, int rid) | ||||
| { | { | ||||
| struct resource_list *rl; | struct resource_list *rl; | ||||
| rl = acpi_get_rlist(bus, child); | rl = acpi_get_rlist(bus, child); | ||||
| ▲ Show 20 Lines • Show All 3,049 Lines • Show Last 20 Lines | |||||