Struct acpi_tables::aml::AddressSpace
source · pub struct AddressSpace<T> {
type_: AddressSpaceType,
min: T,
max: T,
type_flags: u8,
}
Expand description
AddressSpace structure with type, resouce range and flags to construct Memory/IO/BusNumber objects
Fields§
§type_: AddressSpaceType
§min: T
§max: T
§type_flags: u8
Implementations§
source§impl<T> AddressSpace<T>
impl<T> AddressSpace<T>
sourcepub fn new_memory(
cacheable: AddressSpaceCachable,
read_write: bool,
min: T,
max: T
) -> Self
pub fn new_memory( cacheable: AddressSpaceCachable, read_write: bool, min: T, max: T ) -> Self
Create DWordMemory/QWordMemory object
sourcepub fn new_bus_number(min: T, max: T) -> Self
pub fn new_bus_number(min: T, max: T) -> Self
Create WordBusNumber object
fn push_header(&self, bytes: &mut Vec<u8>, descriptor: u8, length: usize)
Trait Implementations§
source§impl Aml for AddressSpace<u16>
impl Aml for AddressSpace<u16>
source§impl Aml for AddressSpace<u32>
impl Aml for AddressSpace<u32>
Auto Trait Implementations§
impl<T> RefUnwindSafe for AddressSpace<T>where
T: RefUnwindSafe,
impl<T> Send for AddressSpace<T>where
T: Send,
impl<T> Sync for AddressSpace<T>where
T: Sync,
impl<T> Unpin for AddressSpace<T>where
T: Unpin,
impl<T> UnwindSafe for AddressSpace<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more