ast2400: add a memory controller device model
[qemu.git] / include / hw / misc / aspeed_sdmc.h
blob7e081f6d2b867ba6c63a11066e7dcb6a68c4f62d
1 /*
2 * ASPEED SDRAM Memory Controller
4 * Copyright (C) 2016 IBM Corp.
6 * This code is licensed under the GPL version 2 or later. See the
7 * COPYING file in the top-level directory.
8 */
9 #ifndef ASPEED_SDMC_H
10 #define ASPEED_SDMC_H
12 #include "hw/sysbus.h"
14 #define TYPE_ASPEED_SDMC "aspeed.sdmc"
15 #define ASPEED_SDMC(obj) OBJECT_CHECK(AspeedSDMCState, (obj), TYPE_ASPEED_SDMC)
17 #define ASPEED_SDMC_NR_REGS (0x8 >> 2)
19 typedef struct AspeedSDMCState {
20 /*< private >*/
21 SysBusDevice parent_obj;
23 /*< public >*/
24 MemoryRegion iomem;
26 uint32_t regs[ASPEED_SDMC_NR_REGS];
27 uint32_t silicon_rev;
29 } AspeedSDMCState;
31 #endif /* ASPEED_SDMC_H */