|
4 | 4 |
|
5 | 5 | use core::fmt::Debug;
|
6 | 6 |
|
| 7 | +use crate::protocol::device_path::DevicePathProtocol; |
7 | 8 | use crate::{Char16, Guid, Status, guid};
|
8 | 9 |
|
9 | 10 | /// EFI_CONFIG_KEYWORD_HANDLER_PROTOCOL
|
@@ -172,3 +173,50 @@ pub struct HiiConfigAccessProtocol {
|
172 | 173 | impl HiiConfigAccessProtocol {
|
173 | 174 | pub const GUID: Guid = guid!("330d4706-f2a0-4e4f-a369-b66fa8d54385");
|
174 | 175 | }
|
| 176 | + |
| 177 | +/// EFI_HII_CONFIG_ROUTING_PROTOCOL |
| 178 | +#[derive(Debug)] |
| 179 | +#[repr(C)] |
| 180 | +pub struct HiiConfigRoutingProtocol { |
| 181 | + pub extract_config: unsafe extern "efiapi" fn( |
| 182 | + this: *const Self, |
| 183 | + config_request: *const Char16, |
| 184 | + progress: *mut *const Char16, |
| 185 | + results: *mut *const Char16, |
| 186 | + ) -> Status, |
| 187 | + pub export_config: |
| 188 | + unsafe extern "efiapi" fn(this: *const Self, results: *mut *const Char16) -> Status, |
| 189 | + pub route_config: unsafe extern "efiapi" fn( |
| 190 | + this: *const Self, |
| 191 | + configuration: *const Char16, |
| 192 | + progress: *mut *const Char16, |
| 193 | + ) -> Status, |
| 194 | + pub block_to_config: unsafe extern "efiapi" fn( |
| 195 | + this: *const Self, |
| 196 | + config_request: *const Char16, |
| 197 | + block: *const u8, |
| 198 | + block_size: usize, |
| 199 | + config: *mut *const Char16, |
| 200 | + progress: *mut *const Char16, |
| 201 | + ) -> Status, |
| 202 | + pub config_to_block: unsafe extern "efiapi" fn( |
| 203 | + this: *const Self, |
| 204 | + config_resp: *const Char16, |
| 205 | + block: *mut *const u8, |
| 206 | + block_size: *mut usize, |
| 207 | + progress: *mut *const Char16, |
| 208 | + ) -> Status, |
| 209 | + pub get_alt_cfg: unsafe extern "efiapi" fn( |
| 210 | + this: *const Self, |
| 211 | + config_resp: *const Char16, |
| 212 | + guid: *const Guid, |
| 213 | + name: *const Char16, |
| 214 | + device_path: *const DevicePathProtocol, |
| 215 | + alt_cfg_id: *const Char16, |
| 216 | + alt_cfg_resp: *mut *const Char16, |
| 217 | + ) -> Status, |
| 218 | +} |
| 219 | + |
| 220 | +impl HiiConfigRoutingProtocol { |
| 221 | + pub const GUID: Guid = guid!("587e72d7-cc50-4f79-8209-ca291fc1a10f"); |
| 222 | +} |
0 commit comments