1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use crate::{proto::Protocol, unsafe_guid};
#[repr(C)]
#[unsafe_guid("09576e91-6d3f-11d2-8e39-00a0c969723b")]
#[derive(Protocol)]
pub struct DevicePath {
pub device_type: DeviceType,
pub sub_type: DeviceSubType,
pub length: [u8; 2],
}
#[repr(u8)]
#[derive(Debug)]
pub enum DeviceType {
Hardware = 0x01,
Acpi = 0x02,
Messaging = 0x03,
Media = 0x04,
BiosBootSpec = 0x05,
End = 0x7F,
}
#[repr(u8)]
#[derive(Debug)]
pub enum DeviceSubType {
EndInstance = 0x01,
EndEntire = 0xFF,
}