1 /****************************************************************************** 2 * 3 * Module Name: cmclib - Local implementation of C library functions 4 * 5 *****************************************************************************/ 6 7 /* 8 * Copyright (C) 2000 - 2015, Intel Corp. 9 * All rights reserved. 10 * 11 * Redistribution and use in source and binary forms, with or without 12 * modification, are permitted provided that the following conditions 13 * are met: 14 * 1. Redistributions of source code must retain the above copyright 15 * notice, this list of conditions, and the following disclaimer, 16 * without modification. 17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 18 * substantially similar to the "NO WARRANTY" disclaimer below 19 * ("Disclaimer") and any redistribution must be conditioned upon 20 * including a substantially similar Disclaimer requirement for further 21 * binary redistribution. 22 * 3. Neither the names of the above-listed copyright holders nor the names 23 * of any contributors may be used to endorse or promote products derived 24 * from this software without specific prior written permission. 25 * 26 * Alternatively, this software may be distributed under the terms of the 27 * GNU General Public License ("GPL") version 2 as published by the Free 28 * Software Foundation. 29 * 30 * NO WARRANTY 31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 41 * POSSIBILITY OF SUCH DAMAGES. 42 */ 43 44 #include "acpi.h" 45 #include "accommon.h" 46 47 /* 48 * These implementations of standard C Library routines can optionally be 49 * used if a C library is not available. In general, they are less efficient 50 * than an inline or assembly implementation 51 */ 52 53 #define _COMPONENT ACPI_UTILITIES 54 ACPI_MODULE_NAME ("cmclib") 55 56 57 #ifndef ACPI_USE_SYSTEM_CLIBRARY 58 59 #define NEGATIVE 1 60 #define POSITIVE 0 61 62 63 /******************************************************************************* 64 * 65 * FUNCTION: AcpiUtMemcmp (memcmp) 66 * 67 * PARAMETERS: Buffer1 - First Buffer 68 * Buffer2 - Second Buffer 69 * Count - Maximum # of bytes to compare 70 * 71 * RETURN: Index where Buffers mismatched, or 0 if Buffers matched 72 * 73 * DESCRIPTION: Compare two Buffers, with a maximum length 74 * 75 ******************************************************************************/ 76 77 int 78 AcpiUtMemcmp ( 79 const char *Buffer1, 80 const char *Buffer2, 81 ACPI_SIZE Count) 82 { 83 84 for ( ; Count-- && (*Buffer1 == *Buffer2); Buffer1++, Buffer2++) 85 { 86 } 87 88 return ((Count == ACPI_SIZE_MAX) ? 0 : ((unsigned char) *Buffer1 - 89 (unsigned char) *Buffer2)); 90 } 91 92 93 /******************************************************************************* 94 * 95 * FUNCTION: AcpiUtMemcpy (memcpy) 96 * 97 * PARAMETERS: Dest - Target of the copy 98 * Src - Source buffer to copy 99 * Count - Number of bytes to copy 100 * 101 * RETURN: Dest 102 * 103 * DESCRIPTION: Copy arbitrary bytes of memory 104 * 105 ******************************************************************************/ 106 107 void * 108 AcpiUtMemcpy ( 109 void *Dest, 110 const void *Src, 111 ACPI_SIZE Count) 112 { 113 char *New = (char *) Dest; 114 char *Old = (char *) Src; 115 116 117 while (Count) 118 { 119 *New = *Old; 120 New++; 121 Old++; 122 Count--; 123 } 124 125 return (Dest); 126 } 127 128 129 /******************************************************************************* 130 * 131 * FUNCTION: AcpiUtMemset (memset) 132 * 133 * PARAMETERS: Dest - Buffer to set 134 * Value - Value to set each byte of memory 135 * Count - Number of bytes to set 136 * 137 * RETURN: Dest 138 * 139 * DESCRIPTION: Initialize a buffer to a known value. 140 * 141 ******************************************************************************/ 142 143 void * 144 AcpiUtMemset ( 145 void *Dest, 146 UINT8 Value, 147 ACPI_SIZE Count) 148 { 149 char *New = (char *) Dest; 150 151 152 while (Count) 153 { 154 *New = (char) Value; 155 New++; 156 Count--; 157 } 158 159 return (Dest); 160 } 161 162 163 /******************************************************************************* 164 * 165 * FUNCTION: AcpiUtStrlen (strlen) 166 * 167 * PARAMETERS: String - Null terminated string 168 * 169 * RETURN: Length 170 * 171 * DESCRIPTION: Returns the length of the input string 172 * 173 ******************************************************************************/ 174 175 176 ACPI_SIZE 177 AcpiUtStrlen ( 178 const char *String) 179 { 180 UINT32 Length = 0; 181 182 183 /* Count the string until a null is encountered */ 184 185 while (*String) 186 { 187 Length++; 188 String++; 189 } 190 191 return (Length); 192 } 193 194 195 /******************************************************************************* 196 * 197 * FUNCTION: AcpiUtStrcpy (strcpy) 198 * 199 * PARAMETERS: DstString - Target of the copy 200 * SrcString - The source string to copy 201 * 202 * RETURN: DstString 203 * 204 * DESCRIPTION: Copy a null terminated string 205 * 206 ******************************************************************************/ 207 208 char * 209 AcpiUtStrcpy ( 210 char *DstString, 211 const char *SrcString) 212 { 213 char *String = DstString; 214 215 216 /* Move bytes brute force */ 217 218 while (*SrcString) 219 { 220 *String = *SrcString; 221 222 String++; 223 SrcString++; 224 } 225 226 /* Null terminate */ 227 228 *String = 0; 229 return (DstString); 230 } 231 232 233 /******************************************************************************* 234 * 235 * FUNCTION: AcpiUtStrncpy (strncpy) 236 * 237 * PARAMETERS: DstString - Target of the copy 238 * SrcString - The source string to copy 239 * Count - Maximum # of bytes to copy 240 * 241 * RETURN: DstString 242 * 243 * DESCRIPTION: Copy a null terminated string, with a maximum length 244 * 245 ******************************************************************************/ 246 247 char * 248 AcpiUtStrncpy ( 249 char *DstString, 250 const char *SrcString, 251 ACPI_SIZE Count) 252 { 253 char *String = DstString; 254 255 256 /* Copy the string */ 257 258 for (String = DstString; 259 Count && (Count--, (*String++ = *SrcString++)); ) 260 {;} 261 262 /* Pad with nulls if necessary */ 263 264 while (Count--) 265 { 266 *String = 0; 267 String++; 268 } 269 270 /* Return original pointer */ 271 272 return (DstString); 273 } 274 275 276 /******************************************************************************* 277 * 278 * FUNCTION: AcpiUtStrcmp (strcmp) 279 * 280 * PARAMETERS: String1 - First string 281 * String2 - Second string 282 * 283 * RETURN: Index where strings mismatched, or 0 if strings matched 284 * 285 * DESCRIPTION: Compare two null terminated strings 286 * 287 ******************************************************************************/ 288 289 int 290 AcpiUtStrcmp ( 291 const char *String1, 292 const char *String2) 293 { 294 295 296 for ( ; (*String1 == *String2); String2++) 297 { 298 if (!*String1++) 299 { 300 return (0); 301 } 302 } 303 304 return ((unsigned char) *String1 - (unsigned char) *String2); 305 } 306 307 308 /******************************************************************************* 309 * 310 * FUNCTION: AcpiUtStrchr (strchr) 311 * 312 * PARAMETERS: String - Search string 313 * ch - character to search for 314 * 315 * RETURN: Ptr to char or NULL if not found 316 * 317 * DESCRIPTION: Search a string for a character 318 * 319 ******************************************************************************/ 320 321 char * 322 AcpiUtStrchr ( 323 const char *String, 324 int ch) 325 { 326 327 328 for ( ; (*String); String++) 329 { 330 if ((*String) == (char) ch) 331 { 332 return ((char *) String); 333 } 334 } 335 336 return (NULL); 337 } 338 339 340 /******************************************************************************* 341 * 342 * FUNCTION: AcpiUtStrncmp (strncmp) 343 * 344 * PARAMETERS: String1 - First string 345 * String2 - Second string 346 * Count - Maximum # of bytes to compare 347 * 348 * RETURN: Index where strings mismatched, or 0 if strings matched 349 * 350 * DESCRIPTION: Compare two null terminated strings, with a maximum length 351 * 352 ******************************************************************************/ 353 354 int 355 AcpiUtStrncmp ( 356 const char *String1, 357 const char *String2, 358 ACPI_SIZE Count) 359 { 360 361 362 for ( ; Count-- && (*String1 == *String2); String2++) 363 { 364 if (!*String1++) 365 { 366 return (0); 367 } 368 } 369 370 return ((Count == ACPI_SIZE_MAX) ? 0 : ((unsigned char) *String1 - 371 (unsigned char) *String2)); 372 } 373 374 375 /******************************************************************************* 376 * 377 * FUNCTION: AcpiUtStrcat (Strcat) 378 * 379 * PARAMETERS: DstString - Target of the copy 380 * SrcString - The source string to copy 381 * 382 * RETURN: DstString 383 * 384 * DESCRIPTION: Append a null terminated string to a null terminated string 385 * 386 ******************************************************************************/ 387 388 char * 389 AcpiUtStrcat ( 390 char *DstString, 391 const char *SrcString) 392 { 393 char *String; 394 395 396 /* Find end of the destination string */ 397 398 for (String = DstString; *String++; ) 399 { ; } 400 401 /* Concatenate the string */ 402 403 for (--String; (*String++ = *SrcString++); ) 404 { ; } 405 406 return (DstString); 407 } 408 409 410 /******************************************************************************* 411 * 412 * FUNCTION: AcpiUtStrncat (strncat) 413 * 414 * PARAMETERS: DstString - Target of the copy 415 * SrcString - The source string to copy 416 * Count - Maximum # of bytes to copy 417 * 418 * RETURN: DstString 419 * 420 * DESCRIPTION: Append a null terminated string to a null terminated string, 421 * with a maximum count. 422 * 423 ******************************************************************************/ 424 425 char * 426 AcpiUtStrncat ( 427 char *DstString, 428 const char *SrcString, 429 ACPI_SIZE Count) 430 { 431 char *String; 432 433 434 if (Count) 435 { 436 /* Find end of the destination string */ 437 438 for (String = DstString; *String++; ) 439 { ; } 440 441 /* Concatenate the string */ 442 443 for (--String; (*String++ = *SrcString++) && --Count; ) 444 { ; } 445 446 /* Null terminate if necessary */ 447 448 if (!Count) 449 { 450 *String = 0; 451 } 452 } 453 454 return (DstString); 455 } 456 457 458 /******************************************************************************* 459 * 460 * FUNCTION: AcpiUtStrstr (strstr) 461 * 462 * PARAMETERS: String1 - Target string 463 * String2 - Substring to search for 464 * 465 * RETURN: Where substring match starts, Null if no match found 466 * 467 * DESCRIPTION: Checks if String2 occurs in String1. This is not really a 468 * full implementation of strstr, only sufficient for command 469 * matching 470 * 471 ******************************************************************************/ 472 473 char * 474 AcpiUtStrstr ( 475 char *String1, 476 char *String2) 477 { 478 UINT32 Length; 479 480 481 Length = AcpiUtStrlen (String2); 482 if (!Length) 483 { 484 return (String1); 485 } 486 487 while (AcpiUtStrlen (String1) >= Length) 488 { 489 if (AcpiUtMemcmp (String1, String2, Length) == 0) 490 { 491 return (String1); 492 } 493 String1++; 494 } 495 496 return (NULL); 497 } 498 499 500 /******************************************************************************* 501 * 502 * FUNCTION: AcpiUtStrtoul (strtoul) 503 * 504 * PARAMETERS: String - Null terminated string 505 * Terminater - Where a pointer to the terminating byte is 506 * returned 507 * Base - Radix of the string 508 * 509 * RETURN: Converted value 510 * 511 * DESCRIPTION: Convert a string into a 32-bit unsigned value. 512 * Note: use AcpiUtStrtoul64 for 64-bit integers. 513 * 514 ******************************************************************************/ 515 516 UINT32 517 AcpiUtStrtoul ( 518 const char *String, 519 char **Terminator, 520 UINT32 Base) 521 { 522 UINT32 converted = 0; 523 UINT32 index; 524 UINT32 sign; 525 const char *StringStart; 526 UINT32 ReturnValue = 0; 527 ACPI_STATUS Status = AE_OK; 528 529 530 /* 531 * Save the value of the pointer to the buffer's first 532 * character, save the current errno value, and then 533 * skip over any white space in the buffer: 534 */ 535 StringStart = String; 536 while (ACPI_IS_SPACE (*String) || *String == '\t') 537 { 538 ++String; 539 } 540 541 /* 542 * The buffer may contain an optional plus or minus sign. 543 * If it does, then skip over it but remember what is was: 544 */ 545 if (*String == '-') 546 { 547 sign = NEGATIVE; 548 ++String; 549 } 550 else if (*String == '+') 551 { 552 ++String; 553 sign = POSITIVE; 554 } 555 else 556 { 557 sign = POSITIVE; 558 } 559 560 /* 561 * If the input parameter Base is zero, then we need to 562 * determine if it is octal, decimal, or hexadecimal: 563 */ 564 if (Base == 0) 565 { 566 if (*String == '0') 567 { 568 if (AcpiUtToLower (*(++String)) == 'x') 569 { 570 Base = 16; 571 ++String; 572 } 573 else 574 { 575 Base = 8; 576 } 577 } 578 else 579 { 580 Base = 10; 581 } 582 } 583 else if (Base < 2 || Base > 36) 584 { 585 /* 586 * The specified Base parameter is not in the domain of 587 * this function: 588 */ 589 goto done; 590 } 591 592 /* 593 * For octal and hexadecimal bases, skip over the leading 594 * 0 or 0x, if they are present. 595 */ 596 if (Base == 8 && *String == '0') 597 { 598 String++; 599 } 600 601 if (Base == 16 && 602 *String == '0' && 603 AcpiUtToLower (*(++String)) == 'x') 604 { 605 String++; 606 } 607 608 /* 609 * Main loop: convert the string to an unsigned long: 610 */ 611 while (*String) 612 { 613 if (ACPI_IS_DIGIT (*String)) 614 { 615 index = (UINT32) ((UINT8) *String - '0'); 616 } 617 else 618 { 619 index = (UINT32) AcpiUtToUpper (*String); 620 if (ACPI_IS_UPPER (index)) 621 { 622 index = index - 'A' + 10; 623 } 624 else 625 { 626 goto done; 627 } 628 } 629 630 if (index >= Base) 631 { 632 goto done; 633 } 634 635 /* 636 * Check to see if value is out of range: 637 */ 638 639 if (ReturnValue > ((ACPI_UINT32_MAX - (UINT32) index) / 640 (UINT32) Base)) 641 { 642 Status = AE_ERROR; 643 ReturnValue = 0; /* reset */ 644 } 645 else 646 { 647 ReturnValue *= Base; 648 ReturnValue += index; 649 converted = 1; 650 } 651 652 ++String; 653 } 654 655 done: 656 /* 657 * If appropriate, update the caller's pointer to the next 658 * unconverted character in the buffer. 659 */ 660 if (Terminator) 661 { 662 if (converted == 0 && ReturnValue == 0 && String != NULL) 663 { 664 *Terminator = (char *) StringStart; 665 } 666 else 667 { 668 *Terminator = (char *) String; 669 } 670 } 671 672 if (Status == AE_ERROR) 673 { 674 ReturnValue = ACPI_UINT32_MAX; 675 } 676 677 /* 678 * If a minus sign was present, then "the conversion is negated": 679 */ 680 if (sign == NEGATIVE) 681 { 682 ReturnValue = (ACPI_UINT32_MAX - ReturnValue) + 1; 683 } 684 685 return (ReturnValue); 686 } 687 688 689 /******************************************************************************* 690 * 691 * FUNCTION: AcpiUtToUpper (TOUPPER) 692 * 693 * PARAMETERS: c - Character to convert 694 * 695 * RETURN: Converted character as an int 696 * 697 * DESCRIPTION: Convert character to uppercase 698 * 699 ******************************************************************************/ 700 701 int 702 AcpiUtToUpper ( 703 int c) 704 { 705 706 return (ACPI_IS_LOWER(c) ? ((c)-0x20) : (c)); 707 } 708 709 710 /******************************************************************************* 711 * 712 * FUNCTION: AcpiUtToLower (TOLOWER) 713 * 714 * PARAMETERS: c - Character to convert 715 * 716 * RETURN: Converted character as an int 717 * 718 * DESCRIPTION: Convert character to lowercase 719 * 720 ******************************************************************************/ 721 722 int 723 AcpiUtToLower ( 724 int c) 725 { 726 727 return (ACPI_IS_UPPER(c) ? ((c)+0x20) : (c)); 728 } 729 730 731 /******************************************************************************* 732 * 733 * FUNCTION: is* functions 734 * 735 * DESCRIPTION: is* functions use the ctype table below 736 * 737 ******************************************************************************/ 738 739 const UINT8 _acpi_ctype[257] = { 740 _ACPI_CN, /* 0x00 0 NUL */ 741 _ACPI_CN, /* 0x01 1 SOH */ 742 _ACPI_CN, /* 0x02 2 STX */ 743 _ACPI_CN, /* 0x03 3 ETX */ 744 _ACPI_CN, /* 0x04 4 EOT */ 745 _ACPI_CN, /* 0x05 5 ENQ */ 746 _ACPI_CN, /* 0x06 6 ACK */ 747 _ACPI_CN, /* 0x07 7 BEL */ 748 _ACPI_CN, /* 0x08 8 BS */ 749 _ACPI_CN|_ACPI_SP, /* 0x09 9 TAB */ 750 _ACPI_CN|_ACPI_SP, /* 0x0A 10 LF */ 751 _ACPI_CN|_ACPI_SP, /* 0x0B 11 VT */ 752 _ACPI_CN|_ACPI_SP, /* 0x0C 12 FF */ 753 _ACPI_CN|_ACPI_SP, /* 0x0D 13 CR */ 754 _ACPI_CN, /* 0x0E 14 SO */ 755 _ACPI_CN, /* 0x0F 15 SI */ 756 _ACPI_CN, /* 0x10 16 DLE */ 757 _ACPI_CN, /* 0x11 17 DC1 */ 758 _ACPI_CN, /* 0x12 18 DC2 */ 759 _ACPI_CN, /* 0x13 19 DC3 */ 760 _ACPI_CN, /* 0x14 20 DC4 */ 761 _ACPI_CN, /* 0x15 21 NAK */ 762 _ACPI_CN, /* 0x16 22 SYN */ 763 _ACPI_CN, /* 0x17 23 ETB */ 764 _ACPI_CN, /* 0x18 24 CAN */ 765 _ACPI_CN, /* 0x19 25 EM */ 766 _ACPI_CN, /* 0x1A 26 SUB */ 767 _ACPI_CN, /* 0x1B 27 ESC */ 768 _ACPI_CN, /* 0x1C 28 FS */ 769 _ACPI_CN, /* 0x1D 29 GS */ 770 _ACPI_CN, /* 0x1E 30 RS */ 771 _ACPI_CN, /* 0x1F 31 US */ 772 _ACPI_XS|_ACPI_SP, /* 0x20 32 ' ' */ 773 _ACPI_PU, /* 0x21 33 '!' */ 774 _ACPI_PU, /* 0x22 34 '"' */ 775 _ACPI_PU, /* 0x23 35 '#' */ 776 _ACPI_PU, /* 0x24 36 '$' */ 777 _ACPI_PU, /* 0x25 37 '%' */ 778 _ACPI_PU, /* 0x26 38 '&' */ 779 _ACPI_PU, /* 0x27 39 ''' */ 780 _ACPI_PU, /* 0x28 40 '(' */ 781 _ACPI_PU, /* 0x29 41 ')' */ 782 _ACPI_PU, /* 0x2A 42 '*' */ 783 _ACPI_PU, /* 0x2B 43 '+' */ 784 _ACPI_PU, /* 0x2C 44 ',' */ 785 _ACPI_PU, /* 0x2D 45 '-' */ 786 _ACPI_PU, /* 0x2E 46 '.' */ 787 _ACPI_PU, /* 0x2F 47 '/' */ 788 _ACPI_XD|_ACPI_DI, /* 0x30 48 '0' */ 789 _ACPI_XD|_ACPI_DI, /* 0x31 49 '1' */ 790 _ACPI_XD|_ACPI_DI, /* 0x32 50 '2' */ 791 _ACPI_XD|_ACPI_DI, /* 0x33 51 '3' */ 792 _ACPI_XD|_ACPI_DI, /* 0x34 52 '4' */ 793 _ACPI_XD|_ACPI_DI, /* 0x35 53 '5' */ 794 _ACPI_XD|_ACPI_DI, /* 0x36 54 '6' */ 795 _ACPI_XD|_ACPI_DI, /* 0x37 55 '7' */ 796 _ACPI_XD|_ACPI_DI, /* 0x38 56 '8' */ 797 _ACPI_XD|_ACPI_DI, /* 0x39 57 '9' */ 798 _ACPI_PU, /* 0x3A 58 ':' */ 799 _ACPI_PU, /* 0x3B 59 ';' */ 800 _ACPI_PU, /* 0x3C 60 '<' */ 801 _ACPI_PU, /* 0x3D 61 '=' */ 802 _ACPI_PU, /* 0x3E 62 '>' */ 803 _ACPI_PU, /* 0x3F 63 '?' */ 804 _ACPI_PU, /* 0x40 64 '@' */ 805 _ACPI_XD|_ACPI_UP, /* 0x41 65 'A' */ 806 _ACPI_XD|_ACPI_UP, /* 0x42 66 'B' */ 807 _ACPI_XD|_ACPI_UP, /* 0x43 67 'C' */ 808 _ACPI_XD|_ACPI_UP, /* 0x44 68 'D' */ 809 _ACPI_XD|_ACPI_UP, /* 0x45 69 'E' */ 810 _ACPI_XD|_ACPI_UP, /* 0x46 70 'F' */ 811 _ACPI_UP, /* 0x47 71 'G' */ 812 _ACPI_UP, /* 0x48 72 'H' */ 813 _ACPI_UP, /* 0x49 73 'I' */ 814 _ACPI_UP, /* 0x4A 74 'J' */ 815 _ACPI_UP, /* 0x4B 75 'K' */ 816 _ACPI_UP, /* 0x4C 76 'L' */ 817 _ACPI_UP, /* 0x4D 77 'M' */ 818 _ACPI_UP, /* 0x4E 78 'N' */ 819 _ACPI_UP, /* 0x4F 79 'O' */ 820 _ACPI_UP, /* 0x50 80 'P' */ 821 _ACPI_UP, /* 0x51 81 'Q' */ 822 _ACPI_UP, /* 0x52 82 'R' */ 823 _ACPI_UP, /* 0x53 83 'S' */ 824 _ACPI_UP, /* 0x54 84 'T' */ 825 _ACPI_UP, /* 0x55 85 'U' */ 826 _ACPI_UP, /* 0x56 86 'V' */ 827 _ACPI_UP, /* 0x57 87 'W' */ 828 _ACPI_UP, /* 0x58 88 'X' */ 829 _ACPI_UP, /* 0x59 89 'Y' */ 830 _ACPI_UP, /* 0x5A 90 'Z' */ 831 _ACPI_PU, /* 0x5B 91 '[' */ 832 _ACPI_PU, /* 0x5C 92 '\' */ 833 _ACPI_PU, /* 0x5D 93 ']' */ 834 _ACPI_PU, /* 0x5E 94 '^' */ 835 _ACPI_PU, /* 0x5F 95 '_' */ 836 _ACPI_PU, /* 0x60 96 '`' */ 837 _ACPI_XD|_ACPI_LO, /* 0x61 97 'a' */ 838 _ACPI_XD|_ACPI_LO, /* 0x62 98 'b' */ 839 _ACPI_XD|_ACPI_LO, /* 0x63 99 'c' */ 840 _ACPI_XD|_ACPI_LO, /* 0x64 100 'd' */ 841 _ACPI_XD|_ACPI_LO, /* 0x65 101 'e' */ 842 _ACPI_XD|_ACPI_LO, /* 0x66 102 'f' */ 843 _ACPI_LO, /* 0x67 103 'g' */ 844 _ACPI_LO, /* 0x68 104 'h' */ 845 _ACPI_LO, /* 0x69 105 'i' */ 846 _ACPI_LO, /* 0x6A 106 'j' */ 847 _ACPI_LO, /* 0x6B 107 'k' */ 848 _ACPI_LO, /* 0x6C 108 'l' */ 849 _ACPI_LO, /* 0x6D 109 'm' */ 850 _ACPI_LO, /* 0x6E 110 'n' */ 851 _ACPI_LO, /* 0x6F 111 'o' */ 852 _ACPI_LO, /* 0x70 112 'p' */ 853 _ACPI_LO, /* 0x71 113 'q' */ 854 _ACPI_LO, /* 0x72 114 'r' */ 855 _ACPI_LO, /* 0x73 115 's' */ 856 _ACPI_LO, /* 0x74 116 't' */ 857 _ACPI_LO, /* 0x75 117 'u' */ 858 _ACPI_LO, /* 0x76 118 'v' */ 859 _ACPI_LO, /* 0x77 119 'w' */ 860 _ACPI_LO, /* 0x78 120 'x' */ 861 _ACPI_LO, /* 0x79 121 'y' */ 862 _ACPI_LO, /* 0x7A 122 'z' */ 863 _ACPI_PU, /* 0x7B 123 '{' */ 864 _ACPI_PU, /* 0x7C 124 '|' */ 865 _ACPI_PU, /* 0x7D 125 '}' */ 866 _ACPI_PU, /* 0x7E 126 '~' */ 867 _ACPI_CN, /* 0x7F 127 DEL */ 868 869 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0x80 to 0x8F */ 870 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0x90 to 0x9F */ 871 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xA0 to 0xAF */ 872 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xB0 to 0xBF */ 873 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xC0 to 0xCF */ 874 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xD0 to 0xDF */ 875 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xE0 to 0xEF */ 876 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0xF0 to 0xFF */ 877 0 /* 0x100 */ 878 }; 879 880 881 #endif /* ACPI_USE_SYSTEM_CLIBRARY */ 882