#[repr(C, packed(1))]struct Rsdp {
signature: InlineStr<8>,
checksum: u8,
oem_id: [u8; 6],
revision: u8,
rsdt_address: u32,
length: u32,
xsdt_address: u64,
ext_checksum: u8,
reserved: [u8; 3],
}
Expand description
The first structure found in ACPI. It just tells us where the RSDT is.
On BIOS systems, it is either found in the first 1KB of the Extended Bios Data Area, or between 0x000E0000 and 0x000FFFFF. The signature is always on a 16 byte boundary. On (U)EFI, it may not be located in these locations, and so an address should be found in the EFI configuration table instead.
The recommended way of locating the RSDP is to let the bootloader do it - Multiboot2 can pass a tag with the physical address of it. If this is not possible, a manual scan can be done.
If revision > 0
, (the hardware ACPI version is Version 2.0 or greater), the RSDP contains
some new fields. For ACPI Version 1.0, these fields are not valid and should not be accessed.
Fields§
§signature: InlineStr<8>
§checksum: u8
§oem_id: [u8; 6]
Name of the vendor
revision: u8
Version number
rsdt_address: u32
Address of the Root System Description Table
length: u32
§xsdt_address: u64
§ext_checksum: u8
§reserved: [u8; 3]
Implementations§
source§impl Rsdp
impl Rsdp
sourceunsafe fn search_for_on_bios() -> Result<&'static Self, ApicError>
unsafe fn search_for_on_bios() -> Result<&'static Self, ApicError>
This searches for a RSDP on BIOS systems.
sourcefn validate(&self) -> Result<(), ApicError>
fn validate(&self) -> Result<(), ApicError>
Checks that: 1) The signature is correct 2) The checksum is correct 3) For Version 2.0+, that the extension checksum is correct
fn oem_id(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rsdp
impl RefUnwindSafe for Rsdp
impl Send for Rsdp
impl Sync for Rsdp
impl Unpin for Rsdp
impl UnwindSafe for Rsdp
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)