Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging
[qemu.git] / include / hw / misc / aspeed_sdmc.h
blob551c8afdf4bef10ebbc2564dacab76a957ff840b
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;
28 uint32_t ram_bits;
29 uint64_t ram_size;
31 } AspeedSDMCState;
33 #endif /* ASPEED_SDMC_H */