acpi_io.h 713 B

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