summaryrefslogtreecommitdiffstats
path: root/include/linux/acpi.h
diff options
context:
space:
mode:
authorMyron Stowe2010-10-21 22:23:59 +0200
committerLen Brown2010-10-25 05:26:23 +0200
commit29718521237a1b1607ea05b49243100ea2044337 (patch)
tree69608fa74248415a6055f0b48753cf54b63043b3 /include/linux/acpi.h
parentACPI: Maintain a list of ACPI memory mapped I/O remappings (diff)
downloadkernel-qcow2-linux-29718521237a1b1607ea05b49243100ea2044337.tar.gz
kernel-qcow2-linux-29718521237a1b1607ea05b49243100ea2044337.tar.xz
kernel-qcow2-linux-29718521237a1b1607ea05b49243100ea2044337.zip
ACPI: Add interfaces for ioremapping/iounmapping ACPI registers
Add remapping and unmapping interfaces for ACPI registers that are backed by memory mapped I/O (MMIO). These interfaces, along with the MMIO remapping list, enable accesses of such registers from within interrupt context. 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@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r--include/linux/acpi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index c227757feb06..7774e6d8fddd 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -308,6 +308,9 @@ extern acpi_status acpi_pci_osc_control_set(acpi_handle handle,
u32 *mask, u32 req);
extern void acpi_early_init(void);
+int acpi_os_map_generic_address(struct acpi_generic_address *addr);
+void acpi_os_unmap_generic_address(struct acpi_generic_address *addr);
+
#else /* !CONFIG_ACPI */
#define acpi_disabled 1