]>
Commit | Line | Data |
---|---|---|
81cea5e7 IM |
1 | /* |
2 | * QEMU ACPI hotplug utilities | |
3 | * | |
4 | * Copyright (C) 2013 Red Hat Inc | |
5 | * | |
6 | * Authors: | |
7 | * Igor Mammedov <[email protected]> | |
8 | * | |
9 | * This work is licensed under the terms of the GNU GPL, version 2 or later. | |
10 | * See the COPYING file in the top-level directory. | |
11 | */ | |
12 | #ifndef ACPI_HOTPLUG_H | |
13 | #define ACPI_HOTPLUG_H | |
14 | ||
15 | #include "hw/acpi/acpi.h" | |
7e629d1d | 16 | #include "hw/acpi/pc-hotplug.h" |
fbd7a6b8 | 17 | #include "hw/acpi/aml-build.h" |
0058c082 | 18 | #include "hw/hotplug.h" |
81cea5e7 IM |
19 | |
20 | typedef struct AcpiCpuHotplug { | |
21 | MemoryRegion io; | |
22 | uint8_t sts[ACPI_GPE_PROC_LEN]; | |
23 | } AcpiCpuHotplug; | |
24 | ||
0058c082 | 25 | void legacy_acpi_cpu_plug_cb(HotplugHandler *hotplug_dev, |
96e3e12b | 26 | AcpiCpuHotplug *g, DeviceState *dev, Error **errp); |
1be6b511 | 27 | |
96e3e12b IM |
28 | void legacy_acpi_cpu_hotplug_init(MemoryRegion *parent, Object *owner, |
29 | AcpiCpuHotplug *gpe_cpu, uint16_t base); | |
fbd7a6b8 | 30 | |
96e3e12b | 31 | void build_legacy_cpu_hotplug_aml(Aml *ctx, MachineState *machine, |
ebd8ea82 | 32 | uint16_t io_base); |
81cea5e7 | 33 | #endif |