mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
pc: acpi: piix4: move IQST() into SSDT
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
100681ccf1
commit
06989b8861
2 changed files with 10 additions and 9 deletions
|
@ -1482,6 +1482,16 @@ static void build_piix4_pci0_int(Aml *table)
|
|||
aml_append(field, aml_named_field("PRQ3", 8));
|
||||
aml_append(sb_scope, field);
|
||||
|
||||
/* _STA method - get status */
|
||||
method = aml_method("IQST", 1, AML_NOTSERIALIZED);
|
||||
{
|
||||
if_ctx = aml_if(aml_and(aml_int(0x80), aml_arg(0), NULL));
|
||||
aml_append(if_ctx, aml_return(aml_int(0x09)));
|
||||
aml_append(method, if_ctx);
|
||||
aml_append(method, aml_return(aml_int(0x0B)));
|
||||
}
|
||||
aml_append(sb_scope, method);
|
||||
|
||||
/* _CRS method - get current settings */
|
||||
method = aml_method("IQCR", 1, AML_SERIALIZED);
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue