Changeset 105670 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library
- Timestamp:
- Aug 14, 2024 1:16:30 PM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 164367
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 4 added
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-159268 /vendor/edk2/current 103735-103757,103769-103776,129194-164365
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c
r99404 r105670 2550 2550 2551 2551 2552 @retval EFI_SUCCESS The operation was suc essful2552 @retval EFI_SUCCESS The operation was successful 2553 2553 @retval EFI_OUT_OF_RESOURCES A memory allocation failed 2554 2554 @retval EFI_INVALID_PARAMETER Guid NameId was invalid … … 2596 2596 @param[in] Lang RFC4646 language code list or NULL 2597 2597 2598 @retval EFI_SUCCESS The operation was suc essful2598 @retval EFI_SUCCESS The operation was successful 2599 2599 @retval EFI_ACCESS_DENIED There was a duplicate 2600 2600 @retval EFI_OUT_OF_RESOURCES A memory allocation failed … … 2709 2709 @param[out] Guid The pointer to the Guid. 2710 2710 2711 @retval EFI_SUCCESS The operation was suc essful.2711 @retval EFI_SUCCESS The operation was successful. 2712 2712 **/ 2713 2713 EFI_STATUS … … 3313 3313 If MatchingHandleCount is NULL, then ASSERT. 3314 3314 3315 If MatchingHandleBuffer is not NULL upon a suc essful return the memory must be3315 If MatchingHandleBuffer is not NULL upon a successful return the memory must be 3316 3316 caller freed. 3317 3317 … … 3322 3322 @param[in] MatchingHandleCount Poitner to UINTN specifying number of HANDLES in 3323 3323 MatchingHandleBuffer. 3324 @param[out] MatchingHandleBuffer On a suc essful return a buffer of MatchingHandleCount3324 @param[out] MatchingHandleBuffer On a successful return a buffer of MatchingHandleCount 3325 3325 EFI_HANDLEs and a terminating NULL EFI_HANDLE. 3326 3326 3327 @retval EFI_SUCCESS The operation was suc essful and any related handles3327 @retval EFI_SUCCESS The operation was successful and any related handles 3328 3328 are in MatchingHandleBuffer; 3329 3329 @retval EFI_NOT_FOUND No matching handles were found. … … 3451 3451 3452 3452 3453 @retval EFI_SUCCESS The operation was suc essful.3453 @retval EFI_SUCCESS The operation was successful. 3454 3454 **/ 3455 3455 EFI_STATUS … … 3614 3614 @param[out] MatchingHandleBuffer Buffer containing handles on a successful 3615 3615 return. 3616 @retval EFI_SUCCESS The operation was suc essful.3616 @retval EFI_SUCCESS The operation was successful. 3617 3617 @sa ParseHandleDatabaseByRelationship 3618 3618 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h
r99404 r105670 732 732 733 733 /** 734 This function parses the ACPI HPET table. 735 736 @param [in] Trace If TRUE, trace the ACPI fields. 737 @param [in] Ptr Pointer to the start of the buffer. 738 @param [in] AcpiTableLength Length of the ACPI table. 739 @param [in] AcpiTableRevision Revision of the ACPI table. 740 **/ 741 VOID 742 EFIAPI 743 ParseAcpiHpet ( 744 IN BOOLEAN Trace, 745 IN UINT8 *Ptr, 746 IN UINT32 AcpiTableLength, 747 IN UINT8 AcpiTableRevision 748 ); 749 750 /** 734 751 This function parses the ACPI IORT table. 735 752 When trace is enabled this function parses the IORT table and … … 970 987 971 988 /** 989 This function parses the ACPI WSMT table. 990 991 @param [in] Trace If TRUE, trace the ACPI fields. 992 @param [in] Ptr Pointer to the start of the buffer. 993 @param [in] AcpiTableLength Length of the ACPI table. 994 @param [in] AcpiTableRevision Revision of the ACPI table. 995 **/ 996 VOID 997 EFIAPI 998 ParseAcpiWsmt ( 999 IN BOOLEAN Trace, 1000 IN UINT8 *Ptr, 1001 IN UINT32 AcpiTableLength, 1002 IN UINT8 AcpiTableRevision 1003 ); 1004 1005 /** 972 1006 This function parses the ACPI XSDT table 973 1007 and optionally traces the ACPI table fields. -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Madt/MadtParser.c
r99404 r105670 2 2 MADT table parser 3 3 4 Copyright (c) 2016 - 202 0, ARM Limited. All rights reserved.4 Copyright (c) 2016 - 2023, ARM Limited. All rights reserved. 5 5 Copyright (c) 2022, AMD Incorporated. All rights reserved. 6 6 SPDX-License-Identifier: BSD-2-Clause-Patent … … 99 99 100 100 /** 101 This function validates the TRBE Interrupt in the GICC. 102 103 @param [in] Ptr Pointer to the start of the field data. 104 @param [in] Context Pointer to context specific information e.g. this 105 could be a pointer to the ACPI table header. 106 **/ 107 STATIC 108 VOID 109 EFIAPI 110 ValidateTrbeInterrupt ( 111 IN UINT8 *Ptr, 112 IN VOID *Context 113 ) 114 { 115 UINT16 TrbeInterrupt; 116 117 TrbeInterrupt = *(UINT16 *)Ptr; 118 119 // SPE not supported by this processor 120 if (TrbeInterrupt == 0) { 121 return; 122 } 123 124 if ((TrbeInterrupt < ARM_PPI_ID_MIN) || 125 ((TrbeInterrupt > ARM_PPI_ID_MAX) && 126 (TrbeInterrupt < ARM_PPI_ID_EXTENDED_MIN)) || 127 (TrbeInterrupt > ARM_PPI_ID_EXTENDED_MAX)) 128 { 129 IncrementErrorCount (); 130 Print ( 131 L"\nERROR: TRBE Interrupt ID of %d is not in the allowed PPI ID " 132 L"ranges of %d-%d or %d-%d (for GICv3.1 or later).", 133 TrbeInterrupt, 134 ARM_PPI_ID_MIN, 135 ARM_PPI_ID_MAX, 136 ARM_PPI_ID_EXTENDED_MIN, 137 ARM_PPI_ID_EXTENDED_MAX 138 ); 139 } 140 } 141 142 /** 101 143 An ACPI_PARSER array describing the GICC Interrupt Controller Structure. 102 144 **/ … … 123 165 { L"Reserved", 1, 77, L"0x%x", NULL, NULL, NULL, NULL }, 124 166 { L"SPE overflow Interrupt", 2, 78, L"0x%x", NULL, NULL, 125 ValidateSpeOverflowInterrupt, NULL } 167 ValidateSpeOverflowInterrupt, NULL }, 168 { L"TRBE Interrupt", 2, 80, L"0x%x", NULL, NULL, 169 ValidateTrbeInterrupt, NULL } 126 170 }; 127 171 -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.c
r99404 r105670 60 60 { EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE, ParseAcpiGtdt }, 61 61 { EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE, ParseAcpiHmat }, 62 { EFI_ACPI_6_5_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE, ParseAcpiHpet }, 62 63 { EFI_ACPI_6_2_IO_REMAPPING_TABLE_SIGNATURE, ParseAcpiIort }, 63 64 { EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE, ParseAcpiMadt }, … … 73 74 { EFI_ACPI_6_2_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE, ParseAcpiSrat }, 74 75 { EFI_ACPI_6_2_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE, ParseAcpiSsdt }, 76 { EFI_ACPI_6_5_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE, ParseAcpiWsmt }, 75 77 { EFI_ACPI_6_2_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE, ParseAcpiXsdt } 76 78 }; -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
r99404 r105670 39 39 Parsers/Gtdt/GtdtParser.c 40 40 Parsers/Hmat/HmatParser.c 41 Parsers/Hpet/HpetParser.c 41 42 Parsers/Iort/IortParser.c 42 43 Parsers/Madt/MadtParser.c … … 52 53 Parsers/Srat/SratParser.c 53 54 Parsers/Ssdt/SsdtParser.c 55 Parsers/Wsmt/WsmtParser.c 54 56 Parsers/Xsdt/XsdtParser.c 55 57 UefiShellAcpiViewCommandLib.c -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c
r99404 r105670 80 80 @param[in] Index The boot or driver option index update. 81 81 @param[in] DataSize The size in bytes of Data. 82 @param[in] Data The buffer for the optio anl data.82 @param[in] Data The buffer for the optional data. 83 83 @param[in] Target The target of the operation. 84 84 85 @retval EFI_SUCCESS The data was suc essfully updated.85 @retval EFI_SUCCESS The data was successfully updated. 86 86 @retval other A error occurred. 87 87 **/ … … 173 173 @param[in] BootIndex The boot option index to CRC. 174 174 175 @retval EFI_SUCCESS The CRC was suc essfully returned.175 @retval EFI_SUCCESS The CRC was successfully returned. 176 176 @retval other A error occurred. 177 177 **/ … … 227 227 228 228 @param[in] TheHandle Driver handle. 229 @param[in, out] FilePath On a suc essful return the device path to the handle.230 231 @retval EFI_SUCCESS The device path was suc essfully returned.229 @param[in, out] FilePath On a successful return the device path to the handle. 230 231 @retval EFI_SUCCESS The device path was successfully returned. 232 232 @retval other A error from gBS->HandleProtocol. 233 233 … … 285 285 286 286 /** 287 Functi noto get Device Path by a handle.287 Function to get Device Path by a handle. 288 288 289 289 @param[in] TheHandle Use it to get DevicePath. 290 290 @param[in] Target Boot option target. 291 @param[in, out] DevicePath On a suc essful return the device path to the handle.291 @param[in, out] DevicePath On a successful return the device path to the handle. 292 292 293 293 @retval SHELL_INVALID_PARAMETER The handle was NULL. … … 871 871 872 872 /** 873 Func iton to remove an item.873 Function to remove an item. 874 874 875 875 @param[in] Target The target item to move. … … 935 935 936 936 /** 937 Func iton to move a item to another location.937 Function to move a item to another location. 938 938 939 939 @param[in] Target The target item to move. … … 1922 1922 @param[in] Name the profile name to use 1923 1923 1924 @retval EFI_SUCCESS the shell command handlers were installed suc essfully1924 @retval EFI_SUCCESS the shell command handlers were installed successfully 1925 1925 @retval EFI_UNSUPPORTED the shell level required was not found. 1926 1926 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.c
r101291 r105670 156 156 @param SystemTable the EFI System Table pointer 157 157 158 @retval EFI_SUCCESS the initialization was complete suc essfully158 @retval EFI_SUCCESS the initialization was complete successfully 159 159 **/ 160 160 RETURN_STATUS … … 1287 1287 @param[in] Path TRUE to update path, FALSE to skip this step (should only be TRUE during initialization). 1288 1288 1289 @retval EFI_SUCCESS The addition was suc essful.1289 @retval EFI_SUCCESS The addition was successful. 1290 1290 @retval EFI_OUT_OF_RESOURCES A memory allocation failed. 1291 1291 @retval EFI_INVALID_PARAMETER A parameter was invalid. … … 1375 1375 Also sets up the default path environment variable if Type is FileSystem. 1376 1376 1377 @retval EFI_SUCCESS All map names were created suc essfully.1377 @retval EFI_SUCCESS All map names were created successfully. 1378 1378 @retval EFI_NOT_FOUND No protocols were found in the system. 1379 1379 @return Error returned from gBS->LocateHandle(). -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.c
r99404 r105670 1318 1318 return the number of bytes placed in DstBuffer. 1319 1319 1320 @retval EFI_SUCCESS The compression was suc essful.1320 @retval EFI_SUCCESS The compression was successful. 1321 1321 @retval EFI_BUFFER_TOO_SMALL The buffer was too small. DstSize is required. 1322 1322 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/Compress.h
r99404 r105670 19 19 return the number of bytes placed in DstBuffer. 20 20 21 @retval EFI_SUCCESS The compression was suc essful.21 @retval EFI_SUCCESS The compression was successful. 22 22 @retval EFI_BUFFER_TOO_SMALL The buffer was too small. DstSize is required. 23 23 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/PrintInfo.c
r101291 r105670 2 2 Module for clarifying the content of the smbios structure element information. 3 3 4 Copyright (c) 2005 - 20 18, Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2005 - 2024, Intel Corporation. All rights reserved.<BR> 5 5 Copyright (c) 1985 - 2022, American Megatrends International LLC.<BR> 6 6 (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR> … … 521 521 } 522 522 523 if (AE_SMBIOS_VERSION (0x3, 0x6) && (Struct->Hdr->Length > 0x2E)) { 524 ShellPrintEx (-1, -1, L"Thread Enabled: %u\n", Struct->Type4->ThreadEnabled); 525 } 526 523 527 break; 524 528 … … 2611 2615 break; 2612 2616 2617 case 0x258: 2618 Print (L"LoongArch\n"); 2619 break; 2620 2621 case 0x259: 2622 Print (L"Loongson1\n"); 2623 break; 2624 2625 case 0x25A: 2626 Print (L"Loongson2\n"); 2627 break; 2628 2629 case 0x25B: 2630 Print (L"Loongson3\n"); 2631 break; 2632 2633 case 0x25C: 2634 Print (L"Loongson2K\n"); 2635 break; 2636 2637 case 0x25D: 2638 Print (L"Loongson3A\n"); 2639 break; 2640 2641 case 0x25E: 2642 Print (L"Loongson3B\n"); 2643 break; 2644 2645 case 0x25F: 2646 Print (L"Loongson3C\n"); 2647 break; 2648 2649 case 0x260: 2650 Print (L"Loongson3D\n"); 2651 break; 2652 2653 case 0x261: 2654 Print (L"Loongson3E\n"); 2655 break; 2656 2657 case 0x262: 2658 Print (L"DualCoreLoongson2K\n"); 2659 break; 2660 2661 case 0x26C: 2662 Print (L"QuadCoreLoongson3A\n"); 2663 break; 2664 2665 case 0x26D: 2666 Print (L"MultiCoreLoongson3A\n"); 2667 break; 2668 2669 case 0x26E: 2670 Print (L"QuadCoreLoongson3B\n"); 2671 break; 2672 2673 case 0x26F: 2674 Print (L"MultiCoreLoongson3B\n"); 2675 break; 2676 2677 case 0x270: 2678 Print (L"MultiCoreLoongson3C\n"); 2679 break; 2680 2681 case 0x271: 2682 Print (L"MultiCoreLoongson3D\n"); 2683 break; 2684 2685 case 0x300: 2686 Print (L"IntelCore3\n"); 2687 break; 2688 2689 case 0x301: 2690 Print (L"IntelCore5\n"); 2691 break; 2692 2693 case 0x302: 2694 Print (L"IntelCore7\n"); 2695 break; 2696 2697 case 0x303: 2698 Print (L"IntelCore9\n"); 2699 break; 2700 2701 case 0x304: 2702 Print (L"IntelCoreUltra3\n"); 2703 break; 2704 2705 case 0x305: 2706 Print (L"IntelCoreUltra5\n"); 2707 break; 2708 2709 case 0x306: 2710 Print (L"IntelCoreUltra7\n"); 2711 break; 2712 2713 case 0x307: 2714 Print (L"IntelCoreUltra9\n"); 2715 break; 2716 2613 2717 default: 2614 2718 ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_UNDEFINED_PROC_FAMILY), gShellDebug1HiiHandle); … … 3106 3210 3107 3211 default: 3108 if (((SlotType >= 0x0E) && (SlotType <= 0x12)) || ((SlotType >= 0xA6) && (SlotType <= 0x B6))) {3212 if (((SlotType >= 0x0E) && (SlotType <= 0x12)) || ((SlotType >= 0xA6) && (SlotType <= 0xC4))) { 3109 3213 ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_VALUE_PRESENT), gShellDebug1HiiHandle, SlotId); 3110 3214 } else { -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c
r101291 r105670 3 3 And give a interface of query a string out of a table. 4 4 5 Copyright (c) 2005 - 202 1, Intel Corporation. All rights reserved.<BR>5 Copyright (c) 2005 - 2024, Intel Corporation. All rights reserved.<BR> 6 6 (C) Copyright 2016-2019 Hewlett Packard Enterprise Development LP<BR> 7 7 Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. … … 639 639 0x48, 640 640 L"Socket BGA5773" 641 }, 642 { 643 0x49, 644 L"Socket AM5" 645 }, 646 { 647 0x4A, 648 L"Socket SP5" 649 }, 650 { 651 0x4B, 652 L"Socket SP6" 653 }, 654 { 655 0x4C, 656 L"Socket BGA883" 657 }, 658 { 659 0x4D, 660 L"Socket BGA1190" 661 }, 662 { 663 0x4E, 664 L"Socket BGA4129" 665 }, 666 { 667 0x4F, 668 L"Socket LGA4710" 669 }, 670 { 671 0x50, 672 L"Socket LGA7529" 673 }, 674 { 675 0x51, 676 L"Socket BGA1964" 677 }, 678 { 679 0x52, 680 L"Socket BGA1792" 681 }, 682 { 683 0x53, 684 L"Socket BGA2049" 685 }, 686 { 687 0x54, 688 L"Socket BGA2551" 689 }, 690 { 691 0x55, 692 L"Socket LGA1851" 693 }, 694 { 695 0x56, 696 L"Socket BGA2114" 697 }, 698 { 699 0x57, 700 L"Socket BGA2833" 641 701 } 642 702 }; … … 3621 3681 8, 3622 3682 L" 128-bit RISC-V (RV128) " 3683 }, 3684 { 3685 9, 3686 L" 32-bit LoongArch (LoongArch32) " 3687 }, 3688 { 3689 10, 3690 L" 64-bit LoongArch (LoongArch64) " 3623 3691 } 3624 3692 }; -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c
r99404 r105670 34 34 @param SystemTable the EFI System Table pointer 35 35 36 @retval EFI_SUCCESS the shell command handlers were installed suc essfully36 @retval EFI_SUCCESS the shell command handlers were installed successfully 37 37 @retval EFI_UNSUPPORTED the shell level required was not found. 38 38 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.c
r99404 r105670 33 33 @param SystemTable the EFI System Table pointer 34 34 35 @retval EFI_SUCCESS the shell command handlers were installed suc essfully35 @retval EFI_SUCCESS the shell command handlers were installed successfully 36 36 @retval EFI_UNSUPPORTED the shell level required was not found. 37 37 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.c
r99404 r105670 17 17 @param SystemTable the EFI System Table pointer 18 18 19 @retval EFI_SUCCESS the shell command handlers were installed suc essfully19 @retval EFI_SUCCESS the shell command handlers were installed successfully 20 20 @retval EFI_UNSUPPORTED the shell level required was not found. 21 21 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.c
r99404 r105670 35 35 @param SystemTable the EFI System Table pointer 36 36 37 @retval EFI_SUCCESS the shell command handlers were installed suc essfully37 @retval EFI_SUCCESS the shell command handlers were installed successfully 38 38 @retval EFI_UNSUPPORTED the shell level required was not found. 39 39 **/ … … 244 244 location. 245 245 @param[in] FindOnly TRUE to not change the ScriptFile. 246 @param[in] WrapAroundScript TRUE to wrap end-to-begin ing or vise versa in246 @param[in] WrapAroundScript TRUE to wrap end-to-beginning or vise versa in 247 247 searching. 248 248 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.h
r99404 r105670 184 184 location. 185 185 @param[in] FindOnly TRUE to not change the ScriptFile. 186 @param[in] WrapAroundScript TRUE to wrap end-to-begin ing or vise versa in186 @param[in] WrapAroundScript TRUE to wrap end-to-beginning or vise versa in 187 187 searching. 188 188 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c
r99404 r105670 15 15 Function will replace drive identifier with CWD. 16 16 17 If FullPath begin ing with ':' is invalid path, then ASSERT.18 If FullPath not include d irve identifier , then do nothing.17 If FullPath beginning with ':' is invalid path, then ASSERT. 18 If FullPath not include drive identifier , then do nothing. 19 19 If FullPath likes "fs0:\xx" or "fs0:/xx" , then do nothing. 20 20 If FullPath likes "fs0:xxx" or "fs0:", the drive replaced by CWD. -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c
r99404 r105670 428 428 unfiltered. 429 429 430 @retval SHELL_SUCCESS the printing was suc essful.430 @retval SHELL_SUCCESS the printing was successful. 431 431 **/ 432 432 SHELL_STATUS -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c
r99404 r105670 1355 1355 TRUE 1356 1356 ); 1357 } // we were suc essful so do an output1357 } // we were successful so do an output 1358 1358 } 1359 1359 } // got a valid map target -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c
r99404 r105670 217 217 have 2 possible destination). 218 218 219 if the result is suc essful the caller must free *DestPathPointer.219 if the result is successful the caller must free *DestPathPointer. 220 220 221 221 @param[in] DestParameter The original path to the destination. … … 228 228 @retval SHELL_INVALID_PARAMETER The DestParameter could be resolved to more than 1 location. 229 229 @retval SHELL_INVALID_PARAMETER Cwd is required and is NULL. 230 @retval SHELL_SUCCESS The operation was suc essful.230 @retval SHELL_SUCCESS The operation was successful. 231 231 **/ 232 232 SHELL_STATUS … … 851 851 // 852 852 // ValidateAndMoveFiles will report errors to the screen itself 853 // Only change ShellStatus if it's suc essful853 // Only change ShellStatus if it's successful 854 854 // 855 855 if (ShellStatus == SHELL_SUCCESS) { -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Reset.c
r99404 r105670 80 80 &OsIndications 81 81 ); 82 if (!EFI_ERROR (Status)) {83 if ((OsIndications & EFI_OS_INDICATIONS_BOOT_TO_FW_UI) != 0) {84 DataSize = sizeof (OsIndications);85 Status = gRT->GetVariable (86 EFI_OS_INDICATIONS_VARIABLE_NAME,87 &gEfiGlobalVariableGuid,88 &Attr,89 &DataSize,90 &OsIndications91 );92 if (!EFI_ERROR (Status)) {93 OsIndications |= EFI_OS_INDICATIONS_BOOT_TO_FW_UI;94 } else {95 OsIndications = EFI_OS_INDICATIONS_BOOT_TO_FW_UI;96 }97 82 98 Status = gRT->SetVariable ( 83 if (EFI_ERROR (Status)) { 84 ShellStatus = SHELL_UNSUPPORTED; 85 goto Error; 86 } 87 88 if ((OsIndications & EFI_OS_INDICATIONS_BOOT_TO_FW_UI) != 0) { 89 DataSize = sizeof (OsIndications); 90 Status = gRT->GetVariable ( 99 91 EFI_OS_INDICATIONS_VARIABLE_NAME, 100 92 &gEfiGlobalVariableGuid, 101 EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,102 sizeof (OsIndications),93 &Attr, 94 &DataSize, 103 95 &OsIndications 104 96 ); 97 98 if (EFI_ERROR (Status)) { 99 OsIndications = EFI_OS_INDICATIONS_BOOT_TO_FW_UI; 100 } else { 101 OsIndications |= EFI_OS_INDICATIONS_BOOT_TO_FW_UI; 105 102 } 103 104 Status = gRT->SetVariable ( 105 EFI_OS_INDICATIONS_VARIABLE_NAME, 106 &gEfiGlobalVariableGuid, 107 EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS, 108 sizeof (OsIndications), 109 &OsIndications 110 ); 106 111 } 107 112 -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Set.c
r99404 r105670 15 15 If you spawn a pre 2.0 shell from the Shell 2.0 the environment variable may not carry through. 16 16 17 @retval STATUS_SUCCESS the printout was suc essful17 @retval STATUS_SUCCESS the printout was successful 18 18 @return any return code from GetNextVariableName except EFI_NOT_FOUND 19 19 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.c
r99404 r105670 54 54 @param SystemTable the EFI System Table pointer 55 55 56 @retval EFI_SUCCESS the shell command handlers were installed suc essfully56 @retval EFI_SUCCESS the shell command handlers were installed successfully 57 57 @retval EFI_UNSUPPORTED the shell level required was not found. 58 58 **/ … … 149 149 150 150 /** 151 returns a fully qualified directory (contains a map drive at the begin ing)151 returns a fully qualified directory (contains a map drive at the beginning) 152 152 path from a unknown directory path. 153 153 154 If Path is already fully qualified this will return a duplicat otherwise this154 If Path is already fully qualified this will return a duplicate otherwise this 155 155 will use get the current directory and use that to build the fully qualified 156 156 version. … … 162 162 @retval NULL A memory allocation failed 163 163 @retval NULL A fully qualified path could not be discovered. 164 @retval other An allocated pointer to a ful y qualified path.164 @retval other An allocated pointer to a fully qualified path. 165 165 **/ 166 166 CHAR16 * -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.h
r99404 r105670 242 242 243 243 /** 244 returns a fully qualified directory (contains a map drive at the begin ing)244 returns a fully qualified directory (contains a map drive at the beginning) 245 245 path from a unknown directory path. 246 246 247 If Path is already fully qualified this will return a duplicat otherwise this247 If Path is already fully qualified this will return a duplicate otherwise this 248 248 will use get the current directory and use that to build the fully qualified 249 249 version. … … 255 255 @retval NULL A memory allocation failed 256 256 @retval NULL a fully qualified path could not be discovered. 257 @retval other pointer to a ful y qualified path.257 @retval other pointer to a fully qualified path. 258 258 **/ 259 259 CHAR16 * -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel2CommandsLib/Vol.c
r99404 r105670 19 19 @param[in] Name New name to set to the volume label. 20 20 21 @retval SHELL_SUCCESS The operation was suc essful.21 @retval SHELL_SUCCESS The operation was successful. 22 22 **/ 23 23 SHELL_STATUS -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel3CommandsLib/Alias.c
r99404 r105670 18 18 If this parameter is NULL, then all 19 19 aliases will be returned in ReturnedData. 20 @retval SHELL_SUCCESS the printout was suc essful20 @retval SHELL_SUCCESS the printout was successful 21 21 **/ 22 22 SHELL_STATUS … … 48 48 Print out each alias registered with the Shell. 49 49 50 @retval STATUS_SUCCESS the printout was suc essful50 @retval STATUS_SUCCESS the printout was successful 51 51 @return any return code from GetNextVariableName except EFI_NOT_FOUND 52 52 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c
r99404 r105670 233 233 234 234 // 235 // make sure we completed the param parsing suc essfully...236 // Also make sure that any previous action was suc essful235 // make sure we completed the param parsing successfully... 236 // Also make sure that any previous action was successful 237 237 // 238 238 if (ShellStatus == SHELL_SUCCESS) { -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel3CommandsLib/Type.c
r99404 r105670 252 252 253 253 // 254 // make sure we completed the param parsing suc essfully...255 // Also make sure that any previous action was suc essful254 // make sure we completed the param parsing successfully... 255 // Also make sure that any previous action was successful 256 256 // 257 257 if (ShellStatus == SHELL_SUCCESS) { -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.c
r99404 r105670 34 34 @param SystemTable the EFI System Table pointer 35 35 36 @retval EFI_SUCCESS the shell command handlers were installed suc essfully36 @retval EFI_SUCCESS the shell command handlers were installed successfully 37 37 @retval EFI_UNSUPPORTED the shell level required was not found. 38 38 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellLib/UefiShellLib.c
r99404 r105670 5 5 Copyright 2016-2018 Dell Technologies.<BR> 6 6 Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR> 7 Copyright (C) 2023, Apple Inc. All rights reserved.<BR> 8 7 9 SPDX-License-Identifier: BSD-2-Clause-Patent 8 9 10 **/ 10 11 … … 417 418 @param SystemTable the EFI System Table pointer 418 419 419 @retval EFI_SUCCESS the initialization was complete suc essfully420 @retval EFI_SUCCESS the initialization was complete successfully 420 421 @return others an error ocurred during initialization 421 422 **/ … … 516 517 /** 517 518 This function causes the shell library to initialize itself. If the shell library 518 is already initialized it will de-initialize all the current protocol poi tners and519 is already initialized it will de-initialize all the current protocol pointers and 519 520 re-populate them again. 520 521 … … 524 525 This function is intended for internal access for shell commands only. 525 526 526 @retval EFI_SUCCESS the initialization was complete suc essfully527 @retval EFI_SUCCESS the initialization was complete successfully 527 528 528 529 **/ … … 962 963 @param FileHandle the file handle to close. 963 964 964 @retval EFI_SUCCESS the file handle was closed suc essfully.965 @retval EFI_SUCCESS the file handle was closed successfully. 965 966 **/ 966 967 EFI_STATUS … … 982 983 @param FileHandle the file handle to delete 983 984 984 @retval EFI_SUCCESS the file was closed suc essfully985 @retval EFI_SUCCESS the file was closed successfully 985 986 @retval EFI_WARN_DELETE_FAILURE the handle was closed, but the file was not 986 987 deleted … … 1008 1009 1009 1010 @param FileHandle The file handle on which the position is being set 1010 @param Position Byte position from begin ing of file1011 1012 @retval EFI_SUCCESS Operation completed suc essfully.1011 @param Position Byte position from beginning of file 1012 1013 @retval EFI_SUCCESS Operation completed successfully. 1013 1014 @retval EFI_UNSUPPORTED the seek request for non-zero is not valid on 1014 1015 directories. … … 1034 1035 1035 1036 @param FileHandle The open file handle on which to get the position. 1036 @param Position Byte position from begin ing of file.1037 1038 @retval EFI_SUCCESS the operation completed suc essfully.1037 @param Position Byte position from beginning of file. 1038 1039 @retval EFI_SUCCESS the operation completed successfully. 1039 1040 @retval INVALID_PARAMETER One of the parameters has an invalid value. 1040 1041 @retval EFI_UNSUPPORTED the request is not valid on directories. … … 1152 1153 @param Size pointer to size 1153 1154 1154 @retval EFI_SUCCESS operation was completed suc essfully1155 @retval EFI_SUCCESS operation was completed successfully 1155 1156 @retval EFI_DEVICE_ERROR cannot access the file 1156 1157 **/ … … 1254 1255 @param Volatile Indicates whether the variable is non-volatile (FALSE) or volatile (TRUE). 1255 1256 1256 @retval EFI_SUCCESS the operation was completed suc essfully1257 @retval EFI_SUCCESS the operation was completed successfully 1257 1258 @retval EFI_UNSUPPORTED This operation is not allowed in pre UEFI 2.0 Shell environments 1258 1259 **/ … … 1302 1303 @param[out] Status The status of the run command line. 1303 1304 1304 @retval EFI_SUCCESS The operation completed suc essfully. Status1305 @retval EFI_SUCCESS The operation completed successfully. Status 1305 1306 contains the status code returned. 1306 1307 @retval EFI_INVALID_PARAMETER A parameter contains an invalid value. … … 1576 1577 1577 1578 // 1578 // make sure all the memory allocations were suc essful1579 // make sure all the memory allocations were successful 1579 1580 // 1580 1581 if ((NULL == NewInfo->FullName) || (NewInfo->FileName == NULL) || (NewInfo->Info == NULL)) { … … 1621 1622 @param ListHead head of linked list of results 1622 1623 1623 @retval EFI_SUCCESS the operation was suc essful and the list head1624 @retval EFI_SUCCESS the operation was successful and the list head 1624 1625 contains the list of opened files 1625 1626 @return != EFI_SUCCESS the operation failed … … 1748 1749 @param ListHead the pointer to free. 1749 1750 1750 @retval EFI_SUCCESS the operation was suc essful.1751 @retval EFI_SUCCESS the operation was successful. 1751 1752 **/ 1752 1753 EFI_STATUS … … 2131 2132 @param[in] AlwaysAllowNumbers TRUE to allow numbers always, FALSE otherwise. 2132 2133 2133 @retval EFI_SUCCESS The operation completed suc essfully.2134 @retval EFI_SUCCESS The operation completed successfully. 2134 2135 @retval EFI_OUT_OF_RESOURCES A memory allocation failed 2135 2136 @retval EFI_INVALID_PARAMETER A parameter was invalid … … 2371 2372 @param[in] AlwaysAllowNumbers Will never fail for number based flags. 2372 2373 2373 @retval EFI_SUCCESS The operation completed suc essfully.2374 @retval EFI_SUCCESS The operation completed successfully. 2374 2375 @retval EFI_OUT_OF_RESOURCES A memory allocation failed. 2375 2376 @retval EFI_INVALID_PARAMETER A parameter was invalid. … … 2875 2876 @param[in] String The string to print out. 2876 2877 2877 @retval EFI_SUCCESS The operation was suc essful.2878 @retval EFI_SUCCESS The operation was successful. 2878 2879 @retval !EFI_SUCCESS The operation failed. 2879 2880 **/ … … 2953 2954 CHAR16 *mPostReplaceFormat2; 2954 2955 2955 mPostReplaceFormat = AllocateZeroPool (PcdGet 16(PcdShellPrintBufferSize));2956 mPostReplaceFormat2 = AllocateZeroPool (PcdGet 16(PcdShellPrintBufferSize));2956 mPostReplaceFormat = AllocateZeroPool (PcdGet32 (PcdShellPrintBufferSize)); 2957 mPostReplaceFormat2 = AllocateZeroPool (PcdGet32 (PcdShellPrintBufferSize)); 2957 2958 2958 2959 if ((mPostReplaceFormat == NULL) || (mPostReplaceFormat2 == NULL)) { … … 2968 2969 // Back and forth each time fixing up 1 of our flags... 2969 2970 // 2970 Status = ShellCopySearchAndReplace (Format, mPostReplaceFormat, PcdGet 16(PcdShellPrintBufferSize), L"%N", L"%%N", FALSE, FALSE);2971 Status = ShellCopySearchAndReplace (Format, mPostReplaceFormat, PcdGet32 (PcdShellPrintBufferSize), L"%N", L"%%N", FALSE, FALSE); 2971 2972 ASSERT_EFI_ERROR (Status); 2972 Status = ShellCopySearchAndReplace (mPostReplaceFormat, mPostReplaceFormat2, PcdGet 16(PcdShellPrintBufferSize), L"%E", L"%%E", FALSE, FALSE);2973 Status = ShellCopySearchAndReplace (mPostReplaceFormat, mPostReplaceFormat2, PcdGet32 (PcdShellPrintBufferSize), L"%E", L"%%E", FALSE, FALSE); 2973 2974 ASSERT_EFI_ERROR (Status); 2974 Status = ShellCopySearchAndReplace (mPostReplaceFormat2, mPostReplaceFormat, PcdGet 16(PcdShellPrintBufferSize), L"%H", L"%%H", FALSE, FALSE);2975 Status = ShellCopySearchAndReplace (mPostReplaceFormat2, mPostReplaceFormat, PcdGet32 (PcdShellPrintBufferSize), L"%H", L"%%H", FALSE, FALSE); 2975 2976 ASSERT_EFI_ERROR (Status); 2976 Status = ShellCopySearchAndReplace (mPostReplaceFormat, mPostReplaceFormat2, PcdGet 16(PcdShellPrintBufferSize), L"%B", L"%%B", FALSE, FALSE);2977 Status = ShellCopySearchAndReplace (mPostReplaceFormat, mPostReplaceFormat2, PcdGet32 (PcdShellPrintBufferSize), L"%B", L"%%B", FALSE, FALSE); 2977 2978 ASSERT_EFI_ERROR (Status); 2978 Status = ShellCopySearchAndReplace (mPostReplaceFormat2, mPostReplaceFormat, PcdGet 16(PcdShellPrintBufferSize), L"%V", L"%%V", FALSE, FALSE);2979 Status = ShellCopySearchAndReplace (mPostReplaceFormat2, mPostReplaceFormat, PcdGet32 (PcdShellPrintBufferSize), L"%V", L"%%V", FALSE, FALSE); 2979 2980 ASSERT_EFI_ERROR (Status); 2980 2981 … … 2982 2983 // Use the last buffer from replacing to print from... 2983 2984 // 2984 UnicodeVSPrint (mPostReplaceFormat2, PcdGet 16(PcdShellPrintBufferSize), mPostReplaceFormat, Marker);2985 UnicodeVSPrint (mPostReplaceFormat2, PcdGet32 (PcdShellPrintBufferSize), mPostReplaceFormat, Marker); 2985 2986 2986 2987 if ((Col != -1) && (Row != -1)) { … … 3515 3516 @param Response Pointer to Response which will be populated upon return. 3516 3517 3517 @retval EFI_SUCCESS The operation was suc essful.3518 @retval EFI_SUCCESS The operation was successful. 3518 3519 @retval EFI_UNSUPPORTED The operation is not supported as requested. 3519 3520 @retval EFI_INVALID_PARAMETER A parameter was invalid. … … 3801 3802 @param Response Pointer to Response which will be populated upon return. 3802 3803 3803 @retval EFI_SUCCESS the operation was suc essful.3804 @retval EFI_SUCCESS the operation was successful. 3804 3805 @return other the operation failed. 3805 3806 -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellNetwork1CommandsLib/Ping.c
r99404 r105670 512 512 Currently, the application retransmits an icmp6 echo request packet 513 513 per second in sendnumber times that is specified by the user. 514 Because nothing can be done here, all things move to the timer rou ntine.514 Because nothing can be done here, all things move to the timer routine. 515 515 516 516 @param[in] Event A EFI_EVENT type event. -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.c
r99404 r105670 33 33 @param SystemTable The EFI System Table pointer. 34 34 35 @retval EFI_SUCCESS The shell command handlers were installed suc essfully.35 @retval EFI_SUCCESS The shell command handlers were installed successfully. 36 36 @retval EFI_UNSUPPORTED The shell level required was not found. 37 37 **/ -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ifconfig6.c
r99404 r105670 383 383 ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_IFCONFIG6_INFO_COLON), gShellNetwork2HiiHandle); 384 384 385 while ((I p->Addr[Index] == 0) && (Ip->Addr[Index + 1] == 0) && (Index < PREFIXMAXLEN)) {385 while ((Index < PREFIXMAXLEN) && (Ip->Addr[Index] == 0) && (Ip->Addr[Index + 1] == 0)) { 386 386 Index = Index + 2; 387 387 if (Index > PREFIXMAXLEN - 2) { -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellNetwork2CommandsLib/Ping6.c
r99404 r105670 358 358 Currently, the application retransmits an icmp6 echo request packet 359 359 per second in sendnumber times that is specified by the user. 360 Because nothing can be done here, all things move to the timer rou ntine.360 Because nothing can be done here, all things move to the timer routine. 361 361 362 362 @param[in] Event A EFI_EVENT type event. -
trunk/src/VBox/Devices/EFI/FirmwareNew/ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.c
r99404 r105670 33 33 @param SystemTable The EFI System Table pointer. 34 34 35 @retval EFI_SUCCESS The shell command handlers were installed suc essfully.35 @retval EFI_SUCCESS The shell command handlers were installed successfully. 36 36 @retval EFI_UNSUPPORTED The shell level required was not found. 37 37 **/
Note:
See TracChangeset
for help on using the changeset viewer.