Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions uefi-raw/src/table/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
use crate::{PhysicalAddress, VirtualAddress};
use bitflags::bitflags;

newtype_enum! {
/// Interface type of a protocol interface.
pub enum InterfaceType: u32 => {
/// Native interface
NATIVE_INTERFACE = 0,
}}

bitflags! {
/// Flags describing the capabilities of a memory range.
#[repr(transparent)]
Expand Down
14 changes: 3 additions & 11 deletions uefi/src/table/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ use {
::alloc::vec::Vec,
};

pub use uefi_raw::table::boot::{MemoryAttribute, MemoryDescriptor, MemoryType, Tpl};
pub use uefi_raw::table::boot::{
InterfaceType, MemoryAttribute, MemoryDescriptor, MemoryType, Tpl,
};

// TODO: this similar to `SyncUnsafeCell`. Once that is stabilized we
// can use it instead.
Expand Down Expand Up @@ -2139,16 +2141,6 @@ impl<'a> HandleBuffer<'a> {
}
}

newtype_enum! {
/// Interface type of a protocol interface
///
/// Only has one variant when this was written (v2.10 of the UEFI spec)
pub enum InterfaceType: i32 => {
/// Native interface
NATIVE_INTERFACE = 0,
}
}

/// Opaque pointer returned by [`BootServices::register_protocol_notify`] to be used
/// with [`BootServices::locate_handle`] via [`SearchType::ByRegisterNotify`].
#[derive(Debug, Clone, Copy)]
Expand Down