mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
hw/isa/piix3: Create power management controller in host device
The power management controller is an integral part of PIIX3 (function 3). So create it as part of the south bridge. Note that the ACPI function is optional in QEMU. This is why it gets object_initialize_child()'ed in realize rather than in instance_init. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20231007123843.127151-14-shentey@gmail.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
6fe4464c05
commit
0a15cf0801
4 changed files with 33 additions and 13 deletions
|
@ -13,6 +13,7 @@
|
|||
#define HW_SOUTHBRIDGE_PIIX_H
|
||||
|
||||
#include "hw/pci/pci_device.h"
|
||||
#include "hw/acpi/piix4.h"
|
||||
#include "hw/ide/pci.h"
|
||||
#include "hw/rtc/mc146818rtc.h"
|
||||
#include "hw/usb/hcd-uhci.h"
|
||||
|
@ -56,6 +57,9 @@ struct PIIXState {
|
|||
MC146818RtcState rtc;
|
||||
PCIIDEState ide;
|
||||
UHCIState uhci;
|
||||
PIIX4PMState pm;
|
||||
|
||||
uint32_t smb_io_base;
|
||||
|
||||
/* Reset Control Register contents */
|
||||
uint8_t rcr;
|
||||
|
@ -63,7 +67,9 @@ struct PIIXState {
|
|||
/* IO memory region for Reset Control Register (PIIX_RCR_IOPORT) */
|
||||
MemoryRegion rcr_mem;
|
||||
|
||||
bool has_acpi;
|
||||
bool has_usb;
|
||||
bool smm_enabled;
|
||||
};
|
||||
typedef struct PIIXState PIIX3State;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue