Changeset 58466 in vbox for trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/LegacyRegion2Dxe/LegacyRegion2.c
- Timestamp:
- Oct 29, 2015 4:30:44 AM (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 changed
/vendor/edk2/current merged: 103769-103776
- Property svn:mergeinfo changed
-
trunk/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/LegacyRegion2Dxe/LegacyRegion2.c
r48674 r58466 2 2 Dummy implementation of Legacy Region 2 Protocol. 3 3 4 This generic implementation of the Legacy Region 2 Protocol does not actually 5 perform any lock/unlock operations. This module may be used on platforms 6 that do not provide HW locking of the legacy memory regions. It can also 4 This generic implementation of the Legacy Region 2 Protocol does not actually 5 perform any lock/unlock operations. This module may be used on platforms 6 that do not provide HW locking of the legacy memory regions. It can also 7 7 be used as a template driver for implementing the Legacy Region 2 Protocol on 8 8 a platform that does support HW locking of the legacy memory regions. … … 34 34 Modify the hardware to allow (decode) or disallow (not decode) memory reads in a region. 35 35 36 If the On parameter evaluates to TRUE, this function enables memory reads in the address range 36 If the On parameter evaluates to TRUE, this function enables memory reads in the address range 37 37 Start to (Start + Length - 1). 38 If the On parameter evaluates to FALSE, this function disables memory reads in the address range 38 If the On parameter evaluates to FALSE, this function disables memory reads in the address range 39 39 Start to (Start + Length - 1). 40 40 … … 115 115 Modify the hardware to disallow memory attribute changes in a region. 116 116 117 This function makes the attributes of a region read only. Once a region is boot-locked with this 117 This function makes the attributes of a region read only. Once a region is boot-locked with this 118 118 function, the read and write attributes of that region cannot be changed until a power cycle has 119 119 reset the boot-lock attribute. Calls to Decode(), Lock() and Unlock() will have no effect. … … 156 156 Modify the hardware to allow memory writes in a region. 157 157 158 This function changes the attributes of a memory range to allow writes. 158 This function changes the attributes of a memory range to allow writes. 159 159 160 160 @param This[in] Indicates the EFI_LEGACY_REGION_PROTOCOL instance. … … 194 194 Get region information for the attributes of the Legacy Region. 195 195 196 This function is used to discover the granularity of the attributes for the memory in the legacy 196 This function is used to discover the granularity of the attributes for the memory in the legacy 197 197 region. Each attribute may have a different granularity and the granularity may not be the same 198 for all memory ranges in the legacy region. 198 for all memory ranges in the legacy region. 199 199 200 200 @param This[in] Indicates the EFI_LEGACY_REGION2_PROTOCOL instance. … … 224 224 The user Entry Point for module LegacyRegionDxe. The user code starts with this function. 225 225 226 @param[in] ImageHandle The firmware allocated handle for the EFI image. 226 @param[in] ImageHandle The firmware allocated handle for the EFI image. 227 227 @param[in] SystemTable A pointer to the EFI System Table. 228 228 229 229 @retval EFI_SUCCESS The entry point is executed successfully. 230 230 … … 238 238 { 239 239 EFI_STATUS Status; 240 240 241 241 // 242 242 // Make sure the Legacy Region 2 Protocol is not already installed in the system 243 243 // 244 244 ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL, &gEfiLegacyRegion2ProtocolGuid); 245 245 246 246 // 247 247 // Install the protocol on a new handle.
Note:
See TracChangeset
for help on using the changeset viewer.