hw/acpi/piix4: alter piix4_pm_init() to return PIIX4PMState
commit19eb2a0da272289e8879fb2780522f37630ac651
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sat, 28 May 2022 09:02:11 +0000 (28 10:02 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 11 Jun 2022 09:44:20 +0000 (11 11:44 +0200)
tree26006fa37f48932765ac22e250135461d4795fc0
parent2bfd0845f076fbec9e1dc17b1f4630b46a401a8a
hw/acpi/piix4: alter piix4_pm_init() to return PIIX4PMState

This exposes the PIIX4_PM device to the caller to allow any qdev gpios to be
mapped outside of piix4_pm_init().

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220528091934.15520-6-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/acpi/piix4.c
hw/i386/pc_piix.c
hw/isa/piix4.c
include/hw/southbridge/piix.h