Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Rafael J. Wysocki | 2d6d9fd | 2011-01-19 22:27:14 +0100 | [diff] [blame] | 2 | #ifndef _ACPI_IO_H_ |
| 3 | #define _ACPI_IO_H_ |
| 4 | |
| 5 | #include <linux/io.h> |
Rafael J. Wysocki | 2d6d9fd | 2011-01-19 22:27:14 +0100 | [diff] [blame] | 6 | |
Mark Salter | 652261a | 2015-03-24 14:02:38 +0000 | [diff] [blame] | 7 | #include <asm/acpi.h> |
| 8 | |
| 9 | #ifndef acpi_os_ioremap |
Rafael J. Wysocki | 2d6d9fd | 2011-01-19 22:27:14 +0100 | [diff] [blame] | 10 | static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys, |
| 11 | acpi_size size) |
| 12 | { |
| 13 | return ioremap_cache(phys, size); |
| 14 | } |
Mark Salter | 652261a | 2015-03-24 14:02:38 +0000 | [diff] [blame] | 15 | #endif |
Rafael J. Wysocki | 2d6d9fd | 2011-01-19 22:27:14 +0100 | [diff] [blame] | 16 | |
Lv Zheng | 8d3523f | 2016-12-14 15:04:46 +0800 | [diff] [blame] | 17 | extern bool acpi_permanent_mmap; |
| 18 | |
Fabian Frederick | bd721ea | 2016-08-02 14:03:33 -0700 | [diff] [blame] | 19 | void __iomem *__ref |
Lv Zheng | a238317 | 2014-05-20 15:39:41 +0800 | [diff] [blame] | 20 | acpi_os_map_iomem(acpi_physical_address phys, acpi_size size); |
| 21 | 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] | 22 | void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size); |
| 23 | |
Myron Stowe | 6f68c91 | 2011-11-07 16:23:34 -0700 | [diff] [blame] | 24 | int acpi_os_map_generic_address(struct acpi_generic_address *addr); |
| 25 | void acpi_os_unmap_generic_address(struct acpi_generic_address *addr); |
| 26 | |
Rafael J. Wysocki | 2d6d9fd | 2011-01-19 22:27:14 +0100 | [diff] [blame] | 27 | #endif |