blob: dd86c5fc102d4798199f04f05e95998a7bb4d643 [file] [log] [blame]
Kyle Swenson8d8f6542021-03-15 11:02:55 -06001#ifndef _ACPI_IO_H_
2#define _ACPI_IO_H_
3
4#include <linux/io.h>
5
6#include <asm/acpi.h>
7
8#ifndef acpi_os_ioremap
9static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys,
10 acpi_size size)
11{
12 return ioremap_cache(phys, size);
13}
14#endif
15
16void __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);
19void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size);
20
21int acpi_os_map_generic_address(struct acpi_generic_address *addr);
22void acpi_os_unmap_generic_address(struct acpi_generic_address *addr);
23
24#endif