ea01c52291
smbus-ipmi AML description needs to specify a path to its parent node in _CRS. The rest of IPMI inplementations (ISA based) do not need path at all. Instead of passing through a full path use relative path to point to smbus-ipmi's parent node, it will let follow up patches to create IPMI device AML in a generic way instead of current ad-hoc way. (i.e. AML will be generated the same way it's done for other ISA device, and smbus will be converted to generate AML for its slave devices the same way as ISA) expected AML change: Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings { I2cSerialBusV2 (0x0000, ControllerInitiated, 0x000186A0, - AddressingMode7Bit, "\\_SB.PCI0.SMB0", + AddressingMode7Bit, "^", 0x00, ResourceProducer, , Exclusive, ) }) Signed-off-by: Igor Mammedov <imammedo@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Message-Id: <20220608135340.3304695-14-imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
22 lines
607 B
C
22 lines
607 B
C
/*
|
|
* QEMU IPMI ACPI handling
|
|
*
|
|
* Copyright (c) 2015,2016 Corey Minyard <cminyard@mvista.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
#ifndef HW_ACPI_IPMI_H
|
|
#define HW_ACPI_IPMI_H
|
|
|
|
#include "hw/acpi/aml-build.h"
|
|
|
|
/*
|
|
* Add ACPI IPMI entries for all registered IPMI devices whose parent
|
|
* bus matches the given bus. The resource is the ACPI resource that
|
|
* contains the IPMI device, this is required for the I2C CRS.
|
|
*/
|
|
void build_acpi_ipmi_devices(Aml *table, BusState *bus);
|
|
|
|
#endif /* HW_ACPI_IPMI_H */
|