structstd.os.uefi.device_path.DevicePath.Messaging.InfiniBandDevicePath.ResourceFlags[src]

Fields

ioc_or_service: ControllerType
extend_boot_environment: bool
console_protocol: bool
storage_protocol: bool
network_protocol: bool
reserved: u27

Source Code

Source code
pub const ResourceFlags = packed struct(u32) {
    pub const ControllerType = enum(u1) {
        ioc = 0,
        service = 1,
    };

    ioc_or_service: ControllerType,
    extend_boot_environment: bool,
    console_protocol: bool,
    storage_protocol: bool,
    network_protocol: bool,

    // u1 + 4 * bool = 5 bits, we need a total of 32 bits
    reserved: u27,
}