xref: /openbmc/qemu/include/hw/tricore/triboard.h (revision 835fde4a)
1 /*
2  * Infineon TriBoard System emulation.
3  *
4  * Copyright (c) 2020 Andreas Konopik <andreas.konopik@efs-auto.de>
5  * Copyright (c) 2020 David Brenken <david.brenken@efs-auto.de>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #include "qemu/osdep.h"
22 #include "qapi/error.h"
23 #include "hw/boards.h"
24 #include "hw/arm/boot.h"
25 #include "sysemu/sysemu.h"
26 #include "exec/address-spaces.h"
27 #include "qom/object.h"
28 
29 #include "hw/tricore/tc27x_soc.h"
30 
31 #define TYPE_TRIBOARD_MACHINE MACHINE_TYPE_NAME("triboard")
32 typedef struct TriBoardMachineState TriBoardMachineState;
33 typedef struct TriBoardMachineClass TriBoardMachineClass;
34 DECLARE_OBJ_CHECKERS(TriBoardMachineState, TriBoardMachineClass,
35                      TRIBOARD_MACHINE, TYPE_TRIBOARD_MACHINE)
36 
37 
38 struct TriBoardMachineState {
39     MachineState parent;
40 
41     TC27XSoCState tc27x_soc;
42 };
43 
44 struct TriBoardMachineClass {
45     MachineClass parent_obj;
46 
47     const char *name;
48     const char *desc;
49     const char *soc_name;
50 };
51