Rafael J. Wysocki | 2d6d9fd | 2011-01-19 22:27:14 +0100 | [diff] [blame] | 1 | #ifndef _ACPI_IO_H_ |
| 2 | #define _ACPI_IO_H_ |
| 3 | |
| 4 | #include <linux/io.h> |
Rafael J. Wysocki | 2d6d9fd | 2011-01-19 22:27:14 +0100 | [diff] [blame] | 5 | |
| 6 | static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys, |
| 7 | acpi_size size) |
| 8 | { |
| 9 | return ioremap_cache(phys, size); |
| 10 | } |
| 11 | |
Lv Zheng | a238317 | 2014-05-20 15:39:41 +0800 | [diff] [blame] | 12 | void __iomem *__init_refok |
| 13 | acpi_os_map_iomem(acpi_physical_address phys, acpi_size size); |
| 14 | void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size); |
Rafael J. Wysocki | 13606a2 | 2011-02-08 23:38:25 +0100 | [diff] [blame] | 15 | void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size); |
| 16 | |
Myron Stowe | 6f68c91 | 2011-11-07 16:23:34 -0700 | [diff] [blame] | 17 | int acpi_os_map_generic_address(struct acpi_generic_address *addr); |
| 18 | void acpi_os_unmap_generic_address(struct acpi_generic_address *addr); |
| 19 | |
Rafael J. Wysocki | 2d6d9fd | 2011-01-19 22:27:14 +0100 | [diff] [blame] | 20 | #endif |