coreboot-table 0.1.6

Coreboot Table Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Debug)]
#[repr(packed)]
pub struct Header {
    pub signature: [u8; 4],
    pub header_bytes: u32,
    pub header_checksum: u32,
    pub table_bytes: u32,
    pub table_checksum: u32,
    pub table_entries: u32,
}

impl Header {
    pub fn is_valid(&self) -> bool {
        //TODO: Check checksums
        &self.signature == b"LBIO"
    }
}