struct FdtHeader {
magic: u32,
total_size: u32,
off_dt_struct: u32,
off_dt_strings: u32,
off_mem_rsvmap: u32,
version: u32,
last_comp_version: u32,
boot_cpuid_phys: u32,
size_dt_strings: u32,
size_dt_struct: u32,
}
Fields§
§magic: u32
§total_size: u32
§off_dt_struct: u32
§off_dt_strings: u32
§off_mem_rsvmap: u32
§version: u32
§last_comp_version: u32
§boot_cpuid_phys: u32
§size_dt_strings: u32
§size_dt_struct: u32
Implementations§
source§impl FdtHeader
impl FdtHeader
const MAGIC: u32 = 3_490_578_157u32
const VERSION: u32 = 17u32
const LAST_COMP_VERSION: u32 = 16u32
const SIZE: usize = 40usize
fn new( total_size: u32, off_dt_struct: u32, off_dt_strings: u32, off_mem_rsvmap: u32, boot_cpuid_phys: u32, size_dt_strings: u32, size_dt_struct: u32 ) -> Self
fn write_blob(&self, buffer: &mut [u8]) -> Result<()>
fn from_blob(input: &'_ [u8]) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FdtHeader
impl Send for FdtHeader
impl Sync for FdtHeader
impl Unpin for FdtHeader
impl UnwindSafe for FdtHeader
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