Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / ia64 / include / acpi_machdep.h
blob32557fd86b4e2f56e0ed97e31da6ac01f1a02189
1 /* $NetBSD: acpi_machdep.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */
3 ACPI_STATUS acpi_md_OsInitialize(void);
4 ACPI_STATUS acpi_md_OsTerminate(void);
5 ACPI_PHYSICAL_ADDRESS acpi_md_OsGetRootPointer(void);
7 #define acpi_md_OsIn8(x) inb((x))
8 #define acpi_md_OsIn16(x) inw((x))
9 #define acpi_md_OsIn32(x) inl((x))
11 #define acpi_md_OsOut8(x, v) outb((x), (v))
12 #define acpi_md_OsOut16(x, v) outw((x), (v))
13 #define acpi_md_OsOut32(x, v) outl((x), (v))
15 ACPI_STATUS acpi_md_OsInstallInterruptHandler(UINT32, ACPI_OSD_HANDLER,
16 void *, void **);
17 void acpi_md_OsRemoveInterruptHandler(void *);
19 ACPI_STATUS acpi_md_OsMapMemory(ACPI_PHYSICAL_ADDRESS, UINT32, void **);
20 void acpi_md_OsUnmapMemory(void *, UINT32);
21 ACPI_STATUS acpi_md_OsGetPhysicalAddress(void *LogicalAddress,
22 ACPI_PHYSICAL_ADDRESS *PhysicalAddress);
24 BOOLEAN acpi_md_OsReadable(void *, UINT32);
25 BOOLEAN acpi_md_OsWritable(void *, UINT32);
26 void acpi_md_OsEnableInterrupt(void);
27 void acpi_md_OsDisableInterrupt(void);
29 int acpi_md_sleep(int);
30 void acpi_md_callback(void);