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 /* 16*a1a62cedSMichael Tokarev * ONLY DEFINEs are permitted in this file since it's shared 1781cea5e7SIgor Mammedov * between C and ASL code. 1881cea5e7SIgor Mammedov */ 191d14ac5aSEduardo Habkost 201d14ac5aSEduardo Habkost /* Limit for CPU arch IDs for CPU hotplug. All hotpluggable CPUs should 211d14ac5aSEduardo Habkost * have CPUClass.get_arch_id() < ACPI_CPU_HOTPLUG_ID_LIMIT. 221d14ac5aSEduardo Habkost */ 231d14ac5aSEduardo Habkost #define ACPI_CPU_HOTPLUG_ID_LIMIT 256 241d14ac5aSEduardo Habkost 251d14ac5aSEduardo Habkost /* 256 CPU IDs, 8 bits per entry: */ 2681cea5e7SIgor Mammedov #define ACPI_GPE_PROC_LEN 32 271d14ac5aSEduardo Habkost 28d6610bc2SIgor Mammedov #define ICH9_CPU_HOTPLUG_IO_BASE 0x0CD8 29e4cf8ed0SIgor Mammedov #define PIIX4_CPU_HOTPLUG_IO_BASE 0xaf00 30ddf1ec2fSIgor Mammedov #define CPU_HOTPLUG_RESOURCE_DEVICE PRES 3181cea5e7SIgor Mammedov 323ef77acaSIgor Mammedov #define ACPI_MEMORY_HOTPLUG_BASE 0x0a00 333ef77acaSIgor Mammedov 3481cea5e7SIgor Mammedov #endif 35