48 #define _COMPONENT ACPI_HARDWARE
106 #define ACPI_PORT_INFO_ENTRIES ACPI_ARRAY_LENGTH (acpi_protected_ports)
129 acpi_io_address last_address;
136 if ((bit_width != 8) && (bit_width != 16) && (bit_width != 32)) {
138 "Bad BitWidth parameter: %8.8X", bit_width));
142 port_info = acpi_protected_ports;
144 last_address = address + byte_width - 1;
155 "Illegal I/O port address/length above 64K: %p/0x%X",
179 && (last_address >= port_info->
start)) {
185 "Denied AML access to port 0x%p/%X (%s 0x%.4X-0x%.4X)",
187 byte_width, port_info->
name,
197 if (last_address <= port_info->end) {
235 status = acpi_hw_validate_io_request(address, width);
250 for (i = 0, *value = 0; i <
width; i += 8) {
254 if (acpi_hw_validate_io_request(address, 8) ==
AE_OK) {
260 *value |= (one_byte <<
i);
298 status = acpi_hw_validate_io_request(address, width);
313 for (i = 0; i <
width; i += 8) {
317 if (acpi_hw_validate_io_request(address, 8) ==
AE_OK) {