181cea5e7SIgor Mammedov /* 281cea5e7SIgor Mammedov * QEMU ACPI hotplug utilities shared defines 381cea5e7SIgor Mammedov * 4*7e629d1dSIgor 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 */ 12*7e629d1dSIgor Mammedov #ifndef PC_HOTPLUG_H 13*7e629d1dSIgor 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 3281cea5e7SIgor Mammedov #endif 33