forked from r-efi/r-efi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protocols: add the DEVICE PATH UTILIITES protocol
This is a required protocol. Signed-off-by: Tom Gundersen <[email protected]>
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
//! Decompress Protocol | ||
//! | ||
//! The decompress protocol provides a decompression service that allows a compressed source | ||
//! buffer in memory to be decompressed into a destination buffer in memory. | ||
pub const PROTOCOL_GUID: crate::base::Guid = crate::base::Guid::from_fields( | ||
0x379be4e, 0xd706, 0x437d, 0b0, 037, &[0xed, 0xb8, 0x2f, 0xb7, 0x72, 0xa4] | ||
); | ||
|
||
#[repr(C)] | ||
pub struct Protocol { | ||
pub get_device_path_size: eficall!{fn( | ||
*const crate::protocols::device_path::Protocol, | ||
) -> usize}, | ||
pub dup_device_path: eficall!{fn( | ||
*const crate::protocols::device_path::Protocol, | ||
) -> *mut crate::protocols::device_path::Protocol}, | ||
pub append_path: eficall!{fn( | ||
*const crate::protocols::device_path::Protocol, | ||
*const crate::protocols::device_path::Protocol, | ||
) -> *mut crate::protocols::device_path::Protocol}, | ||
pub append_node: eficall!{fn( | ||
*const crate::protocols::device_path::Protocol, | ||
*const crate::protocols::device_path::Protocol, | ||
) -> *mut crate::protocols::device_path::Protocol}, | ||
pub append_instance: eficall!{fn( | ||
*const crate::protocols::device_path::Protocol, | ||
*const crate::protocols::device_path::Protocol, | ||
) -> *mut crate::protocols::device_path::Protocol}, | ||
pub get_next_instance: eficall!{fn( | ||
*mut *mut crate::protocols::device_path::Protocol, | ||
*mut usize, | ||
) -> *mut crate::protocols::device_path::Protocol}, | ||
pub is_multi_instance: eficall!{fn( | ||
*const crate::protocols::device_path::Protocol, | ||
) -> crate::base::Boolean}, | ||
pub create_node: eficall!{fn( | ||
u8, | ||
u8, | ||
u16, | ||
) -> *mut crate::protocols::device_path::Protocol}, | ||
} |