diff options
author | jkim <jkim@FreeBSD.org> | 2012-07-11 16:51:47 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-07-11 16:51:47 +0000 |
commit | dbd90a99cde8c4a942a41f095faa72f479694173 (patch) | |
tree | adad4747b5f7a0166c805c0a7a6bdd4c884aa24b /source/components/utilities/utmisc.c | |
parent | bed871bb76b9fc47b3a3595700ef242f22f33ea4 (diff) | |
download | FreeBSD-src-dbd90a99cde8c4a942a41f095faa72f479694173.zip FreeBSD-src-dbd90a99cde8c4a942a41f095faa72f479694173.tar.gz |
Import ACPICA 20120711.
Diffstat (limited to 'source/components/utilities/utmisc.c')
-rw-r--r-- | source/components/utilities/utmisc.c | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/source/components/utilities/utmisc.c b/source/components/utilities/utmisc.c index 72662b9..a92121f 100644 --- a/source/components/utilities/utmisc.c +++ b/source/components/utilities/utmisc.c @@ -92,86 +92,6 @@ UtConvertBackslashes ( /******************************************************************************* * - * FUNCTION: AcpiUtValidateException - * - * PARAMETERS: Status - The ACPI_STATUS code to be formatted - * - * RETURN: A string containing the exception text. NULL if exception is - * not valid. - * - * DESCRIPTION: This function validates and translates an ACPI exception into - * an ASCII string. - * - ******************************************************************************/ - -const char * -AcpiUtValidateException ( - ACPI_STATUS Status) -{ - UINT32 SubStatus; - const char *Exception = NULL; - - - ACPI_FUNCTION_ENTRY (); - - - /* - * Status is composed of two parts, a "type" and an actual code - */ - SubStatus = (Status & ~AE_CODE_MASK); - - switch (Status & AE_CODE_MASK) - { - case AE_CODE_ENVIRONMENTAL: - - if (SubStatus <= AE_CODE_ENV_MAX) - { - Exception = AcpiGbl_ExceptionNames_Env [SubStatus]; - } - break; - - case AE_CODE_PROGRAMMER: - - if (SubStatus <= AE_CODE_PGM_MAX) - { - Exception = AcpiGbl_ExceptionNames_Pgm [SubStatus]; - } - break; - - case AE_CODE_ACPI_TABLES: - - if (SubStatus <= AE_CODE_TBL_MAX) - { - Exception = AcpiGbl_ExceptionNames_Tbl [SubStatus]; - } - break; - - case AE_CODE_AML: - - if (SubStatus <= AE_CODE_AML_MAX) - { - Exception = AcpiGbl_ExceptionNames_Aml [SubStatus]; - } - break; - - case AE_CODE_CONTROL: - - if (SubStatus <= AE_CODE_CTRL_MAX) - { - Exception = AcpiGbl_ExceptionNames_Ctrl [SubStatus]; - } - break; - - default: - break; - } - - return (ACPI_CAST_PTR (const char, Exception)); -} - - -/******************************************************************************* - * * FUNCTION: AcpiUtIsPciRootBridge * * PARAMETERS: Id - The HID/CID in string format |