NetBSD/sys/dev/acpi/acpica
2012-04-22 06:33:04 +00:00
..
acpi_func.h Revert the previous partially for the time being. 2010-07-24 21:53:53 +00:00
files.acpica Switch acpi(4) to use the new location of ACPICA. 2011-02-17 07:34:42 +00:00
OsdEnvironment.c Follow IA-64 with the x86-specific ACPI MD functions and move these where 2011-06-12 11:31:30 +00:00
OsdHardware.c ACPICA 20100806: 2011-02-17 10:23:43 +00:00
OsdInterrupt.c Switch to ACPICA 20090730, and update for API changes. 2009-08-18 16:41:02 +00:00
OsdMemory.c As in Linux, prevent BIOS from trying to map addresses beyond ULONG_MAX. 2012-04-22 06:33:04 +00:00
OsdMisc.c Adjust a prototype due ACPICA 20110623. 2011-06-28 09:09:43 +00:00
OsdSchedule.c cast curlwp to uintptr_t before casting to ACPI_THREAD_ID, fixes i386 build 2011-02-17 10:35:50 +00:00
OsdStream.c
OsdSynch.c Switch to ACPICA 20090730, and update for API changes. 2009-08-18 16:41:02 +00:00
README Update and fix a typo. 2010-07-24 06:10:43 +00:00

#	$NetBSD: README,v 1.4 2010/07/24 06:10:43 jruoho Exp $

This is the Intel ACPI Component Architecture, Intel's reference
implementation of the core operating system ACPI support.  The
portion in the acpica/ subdirectory is provided by the operating
system as the glue between the OS and the ACPICA.

Please, do not import an updated ACPICA snapshot from Intel unless
you absolutely know what you're doing -- The Intel directory layout
changes from release to release, and we must munge it (by hand) into
something sane that we can use.

The routines that the operating system must provide are documented
in the following document:

	Intel Corp., ACPI Component Architecture Programmer Reference

Copies of the document may be retrieved from:

	http://www.acpica.org/download/acpica-reference.pdf

Machine-dependent code must provide at least the following routines:

ACPI_STATUS	acpi_md_OsInitialize(void);
ACPI_STATUS	acpi_md_OsTerminate(void);
ACPI_STATUS	acpi_md_OsGetRootPointer(UINT32 Flags,
		    ACPI_PHYSICAL_ADDRESS *PhysicalAddress);

UINT8		acpi_md_OsIn8(ACPI_IO_ADDRESS InPort);
UINT16		acpi_md_OsIn16(ACPI_IO_ADDRESS InPort);
UINT32		acpi_md_OsIn32(ACPI_IO_ADDRESS InPort);

void		acpi_md_OsOut8(ACPI_IO_ADDRESS OutPort, UINT8 Value);
void		acpi_md_OsOut16(ACPI_IO_ADDRESS OutPort, UINT16 Value);
void		acpi_md_OsOut32(ACPI_IO_ADDRESS OutPort, UINT32 Value);

ACPI_STATUS	acpi_md_OsInstallInterruptHandler(UINT32 InterruptNumber,
		    OSD_HANDLER ServiceRoutine, void *Context, void **cookiep);
void		acpi_md_OsRemoveInterruptHandler(void *cookie);

ACPI_STATUS	acpi_md_OsMapMemory(ACPI_PHYSICAL_ADDRESS PhysicalAddress,
		    UINT32 Length, void **LogicalAddress);
void		acpi_md_OsUnmapMemory(void *LogicalAddress, UINT32 Length);
ACPI_STATUS	acpi_md_OsGetPhysicalAddress(void *LogicalAddress,
		    ACPI_PHYSICAL_ADDRESS *PhysicalAddress);

BOOLEAN		acpi_md_OsReadable(void *Pointer, UINT32 Length);
BOOLEAN		acpi_md_OsWritable(void *Pointer, UINT32 Length);

	-- Jason R. Thorpe <thorpej@wasabisystems.com>