]>
Commit | Line | Data |
---|---|---|
f5d8c8cd SZ |
1 | /* |
2 | * | |
3 | * Copyright (c) 2015 HUAWEI TECHNOLOGIES CO.,LTD. | |
4 | * | |
5 | * Author: Shannon Zhao <zhaoshenglong@huawei.com> | |
6 | * | |
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. | |
10 | * | |
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. | |
15 | * | |
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/>. | |
18 | */ | |
19 | ||
20 | #ifndef QEMU_VIRT_ACPI_BUILD_H | |
21 | #define QEMU_VIRT_ACPI_BUILD_H | |
22 | ||
23 | #include "qemu-common.h" | |
24 | #include "hw/arm/virt.h" | |
33c11879 | 25 | #include "qemu/notify.h" |
f5d8c8cd | 26 | |
982d06c5 SZ |
27 | #define ACPI_GICC_ENABLED 1 |
28 | ||
f5d8c8cd SZ |
29 | typedef struct VirtGuestInfo { |
30 | int smp_cpus; | |
31 | FWCfgState *fw_cfg; | |
32 | const MemMapEntry *memmap; | |
33 | const int *irqmap; | |
5125f9cd | 34 | bool use_highmem; |
b92ad394 | 35 | int gic_version; |
f5d8c8cd SZ |
36 | } VirtGuestInfo; |
37 | ||
38 | ||
39 | typedef struct VirtGuestInfoState { | |
40 | VirtGuestInfo info; | |
41 | Notifier machine_done; | |
42 | } VirtGuestInfoState; | |
43 | ||
44 | void virt_acpi_setup(VirtGuestInfo *guest_info); | |
45 | ||
46 | #endif |