MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / to_aml_bytes

Method to_aml_bytes

vmm/src/device_manager.rs:5345–5362  ·  view source on GitHub ↗
(&self, sink: &mut dyn acpi_tables::AmlSink)

Source from the content-addressed store, hash-verified

5343#[cfg(not(target_arch = "riscv64"))]
5344impl Aml for TpmDevice {
5345 fn to_aml_bytes(&self, sink: &mut dyn acpi_tables::AmlSink) {
5346 aml::Device::new(
5347 "TPM2".into(),
5348 vec![
5349 &aml::Name::new("_HID".into(), &"MSFT0101"),
5350 &aml::Name::new("_STA".into(), &(0xF_usize)),
5351 &aml::Name::new(
5352 "_CRS".into(),
5353 &aml::ResourceTemplate::new(vec![&aml::Memory32Fixed::new(
5354 true,
5355 layout::TPM_START.0 as u32,
5356 layout::TPM_SIZE as u32,
5357 )]),
5358 ),
5359 ],
5360 )
5361 .to_aml_bytes(sink);
5362 }
5363}
5364
5365impl Aml for DeviceManager {

Callers

nothing calls this directly

Calls 7

newFunction · 0.85
get_device_infoMethod · 0.80
lenMethod · 0.45
pushMethod · 0.45
irqMethod · 0.45
getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected