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