Changeset 99404 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.h
- Timestamp:
- Apr 14, 2023 3:17:44 PM (22 months 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,129194-145445 /vendor/edk2/current 103735-103757,103769-103776,129194-156846
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.h
r85718 r99404 19 19 20 20 typedef struct { 21 UINTN FvBase;22 UINTN NumOfBlocks;23 EFI_FIRMWARE_VOLUME_HEADER VolumeHeader;21 UINTN FvBase; 22 UINTN NumOfBlocks; 23 EFI_FIRMWARE_VOLUME_HEADER VolumeHeader; 24 24 } EFI_FW_VOL_INSTANCE; 25 25 26 26 typedef struct { 27 UINT32 NumFv;28 EFI_FW_VOL_INSTANCE *FvInstance;27 UINT32 NumFv; 28 EFI_FW_VOL_INSTANCE *FvInstance; 29 29 } ESAL_FWB_GLOBAL; 30 30 31 extern ESAL_FWB_GLOBAL *mFvbModuleGlobal;31 extern ESAL_FWB_GLOBAL *mFvbModuleGlobal; 32 32 33 33 // 34 34 // Fvb Protocol instance data 35 35 // 36 #define FVB_DEVICE_FROM_THIS(a) CR (a, EFI_FW_VOL_BLOCK_DEVICE,\36 #define FVB_DEVICE_FROM_THIS(a) CR (a, EFI_FW_VOL_BLOCK_DEVICE,\ 37 37 FwVolBlockInstance, FVB_DEVICE_SIGNATURE) 38 38 39 #define FVB_EXTEND_DEVICE_FROM_THIS(a) CR (a, EFI_FW_VOL_BLOCK_DEVICE,\39 #define FVB_EXTEND_DEVICE_FROM_THIS(a) CR (a, EFI_FW_VOL_BLOCK_DEVICE,\ 40 40 FvbExtension, FVB_DEVICE_SIGNATURE) 41 41 42 #define FVB_DEVICE_SIGNATURE 42 #define FVB_DEVICE_SIGNATURE SIGNATURE_32 ('F', 'V', 'B', 'N') 43 43 44 44 typedef struct { 45 MEDIA_FW_VOL_DEVICE_PATH FvDevPath;46 EFI_DEVICE_PATH_PROTOCOL EndDevPath;45 MEDIA_FW_VOL_DEVICE_PATH FvDevPath; 46 EFI_DEVICE_PATH_PROTOCOL EndDevPath; 47 47 } FV_PIWG_DEVICE_PATH; 48 48 … … 53 53 54 54 typedef struct { 55 UINTN Signature;56 EFI_DEVICE_PATH_PROTOCOL *DevicePath;57 UINTN Instance;58 EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL FwVolBlockInstance;55 UINTN Signature; 56 EFI_DEVICE_PATH_PROTOCOL *DevicePath; 57 UINTN Instance; 58 EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL FwVolBlockInstance; 59 59 } EFI_FW_VOL_BLOCK_DEVICE; 60 60 61 61 EFI_STATUS 62 62 GetFvbInfo ( 63 IN UINT64 64 OUT EFI_FIRMWARE_VOLUME_HEADER 63 IN UINT64 FvLength, 64 OUT EFI_FIRMWARE_VOLUME_HEADER **FvbInfo 65 65 ); 66 66 67 67 EFI_STATUS 68 68 FvbSetVolumeAttributes ( 69 IN UINTN 70 IN OUT EFI_FVB_ATTRIBUTES_2 71 IN ESAL_FWB_GLOBAL 69 IN UINTN Instance, 70 IN OUT EFI_FVB_ATTRIBUTES_2 *Attributes, 71 IN ESAL_FWB_GLOBAL *Global 72 72 ); 73 73 74 74 EFI_STATUS 75 75 FvbGetVolumeAttributes ( 76 IN UINTN 77 OUT EFI_FVB_ATTRIBUTES_2 78 IN ESAL_FWB_GLOBAL 76 IN UINTN Instance, 77 OUT EFI_FVB_ATTRIBUTES_2 *Attributes, 78 IN ESAL_FWB_GLOBAL *Global 79 79 ); 80 80 81 81 EFI_STATUS 82 82 FvbGetPhysicalAddress ( 83 IN UINTN 84 OUT EFI_PHYSICAL_ADDRESS 85 IN ESAL_FWB_GLOBAL 83 IN UINTN Instance, 84 OUT EFI_PHYSICAL_ADDRESS *Address, 85 IN ESAL_FWB_GLOBAL *Global 86 86 ); 87 87 … … 89 89 EFIAPI 90 90 FvbInitialize ( 91 IN EFI_HANDLE 92 IN EFI_SYSTEM_TABLE 91 IN EFI_HANDLE ImageHandle, 92 IN EFI_SYSTEM_TABLE *SystemTable 93 93 ); 94 95 94 96 95 VOID 97 96 EFIAPI 98 97 FvbClassAddressChangeEvent ( 99 IN EFI_EVENT 100 IN VOID 98 IN EFI_EVENT Event, 99 IN VOID *Context 101 100 ); 102 101 103 102 EFI_STATUS 104 103 FvbGetLbaAddress ( 105 IN UINTN 106 IN EFI_LBA 107 OUT UINTN 108 OUT UINTN 109 OUT UINTN 110 IN ESAL_FWB_GLOBAL 104 IN UINTN Instance, 105 IN EFI_LBA Lba, 106 OUT UINTN *LbaAddress, 107 OUT UINTN *LbaLength, 108 OUT UINTN *NumOfBlocks, 109 IN ESAL_FWB_GLOBAL *Global 111 110 ); 112 111 … … 117 116 EFIAPI 118 117 FvbProtocolGetAttributes ( 119 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL 120 OUT EFI_FVB_ATTRIBUTES_2 118 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This, 119 OUT EFI_FVB_ATTRIBUTES_2 *Attributes 121 120 ); 122 121 … … 124 123 EFIAPI 125 124 FvbProtocolSetAttributes ( 126 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL 127 IN OUT EFI_FVB_ATTRIBUTES_2 125 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This, 126 IN OUT EFI_FVB_ATTRIBUTES_2 *Attributes 128 127 ); 129 128 … … 131 130 EFIAPI 132 131 FvbProtocolGetPhysicalAddress ( 133 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL 134 OUT EFI_PHYSICAL_ADDRESS 132 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This, 133 OUT EFI_PHYSICAL_ADDRESS *Address 135 134 ); 136 135 … … 138 137 EFIAPI 139 138 FvbProtocolGetBlockSize ( 140 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL 141 IN CONST EFI_LBA 142 OUT UINTN 143 OUT UINTN 139 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This, 140 IN CONST EFI_LBA Lba, 141 OUT UINTN *BlockSize, 142 OUT UINTN *NumOfBlocks 144 143 ); 145 144 … … 147 146 EFIAPI 148 147 FvbProtocolRead ( 149 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL 150 IN CONST EFI_LBA 151 IN CONST UINTN 152 IN OUT UINTN 153 IN UINT8 148 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This, 149 IN CONST EFI_LBA Lba, 150 IN CONST UINTN Offset, 151 IN OUT UINTN *NumBytes, 152 IN UINT8 *Buffer 154 153 ); 155 154 … … 157 156 EFIAPI 158 157 FvbProtocolWrite ( 159 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL 160 IN EFI_LBA 161 IN UINTN 162 IN OUT UINTN 163 IN UINT8 158 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This, 159 IN EFI_LBA Lba, 160 IN UINTN Offset, 161 IN OUT UINTN *NumBytes, 162 IN UINT8 *Buffer 164 163 ); 165 164 … … 167 166 EFIAPI 168 167 FvbProtocolEraseBlocks ( 169 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL 168 IN CONST EFI_FIRMWARE_VOLUME_BLOCK_PROTOCOL *This, 170 169 ... 171 170 ); … … 177 176 VOID 178 177 InstallProtocolInterfaces ( 179 IN EFI_FW_VOL_BLOCK_DEVICE *FvbDevice178 IN EFI_FW_VOL_BLOCK_DEVICE *FvbDevice 180 179 ); 181 180 … … 187 186 EFI_STATUS 188 187 MarkIoMemoryRangeForRuntimeAccess ( 189 IN EFI_PHYSICAL_ADDRESS 190 IN UINTN 188 IN EFI_PHYSICAL_ADDRESS BaseAddress, 189 IN UINTN Length 191 190 ); 192 191
Note:
See TracChangeset
for help on using the changeset viewer.