hw/arm/virt-acpi-build: Generate MADT table
[qemu/cris-port.git] / include / hw / arm / virt-acpi-build.h
blob04f174d528f3a3eff6471a4dc1db153ea4b1a1f2
1 /*
3 * Copyright (c) 2015 HUAWEI TECHNOLOGIES CO.,LTD.
5 * Author: Shannon Zhao <zhaoshenglong@huawei.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,
9 * version 2 or later, as published by the Free Software Foundation.
11 * This program is distributed in the hope it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
16 * You should have received a copy of the GNU General Public License along with
17 * this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef QEMU_VIRT_ACPI_BUILD_H
21 #define QEMU_VIRT_ACPI_BUILD_H
23 #include "qemu-common.h"
24 #include "hw/arm/virt.h"
26 #define VIRT_ACPI_CPU_ID_LIMIT 8
27 #define ACPI_GICC_ENABLED 1
29 typedef struct VirtGuestInfo {
30 int smp_cpus;
31 FWCfgState *fw_cfg;
32 const MemMapEntry *memmap;
33 const int *irqmap;
34 } VirtGuestInfo;
37 typedef struct VirtGuestInfoState {
38 VirtGuestInfo info;
39 Notifier machine_done;
40 } VirtGuestInfoState;
42 void virt_acpi_setup(VirtGuestInfo *guest_info);
44 #endif