mirror of
https://github.com/ipxe/ipxe.git
synced 2026-05-04 20:06:30 +02:00
[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 <mcb30@ipxe.org>
This commit is contained in:
parent
bd3982b630
commit
6d9374e5a3
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user