Changeset 58459 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BasePcdLibNull/PcdLib.c
- Timestamp:
- Oct 28, 2015 8:17:18 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/Firmware
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/Firmware
-
Property svn:mergeinfo
set to (toggle deleted branches)
/vendor/edk2/current 103735-103757
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BasePcdLibNull/PcdLib.c
r48674 r58459 2 2 A emptry template implementation of PCD Library. 3 3 4 Copyright (c) 2006 - 201 0, Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> 5 5 This program and the accompanying materials 6 6 are licensed and made available under the terms and conditions of the BSD License … … 401 401 Sets the 8-bit value for the token specified by TokenNumber 402 402 to the value specified by Value. Value is returned. 403 403 404 If the set operation was not correctly performed, then ASSERT(). 405 404 406 @param[in] TokenNumber The PCD token number to set a current value for. 405 407 @param[in] Value The 8-bit value to set. … … 427 429 Sets the 16-bit value for the token specified by TokenNumber 428 430 to the value specified by Value. Value is returned. 429 431 432 If the set operation was not correctly performed, then ASSERT(). 433 430 434 @param[in] TokenNumber The PCD token number to set a current value for. 431 435 @param[in] Value The 16-bit value to set. … … 453 457 Sets the 32-bit value for the token specified by TokenNumber 454 458 to the value specified by Value. Value is returned. 455 459 460 If the set operation was not correctly performed, then ASSERT(). 461 456 462 @param[in] TokenNumber The PCD token number to set a current value for. 457 463 @param[in] Value The 32-bit value to set. … … 479 485 Sets the 64-bit value for the token specified by TokenNumber 480 486 to the value specified by Value. Value is returned. 481 487 488 If the set operation was not correctly performed, then ASSERT(). 489 482 490 @param[in] TokenNumber The PCD token number to set a current value for. 483 491 @param[in] Value The 64-bit value to set. … … 507 515 If SizeOfBuffer is greater than the maximum size support by TokenNumber, 508 516 then set SizeOfBuffer to the maximum size supported by TokenNumber and 509 return NULL to indicate that the set operation was not actually performed. 517 return NULL to indicate that the set operation was not actually performed, 518 or ASSERT() if the set operation was not corretly performed. 510 519 511 520 If SizeOfBuffer is set to MAX_ADDRESS, then SizeOfBuffer must be set to the … … 542 551 Sets the Boolean value for the token specified by TokenNumber 543 552 to the value specified by Value. Value is returned. 544 553 554 If the set operation was not correctly performed, then ASSERT(). 555 545 556 @param[in] TokenNumber The PCD token number to set a current value for. 546 557 @param[in] Value The boolean value to set. … … 568 579 Sets the 8-bit value for the token specified by TokenNumber and 569 580 Guid to the value specified by Value. Value is returned. 570 581 571 582 If Guid is NULL, then ASSERT(). 572 583 If the set operation was not correctly performed, then ASSERT(). 584 573 585 @param[in] Guid The pointer to a 128-bit unique value that 574 586 designates which namespace to set a value from. … … 599 611 Sets the 16-bit value for the token specified by TokenNumber and 600 612 Guid to the value specified by Value. Value is returned. 601 613 602 614 If Guid is NULL, then ASSERT(). 603 615 If the set operation was not correctly performed, then ASSERT(). 616 604 617 @param[in] Guid The pointer to a 128-bit unique value that 605 618 designates which namespace to set a value from. … … 630 643 Sets the 32-bit value for the token specified by TokenNumber and 631 644 Guid to the value specified by Value. Value is returned. 632 645 633 646 If Guid is NULL, then ASSERT(). 634 647 If the set operation was not correctly performed, then ASSERT(). 648 635 649 @param[in] Guid The pointer to a 128-bit unique value that 636 650 designates which namespace to set a value from. … … 661 675 Sets the 64-bit value for the token specified by TokenNumber and 662 676 Guid to the value specified by Value. Value is returned. 677 663 678 If Guid is NULL, then ASSERT(). 664 679 If the set operation was not correctly performed, then ASSERT(). 680 665 681 @param[in] Guid The pointer to a 128-bit unique value that 666 682 designates which namespace to set a value from. … … 693 709 the maximum size support by TokenNumber, then set SizeOfBuffer to the maximum size 694 710 supported by TokenNumber and return NULL to indicate that the set operation 695 was not actually performed .711 was not actually performed, or ASSERT() if the set operation was not corretly performed. 696 712 697 713 If Guid is NULL, then ASSERT(). … … 729 745 Sets the Boolean value for the token specified by TokenNumber and 730 746 Guid to the value specified by Value. Value is returned. 731 747 732 748 If Guid is NULL, then ASSERT(). 733 749 If the set operation was not correctly performed, then ASSERT(). 750 734 751 @param[in] Guid The pointer to a 128-bit unique value that 735 752 designates which namespace to set a value from. … … 920 937 } 921 938 939 /** 940 Retrieve additional information associated with a PCD token. 941 942 This includes information such as the type of value the TokenNumber is associated with as well as possible 943 human readable name that is associated with the token. 944 945 If TokenNumber is not in the default token space specified, then ASSERT(). 946 947 @param[in] TokenNumber The PCD token number. 948 @param[out] PcdInfo The returned information associated with the requested TokenNumber. 949 The caller is responsible for freeing the buffer that is allocated by callee for PcdInfo->PcdName. 950 **/ 951 VOID 952 EFIAPI 953 LibPcdGetInfo ( 954 IN UINTN TokenNumber, 955 OUT PCD_INFO *PcdInfo 956 ) 957 { 958 ASSERT (FALSE); 959 } 960 961 /** 962 Retrieve additional information associated with a PCD token. 963 964 This includes information such as the type of value the TokenNumber is associated with as well as possible 965 human readable name that is associated with the token. 966 967 If TokenNumber is not in the token space specified by Guid, then ASSERT(). 968 969 @param[in] Guid The 128-bit unique value that designates the namespace from which to extract the value. 970 @param[in] TokenNumber The PCD token number. 971 @param[out] PcdInfo The returned information associated with the requested TokenNumber. 972 The caller is responsible for freeing the buffer that is allocated by callee for PcdInfo->PcdName. 973 **/ 974 VOID 975 EFIAPI 976 LibPcdGetInfoEx ( 977 IN CONST GUID *Guid, 978 IN UINTN TokenNumber, 979 OUT PCD_INFO *PcdInfo 980 ) 981 { 982 ASSERT (FALSE); 983 } 984 985 /** 986 Retrieve the currently set SKU Id. 987 988 If the sku id got >= PCD_MAX_SKU_ID, then ASSERT(). 989 990 @return The currently set SKU Id. If the platform has not set at a SKU Id, then the 991 default SKU Id value of 0 is returned. If the platform has set a SKU Id, then the currently set SKU 992 Id is returned. 993 **/ 994 UINTN 995 EFIAPI 996 LibPcdGetSku ( 997 VOID 998 ) 999 { 1000 ASSERT (FALSE); 1001 1002 return 0; 1003 } 1004
Note:
See TracChangeset
for help on using the changeset viewer.