mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-06 16:20:43 -07:00
Add a simple _DSM call support for the ACPI0017 device to return fake QTG
ID values of 0 and 1 in all cases. This for _DSM plumbing testing from the OS.
Following edited for readability
Device (CXLM)
{
Name (_HID, "ACPI0017") // _HID: Hardware ID
...
Method (_DSM, 4, Serialized) // _DSM: Device-Specific Method
{
If ((Arg0 == ToUUID ("f365f9a6-a7de-4071-a66a-b40c0b4f8e52")))
{
If ((Arg2 == Zero))
{
Return (Buffer (One) { 0x01 })
}
If ((Arg2 == One))
{
Return (Package (0x02)
{
One,
Package (0x02)
{
Zero,
One
}
})
}
}
}
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20231012125623.21101-3-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
||
|---|---|---|
| .. | ||
| acpi-defs.h | ||
| acpi.h | ||
| acpi_aml_interface.h | ||
| acpi_dev_interface.h | ||
| aml-build.h | ||
| bios-linker-loader.h | ||
| cpu.h | ||
| cpu_hotplug.h | ||
| cxl.h | ||
| erst.h | ||
| generic_event_device.h | ||
| ghes.h | ||
| ich9.h | ||
| ich9_tco.h | ||
| ipmi.h | ||
| memory_hotplug.h | ||
| pc-hotplug.h | ||
| pci.h | ||
| pcihp.h | ||
| piix4.h | ||
| tpm.h | ||
| utils.h | ||
| vmgenid.h | ||