hw/arm/xlnx-zynqmp: Remove obsolete 'has_rpu' property
[qemu/ar7.git] / include / hw / acpi / ich9.h
blobdf519e40b57735f741e3db3fa5ec76ec590d1210
1 /*
2 * QEMU GMCH/ICH9 LPC PM Emulation
4 * Copyright (c) 2009 Isaku Yamahata <yamahata at valinux co jp>
5 * VA Linux Systems Japan K.K.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, see <http://www.gnu.org/licenses/>
21 #ifndef HW_ACPI_ICH9_H
22 #define HW_ACPI_ICH9_H
24 #include "hw/acpi/acpi.h"
25 #include "hw/acpi/cpu_hotplug.h"
26 #include "hw/acpi/cpu.h"
27 #include "hw/acpi/memory_hotplug.h"
28 #include "hw/acpi/acpi_dev_interface.h"
29 #include "hw/acpi/tco.h"
31 typedef struct ICH9LPCPMRegs {
33 * In ich9 spec says that pm1_cnt register is 32bit width and
34 * that the upper 16bits are reserved and unused.
35 * PM1a_CNT_BLK = 2 in FADT so it is defined as uint16_t.
37 ACPIREGS acpi_regs;
39 MemoryRegion io;
40 MemoryRegion io_gpe;
41 MemoryRegion io_smi;
43 uint32_t smi_en;
44 uint32_t smi_en_wmask;
45 uint32_t smi_sts;
47 qemu_irq irq; /* SCI */
49 uint32_t pm_io_base;
50 Notifier powerdown_notifier;
52 bool cpu_hotplug_legacy;
53 AcpiCpuHotplug gpe_cpu;
54 CPUHotplugState cpuhp_state;
56 MemHotplugState acpi_memory_hotplug;
58 uint8_t disable_s3;
59 uint8_t disable_s4;
60 uint8_t s4_val;
61 uint8_t smm_enabled;
62 bool smm_compat;
63 bool enable_tco;
64 TCOIORegs tco_regs;
65 } ICH9LPCPMRegs;
67 #define ACPI_PM_PROP_TCO_ENABLED "enable_tco"
69 void ich9_pm_init(PCIDevice *lpc_pci, ICH9LPCPMRegs *pm,
70 bool smm_enabled,
71 qemu_irq sci_irq);
73 void ich9_pm_iospace_update(ICH9LPCPMRegs *pm, uint32_t pm_io_base);
74 extern const VMStateDescription vmstate_ich9_pm;
76 void ich9_pm_add_properties(Object *obj, ICH9LPCPMRegs *pm);
78 void ich9_pm_device_pre_plug_cb(HotplugHandler *hotplug_dev, DeviceState *dev,
79 Error **errp);
80 void ich9_pm_device_plug_cb(HotplugHandler *hotplug_dev, DeviceState *dev,
81 Error **errp);
82 void ich9_pm_device_unplug_request_cb(HotplugHandler *hotplug_dev,
83 DeviceState *dev, Error **errp);
84 void ich9_pm_device_unplug_cb(HotplugHandler *hotplug_dev, DeviceState *dev,
85 Error **errp);
87 void ich9_pm_ospm_status(AcpiDeviceIf *adev, ACPIOSTInfoList ***list);
88 #endif /* HW_ACPI_ICH9_H */