uefi_raw/table/header.rs
1// SPDX-License-Identifier: MIT OR Apache-2.0
2
3use super::Revision;
4
5/// The common header that all UEFI tables begin with.
6#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
7#[repr(C)]
8pub struct Header {
9 /// Unique identifier for this table.
10 pub signature: u64,
11 /// Revision of the spec this table conforms to.
12 pub revision: Revision,
13 /// The size in bytes of the entire table.
14 pub size: u32,
15 /// 32-bit CRC-32-Castagnoli of the entire table,
16 /// calculated with this field set to 0.
17 pub crc: u32,
18 /// Reserved field that must be set to 0.
19 pub reserved: u32,
20}