Skip to content

Commit 50657ce

Browse files
uefi-raw: Add ConfigurationTable
1 parent a7e4725 commit 50657ce

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

uefi-raw/src/table/configuration.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
use crate::Guid;
2+
use core::ffi::c_void;
3+
4+
/// UEFI configuration table.
5+
///
6+
/// Each table is uniquely identified by a GUID. The type of data pointed to by
7+
/// `vendor_table`, as well as whether that address is physical or virtual,
8+
/// depends on the GUID.
9+
#[derive(Debug, Eq, PartialEq)]
10+
#[repr(C)]
11+
pub struct ConfigurationTable {
12+
pub vendor_guid: Guid,
13+
pub vendor_table: *mut c_void,
14+
}

uefi-raw/src/table/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ mod header;
44
mod revision;
55

66
pub mod boot;
7+
pub mod configuration;
78
pub mod runtime;
89

910
pub use header::Header;

0 commit comments

Comments
 (0)