Skip to content

Commit

Permalink
uefi-raw: Add ConfigurationTable
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed Jun 19, 2023
1 parent a7e4725 commit 5caf702
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions uefi-raw/src/table/configuration.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use crate::Guid;
use core::ffi::c_void;

/// UEFI configuration table.
///
/// Each table is uniquely identified by a GUID. The type of data pointed to by
/// `vendor_table`, as well as whether that address is physical or virtual,
/// depends on the GUID.
#[derive(Debug, Eq, PartialEq)]
#[repr(C)]
pub struct ConfigurationTable {
pub vendor_guid: Guid,
pub vendor_table: *mut c_void,
}
1 change: 1 addition & 0 deletions uefi-raw/src/table/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mod header;
mod revision;

pub mod boot;
pub mod configuration;
pub mod runtime;

pub use header::Header;
Expand Down

0 comments on commit 5caf702

Please sign in to comment.