xref: /openbmc/qemu/include/hw/acpi/pc-hotplug.h (revision 7e629d1d)
1*7e629d1dSIgor Mammedov /*
2*7e629d1dSIgor Mammedov  * QEMU ACPI hotplug utilities shared defines
3*7e629d1dSIgor Mammedov  *
4*7e629d1dSIgor Mammedov  * Copyright (C) 2014 Red Hat Inc
5*7e629d1dSIgor Mammedov  *
6*7e629d1dSIgor Mammedov  * Authors:
7*7e629d1dSIgor Mammedov  *   Igor Mammedov <imammedo@redhat.com>
8*7e629d1dSIgor Mammedov  *
9*7e629d1dSIgor Mammedov  * This work is licensed under the terms of the GNU GPL, version 2 or later.
10*7e629d1dSIgor Mammedov  * See the COPYING file in the top-level directory.
11*7e629d1dSIgor Mammedov  */
12*7e629d1dSIgor Mammedov #ifndef PC_HOTPLUG_H
13*7e629d1dSIgor Mammedov #define PC_HOTPLUG_H
14*7e629d1dSIgor Mammedov 
15*7e629d1dSIgor Mammedov /*
16*7e629d1dSIgor Mammedov  * ONLY DEFINEs are permited in this file since it's shared
17*7e629d1dSIgor Mammedov  * between C and ASL code.
18*7e629d1dSIgor Mammedov  */
19*7e629d1dSIgor Mammedov #define ACPI_CPU_HOTPLUG_STATUS 4
20*7e629d1dSIgor Mammedov 
21*7e629d1dSIgor Mammedov /* Limit for CPU arch IDs for CPU hotplug. All hotpluggable CPUs should
22*7e629d1dSIgor Mammedov  * have CPUClass.get_arch_id() < ACPI_CPU_HOTPLUG_ID_LIMIT.
23*7e629d1dSIgor Mammedov  */
24*7e629d1dSIgor Mammedov #define ACPI_CPU_HOTPLUG_ID_LIMIT 256
25*7e629d1dSIgor Mammedov 
26*7e629d1dSIgor Mammedov /* 256 CPU IDs, 8 bits per entry: */
27*7e629d1dSIgor Mammedov #define ACPI_GPE_PROC_LEN 32
28*7e629d1dSIgor Mammedov 
29*7e629d1dSIgor Mammedov #define ICH9_CPU_HOTPLUG_IO_BASE 0x0CD8
30*7e629d1dSIgor Mammedov #define PIIX4_CPU_HOTPLUG_IO_BASE 0xaf00
31*7e629d1dSIgor Mammedov 
32*7e629d1dSIgor Mammedov #endif
33