master
h 32 lines 756 Bytes
Raw
1 /*
2 * Xilinx Zynq Baseboard System emulation.
3 *
4 * Copyright (c) 2010 Xilinx.
5 * Copyright (c) 2012 Peter A.G. Crosthwaite (peter.croshtwaite@petalogix.com)
6 * Copyright (c) 2012 Petalogix Pty Ltd.
7 * Written by Haibing Ma
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12 #ifndef QEMU_ARM_ZYNQ_H
13 #define QEMU_ARM_ZYNQ_H
14
15 #include "target/arm/cpu-qom.h"
16 #include "hw/core/qdev-clock.h"
17 #include "hw/arm/boot.h"
18
19 #define TYPE_ZYNQ_MACHINE MACHINE_TYPE_NAME("xilinx-zynq-a9")
20 OBJECT_DECLARE_SIMPLE_TYPE(ZynqMachineState, ZYNQ_MACHINE)
21
22 #define ZYNQ_MAX_CPUS 2
23
24 struct ZynqMachineState {
25 MachineState parent;
26 Clock *ps_clk;
27 ARMCPU *cpu[ZYNQ_MAX_CPUS];
28 uint8_t boot_mode;
29 struct arm_boot_info bootinfo;
30 };
31
32 #endif /* QEMU_ARM_ZYNQ_H */