diff options
| author | Eric Auger <eric.auger@redhat.com> | 2025-07-14 10:04:49 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2025-07-15 02:56:40 -0400 |
| commit | ec9af8919826d57126d9b83fa1715d1333b74a18 (patch) | |
| tree | 22976abe47bfc5149ced695636f4155cb7363ca3 /hw/acpi/pci.c | |
| parent | 9748673735d93da3b1da12041f2525e0fbca5dc6 (diff) | |
| download | focaccia-qemu-ec9af8919826d57126d9b83fa1715d1333b74a18.tar.gz focaccia-qemu-ec9af8919826d57126d9b83fa1715d1333b74a18.zip | |
hw/pci-host/gpex-acpi: Split host bridge OSC and DSM generation
acpi_dsdt_add_pci_osc() name is confusing as it gives the impression it appends the _OSC method but in fact it also appends the _DSM method for the host bridge. Let's split the function into two separate ones and let them return the method Aml pointer instead. This matches the way it is done on x86 (build_q35_osc_method). In a subsequent patch we will replace the gpex method by the q35 implementation that will become shared between ARM and x86. acpi_dsdt_add_host_bridge_methods is a new top helper that generates both the _OSC and _DSM methods. We take the opportunity to move SUPP and CTRL in the _osc method that use them. Signed-off-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20250714080639.2525563-6-eric.auger@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/acpi/pci.c')
0 files changed, 0 insertions, 0 deletions