hw/arm/virt: Simplify by moving the gic in the machine state
[qemu/ar7.git] / include / hw / arm / aspeed.h
blob4423cd0cda715584d1133b80160df8fe701ada6a
1 /*
2 * Aspeed Machines
4 * Copyright 2018 IBM Corp.
6 * This code is licensed under the GPL version 2 or later. See
7 * the COPYING file in the top-level directory.
8 */
9 #ifndef ARM_ASPEED_H
10 #define ARM_ASPEED_H
12 #include "hw/boards.h"
14 typedef struct AspeedBoardState AspeedBoardState;
16 #define TYPE_ASPEED_MACHINE MACHINE_TYPE_NAME("aspeed")
17 #define ASPEED_MACHINE(obj) \
18 OBJECT_CHECK(AspeedMachine, (obj), TYPE_ASPEED_MACHINE)
20 typedef struct AspeedMachine {
21 MachineState parent_obj;
22 } AspeedMachine;
24 #define ASPEED_MACHINE_CLASS(klass) \
25 OBJECT_CLASS_CHECK(AspeedMachineClass, (klass), TYPE_ASPEED_MACHINE)
26 #define ASPEED_MACHINE_GET_CLASS(obj) \
27 OBJECT_GET_CLASS(AspeedMachineClass, (obj), TYPE_ASPEED_MACHINE)
29 typedef struct AspeedMachineClass {
30 MachineClass parent_obj;
32 const char *name;
33 const char *desc;
34 const char *soc_name;
35 uint32_t hw_strap1;
36 uint32_t hw_strap2;
37 const char *fmc_model;
38 const char *spi_model;
39 uint32_t num_cs;
40 void (*i2c_init)(AspeedBoardState *bmc);
41 } AspeedMachineClass;
44 #endif