acpi_io.h 713 字节
Newer Older
1
/* SPDX-License-Identifier: GPL-2.0 */
2 3 4 5 6
#ifndef _ACPI_IO_H_
#define _ACPI_IO_H_

#include <linux/io.h>

7 8 9
#include <asm/acpi.h>

#ifndef acpi_os_ioremap
10 11 12 13 14
static inline void __iomem *acpi_os_ioremap(acpi_physical_address phys,
					    acpi_size size)
{
       return ioremap_cache(phys, size);
}
15
#endif
16

17 18
extern bool acpi_permanent_mmap;

19 20
void __iomem __ref
*acpi_os_map_iomem(acpi_physical_address phys, acpi_size size);
21
void __ref acpi_os_unmap_iomem(void __iomem *virt, acpi_size size);
22 23
void __iomem *acpi_os_get_iomem(acpi_physical_address phys, unsigned int size);

24 25 26
int acpi_os_map_generic_address(struct acpi_generic_address *addr);
void acpi_os_unmap_generic_address(struct acpi_generic_address *addr);

27
#endif