]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[acpi] Allow acpi_ioremap() to map a port I/O address
authorMichael Brown <mcb30@ipxe.org>
Wed, 5 Nov 2025 17:39:43 +0000 (17:39 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 5 Nov 2025 19:33:53 +0000 (19:33 +0000)
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 <mcb30@ipxe.org>
src/core/acpi.c

index fa8ed34ffda7566adafb3307137b4014197faf03..3fbf25bd13d0c8495b891355355012bdf581402a 100644 (file)
@@ -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;
        }