Skip to content

Commit

Permalink
windows: Get ESRT from WMI
Browse files Browse the repository at this point in the history
> target\debug\framework_tool.exe --esrt`
ESRT Entry 0
  Name:    MtlRetimer01
  GUID:    c57fd615-2ac9-4154-bf34-4dc715344408
  Version: CF (207)
ESRT Entry 1
  Name:    MtlCsme
  GUID:    32d8d677-eebc-4947-8f8a-0693a45240e5
  Version: 85D (2141)
ESRT Entry 2
  Name:    MtlBios
  GUID:    72cecb9b-2b37-5ec2-a9ff-c739aabaadf3
  Version: 301 (769)
ESRT Entry 3
  Name:    MtlRetimer23
  GUID:    bdffce36-809c-4fa6-aecc-54536922f0e0
  Version: CF (207)
Could not find and parse ESRT table.

Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Jul 11, 2024
1 parent 03d72f9 commit 0f9d812
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 6 deletions.
253 changes: 250 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion framework_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ unix = ["std", "raw_pio", "smbios", "dep:nix", "dep:libc"]
linux = ["unix", "linux_pio", "cros_ec_driver"]
freebsd = ["unix", "freebsd_pio"]
# Windows does not have the cros_ec driver nor raw port I/O access to userspace
windows = ["std", "smbios", "dep:windows", "win_driver", "raw_pio"]
windows = ["std", "smbios", "dep:windows", "win_driver", "raw_pio", "dep:wmi"]
smbios = ["dep:smbios-lib"]
std = ["dep:clap", "dep:clap-verbosity-flag", "dep:env_logger", "smbios-lib?/std", "dep:hidapi", "dep:rusb"]
uefi = [
Expand Down Expand Up @@ -60,6 +60,7 @@ hidapi = { version = "2.1.0", optional = true }
rusb = { version = "0.9.1", optional = true }
no-std-compat = { version = "0.4.1", features = [ "alloc" ] }
guid_macros = { path = "../guid_macros" }
wmi = { version = "0.13.3", optional = true }

[dependencies.smbios-lib]
git = "https://github.com/FrameworkComputer/smbios-lib.git"
Expand Down
Loading

0 comments on commit 0f9d812

Please sign in to comment.