Changeset 77662 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.h
- Timestamp:
- Mar 12, 2019 12:40:12 PM (6 years ago)
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 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 /vendor/edk2/current 103735-103757,103769-103776,129194-129237
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.h
r58466 r77662 1 1 /**@file 2 2 3 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> 4 This program and the accompanying materials 5 are licensed and made available under the terms and conditions of the BSD License 6 which accompanies this distribution. The full text of the license may be found at 7 http://opensource.org/licenses/bsd-license.php 3 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR> 8 4 9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 5 This program and the accompanying materials are licensed and made available 6 under the terms and conditions of the BSD License which accompanies this 7 distribution. The full text of the license may be found at 8 http://opensource.org/licenses/bsd-license.php 11 9 12 Module Name: 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. 13 12 14 FwBlockService.h13 Module Name: 15 14 16 Abstract: 15 FwBlockService.h 17 16 18 Firmware volume block driver for Intel Firmware Hub (FWH) device 17 Abstract: 18 19 Firmware volume block driver for Intel Firmware Hub (FWH) device 19 20 20 21 **/ … … 23 24 #define _FW_BLOCK_SERVICE_H 24 25 25 //26 // BugBug: Add documentation here for data structure!!!!27 //28 #define FVB_PHYSICAL 029 #define FVB_VIRTUAL 130 31 26 typedef struct { 32 EFI_LOCK FvbDevLock; 33 UINTN FvBase[2]; 27 UINTN FvBase; 34 28 UINTN NumOfBlocks; 35 29 EFI_FIRMWARE_VOLUME_HEADER VolumeHeader; … … 38 32 typedef struct { 39 33 UINT32 NumFv; 40 EFI_FW_VOL_INSTANCE *FvInstance[2]; 41 UINT8 *FvbScratchSpace[2]; 34 EFI_FW_VOL_INSTANCE *FvInstance; 42 35 } ESAL_FWB_GLOBAL; 36 37 extern ESAL_FWB_GLOBAL *mFvbModuleGlobal; 43 38 44 39 // 45 40 // Fvb Protocol instance data 46 41 // 47 #define FVB_DEVICE_FROM_THIS(a) CR (a, EFI_FW_VOL_BLOCK_DEVICE, FwVolBlockInstance, FVB_DEVICE_SIGNATURE) 48 #define FVB_EXTEND_DEVICE_FROM_THIS(a) CR (a, EFI_FW_VOL_BLOCK_DEVICE, FvbExtension, FVB_DEVICE_SIGNATURE) 42 #define FVB_DEVICE_FROM_THIS(a) CR (a, EFI_FW_VOL_BLOCK_DEVICE, \ 43 FwVolBlockInstance, FVB_DEVICE_SIGNATURE) 44 45 #define FVB_EXTEND_DEVICE_FROM_THIS(a) CR (a, EFI_FW_VOL_BLOCK_DEVICE, \ 46 FvbExtension, FVB_DEVICE_SIGNATURE) 47 49 48 #define FVB_DEVICE_SIGNATURE SIGNATURE_32 ('F', 'V', 'B', 'N') 50 49 … … 76 75 IN UINTN Instance, 77 76 IN OUT EFI_FVB_ATTRIBUTES_2 *Attributes, 78 IN ESAL_FWB_GLOBAL *Global, 79 IN BOOLEAN Virtual 77 IN ESAL_FWB_GLOBAL *Global 80 78 ); 81 79 … … 84 82 IN UINTN Instance, 85 83 OUT EFI_FVB_ATTRIBUTES_2 *Attributes, 86 IN ESAL_FWB_GLOBAL *Global, 87 IN BOOLEAN Virtual 84 IN ESAL_FWB_GLOBAL *Global 88 85 ); 89 86 … … 92 89 IN UINTN Instance, 93 90 OUT EFI_PHYSICAL_ADDRESS *Address, 94 IN ESAL_FWB_GLOBAL *Global, 95 IN BOOLEAN Virtual 91 IN ESAL_FWB_GLOBAL *Global 96 92 ); 97 93 … … 118 114 OUT UINTN *LbaLength, 119 115 OUT UINTN *NumOfBlocks, 120 IN ESAL_FWB_GLOBAL *Global, 121 IN BOOLEAN Virtual 116 IN ESAL_FWB_GLOBAL *Global 122 117 ); 123 118 … … 182 177 ); 183 178 179 // 180 // The following functions have different implementations dependent on the 181 // module type chosen for building this driver. 182 // 183 VOID 184 InstallProtocolInterfaces ( 185 IN EFI_FW_VOL_BLOCK_DEVICE *FvbDevice 186 ); 187 188 VOID 189 InstallVirtualAddressChangeHandler ( 190 VOID 191 ); 184 192 #endif
Note:
See TracChangeset
for help on using the changeset viewer.