diff options
Diffstat (limited to 'sys/contrib/dev/acpica/acutils.h')
-rw-r--r-- | sys/contrib/dev/acpica/acutils.h | 203 |
1 files changed, 48 insertions, 155 deletions
diff --git a/sys/contrib/dev/acpica/acutils.h b/sys/contrib/dev/acpica/acutils.h index fef6f08..71de0b0 100644 --- a/sys/contrib/dev/acpica/acutils.h +++ b/sys/contrib/dev/acpica/acutils.h @@ -1,7 +1,7 @@ /****************************************************************************** * * Name: acutils.h -- prototypes for the common (subsystem-wide) procedures - * $Revision: 1.200 $ + * $Revision: 164 $ * *****************************************************************************/ @@ -9,7 +9,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 - 2005, Intel Corp. * All rights reserved. * * 2. License @@ -118,47 +118,6 @@ #define _ACUTILS_H -extern const UINT8 AcpiGbl_ResourceAmlSizes[]; - -/* Strings used by the disassembler and debugger resource dump routines */ - -#if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUGGER) - -extern const char *AcpiGbl_BmDecode[]; -extern const char *AcpiGbl_ConfigDecode[]; -extern const char *AcpiGbl_ConsumeDecode[]; -extern const char *AcpiGbl_DecDecode[]; -extern const char *AcpiGbl_HeDecode[]; -extern const char *AcpiGbl_IoDecode[]; -extern const char *AcpiGbl_LlDecode[]; -extern const char *AcpiGbl_MaxDecode[]; -extern const char *AcpiGbl_MemDecode[]; -extern const char *AcpiGbl_MinDecode[]; -extern const char *AcpiGbl_MtpDecode[]; -extern const char *AcpiGbl_RngDecode[]; -extern const char *AcpiGbl_RwDecode[]; -extern const char *AcpiGbl_ShrDecode[]; -extern const char *AcpiGbl_SizDecode[]; -extern const char *AcpiGbl_TrsDecode[]; -extern const char *AcpiGbl_TtpDecode[]; -extern const char *AcpiGbl_TypDecode[]; -#endif - -/* Types for Resource descriptor entries */ - -#define ACPI_INVALID_RESOURCE 0 -#define ACPI_FIXED_LENGTH 1 -#define ACPI_VARIABLE_LENGTH 2 -#define ACPI_SMALL_VARIABLE_LENGTH 3 - -typedef -ACPI_STATUS (*ACPI_WALK_AML_CALLBACK) ( - UINT8 *Aml, - UINT32 Length, - UINT32 Offset, - UINT8 ResourceIndex, - void *Context); - typedef ACPI_STATUS (*ACPI_PKG_CALLBACK) ( UINT8 ObjectType, @@ -247,6 +206,10 @@ void AcpiUtSubsystemShutdown ( void); +ACPI_STATUS +AcpiUtValidateFadt ( + void); + /* * utclib - Local implementations of C library functions @@ -472,34 +435,29 @@ AcpiUtPtrExit ( UINT8 *Ptr); void -AcpiUtDumpBuffer ( - UINT8 *Buffer, - UINT32 Count, - UINT32 Display, - UINT32 componentId); - -void -AcpiUtDumpBuffer2 ( - UINT8 *Buffer, - UINT32 Count, - UINT32 Display); - -void -AcpiUtReportError ( +AcpiUtReportInfo ( char *ModuleName, - UINT32 LineNumber); + UINT32 LineNumber, + UINT32 ComponentId); void -AcpiUtReportInfo ( +AcpiUtReportError ( char *ModuleName, - UINT32 LineNumber); + UINT32 LineNumber, + UINT32 ComponentId); void AcpiUtReportWarning ( char *ModuleName, - UINT32 LineNumber); + UINT32 LineNumber, + UINT32 ComponentId); -/* Error and message reporting interfaces */ +void +AcpiUtDumpBuffer ( + UINT8 *Buffer, + UINT32 Count, + UINT32 Display, + UINT32 componentId); void ACPI_INTERNAL_VAR_XFACE AcpiUtDebugPrint ( @@ -509,7 +467,7 @@ AcpiUtDebugPrint ( char *ModuleName, UINT32 ComponentId, char *Format, - ...) ACPI_PRINTF_LIKE(6); + ...) ACPI_PRINTF_LIKE_FUNC; void ACPI_INTERNAL_VAR_XFACE AcpiUtDebugPrintRaw ( @@ -519,36 +477,7 @@ AcpiUtDebugPrintRaw ( char *ModuleName, UINT32 ComponentId, char *Format, - ...) ACPI_PRINTF_LIKE(6); - -void ACPI_INTERNAL_VAR_XFACE -AcpiUtError ( - char *ModuleName, - UINT32 LineNumber, - char *Format, - ...) ACPI_PRINTF_LIKE(3); - -void ACPI_INTERNAL_VAR_XFACE -AcpiUtException ( - char *ModuleName, - UINT32 LineNumber, - ACPI_STATUS Status, - char *Format, - ...) ACPI_PRINTF_LIKE(4); - -void ACPI_INTERNAL_VAR_XFACE -AcpiUtWarning ( - char *ModuleName, - UINT32 LineNumber, - char *Format, - ...) ACPI_PRINTF_LIKE(3); - -void ACPI_INTERNAL_VAR_XFACE -AcpiUtInfo ( - char *ModuleName, - UINT32 LineNumber, - char *Format, - ...) ACPI_PRINTF_LIKE(3); + ...) ACPI_PRINTF_LIKE_FUNC; /* @@ -736,14 +665,6 @@ AcpiUtShortDivide ( /* * utmisc */ -const char * -AcpiUtValidateException ( - ACPI_STATUS Status); - -BOOLEAN -AcpiUtIsAmlTable ( - ACPI_TABLE_HEADER *Table); - ACPI_STATUS AcpiUtAllocateOwnerId ( ACPI_OWNER_ID *OwnerId); @@ -772,14 +693,9 @@ BOOLEAN AcpiUtValidAcpiName ( UINT32 Name); -ACPI_NAME -AcpiUtRepairName ( - char *Name); - BOOLEAN -AcpiUtValidAcpiChar ( - char Character, - ACPI_NATIVE_UINT Position); +AcpiUtValidAcpiCharacter ( + char Character); ACPI_STATUS AcpiUtStrtoul64 ( @@ -792,6 +708,27 @@ AcpiUtStrtoul64 ( #define ACPI_ANY_BASE 0 UINT32 +AcpiUtGetDescriptorLength ( + void *Aml); + +UINT16 +AcpiUtGetResourceLength ( + void *Aml); + +UINT8 +AcpiUtGetResourceType ( + void *Aml); + +UINT8 * +AcpiUtGetResourceEndTag ( + ACPI_OPERAND_OBJECT *ObjDesc); + +UINT8 +AcpiUtGenerateChecksum ( + UINT8 *Buffer, + UINT32 Length); + +UINT32 AcpiUtDwordByteSwap ( UINT32 Value); @@ -805,44 +742,8 @@ AcpiUtDisplayInitPathname ( UINT8 Type, ACPI_NAMESPACE_NODE *ObjHandle, char *Path); -#endif - -/* - * utresrc - */ -ACPI_STATUS -AcpiUtWalkAmlResources ( - UINT8 *Aml, - ACPI_SIZE AmlLength, - ACPI_WALK_AML_CALLBACK UserFunction, - void *Context); - -ACPI_STATUS -AcpiUtValidateResource ( - void *Aml, - UINT8 *ReturnIndex); - -UINT32 -AcpiUtGetDescriptorLength ( - void *Aml); - -UINT16 -AcpiUtGetResourceLength ( - void *Aml); - -UINT8 -AcpiUtGetResourceHeaderLength ( - void *Aml); - -UINT8 -AcpiUtGetResourceType ( - void *Aml); - -ACPI_STATUS -AcpiUtGetResourceEndTag ( - ACPI_OPERAND_OBJECT *ObjDesc, - UINT8 **EndTag); +#endif /* @@ -893,7 +794,7 @@ AcpiUtAllocate ( UINT32 Line); void * -AcpiUtAllocateZeroed ( +AcpiUtCallocate ( ACPI_SIZE Size, UINT32 Component, char *Module, @@ -908,7 +809,7 @@ AcpiUtAllocateAndTrack ( UINT32 Line); void * -AcpiUtAllocateZeroedAndTrack ( +AcpiUtCallocateAndTrack ( ACPI_SIZE Size, UINT32 Component, char *Module, @@ -929,14 +830,6 @@ void AcpiUtDumpAllocations ( UINT32 Component, char *Module); - -ACPI_STATUS -AcpiUtCreateList ( - char *ListName, - UINT16 ObjectSize, - ACPI_MEMORY_LIST **ReturnCache); - - #endif #endif /* _ACUTILS_H */ |