Changeset 80721 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/ResetUtilityLib
- Timestamp:
- Sep 11, 2019 8:46:37 AM (5 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 3 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-129237 /vendor/edk2/current 103735-103757,103769-103776,129194-133213
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/ResetUtilityLib/ResetUtility.c
r77662 r80721 2 2 This contains the business logic for the module-specific Reset Helper functions. 3 3 4 Copyright (c) 2017 - 201 8Intel Corporation. All rights reserved.<BR>4 Copyright (c) 2017 - 2019 Intel Corporation. All rights reserved.<BR> 5 5 Copyright (c) 2016 Microsoft Corporation. All rights reserved.<BR> 6 6 7 This program and the accompanying materials are licensed and made available under 8 the terms and conditions of the BSD License that accompanies this distribution. 9 The full text of the license may be found at 10 http://opensource.org/licenses/bsd-license.php. 11 12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 7 SPDX-License-Identifier: BSD-2-Clause-Patent 14 8 15 9 **/ … … 30 24 31 25 /** 32 This is a shorthand helper function to reset with a subtype so that33 the caller doesn't have to bother with a function that has half a dozen34 parameters.26 This is a shorthand helper function to reset with reset type and a subtype 27 so that the caller doesn't have to bother with a function that has half 28 a dozen parameters. 35 29 36 30 This will generate a reset with status EFI_SUCCESS, a NULL string, and … … 42 36 to your DEPEX. 43 37 38 @param[in] ResetType The default EFI_RESET_TYPE of the reset. 44 39 @param[in] ResetSubtype GUID pointer for the reset subtype to be used. 45 40 … … 47 42 VOID 48 43 EFIAPI 49 ResetPlatformSpecificGuid ( 44 ResetSystemWithSubtype ( 45 IN EFI_RESET_TYPE ResetType, 50 46 IN CONST GUID *ResetSubtype 51 47 ) … … 58 54 ResetSubtype 59 55 ); 60 ResetPlatformSpecific (sizeof (ResetData), &ResetData); 56 57 ResetSystem (ResetType, EFI_SUCCESS, sizeof (ResetData), &ResetData); 58 } 59 60 /** 61 This is a shorthand helper function to reset with the reset type 62 'EfiResetPlatformSpecific' and a subtype so that the caller doesn't 63 have to bother with a function that has half a dozen parameters. 64 65 This will generate a reset with status EFI_SUCCESS, a NULL string, and 66 no custom data. The subtype will be formatted in such a way that it can be 67 picked up by notification registrations and custom handlers. 68 69 NOTE: This call will fail if the architectural ResetSystem underpinnings 70 are not initialized. For DXE, you can add gEfiResetArchProtocolGuid 71 to your DEPEX. 72 73 @param[in] ResetSubtype GUID pointer for the reset subtype to be used. 74 75 **/ 76 VOID 77 EFIAPI 78 ResetPlatformSpecificGuid ( 79 IN CONST GUID *ResetSubtype 80 ) 81 { 82 ResetSystemWithSubtype (EfiResetPlatformSpecific, ResetSubtype); 61 83 } 62 84 -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/ResetUtilityLib/ResetUtilityLib.inf
r77662 r80721 4 4 # Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR> 5 5 # Copyright (c) 2016, Microsoft Corporation. All rights reserved.<BR> 6 # This program and the accompanying materials 7 # are licensed and made available under the terms and conditions of the BSD License 8 # which accompanies this distribution. The full text of the license may be found at 9 # http://opensource.org/licenses/bsd-license.php 10 # 11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 6 # SPDX-License-Identifier: BSD-2-Clause-Patent 13 7 # 14 8 ##
Note:
See TracChangeset
for help on using the changeset viewer.