xref: /qemu/include/hw/acpi/pc-hotplug.h (revision 3ef77acab21210b7d0853bf95798f8e0e748e500)
181cea5e7SIgor Mammedov /*
281cea5e7SIgor Mammedov  * QEMU ACPI hotplug utilities shared defines
381cea5e7SIgor Mammedov  *
47e629d1dSIgor Mammedov  * Copyright (C) 2014 Red Hat Inc
581cea5e7SIgor Mammedov  *
681cea5e7SIgor Mammedov  * Authors:
781cea5e7SIgor Mammedov  *   Igor Mammedov <imammedo@redhat.com>
881cea5e7SIgor Mammedov  *
981cea5e7SIgor Mammedov  * This work is licensed under the terms of the GNU GPL, version 2 or later.
1081cea5e7SIgor Mammedov  * See the COPYING file in the top-level directory.
1181cea5e7SIgor Mammedov  */
127e629d1dSIgor Mammedov #ifndef PC_HOTPLUG_H
137e629d1dSIgor Mammedov #define PC_HOTPLUG_H
1481cea5e7SIgor Mammedov 
1581cea5e7SIgor Mammedov /*
1681cea5e7SIgor Mammedov  * ONLY DEFINEs are permited in this file since it's shared
1781cea5e7SIgor Mammedov  * between C and ASL code.
1881cea5e7SIgor Mammedov  */
1981cea5e7SIgor Mammedov #define ACPI_CPU_HOTPLUG_STATUS 4
201d14ac5aSEduardo Habkost 
211d14ac5aSEduardo Habkost /* Limit for CPU arch IDs for CPU hotplug. All hotpluggable CPUs should
221d14ac5aSEduardo Habkost  * have CPUClass.get_arch_id() < ACPI_CPU_HOTPLUG_ID_LIMIT.
231d14ac5aSEduardo Habkost  */
241d14ac5aSEduardo Habkost #define ACPI_CPU_HOTPLUG_ID_LIMIT 256
251d14ac5aSEduardo Habkost 
261d14ac5aSEduardo Habkost /* 256 CPU IDs, 8 bits per entry: */
2781cea5e7SIgor Mammedov #define ACPI_GPE_PROC_LEN 32
281d14ac5aSEduardo Habkost 
29d6610bc2SIgor Mammedov #define ICH9_CPU_HOTPLUG_IO_BASE 0x0CD8
30e4cf8ed0SIgor Mammedov #define PIIX4_CPU_HOTPLUG_IO_BASE 0xaf00
3181cea5e7SIgor Mammedov 
32*3ef77acaSIgor Mammedov #define ACPI_MEMORY_HOTPLUG_IO_LEN 24
33*3ef77acaSIgor Mammedov #define ACPI_MEMORY_HOTPLUG_BASE 0x0a00
34*3ef77acaSIgor Mammedov 
3581cea5e7SIgor Mammedov #endif
36