^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef _ACPI_IO_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define _ACPI_IO_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <linux/io.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #include <asm/acpi.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #ifndef acpi_os_ioremap
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) acpi_size size)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) return ioremap_cache(phys, size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) extern bool acpi_permanent_mmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) void __iomem __ref
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) *acpi_os_map_iomem(acpi_physical_address phys, acpi_size size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) void __iomem *acpi_os_map_generic_address(struct acpi_generic_address *addr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) void acpi_os_unmap_generic_address(struct acpi_generic_address *addr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #endif