44 #include <linux/export.h>
50 #define _COMPONENT ACPI_RESOURCES
54 #define ACPI_COPY_FIELD(out, in, field) ((out)->field = (in)->field)
55 #define ACPI_COPY_ADDRESS(out, in) \
56 ACPI_COPY_FIELD(out, in, resource_type); \
57 ACPI_COPY_FIELD(out, in, producer_consumer); \
58 ACPI_COPY_FIELD(out, in, decode); \
59 ACPI_COPY_FIELD(out, in, min_address_fixed); \
60 ACPI_COPY_FIELD(out, in, max_address_fixed); \
61 ACPI_COPY_FIELD(out, in, info); \
62 ACPI_COPY_FIELD(out, in, granularity); \
63 ACPI_COPY_FIELD(out, in, minimum); \
64 ACPI_COPY_FIELD(out, in, maximum); \
65 ACPI_COPY_FIELD(out, in, translation_offset); \
66 ACPI_COPY_FIELD(out, in, address_length); \
67 ACPI_COPY_FIELD(out, in, resource_source);
73 acpi_rs_validate_parameters(
acpi_handle device_handle,
92 acpi_rs_validate_parameters(
acpi_handle device_handle,
104 if (!device_handle) {
167 status = acpi_rs_validate_parameters(device_handle, ret_buffer, &node);
212 status = acpi_rs_validate_parameters(device_handle, ret_buffer, &node);
222 #ifdef ACPI_FUTURE_USAGE
244 acpi_get_possible_resources(
acpi_handle device_handle,
254 status = acpi_rs_validate_parameters(device_handle, ret_buffer, &node);
293 if ((!in_buffer) || (!in_buffer->
pointer) || (!in_buffer->
length)) {
299 status = acpi_rs_validate_parameters(device_handle, in_buffer, &node);
339 status = acpi_rs_validate_parameters(device_handle, ret_buffer, &node);
373 if (!resource || !out) {
379 switch (resource->type) {
442 if (!uuid || !ret_buffer) {
454 acpi_rs_match_vendor_resource, &info);
489 vendor = &resource->data.vendor_typed;
515 buffer->
length = resource->length;
545 acpi_walk_resource_callback user_function,
void *context)
556 if (!device_handle || !user_function || !name ||
579 while (resource < resource_end) {
590 status = user_function(resource, context);