-
-
Notifications
You must be signed in to change notification settings - Fork 183
uefi-raw: Add FirmwareVolume{,Block}2Protocol #1503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| @@ -0,0 +1,219 @@ | |||
| use crate::firmware_storage::FirmwareVolumeAttributes; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This name is arguably wrong, since it's for EFI_FVB_ATTRIBUTES_2.
Ref: UEFI-PI 1.9: III-3.4.1 Firmware Volume2 Protocol Ref: UEFI-PI 1.9: III-3.4.2 Firmware Volume Block2 Protocol Signed-off-by: Tim Crawford <tcrawford@system76.com>
nicholasbishop
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, thanks for adding this!
| EFI_FV_UNRELIABLE_WRITE = 0, | ||
| EFI_FV_RELIABLE_WRITE = 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed I forgot to strip the prefix from this one.
| num_bytes: *mut usize, | ||
| buffer: *mut u8, | ||
| ) -> Status, | ||
| // TODO: Change to efiapi (https://github.com/rust-lang/rust/issues/100189) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Stabilized in 1.91.0.
Add bindings for
EFI_FIRMWARE_VOLUME2_PROTOCOL,EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL, and related data types.Reason: I need to read a raw section of a file (
FV->ReadSection) added in edk2 for Platform GOP Policy driver implementation.Ref: UEFI-PI 1.9: III-3.4.1 Firmware Volume2 Protocol
Ref: UEFI-PI 1.9: III-3.4.2 Firmware Volume Block2 Protocol
Checklist