/drivers/devman/acpica/include/acapps.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
121,6 → 121,38 |
#pragma warning(disable:4100) /* warning C4100: unreferenced formal parameter */ |
#endif |
/* Common info for tool signons */ |
#define ACPICA_NAME "Intel ACPI Component Architecture" |
#define ACPICA_COPYRIGHT "Copyright (c) 2000 - 2011 Intel Corporation" |
#if ACPI_MACHINE_WIDTH == 64 |
#define ACPI_WIDTH "-64" |
#elif ACPI_MACHINE_WIDTH == 32 |
#define ACPI_WIDTH "-32" |
#else |
#error unknown ACPI_MACHINE_WIDTH |
#define ACPI_WIDTH "-??" |
#endif |
/* Macros for signons and file headers */ |
#define ACPI_COMMON_SIGNON(UtilityName) \ |
"\n%s\n%s version %8.8X%s [%s]\n%s\n\n", \ |
ACPICA_NAME, \ |
UtilityName, ((UINT32) ACPI_CA_VERSION), ACPI_WIDTH, __DATE__, \ |
ACPICA_COPYRIGHT |
#define ACPI_COMMON_HEADER(UtilityName, Prefix) \ |
"%s%s\n%s%s version %8.8X%s [%s]\n%s%s\n%s\n", \ |
Prefix, ACPICA_NAME, \ |
Prefix, UtilityName, ((UINT32) ACPI_CA_VERSION), ACPI_WIDTH, __DATE__, \ |
Prefix, ACPICA_COPYRIGHT, \ |
Prefix |
#define FILE_SUFFIX_DISASSEMBLY "dsl" |
#define ACPI_TABLE_FILE_SUFFIX ".dat" |
/drivers/devman/acpica/include/accommon.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/acconfig.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
240,7 → 240,6 |
/* Operation regions */ |
#define ACPI_NUM_PREDEFINED_REGIONS 9 |
#define ACPI_USER_REGION_BEGIN 0x80 |
/* Maximum SpaceIds for Operation Regions */ |
273,7 → 272,8 |
* |
*****************************************************************************/ |
#define ACPI_DEBUGGER_MAX_ARGS 8 /* Must be max method args + 1 */ |
#define ACPI_DEBUGGER_MAX_ARGS ACPI_METHOD_NUM_ARGS + 2 /* Max command line arguments */ |
#define ACPI_DB_LINE_BUFFER_SIZE 512 |
#define ACPI_DEBUGGER_COMMAND_PROMPT '-' |
#define ACPI_DEBUGGER_EXECUTE_PROMPT '%' |
/drivers/devman/acpica/include/acdebug.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
117,7 → 117,7 |
#define __ACDEBUG_H__ |
#define ACPI_DEBUG_BUFFER_SIZE 4196 |
#define ACPI_DEBUG_BUFFER_SIZE 0x4000 /* 16K buffer for return objects */ |
typedef struct CommandInfo |
{ |
170,9 → 170,9 |
/* |
* dbcmds - debug commands and output routines |
*/ |
ACPI_STATUS |
AcpiDbDisassembleMethod ( |
char *Name); |
ACPI_NAMESPACE_NODE * |
AcpiDbConvertToNode ( |
char *InString); |
void |
AcpiDbDisplayTableInfo ( |
184,40 → 184,55 |
char *InstanceArg); |
void |
AcpiDbSetMethodBreakpoint ( |
char *Location, |
ACPI_WALK_STATE *WalkState, |
ACPI_PARSE_OBJECT *Op); |
AcpiDbSendNotify ( |
char *Name, |
UINT32 Value); |
void |
AcpiDbSetMethodCallBreakpoint ( |
ACPI_PARSE_OBJECT *Op); |
AcpiDbDisplayInterfaces ( |
char *ActionArg, |
char *InterfaceNameArg); |
ACPI_STATUS |
AcpiDbSleep ( |
char *ObjectArg); |
void |
AcpiDbGetBusInfo ( |
AcpiDbDisplayLocks ( |
void); |
void |
AcpiDbDisassembleAml ( |
char *Statements, |
ACPI_PARSE_OBJECT *Op); |
AcpiDbDisplayResources ( |
char *ObjectArg); |
void |
AcpiDbDumpNamespace ( |
char *StartArg, |
char *DepthArg); |
AcpiDbDisplayGpes ( |
void); |
void |
AcpiDbDumpNamespaceByOwner ( |
char *OwnerArg, |
char *DepthArg); |
AcpiDbDisplayHandlers ( |
void); |
void |
AcpiDbSendNotify ( |
char *Name, |
UINT32 Value); |
AcpiDbGenerateGpe ( |
char *GpeArg, |
char *BlockArg); |
/* |
* dbmethod - control method commands |
*/ |
void |
AcpiDbSetMethodBreakpoint ( |
char *Location, |
ACPI_WALK_STATE *WalkState, |
ACPI_PARSE_OBJECT *Op); |
void |
AcpiDbSetMethodCallBreakpoint ( |
ACPI_PARSE_OBJECT *Op); |
void |
AcpiDbSetMethodData ( |
char *TypeArg, |
char *IndexArg, |
224,54 → 239,61 |
char *ValueArg); |
ACPI_STATUS |
AcpiDbDisplayObjects ( |
char *ObjTypeArg, |
char *DisplayCountArg); |
AcpiDbDisassembleMethod ( |
char *Name); |
ACPI_STATUS |
AcpiDbFindNameInNamespace ( |
char *NameArg); |
void |
AcpiDbDisassembleAml ( |
char *Statements, |
ACPI_PARSE_OBJECT *Op); |
void |
AcpiDbSetScope ( |
char *Name); |
AcpiDbBatchExecute ( |
char *CountArg); |
ACPI_STATUS |
AcpiDbSleep ( |
char *ObjectArg); |
/* |
* dbnames - namespace commands |
*/ |
void |
AcpiDbFindReferences ( |
char *ObjectArg); |
AcpiDbSetScope ( |
char *Name); |
void |
AcpiDbDisplayLocks ( |
void); |
AcpiDbDumpNamespace ( |
char *StartArg, |
char *DepthArg); |
void |
AcpiDbDisplayResources ( |
char *ObjectArg); |
AcpiDbDumpNamespaceByOwner ( |
char *OwnerArg, |
char *DepthArg); |
ACPI_STATUS |
AcpiDbFindNameInNamespace ( |
char *NameArg); |
void |
AcpiDbDisplayGpes ( |
AcpiDbCheckPredefinedNames ( |
void); |
ACPI_STATUS |
AcpiDbDisplayObjects ( |
char *ObjTypeArg, |
char *DisplayCountArg); |
void |
AcpiDbCheckIntegrity ( |
void); |
void |
AcpiDbGenerateGpe ( |
char *GpeArg, |
char *BlockArg); |
AcpiDbFindReferences ( |
char *ObjectArg); |
void |
AcpiDbCheckPredefinedNames ( |
AcpiDbGetBusInfo ( |
void); |
void |
AcpiDbBatchExecute ( |
char *CountArg); |
/* |
* dbdisply - debug display commands |
327,6 → 349,7 |
AcpiDbExecute ( |
char *Name, |
char **Args, |
ACPI_OBJECT_TYPE *Types, |
UINT32 Flags); |
void |
407,7 → 430,13 |
char Prompt, |
ACPI_PARSE_OBJECT *Op); |
char * |
AcpiDbGetNextToken ( |
char *String, |
char **Next, |
ACPI_OBJECT_TYPE *ReturnType); |
/* |
* dbstats - Generation and display of ACPI table statistics |
*/ |
/drivers/devman/acpica/include/acdisasm.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
125,7 → 125,13 |
#define BLOCK_COMMA_LIST 4 |
#define ACPI_DEFAULT_RESNAME *(UINT32 *) "__RD" |
/* |
* Raw table data header. Used by disassembler and data table compiler. |
* Do not change. |
*/ |
#define ACPI_RAW_TABLE_DATA_HEADER "Raw Table Data" |
typedef const struct acpi_dmtable_info |
{ |
UINT8 Opcode; |
185,8 → 191,19 |
#define ACPI_DMT_IVRS 34 |
#define ACPI_DMT_BUFFER 35 |
#define ACPI_DMT_PCI_PATH 36 |
#define ACPI_DMT_EINJACT 37 |
#define ACPI_DMT_EINJINST 38 |
#define ACPI_DMT_ERSTACT 39 |
#define ACPI_DMT_ERSTINST 40 |
#define ACPI_DMT_ACCWIDTH 41 |
#define ACPI_DMT_UNICODE 42 |
#define ACPI_DMT_UUID 43 |
#define ACPI_DMT_DEVICE_PATH 44 |
#define ACPI_DMT_LABEL 45 |
#define ACPI_DMT_BUF7 46 |
#define ACPI_DMT_BUF128 47 |
#define ACPI_DMT_SLIC 48 |
typedef |
void (*ACPI_DMTABLE_HANDLER) ( |
ACPI_TABLE_HEADER *Table); |
201,6 → 218,7 |
ACPI_DMTABLE_INFO *TableInfo; |
ACPI_DMTABLE_HANDLER TableHandler; |
ACPI_CMTABLE_HANDLER CmTableHandler; |
const unsigned char *Template; |
char *Name; |
} ACPI_DMTABLE_DATA; |
270,6 → 288,7 |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoEinj[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoEinj0[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoErst[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoErst0[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoFacs[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt1[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt2[]; |
316,7 → 335,9 |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp1[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp2[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoSbst[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlic[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlicHdr[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlic0[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlic1[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlit[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpcr[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpmi[]; |
330,13 → 351,23 |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoWaet[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat0[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoWddt[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdrt[]; |
extern ACPI_DMTABLE_INFO AcpiDmTableInfoGeneric[][2]; |
/* |
* dmtable |
*/ |
extern ACPI_DMTABLE_DATA AcpiDmTableData[]; |
UINT8 |
AcpiDmGenerateChecksum ( |
void *Table, |
UINT32 Length, |
UINT8 OriginalChecksum); |
ACPI_DMTABLE_DATA * |
AcpiDmGetTableData ( |
char *Signature); |
423,6 → 454,10 |
ACPI_TABLE_HEADER *Table); |
void |
AcpiDmDumpSlic ( |
ACPI_TABLE_HEADER *Table); |
void |
AcpiDmDumpSlit ( |
ACPI_TABLE_HEADER *Table); |
568,7 → 603,16 |
/* |
* dmextern |
*/ |
ACPI_STATUS |
AcpiDmAddToExternalFileList ( |
char *PathList); |
void |
AcpiDmClearExternalFileList ( |
void); |
void |
AcpiDmAddToExternalList ( |
ACPI_PARSE_OBJECT *Op, |
char *Path, |
784,4 → 828,13 |
ACPI_PARSE_OBJECT *Op, |
ACPI_WALK_STATE *WalkState); |
/* |
* acdisasm |
*/ |
void |
AdDisassemblerHeader ( |
char *Filename); |
#endif /* __ACDISASM_H__ */ |
/drivers/devman/acpica/include/acdispat.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
123,7 → 123,7 |
/* |
* dsopcode - support for late evaluation |
* dsargs - execution of dynamic arguments for static objects |
*/ |
ACPI_STATUS |
AcpiDsGetBufferFieldArguments ( |
145,7 → 145,25 |
AcpiDsGetPackageArguments ( |
ACPI_OPERAND_OBJECT *ObjDesc); |
/* |
* dscontrol - support for execution control opcodes |
*/ |
ACPI_STATUS |
AcpiDsExecBeginControlOp ( |
ACPI_WALK_STATE *WalkState, |
ACPI_PARSE_OBJECT *Op); |
ACPI_STATUS |
AcpiDsExecEndControlOp ( |
ACPI_WALK_STATE *WalkState, |
ACPI_PARSE_OBJECT *Op); |
/* |
* dsopcode - support for late operand evaluation |
*/ |
ACPI_STATUS |
AcpiDsEvalBufferFieldOperands ( |
ACPI_WALK_STATE *WalkState, |
ACPI_PARSE_OBJECT *Op); |
177,20 → 195,6 |
/* |
* dsctrl - Parser/Interpreter interface, control stack routines |
*/ |
ACPI_STATUS |
AcpiDsExecBeginControlOp ( |
ACPI_WALK_STATE *WalkState, |
ACPI_PARSE_OBJECT *Op); |
ACPI_STATUS |
AcpiDsExecEndControlOp ( |
ACPI_WALK_STATE *WalkState, |
ACPI_PARSE_OBJECT *Op); |
/* |
* dsexec - Parser/Interpreter interface, method execution callbacks |
*/ |
ACPI_STATUS |
241,9 → 245,14 |
/* |
* dsload - Parser/Interpreter interface, namespace load callbacks |
* dsload - Parser/Interpreter interface, pass 1 namespace load callbacks |
*/ |
ACPI_STATUS |
AcpiDsInitCallbacks ( |
ACPI_WALK_STATE *WalkState, |
UINT32 PassNumber); |
ACPI_STATUS |
AcpiDsLoad1BeginOp ( |
ACPI_WALK_STATE *WalkState, |
ACPI_PARSE_OBJECT **OutOp); |
252,6 → 261,10 |
AcpiDsLoad1EndOp ( |
ACPI_WALK_STATE *WalkState); |
/* |
* dsload - Parser/Interpreter interface, pass 2 namespace load callbacks |
*/ |
ACPI_STATUS |
AcpiDsLoad2BeginOp ( |
ACPI_WALK_STATE *WalkState, |
261,12 → 274,7 |
AcpiDsLoad2EndOp ( |
ACPI_WALK_STATE *WalkState); |
ACPI_STATUS |
AcpiDsInitCallbacks ( |
ACPI_WALK_STATE *WalkState, |
UINT32 PassNumber); |
/* |
* dsmthdat - method data (locals/args) |
*/ |
/drivers/devman/acpica/include/acevents.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
128,10 → 128,6 |
AcpiEvInstallXruptHandlers ( |
void); |
ACPI_STATUS |
AcpiEvInstallFadtGpes ( |
void); |
UINT32 |
AcpiEvFixedEventDetect ( |
void); |
144,7 → 140,24 |
AcpiEvIsNotifyObject ( |
ACPI_NAMESPACE_NODE *Node); |
UINT32 |
AcpiEvGetGpeNumberIndex ( |
UINT32 GpeNumber); |
ACPI_STATUS |
AcpiEvQueueNotifyRequest ( |
ACPI_NAMESPACE_NODE *Node, |
UINT32 NotifyValue); |
/* |
* evglock - Global Lock support |
*/ |
ACPI_STATUS |
AcpiEvInitGlobalLockHandler ( |
void); |
ACPI_STATUS |
AcpiEvAcquireGlobalLock( |
UINT16 Timeout); |
153,19 → 166,10 |
void); |
ACPI_STATUS |
AcpiEvInitGlobalLockHandler ( |
AcpiEvRemoveGlobalLockHandler ( |
void); |
UINT32 |
AcpiEvGetGpeNumberIndex ( |
UINT32 GpeNumber); |
ACPI_STATUS |
AcpiEvQueueNotifyRequest ( |
ACPI_NAMESPACE_NODE *Node, |
UINT32 NotifyValue); |
/* |
* evgpe - Low-level GPE support |
*/ |
174,7 → 178,7 |
ACPI_GPE_XRUPT_INFO *GpeXruptList); |
ACPI_STATUS |
AcpiEvUpdateGpeEnableMasks ( |
AcpiEvUpdateGpeEnableMask ( |
ACPI_GPE_EVENT_INFO *GpeEventInfo); |
ACPI_STATUS |
182,9 → 186,13 |
ACPI_GPE_EVENT_INFO *GpeEventInfo); |
ACPI_STATUS |
AcpiEvDisableGpe ( |
AcpiEvAddGpeReference ( |
ACPI_GPE_EVENT_INFO *GpeEventInfo); |
ACPI_STATUS |
AcpiEvRemoveGpeReference ( |
ACPI_GPE_EVENT_INFO *GpeEventInfo); |
ACPI_GPE_EVENT_INFO * |
AcpiEvGetGpeEventInfo ( |
ACPI_HANDLE GpeDevice, |
195,7 → 203,11 |
UINT32 GpeNumber, |
ACPI_GPE_BLOCK_INFO *GpeBlock); |
ACPI_STATUS |
AcpiEvFinishGpe ( |
ACPI_GPE_EVENT_INFO *GpeEventInfo); |
/* |
* evgpeblk - Upper-level GPE block support |
*/ |
210,8 → 222,9 |
ACPI_STATUS |
AcpiEvInitializeGpeBlock ( |
ACPI_NAMESPACE_NODE *GpeDevice, |
ACPI_GPE_BLOCK_INFO *GpeBlock); |
ACPI_GPE_XRUPT_INFO *GpeXruptInfo, |
ACPI_GPE_BLOCK_INFO *GpeBlock, |
void *Context); |
ACPI_STATUS |
AcpiEvDeleteGpeBlock ( |
219,6 → 232,7 |
UINT32 |
AcpiEvGpeDispatch ( |
ACPI_NAMESPACE_NODE *GpeDevice, |
ACPI_GPE_EVENT_INFO *GpeEventInfo, |
UINT32 GpeNumber); |
240,13 → 254,6 |
void *Context, |
void **ReturnValue); |
ACPI_STATUS |
AcpiEvMatchPrwAndGpe ( |
ACPI_HANDLE ObjHandle, |
UINT32 Level, |
void *Context, |
void **ReturnValue); |
/* |
* evgpeutil - GPE utilities |
*/ |
259,6 → 266,12 |
AcpiEvValidGpeEvent ( |
ACPI_GPE_EVENT_INFO *GpeEventInfo); |
ACPI_STATUS |
AcpiEvGetGpeDevice ( |
ACPI_GPE_XRUPT_INFO *GpeXruptInfo, |
ACPI_GPE_BLOCK_INFO *GpeBlock, |
void *Context); |
ACPI_GPE_XRUPT_INFO * |
AcpiEvGetGpeXruptBlock ( |
UINT32 InterruptNumber); |
/drivers/devman/acpica/include/acexcep.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/acglobal.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
174,13 → 174,6 |
UINT8 ACPI_INIT_GLOBAL (AcpiGbl_CreateOsiMethod, TRUE); |
/* |
* Disable wakeup GPEs during runtime? Default is TRUE because WAKE and |
* RUNTIME GPEs should never be shared, and WAKE GPEs should typically only |
* be enabled just before going to sleep. |
*/ |
UINT8 ACPI_INIT_GLOBAL (AcpiGbl_LeaveWakeGpesDisabled, TRUE); |
/* |
* Optionally use default values for the ACPI register widths. Set this to |
* TRUE to use the defaults, if an FADT contains incorrect widths/lengths. |
*/ |
207,7 → 200,13 |
*/ |
UINT8 ACPI_INIT_GLOBAL (AcpiGbl_TruncateIoAddresses, FALSE); |
/* |
* Disable runtime checking and repair of values returned by control methods. |
* Use only if the repair is causing a problem on a particular machine. |
*/ |
UINT8 ACPI_INIT_GLOBAL (AcpiGbl_DisableAutoRepair, FALSE); |
/* AcpiGbl_FADT is a local copy of the FADT, converted to a common format. */ |
ACPI_TABLE_FADT AcpiGbl_FADT; |
214,6 → 213,7 |
UINT32 AcpiCurrentGpeCount; |
UINT32 AcpiGbl_TraceFlags; |
ACPI_NAME AcpiGbl_TraceMethodName; |
BOOLEAN AcpiGbl_SystemAwakeAndRunning; |
#endif |
268,13 → 268,16 |
/* |
* Global lock mutex is an actual AML mutex object |
* Global lock semaphore works in conjunction with the HW global lock |
* Global lock semaphore works in conjunction with the actual global lock |
* Global lock spinlock is used for "pending" handshake |
*/ |
ACPI_EXTERN ACPI_OPERAND_OBJECT *AcpiGbl_GlobalLockMutex; |
ACPI_EXTERN ACPI_SEMAPHORE AcpiGbl_GlobalLockSemaphore; |
ACPI_EXTERN ACPI_SPINLOCK AcpiGbl_GlobalLockPendingLock; |
ACPI_EXTERN UINT16 AcpiGbl_GlobalLockHandle; |
ACPI_EXTERN BOOLEAN AcpiGbl_GlobalLockAcquired; |
ACPI_EXTERN BOOLEAN AcpiGbl_GlobalLockPresent; |
ACPI_EXTERN BOOLEAN AcpiGbl_GlobalLockPending; |
/* |
* Spinlocks are used for interfaces that can be possibly called at |
283,6 → 286,10 |
ACPI_EXTERN ACPI_SPINLOCK AcpiGbl_GpeLock; /* For GPE data structs and registers */ |
ACPI_EXTERN ACPI_SPINLOCK AcpiGbl_HardwareLock; /* For ACPI H/W except GPE registers */ |
/* Mutex for _OSI support */ |
ACPI_EXTERN ACPI_MUTEX AcpiGbl_OsiMutex; |
/* Reader/Writer lock is used for namespace walk and dynamic table unload */ |
ACPI_EXTERN ACPI_RW_LOCK AcpiGbl_NamespaceRwLock; |
311,8 → 318,8 |
ACPI_EXTERN ACPI_TABLE_HANDLER AcpiGbl_TableHandler; |
ACPI_EXTERN void *AcpiGbl_TableHandlerContext; |
ACPI_EXTERN ACPI_WALK_STATE *AcpiGbl_BreakpointWalk; |
ACPI_EXTERN ACPI_INTERFACE_HANDLER AcpiGbl_InterfaceHandler; |
/* Owner ID support */ |
ACPI_EXTERN UINT32 AcpiGbl_OwnerIdMask[ACPI_NUM_OWNERID_MASKS]; |
319,6 → 326,10 |
ACPI_EXTERN UINT8 AcpiGbl_LastOwnerIdIndex; |
ACPI_EXTERN UINT8 AcpiGbl_NextOwnerIdOffset; |
/* Initialization sequencing */ |
ACPI_EXTERN BOOLEAN AcpiGbl_RegMethodsExecuted; |
/* Misc */ |
ACPI_EXTERN UINT32 AcpiGbl_OriginalMode; |
330,8 → 341,8 |
ACPI_EXTERN BOOLEAN AcpiGbl_StepToNextCall; |
ACPI_EXTERN BOOLEAN AcpiGbl_AcpiHardwarePresent; |
ACPI_EXTERN BOOLEAN AcpiGbl_EventsInitialized; |
ACPI_EXTERN BOOLEAN AcpiGbl_SystemAwakeAndRunning; |
ACPI_EXTERN UINT8 AcpiGbl_OsiData; |
ACPI_EXTERN ACPI_INTERFACE_INFO *AcpiGbl_SupportedInterfaces; |
#ifndef DEFINE_ACPI_GLOBALS |
429,10 → 440,13 |
* |
****************************************************************************/ |
extern ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS]; |
ACPI_EXTERN ACPI_FIXED_EVENT_HANDLER AcpiGbl_FixedEventHandlers[ACPI_NUM_FIXED_EVENTS]; |
ACPI_EXTERN UINT8 AcpiGbl_AllGpesInitialized; |
ACPI_EXTERN ACPI_GPE_XRUPT_INFO *AcpiGbl_GpeXruptListHead; |
ACPI_EXTERN ACPI_GPE_BLOCK_INFO *AcpiGbl_GpeFadtBlocks[ACPI_MAX_GPE_BLOCKS]; |
ACPI_EXTERN ACPI_GBL_EVENT_HANDLER AcpiGbl_GlobalEventHandler; |
ACPI_EXTERN void *AcpiGbl_GlobalEventHandlerContext; |
ACPI_EXTERN ACPI_FIXED_EVENT_HANDLER AcpiGbl_FixedEventHandlers[ACPI_NUM_FIXED_EVENTS]; |
extern ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS]; |
/***************************************************************************** |
473,6 → 487,7 |
ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_disasm; |
ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_verbose; |
ACPI_EXTERN ACPI_EXTERNAL_LIST *AcpiGbl_ExternalList; |
ACPI_EXTERN ACPI_EXTERNAL_FILE *AcpiGbl_ExternalFileList; |
#endif |
488,10 → 503,11 |
ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_NoRegionSupport; |
ACPI_EXTERN char *AcpiGbl_DbArgs[ACPI_DEBUGGER_MAX_ARGS]; |
ACPI_EXTERN char AcpiGbl_DbLineBuf[80]; |
ACPI_EXTERN char AcpiGbl_DbParsedBuf[80]; |
ACPI_EXTERN char AcpiGbl_DbScopeBuf[40]; |
ACPI_EXTERN char AcpiGbl_DbDebugFilename[40]; |
ACPI_EXTERN ACPI_OBJECT_TYPE AcpiGbl_DbArgTypes[ACPI_DEBUGGER_MAX_ARGS]; |
ACPI_EXTERN char AcpiGbl_DbLineBuf[ACPI_DB_LINE_BUFFER_SIZE]; |
ACPI_EXTERN char AcpiGbl_DbParsedBuf[ACPI_DB_LINE_BUFFER_SIZE]; |
ACPI_EXTERN char AcpiGbl_DbScopeBuf[80]; |
ACPI_EXTERN char AcpiGbl_DbDebugFilename[80]; |
ACPI_EXTERN BOOLEAN AcpiGbl_DbOutputToFile; |
ACPI_EXTERN char *AcpiGbl_DbBuffer; |
ACPI_EXTERN char *AcpiGbl_DbFilename; |
/drivers/devman/acpica/include/achware.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
200,13 → 200,15 |
/* |
* hwgpe - GPE support |
*/ |
ACPI_STATUS |
AcpiHwLowDisableGpe ( |
ACPI_GPE_EVENT_INFO *GpeEventInfo); |
UINT32 |
AcpiHwGetGpeRegisterBit ( |
ACPI_GPE_EVENT_INFO *GpeEventInfo, |
ACPI_GPE_REGISTER_INFO *GpeRegisterInfo); |
ACPI_STATUS |
AcpiHwWriteGpeEnableReg ( |
ACPI_GPE_EVENT_INFO *GpeEventInfo); |
AcpiHwLowSetGpe ( |
ACPI_GPE_EVENT_INFO *GpeEventInfo, |
UINT32 Action); |
ACPI_STATUS |
AcpiHwDisableGpeBlock ( |
249,6 → 251,16 |
/* |
* hwpci - PCI configuration support |
*/ |
ACPI_STATUS |
AcpiHwDerivePciId ( |
ACPI_PCI_ID *PciId, |
ACPI_HANDLE RootPciDevice, |
ACPI_HANDLE PciRegion); |
/* |
* hwtimer - ACPI Timer prototypes |
*/ |
ACPI_STATUS |
/drivers/devman/acpica/include/acinterp.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/aclocal.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
165,26 → 165,7 |
#define ACPI_MAX_MUTEX 7 |
#define ACPI_NUM_MUTEX ACPI_MAX_MUTEX+1 |
#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) |
#ifdef DEFINE_ACPI_GLOBALS |
/* Debug names for the mutexes above */ |
static char *AcpiGbl_MutexNames[ACPI_NUM_MUTEX] = |
{ |
"ACPI_MTX_Interpreter", |
"ACPI_MTX_Namespace", |
"ACPI_MTX_Tables", |
"ACPI_MTX_Events", |
"ACPI_MTX_Caches", |
"ACPI_MTX_Memory", |
"ACPI_MTX_CommandComplete", |
"ACPI_MTX_CommandReady" |
}; |
#endif |
#endif |
/* Lock structure for reader/writer interfaces */ |
typedef struct acpi_rw_lock |
502,6 → 483,7 |
char *Pathname; |
const ACPI_PREDEFINED_INFO *Predefined; |
union acpi_operand_object *ParentPackage; |
ACPI_NAMESPACE_NODE *Node; |
UINT32 Flags; |
UINT8 NodeFlags; |
537,18 → 519,25 |
/* Dispatch info for each GPE -- either a method or handler, cannot be both */ |
typedef struct acpi_handler_info |
typedef struct acpi_gpe_handler_info |
{ |
ACPI_EVENT_HANDLER Address; /* Address of handler, if any */ |
ACPI_GPE_HANDLER Address; /* Address of handler, if any */ |
void *Context; /* Context to be passed to handler */ |
ACPI_NAMESPACE_NODE *MethodNode; /* Method node for this GPE level (saved) */ |
UINT8 OriginalFlags; /* Original (pre-handler) GPE info */ |
BOOLEAN OriginallyEnabled; /* True if GPE was originally enabled */ |
} ACPI_HANDLER_INFO; |
} ACPI_GPE_HANDLER_INFO; |
/* |
* GPE dispatch info. At any time, the GPE can have at most one type |
* of dispatch - Method, Handler, or Implicit Notify. |
*/ |
typedef union acpi_gpe_dispatch_info |
{ |
ACPI_NAMESPACE_NODE *MethodNode; /* Method node for this GPE level */ |
struct acpi_handler_info *Handler; |
struct acpi_gpe_handler_info *Handler; /* Installed GPE handler */ |
ACPI_NAMESPACE_NODE *DeviceNode; /* Parent _PRW device for implicit notify */ |
} ACPI_GPE_DISPATCH_INFO; |
563,7 → 552,6 |
UINT8 Flags; /* Misc info about this GPE */ |
UINT8 GpeNumber; /* This GPE */ |
UINT8 RuntimeCount; /* References to a run GPE */ |
UINT8 WakeupCount; /* References to a wake GPE */ |
} ACPI_GPE_EVENT_INFO; |
595,6 → 583,7 |
UINT32 RegisterCount; /* Number of register pairs in block */ |
UINT16 GpeCount; /* Number of individual GPEs in block */ |
UINT8 BlockBaseNumber;/* Base GPE number for this block */ |
BOOLEAN Initialized; /* TRUE if this block is initialized */ |
} ACPI_GPE_BLOCK_INFO; |
615,7 → 604,6 |
ACPI_GPE_BLOCK_INFO *GpeBlock; |
UINT16 Count; |
ACPI_OWNER_ID OwnerId; |
BOOLEAN EnableThisGpe; |
BOOLEAN ExecuteByOwnerId; |
} ACPI_GPE_WALK_INFO; |
1081,6 → 1069,7 |
ACPI_BITMASK_POWER_BUTTON_STATUS | \ |
ACPI_BITMASK_SLEEP_BUTTON_STATUS | \ |
ACPI_BITMASK_RT_CLOCK_STATUS | \ |
ACPI_BITMASK_PCIEXP_WAKE_STATUS | \ |
ACPI_BITMASK_WAKE_STATUS) |
#define ACPI_BITMASK_TIMER_ENABLE 0x0001 |
1137,7 → 1126,8 |
#define ACPI_OSI_WIN_VISTA 0x07 |
#define ACPI_OSI_WINSRV_2008 0x08 |
#define ACPI_OSI_WIN_VISTA_SP1 0x09 |
#define ACPI_OSI_WIN_7 0x0A |
#define ACPI_OSI_WIN_VISTA_SP2 0x0A |
#define ACPI_OSI_WIN_7 0x0B |
#define ACPI_ALWAYS_ILLEGAL 0x00 |
1144,10 → 1134,15 |
typedef struct acpi_interface_info |
{ |
char *Name; |
struct acpi_interface_info *Next; |
UINT8 Flags; |
UINT8 Value; |
} ACPI_INTERFACE_INFO; |
#define ACPI_OSI_INVALID 0x01 |
#define ACPI_OSI_DYNAMIC 0x02 |
typedef struct acpi_port_info |
{ |
char *Name; |
1247,6 → 1242,14 |
#define ACPI_IPATH_ALLOCATED 0x01 |
typedef struct acpi_external_file |
{ |
char *Path; |
struct acpi_external_file *Next; |
} ACPI_EXTERNAL_FILE; |
/***************************************************************************** |
* |
* Debugger |
1258,7 → 1261,7 |
ACPI_HANDLE MainThreadGate; |
ACPI_HANDLE ThreadCompleteGate; |
ACPI_HANDLE InfoGate; |
UINT32 *Threads; |
ACPI_THREAD_ID *Threads; |
UINT32 NumThreads; |
UINT32 NumCreated; |
UINT32 NumCompleted; |
1268,6 → 1271,7 |
UINT32 NumLoops; |
char Pathname[128]; |
char **Args; |
ACPI_OBJECT_TYPE *Types; |
/* |
* Arguments to be passed to method for the command |
1276,6 → 1280,7 |
* Index of current thread inside all them created. |
*/ |
char InitArgs; |
ACPI_OBJECT_TYPE ArgTypes[4]; |
char *Arguments[4]; |
char NumThreadsStr[11]; |
char IdOfThreadStr[11]; |
/drivers/devman/acpica/include/acmacros.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
400,8 → 400,8 |
* the plist contains a set of parens to allow variable-length lists. |
* These macros are used for both the debug and non-debug versions of the code. |
*/ |
#define ACPI_ERROR_NAMESPACE(s, e) AcpiNsReportError (AE_INFO, s, e); |
#define ACPI_ERROR_METHOD(s, n, p, e) AcpiNsReportMethodError (AE_INFO, s, n, p, e); |
#define ACPI_ERROR_NAMESPACE(s, e) AcpiUtNamespaceError (AE_INFO, s, e); |
#define ACPI_ERROR_METHOD(s, n, p, e) AcpiUtMethodError (AE_INFO, s, n, p, e); |
#define ACPI_WARN_PREDEFINED(plist) AcpiUtPredefinedWarning plist |
#define ACPI_INFO_PREDEFINED(plist) AcpiUtPredefinedInfo plist |
/drivers/devman/acpica/include/acnames.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/acnamesp.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
514,22 → 514,6 |
ACPI_OBJECT_TYPE Type); |
void |
AcpiNsReportError ( |
const char *ModuleName, |
UINT32 LineNumber, |
const char *InternalName, |
ACPI_STATUS LookupStatus); |
void |
AcpiNsReportMethodError ( |
const char *ModuleName, |
UINT32 LineNumber, |
const char *Message, |
ACPI_NAMESPACE_NODE *Node, |
const char *Path, |
ACPI_STATUS LookupStatus); |
void |
AcpiNsPrintNodePathname ( |
ACPI_NAMESPACE_NODE *Node, |
const char *Msg); |
/drivers/devman/acpica/include/acobject.h |
---|
9,7 → 9,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
170,8 → 170,6 |
#define AOPOBJ_OBJECT_INITIALIZED 0x08 /* Region is initialized, _REG was run */ |
#define AOPOBJ_SETUP_COMPLETE 0x10 /* Region setup is complete */ |
#define AOPOBJ_INVALID 0x20 /* Host OS won't allow a Region address */ |
#define AOPOBJ_MODULE_LEVEL 0x40 /* Method is actually module-level code */ |
#define AOPOBJ_MODIFIED_NAMESPACE 0x80 /* Method modified the namespace */ |
/****************************************************************************** |
284,7 → 282,7 |
typedef struct acpi_object_method |
{ |
ACPI_OBJECT_COMMON_HEADER |
UINT8 MethodFlags; |
UINT8 InfoFlags; |
UINT8 ParamCount; |
UINT8 SyncLevel; |
union acpi_operand_object *Mutex; |
293,7 → 291,7 |
{ |
ACPI_INTERNAL_METHOD Implementation; |
union acpi_operand_object *Handler; |
} Extra; |
} Dispatch; |
UINT32 AmlLength; |
UINT8 ThreadCount; |
301,7 → 299,15 |
} ACPI_OBJECT_METHOD; |
/* Flags for InfoFlags field above */ |
#define ACPI_METHOD_MODULE_LEVEL 0x01 /* Method is actually module-level code */ |
#define ACPI_METHOD_INTERNAL_ONLY 0x02 /* Method is implemented internally (_OSI) */ |
#define ACPI_METHOD_SERIALIZED 0x04 /* Method is serialized */ |
#define ACPI_METHOD_SERIALIZED_PENDING 0x08 /* Method is to be marked serialized */ |
#define ACPI_METHOD_MODIFIED_NAMESPACE 0x10 /* Method modified the namespace */ |
/****************************************************************************** |
* |
* Objects that can be notified. All share a common NotifyInfo area. |
/drivers/devman/acpica/include/acopcode.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/acoutput.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
143,8 → 143,9 |
#define ACPI_TOOLS 0x00002000 |
#define ACPI_EXAMPLE 0x00004000 |
#define ACPI_DRIVER 0x00008000 |
#define DT_COMPILER 0x00010000 |
#define ACPI_ALL_COMPONENTS 0x0000FFFF |
#define ACPI_ALL_COMPONENTS 0x0001FFFF |
#define ACPI_COMPONENT_DEFAULT (ACPI_ALL_COMPONENTS) |
/* Component IDs reserved for ACPI drivers */ |
257,13 → 258,19 |
#if defined (ACPI_DEBUG_OUTPUT) || !defined (ACPI_NO_ERROR_MESSAGES) |
/* |
* Module name is included in both debug and non-debug versions primarily for |
* error messages. The __FILE__ macro is not very useful for this, because it |
* often includes the entire pathname to the module |
* The module name is used primarily for error and debug messages. |
* The __FILE__ macro is not very useful for this, because it |
* usually includes the entire pathname to the module making the |
* debug output difficult to read. |
*/ |
#define ACPI_MODULE_NAME(Name) static const char ACPI_UNUSED_VAR _AcpiModuleName[] = Name; |
#else |
/* |
* For the no-debug and no-error-msg cases, we must at least define |
* a null module name. |
*/ |
#define ACPI_MODULE_NAME(Name) |
#define _AcpiModuleName "" |
#endif |
/* |
/drivers/devman/acpica/include/acparser.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/acpi.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/acpiosxf.h |
---|
12,7 → 12,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
394,7 → 394,7 |
AcpiOsReadPciConfiguration ( |
ACPI_PCI_ID *PciId, |
UINT32 Reg, |
void *Value, |
UINT64 *Value, |
UINT32 Width); |
ACPI_STATUS |
406,22 → 406,8 |
/* |
* Interim function needed for PCI IRQ routing |
*/ |
void |
AcpiOsDerivePciId( |
ACPI_HANDLE Device, |
ACPI_HANDLE Region, |
ACPI_PCI_ID **PciId); |
/* |
* Miscellaneous |
*/ |
ACPI_STATUS |
AcpiOsValidateInterface ( |
char *Interface); |
BOOLEAN |
AcpiOsReadable ( |
void *Pointer, |
463,9 → 449,11 |
/* |
* Debug input |
*/ |
UINT32 |
ACPI_STATUS |
AcpiOsGetLine ( |
char *Buffer); |
char *Buffer, |
UINT32 BufferLength, |
UINT32 *BytesRead); |
/* |
/drivers/devman/acpica/include/acpixf.h |
---|
9,7 → 9,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
120,7 → 120,7 |
/* Current ACPICA subsystem version in YYYYMMDD format */ |
#define ACPI_CA_VERSION 0x20100528 |
#define ACPI_CA_VERSION 0x20110623 |
#include "actypes.h" |
#include "actbl.h" |
130,6 → 130,7 |
*/ |
extern UINT32 AcpiCurrentGpeCount; |
extern ACPI_TABLE_FADT AcpiGbl_FADT; |
extern BOOLEAN AcpiGbl_SystemAwakeAndRunning; |
/* Runtime configuration of debug print levels */ |
141,7 → 142,6 |
extern UINT8 AcpiGbl_EnableInterpreterSlack; |
extern UINT8 AcpiGbl_AllMethodsSerialized; |
extern UINT8 AcpiGbl_CreateOsiMethod; |
extern UINT8 AcpiGbl_LeaveWakeGpesDisabled; |
extern UINT8 AcpiGbl_UseDefaultRegisterWidths; |
extern ACPI_NAME AcpiGbl_TraceMethodName; |
extern UINT32 AcpiGbl_TraceFlags; |
148,10 → 148,11 |
extern UINT8 AcpiGbl_EnableAmlDebugObject; |
extern UINT8 AcpiGbl_CopyDsdtLocally; |
extern UINT8 AcpiGbl_TruncateIoAddresses; |
extern UINT8 AcpiGbl_DisableAutoRepair; |
/* |
* Global interfaces |
* Initialization |
*/ |
ACPI_STATUS |
AcpiInitializeTables ( |
175,10 → 176,10 |
AcpiTerminate ( |
void); |
ACPI_STATUS |
AcpiSubsystemStatus ( |
void); |
/* |
* Miscellaneous global interfaces |
*/ |
ACPI_STATUS |
AcpiEnable ( |
void); |
188,6 → 189,10 |
void); |
ACPI_STATUS |
AcpiSubsystemStatus ( |
void); |
ACPI_STATUS |
AcpiGetSystemInfo ( |
ACPI_BUFFER *RetBuffer); |
203,9 → 208,17 |
AcpiPurgeCachedObjects ( |
void); |
ACPI_STATUS |
AcpiInstallInterface ( |
ACPI_STRING InterfaceName); |
ACPI_STATUS |
AcpiRemoveInterface ( |
ACPI_STRING InterfaceName); |
/* |
* ACPI Memory managment |
* ACPI Memory management |
*/ |
void * |
AcpiAllocate ( |
373,6 → 386,11 |
UINT32 Function); |
ACPI_STATUS |
AcpiInstallGlobalEventHandler ( |
ACPI_GBL_EVENT_HANDLER Handler, |
void *Context); |
ACPI_STATUS |
AcpiInstallFixedEventHandler ( |
UINT32 AcpiEvent, |
ACPI_EVENT_HANDLER Handler, |
384,6 → 402,20 |
ACPI_EVENT_HANDLER Handler); |
ACPI_STATUS |
AcpiInstallGpeHandler ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber, |
UINT32 Type, |
ACPI_GPE_HANDLER Address, |
void *Context); |
ACPI_STATUS |
AcpiRemoveGpeHandler ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber, |
ACPI_GPE_HANDLER Address); |
ACPI_STATUS |
AcpiInstallNotifyHandler ( |
ACPI_HANDLE Device, |
UINT32 HandlerType, |
411,26 → 443,16 |
ACPI_ADR_SPACE_HANDLER Handler); |
ACPI_STATUS |
AcpiInstallGpeHandler ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber, |
UINT32 Type, |
ACPI_EVENT_HANDLER Address, |
void *Context); |
AcpiInstallExceptionHandler ( |
ACPI_EXCEPTION_HANDLER Handler); |
ACPI_STATUS |
AcpiRemoveGpeHandler ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber, |
ACPI_EVENT_HANDLER Address); |
AcpiInstallInterfaceHandler ( |
ACPI_INTERFACE_HANDLER Handler); |
ACPI_STATUS |
AcpiInstallExceptionHandler ( |
ACPI_EXCEPTION_HANDLER Handler); |
/* |
* Event interfaces |
* Global Lock interfaces |
*/ |
ACPI_STATUS |
AcpiAcquireGlobalLock ( |
441,6 → 463,10 |
AcpiReleaseGlobalLock ( |
UINT32 Handle); |
/* |
* Fixed Event interfaces |
*/ |
ACPI_STATUS |
AcpiEnableEvent ( |
UINT32 Event, |
462,25 → 488,21 |
/* |
* GPE Interfaces |
* General Purpose Event (GPE) Interfaces |
*/ |
ACPI_STATUS |
AcpiSetGpe ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber, |
UINT8 Action); |
AcpiUpdateAllGpes ( |
void); |
ACPI_STATUS |
AcpiEnableGpe ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber, |
UINT8 GpeType); |
UINT32 GpeNumber); |
ACPI_STATUS |
AcpiDisableGpe ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber, |
UINT8 GpeType); |
UINT32 GpeNumber); |
ACPI_STATUS |
AcpiClearGpe ( |
488,6 → 510,29 |
UINT32 GpeNumber); |
ACPI_STATUS |
AcpiSetGpe ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber, |
UINT8 Action); |
ACPI_STATUS |
AcpiFinishGpe ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber); |
ACPI_STATUS |
AcpiSetupGpeForWake ( |
ACPI_HANDLE ParentDevice, |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber); |
ACPI_STATUS |
AcpiSetGpeWakeMask ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber, |
UINT8 Action); |
ACPI_STATUS |
AcpiGetGpeStatus ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber, |
/drivers/devman/acpica/include/acpredef.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
542,6 → 542,7 |
{{"_SWS", 0, ACPI_RTYPE_INTEGER}}, |
{{"_TC1", 0, ACPI_RTYPE_INTEGER}}, |
{{"_TC2", 0, ACPI_RTYPE_INTEGER}}, |
{{"_TDL", 0, ACPI_RTYPE_INTEGER}}, |
{{"_TIP", 1, ACPI_RTYPE_INTEGER}}, |
{{"_TIV", 1, ACPI_RTYPE_INTEGER}}, |
{{"_TMP", 0, ACPI_RTYPE_INTEGER}}, |
/drivers/devman/acpica/include/acresrc.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/acrestyp.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/acstruct.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/actables.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/actbl.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
224,9 → 224,30 |
} ACPI_TABLE_RSDP; |
#define ACPI_RSDP_REV0_SIZE 20 /* Size of original ACPI 1.0 RSDP */ |
/* Standalone struct for the ACPI 1.0 RSDP */ |
typedef struct acpi_rsdp_common |
{ |
char Signature[8]; |
UINT8 Checksum; |
char OemId[ACPI_OEM_ID_SIZE]; |
UINT8 Revision; |
UINT32 RsdtPhysicalAddress; |
} ACPI_RSDP_COMMON; |
/* Standalone struct for the extended part of the RSDP (ACPI 2.0+) */ |
typedef struct acpi_rsdp_extension |
{ |
UINT32 Length; |
UINT64 XsdtPhysicalAddress; |
UINT8 ExtendedChecksum; |
UINT8 Reserved[3]; |
} ACPI_RSDP_EXTENSION; |
/******************************************************************************* |
* |
* RSDT/XSDT - Root System Description Tables |
448,4 → 469,20 |
#define ACPI_FADT_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_TABLE_FADT, f) |
/* |
* Sizes of the various flavors of FADT. We need to look closely |
* at the FADT length because the version number essentially tells |
* us nothing because of many BIOS bugs where the version does not |
* match the expected length. In other words, the length of the |
* FADT is the bottom line as to what the version really is. |
* |
* For reference, the values below are as follows: |
* FADT V1 size: 0x74 |
* FADT V2 size: 0x84 |
* FADT V3+ size: 0xF4 |
*/ |
#define ACPI_FADT_V1_SIZE (UINT32) (ACPI_FADT_OFFSET (Flags) + 4) |
#define ACPI_FADT_V2_SIZE (UINT32) (ACPI_FADT_OFFSET (Reserved4[0]) + 3) |
#define ACPI_FADT_V3_SIZE (UINT32) (sizeof (ACPI_TABLE_FADT)) |
#endif /* __ACTBL_H__ */ |
/drivers/devman/acpica/include/actbl1.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/actbl2.h |
---|
1,6 → 1,6 |
/****************************************************************************** |
* |
* Name: actbl2.h - ACPI Specification Revision 2.0 Tables |
* Name: actbl2.h - ACPI Table Definitions (tables not in ACPI spec) |
* |
*****************************************************************************/ |
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
151,6 → 151,7 |
#define ACPI_SIG_UEFI "UEFI" /* Uefi Boot Optimization Table */ |
#define ACPI_SIG_WAET "WAET" /* Windows ACPI Emulated devices Table */ |
#define ACPI_SIG_WDAT "WDAT" /* Watchdog Action Table */ |
#define ACPI_SIG_WDDT "WDDT" /* Watchdog Timer Description Table */ |
#define ACPI_SIG_WDRT "WDRT" /* Watchdog Resource Table */ |
#ifdef ACPI_UNDEFINED_TABLES |
902,6 → 903,81 |
/******************************************************************************* |
* |
* SLIC - Software Licensing Description Table |
* Version 1 |
* |
* Conforms to "OEM Activation 2.0 for Windows Vista Operating Systems", |
* Copyright 2006 |
* |
******************************************************************************/ |
/* Basic SLIC table is only the common ACPI header */ |
typedef struct acpi_table_slic |
{ |
ACPI_TABLE_HEADER Header; /* Common ACPI table header */ |
} ACPI_TABLE_SLIC; |
/* Common SLIC subtable header */ |
typedef struct acpi_slic_header |
{ |
UINT32 Type; |
UINT32 Length; |
} ACPI_SLIC_HEADER; |
/* Values for Type field above */ |
enum AcpiSlicType |
{ |
ACPI_SLIC_TYPE_PUBLIC_KEY = 0, |
ACPI_SLIC_TYPE_WINDOWS_MARKER = 1, |
ACPI_SLIC_TYPE_RESERVED = 2 /* 2 and greater are reserved */ |
}; |
/* |
* SLIC Sub-tables, correspond to Type in ACPI_SLIC_HEADER |
*/ |
/* 0: Public Key Structure */ |
typedef struct acpi_slic_key |
{ |
ACPI_SLIC_HEADER Header; |
UINT8 KeyType; |
UINT8 Version; |
UINT16 Reserved; |
UINT32 Algorithm; |
char Magic[4]; |
UINT32 BitLength; |
UINT32 Exponent; |
UINT8 Modulus[128]; |
} ACPI_SLIC_KEY; |
/* 1: Windows Marker Structure */ |
typedef struct acpi_slic_marker |
{ |
ACPI_SLIC_HEADER Header; |
UINT32 Version; |
char OemId[ACPI_OEM_ID_SIZE]; /* ASCII OEM identification */ |
char OemTableId[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */ |
char WindowsFlag[8]; |
UINT32 SlicVersion; |
UINT8 Reserved[16]; |
UINT8 Signature[128]; |
} ACPI_SLIC_MARKER; |
/******************************************************************************* |
* |
* SPCR - Serial Port Console Redirection table |
* Version 1 |
* |
1129,6 → 1205,47 |
/******************************************************************************* |
* |
* WDDT - Watchdog Descriptor Table |
* Version 1 |
* |
* Conforms to "Using the Intel ICH Family Watchdog Timer (WDT)", |
* Version 001, September 2002 |
* |
******************************************************************************/ |
typedef struct acpi_table_wddt |
{ |
ACPI_TABLE_HEADER Header; /* Common ACPI table header */ |
UINT16 SpecVersion; |
UINT16 TableVersion; |
UINT16 PciVendorId; |
ACPI_GENERIC_ADDRESS Address; |
UINT16 MaxCount; /* Maximum counter value supported */ |
UINT16 MinCount; /* Minimum counter value supported */ |
UINT16 Period; |
UINT16 Status; |
UINT16 Capability; |
} ACPI_TABLE_WDDT; |
/* Flags for Status field above */ |
#define ACPI_WDDT_AVAILABLE (1) |
#define ACPI_WDDT_ACTIVE (1<<1) |
#define ACPI_WDDT_TCO_OS_OWNED (1<<2) |
#define ACPI_WDDT_USER_RESET (1<<11) |
#define ACPI_WDDT_WDT_RESET (1<<12) |
#define ACPI_WDDT_POWER_FAIL (1<<13) |
#define ACPI_WDDT_UNKNOWN_RESET (1<<14) |
/* Flags for Capability field above */ |
#define ACPI_WDDT_AUTO_RESET (1) |
#define ACPI_WDDT_ALERT_SUPPORT (1<<1) |
/******************************************************************************* |
* |
* WDRT - Watchdog Resource Table |
* Version 1 |
* |
/drivers/devman/acpica/include/actypes.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
188,7 → 188,6 |
* |
* ACPI_SIZE 16/32/64-bit unsigned value |
* ACPI_NATIVE_INT 16/32/64-bit signed value |
* |
*/ |
/******************************************************************************* |
205,7 → 204,17 |
/*! [End] no source code translation !*/ |
/* |
* Value returned by AcpiOsGetThreadId. There is no standard "thread_id" |
* across operating systems or even the various UNIX systems. Since ACPICA |
* only needs the thread ID as a unique thread identifier, we use a UINT64 |
* as the only common data type - it will accommodate any type of pointer or |
* any type of integer. It is up to the host-dependent OSL to cast the |
* native thread ID type to a UINT64 (in AcpiOsGetThreadId). |
*/ |
#define ACPI_THREAD_ID UINT64 |
/******************************************************************************* |
* |
* Types specific to 64-bit targets |
286,12 → 295,6 |
* |
******************************************************************************/ |
/* Value returned by AcpiOsGetThreadId */ |
#ifndef ACPI_THREAD_ID |
#define ACPI_THREAD_ID ACPI_SIZE |
#endif |
/* Flags for AcpiOsAcquireLock/AcpiOsReleaseLock */ |
#ifndef ACPI_CPU_FLAGS |
456,21 → 459,6 |
#define ACPI_OWNER_ID_MAX 0xFF |
typedef struct uint64_struct |
{ |
UINT32 Lo; |
UINT32 Hi; |
} UINT64_STRUCT; |
typedef union uint64_overlay |
{ |
UINT64 Full; |
UINT64_STRUCT Part; |
} UINT64_OVERLAY; |
#define ACPI_INTEGER_BIT_SIZE 64 |
#define ACPI_MAX_DECIMAL_DIGITS 20 /* 2^64 = 18,446,744,073,709,551,616 */ |
#define ACPI_MAX64_DECIMAL_DIGITS 20 |
742,39 → 730,35 |
#define ACPI_GPE_MAX 0xFF |
#define ACPI_NUM_GPE 256 |
/* Actions for AcpiSetGpe */ |
/* Actions for AcpiSetGpe, AcpiGpeWakeup, AcpiHwLowSetGpe */ |
#define ACPI_GPE_ENABLE 0 |
#define ACPI_GPE_DISABLE 1 |
#define ACPI_GPE_CONDITIONAL_ENABLE 2 |
/* GpeTypes for AcpiEnableGpe and AcpiDisableGpe */ |
#define ACPI_GPE_TYPE_WAKE (UINT8) 0x01 |
#define ACPI_GPE_TYPE_RUNTIME (UINT8) 0x02 |
#define ACPI_GPE_TYPE_WAKE_RUN (UINT8) 0x03 |
/* |
* GPE info flags - Per GPE |
* +-------+---+-+-+ |
* | 7:4 |3:2|1|0| |
* +-------+---+-+-+ |
* +-------+-+-+---+ |
* | 7:4 |3|2|1:0| |
* +-------+-+-+---+ |
* | | | | |
* | | | +--- Interrupt type: edge or level triggered |
* | | +----- GPE can wake the system |
* | +-------- Type of dispatch:to method, handler, or none |
* +-------------- <Reserved> |
* | | | +-- Type of dispatch:to method, handler, notify, or none |
* | | +----- Interrupt type: edge or level triggered |
* | +------- Is a Wake GPE |
* +------------ <Reserved> |
*/ |
#define ACPI_GPE_XRUPT_TYPE_MASK (UINT8) 0x01 |
#define ACPI_GPE_LEVEL_TRIGGERED (UINT8) 0x01 |
#define ACPI_GPE_DISPATCH_NONE (UINT8) 0x00 |
#define ACPI_GPE_DISPATCH_METHOD (UINT8) 0x01 |
#define ACPI_GPE_DISPATCH_HANDLER (UINT8) 0x02 |
#define ACPI_GPE_DISPATCH_NOTIFY (UINT8) 0x03 |
#define ACPI_GPE_DISPATCH_MASK (UINT8) 0x03 |
#define ACPI_GPE_LEVEL_TRIGGERED (UINT8) 0x04 |
#define ACPI_GPE_EDGE_TRIGGERED (UINT8) 0x00 |
#define ACPI_GPE_XRUPT_TYPE_MASK (UINT8) 0x04 |
#define ACPI_GPE_CAN_WAKE (UINT8) 0x02 |
#define ACPI_GPE_CAN_WAKE (UINT8) 0x08 |
#define ACPI_GPE_DISPATCH_MASK (UINT8) 0x0C |
#define ACPI_GPE_DISPATCH_HANDLER (UINT8) 0x04 |
#define ACPI_GPE_DISPATCH_METHOD (UINT8) 0x08 |
#define ACPI_GPE_DISPATCH_NOT_USED (UINT8) 0x00 |
/* |
* Flags for GPE and Lock interfaces |
*/ |
804,11 → 788,26 |
#define ACPI_ADR_SPACE_CMOS (ACPI_ADR_SPACE_TYPE) 5 |
#define ACPI_ADR_SPACE_PCI_BAR_TARGET (ACPI_ADR_SPACE_TYPE) 6 |
#define ACPI_ADR_SPACE_IPMI (ACPI_ADR_SPACE_TYPE) 7 |
#define ACPI_ADR_SPACE_DATA_TABLE (ACPI_ADR_SPACE_TYPE) 8 |
#define ACPI_ADR_SPACE_FIXED_HARDWARE (ACPI_ADR_SPACE_TYPE) 127 |
#define ACPI_NUM_PREDEFINED_REGIONS 8 |
/* |
* Special Address Spaces |
* |
* Note: A Data Table region is a special type of operation region |
* that has its own AML opcode. However, internally, the AML |
* interpreter simply creates an operation region with an an address |
* space type of ACPI_ADR_SPACE_DATA_TABLE. |
*/ |
#define ACPI_ADR_SPACE_DATA_TABLE (ACPI_ADR_SPACE_TYPE) 0x7E /* Internal to ACPICA only */ |
#define ACPI_ADR_SPACE_FIXED_HARDWARE (ACPI_ADR_SPACE_TYPE) 0x7F |
/* Values for _REG connection code */ |
#define ACPI_REG_DISCONNECT 0 |
#define ACPI_REG_CONNECT 1 |
/* |
* BitRegister IDs |
* |
* These values are intended to be used by the hardware interfaces |
1032,10 → 1031,26 |
* Various handlers and callback procedures |
*/ |
typedef |
void (*ACPI_GBL_EVENT_HANDLER) ( |
UINT32 EventType, |
ACPI_HANDLE Device, |
UINT32 EventNumber, |
void *Context); |
#define ACPI_EVENT_TYPE_GPE 0 |
#define ACPI_EVENT_TYPE_FIXED 1 |
typedef |
UINT32 (*ACPI_EVENT_HANDLER) ( |
void *Context); |
typedef |
UINT32 (*ACPI_GPE_HANDLER) ( |
ACPI_HANDLE GpeDevice, |
UINT32 GpeNumber, |
void *Context); |
typedef |
void (*ACPI_NOTIFY_HANDLER) ( |
ACPI_HANDLE Device, |
UINT32 Value, |
1104,12 → 1119,22 |
void *Context, |
void **ReturnValue); |
typedef |
UINT32 (*ACPI_INTERFACE_HANDLER) ( |
ACPI_STRING InterfaceName, |
UINT32 Supported); |
/* Interrupt handler return values */ |
#define ACPI_INTERRUPT_NOT_HANDLED 0x00 |
#define ACPI_INTERRUPT_HANDLED 0x01 |
/* GPE handler return values */ |
#define ACPI_REENABLE_GPE 0x80 |
/* Length of 32-bit EISAID values when converted back to a string */ |
#define ACPI_EISAID_STRING_SIZE 8 /* Includes null terminator */ |
/drivers/devman/acpica/include/acutils.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
536,10 → 536,6 |
* uteval - object evaluation |
*/ |
ACPI_STATUS |
AcpiUtOsiImplementation ( |
ACPI_WALK_STATE *WalkState); |
ACPI_STATUS |
AcpiUtEvaluateObject ( |
ACPI_NAMESPACE_NODE *PrefixNode, |
char *Path, |
662,6 → 658,34 |
/* |
* utosi - Support for the _OSI predefined control method |
*/ |
ACPI_STATUS |
AcpiUtInitializeInterfaces ( |
void); |
void |
AcpiUtInterfaceTerminate ( |
void); |
ACPI_STATUS |
AcpiUtInstallInterface ( |
ACPI_STRING InterfaceName); |
ACPI_STATUS |
AcpiUtRemoveInterface ( |
ACPI_STRING InterfaceName); |
ACPI_INTERFACE_INFO * |
AcpiUtGetInterface ( |
ACPI_STRING InterfaceName); |
ACPI_STATUS |
AcpiUtOsiImplementation ( |
ACPI_WALK_STATE *WalkState); |
/* |
* utstate - Generic state creation/cache routines |
*/ |
void |
767,6 → 791,10 |
char *SrcString); |
void |
AcpiUtStrlwr ( |
char *SrcString); |
void |
AcpiUtPrintString ( |
char *String, |
UINT8 MaxLength); |
790,24 → 818,6 |
UINT32 Base, |
UINT64 *RetInteger); |
void ACPI_INTERNAL_VAR_XFACE |
AcpiUtPredefinedWarning ( |
const char *ModuleName, |
UINT32 LineNumber, |
char *Pathname, |
UINT8 NodeFlags, |
const char *Format, |
...); |
void ACPI_INTERNAL_VAR_XFACE |
AcpiUtPredefinedInfo ( |
const char *ModuleName, |
UINT32 LineNumber, |
char *Pathname, |
UINT8 NodeFlags, |
const char *Format, |
...); |
/* Values for Base above (16=Hex, 10=Decimal) */ |
#define ACPI_ANY_BASE 0 |
957,7 → 967,44 |
UINT16 ObjectSize, |
ACPI_MEMORY_LIST **ReturnCache); |
#endif /* ACPI_DBG_TRACK_ALLOCATIONS */ |
#endif |
/* |
* utxferror - various error/warning output functions |
*/ |
void ACPI_INTERNAL_VAR_XFACE |
AcpiUtPredefinedWarning ( |
const char *ModuleName, |
UINT32 LineNumber, |
char *Pathname, |
UINT8 NodeFlags, |
const char *Format, |
...); |
void ACPI_INTERNAL_VAR_XFACE |
AcpiUtPredefinedInfo ( |
const char *ModuleName, |
UINT32 LineNumber, |
char *Pathname, |
UINT8 NodeFlags, |
const char *Format, |
...); |
void |
AcpiUtNamespaceError ( |
const char *ModuleName, |
UINT32 LineNumber, |
const char *InternalName, |
ACPI_STATUS LookupStatus); |
void |
AcpiUtMethodError ( |
const char *ModuleName, |
UINT32 LineNumber, |
const char *Message, |
ACPI_NAMESPACE_NODE *Node, |
const char *Path, |
ACPI_STATUS LookupStatus); |
#endif /* _ACUTILS_H */ |
/drivers/devman/acpica/include/amlcode.h |
---|
10,7 → 10,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
474,24 → 474,6 |
#define AML_CLASS_UNKNOWN 0x0A |
/* Predefined Operation Region SpaceIDs */ |
typedef enum |
{ |
REGION_MEMORY = 0, |
REGION_IO, |
REGION_PCI_CONFIG, |
REGION_EC, |
REGION_SMBUS, |
REGION_CMOS, |
REGION_PCI_BAR, |
REGION_IPMI, |
REGION_DATA_TABLE, /* Internal use only */ |
REGION_FIXED_HW = 0x7F |
} AML_REGION_TYPES; |
/* Comparison operation codes for MatchOp operator */ |
typedef enum |
579,17 → 561,11 |
} AML_ACCESS_ATTRIBUTE; |
/* Bit fields in MethodFlags byte */ |
/* Bit fields in the AML MethodFlags byte */ |
#define AML_METHOD_ARG_COUNT 0x07 |
#define AML_METHOD_SERIALIZED 0x08 |
#define AML_METHOD_SYNC_LEVEL 0xF0 |
/* METHOD_FLAGS_ARG_COUNT is not used internally, define additional flags */ |
#define AML_METHOD_INTERNAL_ONLY 0x01 |
#define AML_METHOD_RESERVED1 0x02 |
#define AML_METHOD_RESERVED2 0x04 |
#endif /* __AMLCODE_H__ */ |
/drivers/devman/acpica/include/amlresrc.h |
---|
9,7 → 9,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/platform/accygwin.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
121,7 → 121,6 |
*/ |
#define ACPI_USE_SYSTEM_CLIBRARY |
#define ACPI_USE_DO_WHILE_0 |
#define ACPI_THREAD_ID pthread_t |
#define ACPI_FLUSH_CPU_CACHE() |
/* |
* This is needed since sem_timedwait does not appear to work properly |
151,14 → 150,13 |
#define __cdecl |
#endif |
#ifdef _ANSI |
#define inline |
#endif |
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq) if (GLptr) Acq=1; else Acq=0; |
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pending) Pending = 1 |
/* On Cygwin, pthread_t is a pointer */ |
#define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) ACPI_TO_INTEGER (pthread)) |
/* Cygwin uses GCC */ |
#include "acgcc.h" |
/drivers/devman/acpica/include/platform/acefi.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/platform/acenv.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
148,9 → 148,10 |
#define ACPI_CONSTANT_EVAL_ONLY |
#define ACPI_LARGE_NAMESPACE_NODE |
#define ACPI_DATA_TABLE_DISASSEMBLY |
#define ACPI_SINGLE_THREADED |
#endif |
/* AcpiExec configuration */ |
/* AcpiExec configuration. Multithreaded with full AML debugger */ |
#ifdef ACPI_EXEC_APP |
#define ACPI_APPLICATION |
159,6 → 160,30 |
#define ACPI_DBG_TRACK_ALLOCATIONS |
#endif |
/* AcpiNames configuration. Single threaded with debugger output enabled. */ |
#ifdef ACPI_NAMES_APP |
#define ACPI_DEBUGGER |
#define ACPI_APPLICATION |
#define ACPI_SINGLE_THREADED |
#endif |
/* |
* AcpiBin/AcpiHelp/AcpiSrc configuration. All single threaded, with |
* no debug output. |
*/ |
#if (defined ACPI_BIN_APP) || \ |
(defined ACPI_SRC_APP) |
#define ACPI_APPLICATION |
#define ACPI_SINGLE_THREADED |
#endif |
#ifdef ACPI_HELP_APP |
#define ACPI_DEBUG_OUTPUT |
#define ACPI_APPLICATION |
#define ACPI_SINGLE_THREADED |
#endif |
/* Linkable ACPICA library */ |
#ifdef ACPI_LIBRARY |
235,6 → 260,12 |
#define ACPI_FLUSH_CPU_CACHE() |
#endif |
/* "inline" keywords - configurable since inline is not standardized */ |
#ifndef ACPI_INLINE |
#define ACPI_INLINE |
#endif |
/* |
* Configurable calling conventions: |
* |
/drivers/devman/acpica/include/platform/acfreebsd.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
139,7 → 139,6 |
#include "opt_acpi.h" |
#define ACPI_THREAD_ID lwpid_t |
#define ACPI_MUTEX_TYPE ACPI_OSL_MUTEX |
#ifdef ACPI_DEBUG |
166,7 → 165,7 |
#include <ctype.h> |
#endif |
#define ACPI_THREAD_ID pthread_t |
#define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) ACPI_TO_INTEGER (pthread)) |
#define ACPI_USE_STANDARD_HEADERS |
/drivers/devman/acpica/include/platform/acgcc.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
116,6 → 116,8 |
#ifndef __ACGCC_H__ |
#define __ACGCC_H__ |
#define ACPI_INLINE __inline__ |
/* Function name is used for debug output. Non-ANSI, compiler-dependent */ |
#define ACPI_GET_FUNCTION_NAME __FUNCTION__ |
/drivers/devman/acpica/include/platform/acintel.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
116,12 → 116,12 |
#ifndef __ACINTEL_H__ |
#define __ACINTEL_H__ |
/* Configuration specific to Intel 64-bit C compiler */ |
#define COMPILER_DEPENDENT_INT64 __int64 |
#define COMPILER_DEPENDENT_UINT64 unsigned __int64 |
#define ACPI_INLINE __inline |
#define inline __inline |
/* |
* Calling conventions: |
* |
135,20 → 135,6 |
#define ACPI_INTERNAL_XFACE |
#define ACPI_INTERNAL_VAR_XFACE |
/* |
* Math helper functions |
*/ |
#define ACPI_DIV_64_BY_32(n, n_hi, n_lo, d32, q32, r32) \ |
{ \ |
q32 = n / d32; \ |
r32 = n % d32; \ |
} |
#define ACPI_SHIFT_RIGHT_64(n, n_hi, n_lo) \ |
{ \ |
n <<= 1; \ |
} |
/* remark 981 - operands evaluated in no particular order */ |
#pragma warning(disable:981) |
/drivers/devman/acpica/include/platform/ackolibri.h |
---|
1,7 → 1,5 |
/****************************************************************************** |
* |
* Name: achaiku.h - OS specific defines, etc. |
* $Revision: 1.1 $ |
* |
*****************************************************************************/ |
134,7 → 132,6 |
#define asm __asm__ |
#define ACPI_USE_DO_WHILE_0 |
#define ACPI_THREAD_ID UINT32 |
#define ACPI_USE_NATIVE_DIVIDE |
/drivers/devman/acpica/include/platform/aclinux.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
147,7 → 147,6 |
#define ACPI_CACHE_T struct kmem_cache |
#define ACPI_SPINLOCK spinlock_t * |
#define ACPI_CPU_FLAGS unsigned long |
#define ACPI_THREAD_ID struct task_struct * |
#else /* !__KERNEL__ */ |
160,17 → 159,18 |
/* Host-dependent types and defines for user-space ACPICA */ |
#define ACPI_FLUSH_CPU_CACHE() |
#define ACPI_THREAD_ID pthread_t |
#if defined(__ia64__) || defined(__x86_64__) |
#define ACPI_MACHINE_WIDTH 64 |
#define COMPILER_DEPENDENT_INT64 long |
#define COMPILER_DEPENDENT_UINT64 unsigned long |
#define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) (pthread)) |
#else |
#define ACPI_MACHINE_WIDTH 32 |
#define COMPILER_DEPENDENT_INT64 long long |
#define COMPILER_DEPENDENT_UINT64 unsigned long long |
#define ACPI_USE_NATIVE_DIVIDE |
#define ACPI_CAST_PTHREAD_T(pthread) ((ACPI_THREAD_ID) (UINT32) (void *) (pthread)) |
#endif |
#ifndef __cdecl |
/drivers/devman/acpica/include/platform/acmsvc.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
116,8 → 116,43 |
#ifndef __ACMSVC_H__ |
#define __ACMSVC_H__ |
/* |
* Map low I/O functions for MS. This allows us to disable MS language |
* extensions for maximum portability. |
*/ |
#define open _open |
#define read _read |
#define write _write |
#define close _close |
#define stat _stat |
#define fstat _fstat |
#define mkdir _mkdir |
#define strlwr _strlwr |
#define O_RDONLY _O_RDONLY |
#define O_BINARY _O_BINARY |
#define O_CREAT _O_CREAT |
#define O_WRONLY _O_WRONLY |
#define O_TRUNC _O_TRUNC |
#define S_IREAD _S_IREAD |
#define S_IWRITE _S_IWRITE |
#define S_IFDIR _S_IFDIR |
/* Eliminate warnings for "old" (non-secure) versions of clib functions */ |
#ifndef _CRT_SECURE_NO_WARNINGS |
#define _CRT_SECURE_NO_WARNINGS |
#endif |
/* Eliminate warnings for POSIX clib function names (open, write, etc.) */ |
#ifndef _CRT_NONSTDC_NO_DEPRECATE |
#define _CRT_NONSTDC_NO_DEPRECATE |
#endif |
#define COMPILER_DEPENDENT_INT64 __int64 |
#define COMPILER_DEPENDENT_UINT64 unsigned __int64 |
#define ACPI_INLINE __inline |
/* |
* Calling conventions: |
179,5 → 214,8 |
/* warn C4131: uses old-style declarator (iASL compiler only) */ |
#pragma warning(disable:4131) |
#if _MSC_VER > 1200 /* Versions above VC++ 6 */ |
#pragma warning( disable : 4295 ) /* needed for acpredef.h array */ |
#endif |
#endif /* __ACMSVC_H__ */ |
/drivers/devman/acpica/include/platform/acnetbsd.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/include/platform/acos2.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
158,12 → 158,6 |
n_lo = (unsigned long)(val & 0xffffffff); \ |
} |
/* IBM VAC does not have inline */ |
#if __IBMC__ || __IBMCPP__ |
#define inline |
#endif |
#ifndef ACPI_ASL_COMPILER |
#define ACPI_USE_LOCAL_CACHE |
#undef ACPI_DEBUGGER |
/drivers/devman/acpica/include/platform/acwin.h |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
126,8 → 126,6 |
#define ACPI_MACHINE_WIDTH 32 |
#define inline __inline |
#define ACPI_USE_STANDARD_HEADERS |
#ifdef ACPI_DEFINE_ALTERNATE_TYPES |
/drivers/devman/acpica/include/platform/acwin64.h |
---|
1,6 → 1,6 |
/****************************************************************************** |
* |
* Name: acwin.h - OS specific defines, etc. |
* Name: acwin64.h - OS specific defines, etc. |
* |
*****************************************************************************/ |
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |