xref: /openbmc/qemu/include/hw/acpi/pc-hotplug.h (revision a1a62ced)
17e629d1dSIgor Mammedov /*
27e629d1dSIgor Mammedov  * QEMU ACPI hotplug utilities shared defines
37e629d1dSIgor Mammedov  *
47e629d1dSIgor Mammedov  * Copyright (C) 2014 Red Hat Inc
57e629d1dSIgor Mammedov  *
67e629d1dSIgor Mammedov  * Authors:
77e629d1dSIgor Mammedov  *   Igor Mammedov <imammedo@redhat.com>
87e629d1dSIgor Mammedov  *
97e629d1dSIgor Mammedov  * This work is licensed under the terms of the GNU GPL, version 2 or later.
107e629d1dSIgor Mammedov  * See the COPYING file in the top-level directory.
117e629d1dSIgor Mammedov  */
127e629d1dSIgor Mammedov #ifndef PC_HOTPLUG_H
137e629d1dSIgor Mammedov #define PC_HOTPLUG_H
147e629d1dSIgor Mammedov 
157e629d1dSIgor Mammedov /*
16*a1a62cedSMichael Tokarev  * ONLY DEFINEs are permitted in this file since it's shared
177e629d1dSIgor Mammedov  * between C and ASL code.
187e629d1dSIgor Mammedov  */
197e629d1dSIgor Mammedov 
207e629d1dSIgor Mammedov /* Limit for CPU arch IDs for CPU hotplug. All hotpluggable CPUs should
217e629d1dSIgor Mammedov  * have CPUClass.get_arch_id() < ACPI_CPU_HOTPLUG_ID_LIMIT.
227e629d1dSIgor Mammedov  */
237e629d1dSIgor Mammedov #define ACPI_CPU_HOTPLUG_ID_LIMIT 256
247e629d1dSIgor Mammedov 
257e629d1dSIgor Mammedov /* 256 CPU IDs, 8 bits per entry: */
267e629d1dSIgor Mammedov #define ACPI_GPE_PROC_LEN 32
277e629d1dSIgor Mammedov 
287e629d1dSIgor Mammedov #define ICH9_CPU_HOTPLUG_IO_BASE 0x0CD8
297e629d1dSIgor Mammedov #define PIIX4_CPU_HOTPLUG_IO_BASE 0xaf00
30ddf1ec2fSIgor Mammedov #define CPU_HOTPLUG_RESOURCE_DEVICE PRES
317e629d1dSIgor Mammedov 
323ef77acaSIgor Mammedov #define ACPI_MEMORY_HOTPLUG_BASE 0x0a00
333ef77acaSIgor Mammedov 
347e629d1dSIgor Mammedov #endif
35