Changeset 80721 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/DxeCapsuleLibNull
- Timestamp:
- Sep 11, 2019 8:46:37 AM (5 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 4 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/DxeCapsuleLibNull/DxeCapsuleLibNull.c
r77662 r80721 2 2 Null Dxe Capsule Library instance does nothing and returns unsupport status. 3 3 4 Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR> 5 This program and the accompanying materials 6 are licensed and made available under the terms and conditions of the BSD License 7 which accompanies this distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php 9 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 4 Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR> 5 SPDX-License-Identifier: BSD-2-Clause-Patent 12 6 13 7 **/ … … 92 86 } 93 87 88 89 /** 90 This routine is called to check if CapsuleOnDisk flag in OsIndications Variable 91 is enabled. 92 93 @retval TRUE Flag is enabled 94 @retval FALSE Flag is not enabled 95 96 **/ 97 BOOLEAN 98 EFIAPI 99 CoDCheckCapsuleOnDiskFlag( 100 VOID 101 ) 102 { 103 return FALSE; 104 } 105 106 /** 107 This routine is called to clear CapsuleOnDisk flags including OsIndications and BootNext variable. 108 109 @retval EFI_SUCCESS All Capsule On Disk flags are cleared 110 111 **/ 112 EFI_STATUS 113 EFIAPI 114 CoDClearCapsuleOnDiskFlag( 115 VOID 116 ) 117 { 118 return EFI_UNSUPPORTED; 119 } 120 121 /** 122 Relocate Capsule on Disk from EFI system partition. 123 124 Two solution to deliver Capsule On Disk: 125 Solution A: If PcdCapsuleInRamSupport is enabled, relocate Capsule On Disk to memory and call UpdateCapsule(). 126 Solution B: If PcdCapsuleInRamSupport is disabled, relocate Capsule On Disk to a platform-specific NV storage 127 device with BlockIo protocol. 128 129 Device enumeration like USB costs time, user can input MaxRetry to tell function to retry. 130 Function will stall 100ms between each retry. 131 132 Side Effects: 133 Capsule Delivery Supported Flag in OsIndication variable and BootNext variable will be cleared. 134 Solution B: Content corruption. Block IO write directly touches low level write. Orignal partitions, file 135 systems of the relocation device will be corrupted. 136 137 @param[in] MaxRetry Max Connection Retry. Stall 100ms between each connection try to ensure 138 devices like USB can get enumerated. Input 0 means no retry. 139 140 @retval EFI_SUCCESS Capsule on Disk images are successfully relocated. 141 142 **/ 143 EFI_STATUS 144 EFIAPI 145 CoDRelocateCapsule( 146 UINTN MaxRetry 147 ) 148 { 149 return EFI_UNSUPPORTED; 150 } 151 152 /** 153 Remove the temp file from the root of EFI System Partition. 154 Device enumeration like USB costs time, user can input MaxRetry to tell function to retry. 155 Function will stall 100ms between each retry. 156 157 @param[in] MaxRetry Max Connection Retry. Stall 100ms between each connection try to ensure 158 devices like USB can get enumerated. Input 0 means no retry. 159 160 @retval EFI_SUCCESS Remove the temp file successfully. 161 162 **/ 163 EFI_STATUS 164 EFIAPI 165 CoDRemoveTempFile ( 166 UINTN MaxRetry 167 ) 168 { 169 return EFI_UNSUPPORTED; 170 } -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
r58459 r80721 3 3 # It can make core modules pass package level build. 4 4 # 5 # Copyright (c) 2006 - 201 4, Intel Corporation. All rights reserved.<BR>5 # Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR> 6 6 # 7 # This program and the accompanying materials 8 # are licensed and made available under the terms and conditions of the BSD License 9 # which accompanies this distribution. The full text of the license may be found at 10 # http://opensource.org/licenses/bsd-license.php 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. 7 # SPDX-License-Identifier: BSD-2-Clause-Patent 13 8 # 14 9 # … … 27 22 # The following information is for reference only and not required by the build tools. 28 23 # 29 # VALID_ARCHITECTURES = IA32 X64 IPFEBC24 # VALID_ARCHITECTURES = IA32 X64 EBC 30 25 # 31 26 -
trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.uni
r77662 r80721 6 6 // Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR> 7 7 // 8 // This program and the accompanying materials 9 // are licensed and made available under the terms and conditions of the BSD License 10 // which accompanies this distribution. The full text of the license may be found at 11 // http://opensource.org/licenses/bsd-license.php 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. 8 // SPDX-License-Identifier: BSD-2-Clause-Patent 14 9 // 15 10 // **/
Note:
See TracChangeset
for help on using the changeset viewer.