diff options
author | Myron Stowe <mstowe@redhat.com> | 2011-11-07 16:23:34 -0700 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-01-17 04:35:20 -0500 |
commit | 6f68c91c55ea3576d366797fa8d45e31c4aa79f8 (patch) | |
tree | c896013c1a5d63a6a20c8cc4b68eee53ce24844a /include | |
parent | bc9ffce27962c0c5fdc6adf74790ea0fcbe4a99c (diff) | |
download | linux-3.10-6f68c91c55ea3576d366797fa8d45e31c4aa79f8.tar.gz linux-3.10-6f68c91c55ea3576d366797fa8d45e31c4aa79f8.tar.bz2 linux-3.10-6f68c91c55ea3576d366797fa8d45e31c4aa79f8.zip |
ACPI: Export interfaces for ioremapping/iounmapping ACPI registers
Export remapping and unmapping interfaces - acpi_os_map_generic_address()
and acpi_os_unmap_generic_address() - for ACPI generic registers that are
backed by memory mapped I/O (MMIO).
The acpi_os_map_generic_address() and acpi_os_unmap_generic_address()
declarations may more properly belong in include/acpi/acpiosxf.h next to
acpi_os_read_memory() but I believe that would require the ACPI CA making
them an official part of the ACPI CA - OS interface.
ACPI Generic Address Structure (GAS) reference (ACPI's fixed/generic
hardware registers use the GAS format):
ACPI Specification, Revision 4.0, Section 5.2.3.1, "Generic Address
Structure"
Signed-off-by: Myron Stowe <myron.stowe@redhat.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/acpi_io.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/acpi_io.h b/include/linux/acpi_io.h index 4afd7102459..b0ffa219993 100644 --- a/include/linux/acpi_io.h +++ b/include/linux/acpi_io.h @@ -12,4 +12,7 @@ static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys, void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size); +int acpi_os_map_generic_address(struct acpi_generic_address *addr); +void acpi_os_unmap_generic_address(struct acpi_generic_address *addr); + #endif |