xref: /openbmc/qemu/include/hw/arm/xlnx-zynqmp.h (revision f0a902f76452211cadbdf1d25ef9b94732b096e8)
1*f0a902f7SPeter Crosthwaite /*
2*f0a902f7SPeter Crosthwaite  * Xilinx Zynq MPSoC emulation
3*f0a902f7SPeter Crosthwaite  *
4*f0a902f7SPeter Crosthwaite  * Copyright (C) 2015 Xilinx Inc
5*f0a902f7SPeter Crosthwaite  * Written by Peter Crosthwaite <peter.crosthwaite@xilinx.com>
6*f0a902f7SPeter Crosthwaite  *
7*f0a902f7SPeter Crosthwaite  * This program is free software; you can redistribute it and/or modify it
8*f0a902f7SPeter Crosthwaite  * under the terms of the GNU General Public License as published by the
9*f0a902f7SPeter Crosthwaite  * Free Software Foundation; either version 2 of the License, or
10*f0a902f7SPeter Crosthwaite  * (at your option) any later version.
11*f0a902f7SPeter Crosthwaite  *
12*f0a902f7SPeter Crosthwaite  * This program is distributed in the hope that it will be useful, but WITHOUT
13*f0a902f7SPeter Crosthwaite  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14*f0a902f7SPeter Crosthwaite  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15*f0a902f7SPeter Crosthwaite  * for more details.
16*f0a902f7SPeter Crosthwaite  */
17*f0a902f7SPeter Crosthwaite 
18*f0a902f7SPeter Crosthwaite #ifndef XLNX_ZYNQMP_H
19*f0a902f7SPeter Crosthwaite 
20*f0a902f7SPeter Crosthwaite #include "qemu-common.h"
21*f0a902f7SPeter Crosthwaite #include "hw/arm/arm.h"
22*f0a902f7SPeter Crosthwaite 
23*f0a902f7SPeter Crosthwaite #define TYPE_XLNX_ZYNQMP "xlnx,zynqmp"
24*f0a902f7SPeter Crosthwaite #define XLNX_ZYNQMP(obj) OBJECT_CHECK(XlnxZynqMPState, (obj), \
25*f0a902f7SPeter Crosthwaite                                        TYPE_XLNX_ZYNQMP)
26*f0a902f7SPeter Crosthwaite 
27*f0a902f7SPeter Crosthwaite #define XLNX_ZYNQMP_NUM_CPUS 4
28*f0a902f7SPeter Crosthwaite 
29*f0a902f7SPeter Crosthwaite typedef struct XlnxZynqMPState {
30*f0a902f7SPeter Crosthwaite     /*< private >*/
31*f0a902f7SPeter Crosthwaite     DeviceState parent_obj;
32*f0a902f7SPeter Crosthwaite 
33*f0a902f7SPeter Crosthwaite     /*< public >*/
34*f0a902f7SPeter Crosthwaite     ARMCPU cpu[XLNX_ZYNQMP_NUM_CPUS];
35*f0a902f7SPeter Crosthwaite }  XlnxZynqMPState;
36*f0a902f7SPeter Crosthwaite 
37*f0a902f7SPeter Crosthwaite #define XLNX_ZYNQMP_H
38*f0a902f7SPeter Crosthwaite #endif
39