void acpi_rs_set_address_common(union aml_resource *aml, struct acpi_resource *resource) { ACPI_FUNCTION_ENTRY(); /* Set the Resource Type and General Flags */ (void)acpi_rs_convert_resource_to_aml(resource, aml, acpi_rs_convert_general_flags); /* Set the Type-Specific Flags (Memory and I/O descriptors only) */ if (resource->data.address.resource_type == ACPI_MEMORY_RANGE) { (void)acpi_rs_convert_resource_to_aml(resource, aml, acpi_rs_convert_mem_flags); } else if (resource->data.address.resource_type == ACPI_IO_RANGE) { (void)acpi_rs_convert_resource_to_aml(resource, aml, acpi_rs_convert_io_flags); } else { /* Generic resource type, just copy the type_specific byte */ aml->address.specific_flags = resource->data.address.info.type_specific; } }
void acpi_rs_set_address_common(union aml_resource *aml, struct acpi_resource *resource) { ACPI_FUNCTION_ENTRY(); /* */ (void)acpi_rs_convert_resource_to_aml(resource, aml, acpi_rs_convert_general_flags); /* */ if (resource->data.address.resource_type == ACPI_MEMORY_RANGE) { (void)acpi_rs_convert_resource_to_aml(resource, aml, acpi_rs_convert_mem_flags); } else if (resource->data.address.resource_type == ACPI_IO_RANGE) { (void)acpi_rs_convert_resource_to_aml(resource, aml, acpi_rs_convert_io_flags); } else { /* */ aml->address.specific_flags = resource->data.address.info.type_specific; } }