pub struct Ssdt { /* private fields */ }
Implementations§
Source§impl Ssdt
impl Ssdt
pub fn new() -> Self
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn add_object(&mut self, obj: &impl AmlObject)
Sourcepub fn add_pcie(
&mut self,
index: u32,
segment: u16,
start_bus: u8,
end_bus: u8,
ecam_range: MemoryRange,
low_mmio: MemoryRange,
high_mmio: MemoryRange,
)
pub fn add_pcie( &mut self, index: u32, segment: u16, start_bus: u8, end_bus: u8, ecam_range: MemoryRange, low_mmio: MemoryRange, high_mmio: MemoryRange, )
Adds a PCI Express root complex with the specified bus number and MMIO ranges.
Device(\_SB.PCI<N>)
{
Name(_HID, PNP0A08)
Name(_UID, <index>)
Name(_SEG, <segment>)
Name(_BBN, <bus number>)
Name(_CRS, ResourceTemplate()
{
WordBusNumber(...) // Bus number range
QWordMemory() // Low MMIO
QWordMemory() // High MMIO
})
}
Auto Trait Implementations§
impl Freeze for Ssdt
impl RefUnwindSafe for Ssdt
impl Send for Ssdt
impl Sync for Ssdt
impl Unpin for Ssdt
impl UnwindSafe for Ssdt
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