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, entry: PcieHostBridgeEntry)
pub fn add_pcie(&mut self, entry: PcieHostBridgeEntry)
Adds a PCI Express root complex with the specified bus number and MMIO ranges.
Device(\_SB.PCI<N>)
{
Name(_HID, PNP0A08)
Name(_CID, PNP0A03)
Name(_UID, <index>)
Name(_SEG, <segment>)
Name(_BBN, <bus number>)
Name(_CCA, 1)
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 UnsafeUnpin 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