From: Michael Brown Date: Wed, 5 Nov 2025 17:39:43 +0000 (+0000) Subject: [acpi] Allow acpi_ioremap() to map a port I/O address X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d9374e5a39337ff755f0e425fb987e6c672d151;p=thirdparty%2Fipxe.git [acpi] Allow acpi_ioremap() to map a port I/O address Assume that on any platforms where port I/O is used (i.e. x86), a port I/O address may be used directly for the combined MMIO and port I/O accessors without requiring an explicit mapping operation. Signed-off-by: Michael Brown --- diff --git a/src/core/acpi.c b/src/core/acpi.c index fa8ed34ff..3fbf25bd1 100644 --- a/src/core/acpi.c +++ b/src/core/acpi.c @@ -272,6 +272,8 @@ void * acpi_ioremap ( struct acpi_address *address, size_t len ) { switch ( address->type ) { case ACPI_ADDRESS_TYPE_MEM: return ioremap ( base, len ); + case ACPI_ADDRESS_TYPE_IO: + return ( ( void * ) base ); default: return NULL; }