Skip to content

Commit 35e2aa3

Browse files
committed
[manifest] Initial parser for the PCD
Signed-off-by: Miguel Young de la Sota <[email protected]>
1 parent 86ed83f commit 35e2aa3

File tree

4 files changed

+618
-4
lines changed

4 files changed

+618
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ byteorder = { version = "1.3.4", default_features = false }
2323
extend = "1.1"
2424
paste = "1.0"
2525
untrusted = "0.7"
26-
zerocopy = "0.5.0"
26+
zerocopy = "0.6.0"
2727

2828
[dependencies.libfuzzer-sys]
2929
version = "0.3"

src/manifest/mod.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ pub use generic::*;
9191

9292
#[cfg(feature = "std")]
9393
pub mod owned;
94+
pub mod pcd;
9495
pub mod pfm;
9596

9697
#[cfg(test)]
@@ -104,11 +105,12 @@ wire_enum! {
104105
///
105106
/// This enum represents the "magic number" `u16` value in a maniest header.
106107
pub enum ManifestType: u16 {
107-
/// A ["Platform Firmware Manifest"], a manifest which describes
108+
/// A ["Platform Firmware Manifest"][pfm], a manifest which describes
108109
/// firmware that is allowed to run on a platfrom.
109-
///
110-
/// ["Platform Firmware Manifest"]: pfm/index.html
111110
Pfm = 0x706d,
111+
/// A ["Platform Configuration Descriptor"][pcd], a manifest which describes
112+
/// devices an RoT is connected to.
113+
Pcd = 0x8ebc,
112114
}
113115
}
114116

0 commit comments

Comments
 (0)