Skip to content

Commit 7a74ff2

Browse files
committed
--expansion-bay: Print PCIe config
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 378356a commit 7a74ff2

File tree

1 file changed

+6
-0
lines changed
  • framework_lib/src/chromium_ec

1 file changed

+6
-0
lines changed

framework_lib/src/chromium_ec/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,12 @@ impl CrosEc {
10001000
println!(" Serial Number: Unknown");
10011001
}
10021002

1003+
let res = EcRequestGetGpuPcie {}.send_command(self)?;
1004+
let config: Option<GpuPcieConfig> = FromPrimitive::from_u8(res.gpu_pcie_config);
1005+
let vendor: Option<GpuVendor> = FromPrimitive::from_u8(res.gpu_vendor);
1006+
println!(" Config: {:?}", vendor);
1007+
println!(" Vendor: {:?}", config);
1008+
10031009
Ok(())
10041010
}
10051011

0 commit comments

Comments
 (0)