1 /******************************************************************************
3 * Module Name: utclib - ACPICA implementations of C library functions
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2020, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************
116 * Alternatively, you may choose to be licensed under the terms of the
119 * Redistribution and use in source and binary forms, with or without
120 * modification, are permitted provided that the following conditions
122 * 1. Redistributions of source code must retain the above copyright
123 * notice, this list of conditions, and the following disclaimer,
124 * without modification.
125 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126 * substantially similar to the "NO WARRANTY" disclaimer below
127 * ("Disclaimer") and any redistribution must be conditioned upon
128 * including a substantially similar Disclaimer requirement for further
129 * binary redistribution.
130 * 3. Neither the names of the above-listed copyright holders nor the names
131 * of any contributors may be used to endorse or promote products derived
132 * from this software without specific prior written permission.
134 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146 * Alternatively, you may choose to be licensed under the terms of the
147 * GNU General Public License ("GPL") version 2 as published by the Free
148 * Software Foundation.
150 *****************************************************************************/
152 #define ACPI_CLIBRARY
154 #include "accommon.h"
157 * This module contains implementations of the standard C library functions
158 * that are required by the ACPICA code at both application level and kernel
161 * The module is an optional feature that can be used if a local/system
162 * C library is not available. Some operating system kernels may not have
163 * an internal C library.
165 * In general, these functions are less efficient than an inline or assembly
166 * code implementation.
168 * These C functions and the associated prototypes are enabled by default
169 * unless the ACPI_USE_SYSTEM_CLIBRARY symbol is defined. This is usually
170 * automatically defined for the ACPICA applications such as iASL and
171 * AcpiExec, so that these user-level applications use the local C library
172 * instead of the functions in this module.
175 /*******************************************************************************
177 * Functions implemented in this module:
194 * FUNCTION: is* functions
196 ******************************************************************************/
198 #define _COMPONENT ACPI_UTILITIES
199 ACPI_MODULE_NAME ("utclib")
202 #ifndef ACPI_USE_SYSTEM_CLIBRARY /* Entire module */
205 /*******************************************************************************
209 * PARAMETERS: Buffer1 - First Buffer
210 * Buffer2 - Second Buffer
211 * Count - Maximum # of bytes to compare
213 * RETURN: Index where Buffers mismatched, or 0 if Buffers matched
215 * DESCRIPTION: Compare two Buffers, with a maximum length
217 ******************************************************************************/
225 char *Buffer1 = (char *) VBuffer1;
226 char *Buffer2 = (char *) VBuffer2;
229 for ( ; Count-- && (*Buffer1 == *Buffer2); Buffer1++, Buffer2++)
233 return ((Count == ACPI_SIZE_MAX) ? 0 : ((unsigned char) *Buffer1 -
234 (unsigned char) *Buffer2));
238 /*******************************************************************************
242 * PARAMETERS: Dest - Target of the copy
243 * Src - Source buffer to copy
244 * Count - Number of bytes to copy
248 * DESCRIPTION: Copy arbitrary bytes of memory with respect to the overlapping
250 ******************************************************************************/
258 char *New = (char *) Dest;
259 char *Old = (char *) Src;
264 /* Copy from the beginning */
276 /* Copy from the end */
278 New = New + Count - 1;
279 Old = Old + Count - 1;
293 /*******************************************************************************
297 * PARAMETERS: Dest - Target of the copy
298 * Src - Source buffer to copy
299 * Count - Number of bytes to copy
303 * DESCRIPTION: Copy arbitrary bytes of memory
305 ******************************************************************************/
313 char *New = (char *) Dest;
314 char *Old = (char *) Src;
329 /*******************************************************************************
333 * PARAMETERS: Dest - Buffer to set
334 * Value - Value to set each byte of memory
335 * Count - Number of bytes to set
339 * DESCRIPTION: Initialize a buffer to a known value.
341 ******************************************************************************/
349 char *New = (char *) Dest;
363 /*******************************************************************************
367 * PARAMETERS: String - Null terminated string
371 * DESCRIPTION: Returns the length of the input string
373 ******************************************************************************/
383 /* Count the string until a null is encountered */
395 /*******************************************************************************
399 * PARAMETERS: String - Null terminated string
400 * Delimiters - Delimiters to match
402 * RETURN: The first occurrence in the string of any of the bytes in the
405 * DESCRIPTION: Search a string for any of a set of the delimiters
407 ******************************************************************************/
412 const char *Delimiters)
414 const char *Delimiter;
417 for ( ; *String != '\0'; ++String)
419 for (Delimiter = Delimiters; *Delimiter != '\0'; Delimiter++)
421 if (*String == *Delimiter)
423 return (ACPI_CAST_PTR (char, String));
432 /*******************************************************************************
436 * PARAMETERS: String - Null terminated string
437 * Delimiters - Delimiters to match
439 * RETURN: Pointer to the next token
441 * DESCRIPTION: Split string into tokens
443 ******************************************************************************/
448 const char *Delimiters)
450 char *Begin = String;
451 static char *SavedPtr;
456 if (SavedPtr == NULL)
463 SavedPtr = strpbrk (Begin, Delimiters);
464 while (SavedPtr == Begin)
467 SavedPtr = strpbrk (Begin, Delimiters);
482 /*******************************************************************************
486 * PARAMETERS: DstString - Target of the copy
487 * SrcString - The source string to copy
491 * DESCRIPTION: Copy a null terminated string
493 ******************************************************************************/
498 const char *SrcString)
500 char *String = DstString;
503 /* Move bytes brute force */
507 *String = *SrcString;
520 /*******************************************************************************
524 * PARAMETERS: DstString - Target of the copy
525 * SrcString - The source string to copy
526 * Count - Maximum # of bytes to copy
530 * DESCRIPTION: Copy a null terminated string, with a maximum length
532 ******************************************************************************/
537 const char *SrcString,
540 char *String = DstString;
543 /* Copy the string */
545 for (String = DstString;
546 Count && (Count--, (*String++ = *SrcString++)); )
549 /* Pad with nulls if necessary */
557 /* Return original pointer */
563 /*******************************************************************************
567 * PARAMETERS: String1 - First string
568 * String2 - Second string
570 * RETURN: Index where strings mismatched, or 0 if strings matched
572 * DESCRIPTION: Compare two null terminated strings
574 ******************************************************************************/
583 for ( ; (*String1 == *String2); String2++)
591 return ((unsigned char) *String1 - (unsigned char) *String2);
595 /*******************************************************************************
599 * PARAMETERS: String - Search string
600 * ch - character to search for
602 * RETURN: Ptr to char or NULL if not found
604 * DESCRIPTION: Search a string for a character
606 ******************************************************************************/
615 for ( ; (*String); String++)
617 if ((*String) == (char) ch)
619 return ((char *) String);
627 /*******************************************************************************
631 * PARAMETERS: String1 - First string
632 * String2 - Second string
633 * Count - Maximum # of bytes to compare
635 * RETURN: Index where strings mismatched, or 0 if strings matched
637 * DESCRIPTION: Compare two null terminated strings, with a maximum length
639 ******************************************************************************/
649 for ( ; Count-- && (*String1 == *String2); String2++)
657 return ((Count == ACPI_SIZE_MAX) ? 0 : ((unsigned char) *String1 -
658 (unsigned char) *String2));
662 /*******************************************************************************
666 * PARAMETERS: DstString - Target of the copy
667 * SrcString - The source string to copy
671 * DESCRIPTION: Append a null terminated string to a null terminated string
673 ******************************************************************************/
678 const char *SrcString)
683 /* Find end of the destination string */
685 for (String = DstString; *String++; )
688 /* Concatenate the string */
690 for (--String; (*String++ = *SrcString++); )
697 /*******************************************************************************
701 * PARAMETERS: DstString - Target of the copy
702 * SrcString - The source string to copy
703 * Count - Maximum # of bytes to copy
707 * DESCRIPTION: Append a null terminated string to a null terminated string,
708 * with a maximum count.
710 ******************************************************************************/
715 const char *SrcString,
723 /* Find end of the destination string */
725 for (String = DstString; *String++; )
728 /* Concatenate the string */
730 for (--String; (*String++ = *SrcString++) && --Count; )
733 /* Null terminate if necessary */
745 /*******************************************************************************
749 * PARAMETERS: String1 - Target string
750 * String2 - Substring to search for
752 * RETURN: Where substring match starts, Null if no match found
754 * DESCRIPTION: Checks if String2 occurs in String1. This is not really a
755 * full implementation of strstr, only sufficient for command
758 ******************************************************************************/
768 Length = strlen (String2);
774 while (strlen (String1) >= Length)
776 if (memcmp (String1, String2, Length) == 0)
787 /*******************************************************************************
791 * PARAMETERS: String - Null terminated string
792 * Terminator - Where a pointer to the terminating byte is
794 * Base - Radix of the string
796 * RETURN: Converted value
798 * DESCRIPTION: Convert a string into a 32-bit unsigned value.
799 * Note: use strtoul64 for 64-bit integers.
801 ******************************************************************************/
809 UINT32 converted = 0;
812 const char *StringStart;
813 UINT32 ReturnValue = 0;
814 ACPI_STATUS Status = AE_OK;
818 * Save the value of the pointer to the buffer's first
819 * character, save the current errno value, and then
820 * skip over any white space in the buffer:
822 StringStart = String;
823 while (isspace (*String) || *String == '\t')
829 * The buffer may contain an optional plus or minus sign.
830 * If it does, then skip over it but remember what is was:
834 sign = ACPI_SIGN_NEGATIVE;
837 else if (*String == '+')
840 sign = ACPI_SIGN_POSITIVE;
844 sign = ACPI_SIGN_POSITIVE;
848 * If the input parameter Base is zero, then we need to
849 * determine if it is octal, decimal, or hexadecimal:
855 if (tolower (*(++String)) == 'x')
870 else if (Base < 2 || Base > 36)
873 * The specified Base parameter is not in the domain of
880 * For octal and hexadecimal bases, skip over the leading
881 * 0 or 0x, if they are present.
883 if (Base == 8 && *String == '0')
890 tolower (*(++String)) == 'x')
896 * Main loop: convert the string to an unsigned long:
900 if (isdigit (*String))
902 index = (UINT32) ((UINT8) *String - '0');
906 index = (UINT32) toupper (*String);
909 index = index - 'A' + 10;
923 * Check to see if value is out of range:
926 if (ReturnValue > ((ACPI_UINT32_MAX - (UINT32) index) /
930 ReturnValue = 0; /* reset */
935 ReturnValue += index;
944 * If appropriate, update the caller's pointer to the next
945 * unconverted character in the buffer.
949 if (converted == 0 && ReturnValue == 0 && String != NULL)
951 *Terminator = (char *) StringStart;
955 *Terminator = (char *) String;
959 if (Status == AE_ERROR)
961 ReturnValue = ACPI_UINT32_MAX;
965 * If a minus sign was present, then "the conversion is negated":
967 if (sign == ACPI_SIGN_NEGATIVE)
969 ReturnValue = (ACPI_UINT32_MAX - ReturnValue) + 1;
972 return (ReturnValue);
976 /*******************************************************************************
980 * PARAMETERS: c - Character to convert
982 * RETURN: Converted character as an int
984 * DESCRIPTION: Convert character to uppercase
986 ******************************************************************************/
993 return (islower(c) ? ((c)-0x20) : (c));
997 /*******************************************************************************
1001 * PARAMETERS: c - Character to convert
1003 * RETURN: Converted character as an int
1005 * DESCRIPTION: Convert character to lowercase
1007 ******************************************************************************/
1014 return (isupper(c) ? ((c)+0x20) : (c));
1018 /*******************************************************************************
1020 * FUNCTION: is* function array
1022 * DESCRIPTION: is* functions use the ctype table below
1024 ******************************************************************************/
1026 const UINT8 AcpiGbl_Ctypes[257] = {
1027 _ACPI_CN, /* 0x00 0 NUL */
1028 _ACPI_CN, /* 0x01 1 SOH */
1029 _ACPI_CN, /* 0x02 2 STX */
1030 _ACPI_CN, /* 0x03 3 ETX */
1031 _ACPI_CN, /* 0x04 4 EOT */
1032 _ACPI_CN, /* 0x05 5 ENQ */
1033 _ACPI_CN, /* 0x06 6 ACK */
1034 _ACPI_CN, /* 0x07 7 BEL */
1035 _ACPI_CN, /* 0x08 8 BS */
1036 _ACPI_CN|_ACPI_SP, /* 0x09 9 TAB */
1037 _ACPI_CN|_ACPI_SP, /* 0x0A 10 LF */
1038 _ACPI_CN|_ACPI_SP, /* 0x0B 11 VT */
1039 _ACPI_CN|_ACPI_SP, /* 0x0C 12 FF */
1040 _ACPI_CN|_ACPI_SP, /* 0x0D 13 CR */
1041 _ACPI_CN, /* 0x0E 14 SO */
1042 _ACPI_CN, /* 0x0F 15 SI */
1043 _ACPI_CN, /* 0x10 16 DLE */
1044 _ACPI_CN, /* 0x11 17 DC1 */
1045 _ACPI_CN, /* 0x12 18 DC2 */
1046 _ACPI_CN, /* 0x13 19 DC3 */
1047 _ACPI_CN, /* 0x14 20 DC4 */
1048 _ACPI_CN, /* 0x15 21 NAK */
1049 _ACPI_CN, /* 0x16 22 SYN */
1050 _ACPI_CN, /* 0x17 23 ETB */
1051 _ACPI_CN, /* 0x18 24 CAN */
1052 _ACPI_CN, /* 0x19 25 EM */
1053 _ACPI_CN, /* 0x1A 26 SUB */
1054 _ACPI_CN, /* 0x1B 27 ESC */
1055 _ACPI_CN, /* 0x1C 28 FS */
1056 _ACPI_CN, /* 0x1D 29 GS */
1057 _ACPI_CN, /* 0x1E 30 RS */
1058 _ACPI_CN, /* 0x1F 31 US */
1059 _ACPI_XS|_ACPI_SP, /* 0x20 32 ' ' */
1060 _ACPI_PU, /* 0x21 33 '!' */
1061 _ACPI_PU, /* 0x22 34 '"' */
1062 _ACPI_PU, /* 0x23 35 '#' */
1063 _ACPI_PU, /* 0x24 36 '$' */
1064 _ACPI_PU, /* 0x25 37 '%' */
1065 _ACPI_PU, /* 0x26 38 '&' */
1066 _ACPI_PU, /* 0x27 39 ''' */
1067 _ACPI_PU, /* 0x28 40 '(' */
1068 _ACPI_PU, /* 0x29 41 ')' */
1069 _ACPI_PU, /* 0x2A 42 '*' */
1070 _ACPI_PU, /* 0x2B 43 '+' */
1071 _ACPI_PU, /* 0x2C 44 ',' */
1072 _ACPI_PU, /* 0x2D 45 '-' */
1073 _ACPI_PU, /* 0x2E 46 '.' */
1074 _ACPI_PU, /* 0x2F 47 '/' */
1075 _ACPI_XD|_ACPI_DI, /* 0x30 48 '0' */
1076 _ACPI_XD|_ACPI_DI, /* 0x31 49 '1' */
1077 _ACPI_XD|_ACPI_DI, /* 0x32 50 '2' */
1078 _ACPI_XD|_ACPI_DI, /* 0x33 51 '3' */
1079 _ACPI_XD|_ACPI_DI, /* 0x34 52 '4' */
1080 _ACPI_XD|_ACPI_DI, /* 0x35 53 '5' */
1081 _ACPI_XD|_ACPI_DI, /* 0x36 54 '6' */
1082 _ACPI_XD|_ACPI_DI, /* 0x37 55 '7' */
1083 _ACPI_XD|_ACPI_DI, /* 0x38 56 '8' */
1084 _ACPI_XD|_ACPI_DI, /* 0x39 57 '9' */
1085 _ACPI_PU, /* 0x3A 58 ':' */
1086 _ACPI_PU, /* 0x3B 59 ';' */
1087 _ACPI_PU, /* 0x3C 60 '<' */
1088 _ACPI_PU, /* 0x3D 61 '=' */
1089 _ACPI_PU, /* 0x3E 62 '>' */
1090 _ACPI_PU, /* 0x3F 63 '?' */
1091 _ACPI_PU, /* 0x40 64 '@' */
1092 _ACPI_XD|_ACPI_UP, /* 0x41 65 'A' */
1093 _ACPI_XD|_ACPI_UP, /* 0x42 66 'B' */
1094 _ACPI_XD|_ACPI_UP, /* 0x43 67 'C' */
1095 _ACPI_XD|_ACPI_UP, /* 0x44 68 'D' */
1096 _ACPI_XD|_ACPI_UP, /* 0x45 69 'E' */
1097 _ACPI_XD|_ACPI_UP, /* 0x46 70 'F' */
1098 _ACPI_UP, /* 0x47 71 'G' */
1099 _ACPI_UP, /* 0x48 72 'H' */
1100 _ACPI_UP, /* 0x49 73 'I' */
1101 _ACPI_UP, /* 0x4A 74 'J' */
1102 _ACPI_UP, /* 0x4B 75 'K' */
1103 _ACPI_UP, /* 0x4C 76 'L' */
1104 _ACPI_UP, /* 0x4D 77 'M' */
1105 _ACPI_UP, /* 0x4E 78 'N' */
1106 _ACPI_UP, /* 0x4F 79 'O' */
1107 _ACPI_UP, /* 0x50 80 'P' */
1108 _ACPI_UP, /* 0x51 81 'Q' */
1109 _ACPI_UP, /* 0x52 82 'R' */
1110 _ACPI_UP, /* 0x53 83 'S' */
1111 _ACPI_UP, /* 0x54 84 'T' */
1112 _ACPI_UP, /* 0x55 85 'U' */
1113 _ACPI_UP, /* 0x56 86 'V' */
1114 _ACPI_UP, /* 0x57 87 'W' */
1115 _ACPI_UP, /* 0x58 88 'X' */
1116 _ACPI_UP, /* 0x59 89 'Y' */
1117 _ACPI_UP, /* 0x5A 90 'Z' */
1118 _ACPI_PU, /* 0x5B 91 '[' */
1119 _ACPI_PU, /* 0x5C 92 '\' */
1120 _ACPI_PU, /* 0x5D 93 ']' */
1121 _ACPI_PU, /* 0x5E 94 '^' */
1122 _ACPI_PU, /* 0x5F 95 '_' */
1123 _ACPI_PU, /* 0x60 96 '`' */
1124 _ACPI_XD|_ACPI_LO, /* 0x61 97 'a' */
1125 _ACPI_XD|_ACPI_LO, /* 0x62 98 'b' */
1126 _ACPI_XD|_ACPI_LO, /* 0x63 99 'c' */
1127 _ACPI_XD|_ACPI_LO, /* 0x64 100 'd' */
1128 _ACPI_XD|_ACPI_LO, /* 0x65 101 'e' */
1129 _ACPI_XD|_ACPI_LO, /* 0x66 102 'f' */
1130 _ACPI_LO, /* 0x67 103 'g' */
1131 _ACPI_LO, /* 0x68 104 'h' */
1132 _ACPI_LO, /* 0x69 105 'i' */
1133 _ACPI_LO, /* 0x6A 106 'j' */
1134 _ACPI_LO, /* 0x6B 107 'k' */
1135 _ACPI_LO, /* 0x6C 108 'l' */
1136 _ACPI_LO, /* 0x6D 109 'm' */
1137 _ACPI_LO, /* 0x6E 110 'n' */
1138 _ACPI_LO, /* 0x6F 111 'o' */
1139 _ACPI_LO, /* 0x70 112 'p' */
1140 _ACPI_LO, /* 0x71 113 'q' */
1141 _ACPI_LO, /* 0x72 114 'r' */
1142 _ACPI_LO, /* 0x73 115 's' */
1143 _ACPI_LO, /* 0x74 116 't' */
1144 _ACPI_LO, /* 0x75 117 'u' */
1145 _ACPI_LO, /* 0x76 118 'v' */
1146 _ACPI_LO, /* 0x77 119 'w' */
1147 _ACPI_LO, /* 0x78 120 'x' */
1148 _ACPI_LO, /* 0x79 121 'y' */
1149 _ACPI_LO, /* 0x7A 122 'z' */
1150 _ACPI_PU, /* 0x7B 123 '{' */
1151 _ACPI_PU, /* 0x7C 124 '|' */
1152 _ACPI_PU, /* 0x7D 125 '}' */
1153 _ACPI_PU, /* 0x7E 126 '~' */
1154 _ACPI_CN, /* 0x7F 127 DEL */
1156 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0x80 to 0x8F */
1157 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0x90 to 0x9F */
1158 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xA0 to 0xAF */
1159 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xB0 to 0xBF */
1160 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xC0 to 0xCF */
1161 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xD0 to 0xDF */
1162 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xE0 to 0xEF */
1163 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xF0 to 0xFF */
1168 #endif /* ACPI_USE_SYSTEM_CLIBRARY */