diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2009-06-01 21:02:40 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2009-06-01 21:02:40 +0000 |
commit | e83ee77d7b009e11006d75946be388f7b99f9990 (patch) | |
tree | 73c1236e3073233e35dc547eb58ea55eafda9edc /include/achware.h | |
parent | 7029c194b68de13ac02301d603a5e3c180d220e6 (diff) | |
download | src-e83ee77d7b009e11006d75946be388f7b99f9990.tar.gz src-e83ee77d7b009e11006d75946be388f7b99f9990.zip |
Import ACPICA 20090521 (with three patches from ACPICA GIT).vendor/acpica/20090521
Notes
Notes:
svn path=/vendor-sys/acpica/dist/; revision=193267
svn path=/vendor-sys/acpica/20090521/; revision=193271; tag=vendor/acpica/20090521
Diffstat (limited to 'include/achware.h')
-rw-r--r-- | include/achware.h | 56 |
1 files changed, 31 insertions, 25 deletions
diff --git a/include/achware.h b/include/achware.h index e132ec6e4611..05da01b44db2 100644 --- a/include/achware.h +++ b/include/achware.h @@ -1,7 +1,6 @@ /****************************************************************************** * * Name: achware.h -- hardware specific interfaces - * $Revision: 1.83 $ * *****************************************************************************/ @@ -9,7 +8,7 @@ * * 1. Copyright Notice * - * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp. + * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp. * All rights reserved. * * 2. License @@ -118,11 +117,7 @@ #define __ACHWARE_H__ -/* PM Timer ticks per second (HZ) */ - -#define PM_TIMER_FREQUENCY 3579545 - -/* Values for the _SST reserved method */ +/* Values for the _SST predefined method */ #define ACPI_SST_INDICATOR_OFF 0 #define ACPI_SST_WORKING 1 @@ -131,9 +126,6 @@ #define ACPI_SST_SLEEP_CONTEXT 4 -/* Prototypes */ - - /* * hwacpi - high level functions */ @@ -154,45 +146,57 @@ AcpiHwGetBitRegisterInfo ( UINT32 RegisterId); ACPI_STATUS +AcpiHwWritePm1Control ( + UINT32 Pm1aControl, + UINT32 Pm1bControl); + +ACPI_STATUS AcpiHwRegisterRead ( - BOOLEAN UseLock, UINT32 RegisterId, UINT32 *ReturnValue); ACPI_STATUS AcpiHwRegisterWrite ( - BOOLEAN UseLock, UINT32 RegisterId, UINT32 Value); ACPI_STATUS -AcpiHwLowLevelRead ( - UINT32 Width, - UINT32 *Value, - ACPI_GENERIC_ADDRESS *Reg); +AcpiHwClearAcpiStatus ( + void); + +/* + * hwvalid - Port I/O with validation + */ ACPI_STATUS -AcpiHwLowLevelWrite ( - UINT32 Width, - UINT32 Value, - ACPI_GENERIC_ADDRESS *Reg); +AcpiHwReadPort ( + ACPI_IO_ADDRESS Address, + UINT32 *Value, + UINT32 Width); ACPI_STATUS -AcpiHwClearAcpiStatus ( - void); +AcpiHwWritePort ( + ACPI_IO_ADDRESS Address, + UINT32 Value, + UINT32 Width); /* * hwgpe - GPE support */ ACPI_STATUS +AcpiHwLowDisableGpe ( + ACPI_GPE_EVENT_INFO *GpeEventInfo); + +ACPI_STATUS AcpiHwWriteGpeEnableReg ( ACPI_GPE_EVENT_INFO *GpeEventInfo); ACPI_STATUS AcpiHwDisableGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, - ACPI_GPE_BLOCK_INFO *GpeBlock); + ACPI_GPE_BLOCK_INFO *GpeBlock, + void *Context); ACPI_STATUS AcpiHwClearGpe ( @@ -201,7 +205,8 @@ AcpiHwClearGpe ( ACPI_STATUS AcpiHwClearGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, - ACPI_GPE_BLOCK_INFO *GpeBlock); + ACPI_GPE_BLOCK_INFO *GpeBlock, + void *Context); ACPI_STATUS AcpiHwGetGpeStatus ( @@ -223,7 +228,8 @@ AcpiHwEnableAllWakeupGpes ( ACPI_STATUS AcpiHwEnableRuntimeGpeBlock ( ACPI_GPE_XRUPT_INFO *GpeXruptInfo, - ACPI_GPE_BLOCK_INFO *GpeBlock); + ACPI_GPE_BLOCK_INFO *GpeBlock, + void *Context); /* |