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.
12 #include "hw/boards.h"
14 typedef struct AspeedBoardState AspeedBoardState
;
16 typedef struct AspeedBoardConfig
{
21 const char *fmc_model
;
22 const char *spi_model
;
24 void (*i2c_init
)(AspeedBoardState
*bmc
);
28 #define TYPE_ASPEED_MACHINE MACHINE_TYPE_NAME("aspeed")
29 #define ASPEED_MACHINE(obj) \
30 OBJECT_CHECK(AspeedMachine, (obj), TYPE_ASPEED_MACHINE)
32 typedef struct AspeedMachine
{
33 MachineState parent_obj
;
36 #define ASPEED_MACHINE_CLASS(klass) \
37 OBJECT_CLASS_CHECK(AspeedMachineClass, (klass), TYPE_ASPEED_MACHINE)
38 #define ASPEED_MACHINE_GET_CLASS(obj) \
39 OBJECT_GET_CLASS(AspeedMachineClass, (obj), TYPE_ASPEED_MACHINE)
41 typedef struct AspeedMachineClass
{
42 MachineClass parent_obj
;
43 const AspeedBoardConfig
*board
;