blob: dd86c5fc102d4798199f04f05e95998a7bb4d643 [file] [log] [blame]
Rafael J. Wysocki2d6d9fd2011-01-19 22:27:14 +01001#ifndef _ACPI_IO_H_
2#define _ACPI_IO_H_
3
4#include <linux/io.h>
Rafael J. Wysocki2d6d9fd2011-01-19 22:27:14 +01005
Mark Salter652261a2015-03-24 14:02:38 +00006#include <asm/acpi.h>
7
8#ifndef acpi_os_ioremap
Rafael J. Wysocki2d6d9fd2011-01-19 22:27:14 +01009static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys,
10 acpi_size size)
11{
12 return ioremap_cache(phys, size);
13}
Mark Salter652261a2015-03-24 14:02:38 +000014#endif
Rafael J. Wysocki2d6d9fd2011-01-19 22:27:14 +010015
Lv Zhenga2383172014-05-20 15:39:41 +080016void __iomem *__init_refok
17acpi_os_map_iomem(acpi_physical_address phys, acpi_size size);
18void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size);
Rafael J. Wysocki13606a22011-02-08 23:38:25 +010019void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size);
20
Myron Stowe6f68c912011-11-07 16:23:34 -070021int acpi_os_map_generic_address(struct acpi_generic_address *addr);
22void acpi_os_unmap_generic_address(struct acpi_generic_address *addr);
23
Rafael J. Wysocki2d6d9fd2011-01-19 22:27:14 +010024#endif