Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / sd / aspeed_sdhci.h
blob057bc5f3d139719ba45b75a5489abc5923f2e16e
1 /*
2 * Aspeed SD Host Controller
3 * Eddie James <eajames@linux.ibm.com>
5 * Copyright (C) 2019 IBM Corp
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #ifndef ASPEED_SDHCI_H
10 #define ASPEED_SDHCI_H
12 #include "hw/sd/sdhci.h"
13 #include "qom/object.h"
15 #define TYPE_ASPEED_SDHCI "aspeed.sdhci"
16 OBJECT_DECLARE_SIMPLE_TYPE(AspeedSDHCIState, ASPEED_SDHCI)
18 #define ASPEED_SDHCI_CAPABILITIES 0x01E80080
19 #define ASPEED_SDHCI_NUM_SLOTS 2
20 #define ASPEED_SDHCI_NUM_REGS (ASPEED_SDHCI_REG_SIZE / sizeof(uint32_t))
21 #define ASPEED_SDHCI_REG_SIZE 0x100
23 struct AspeedSDHCIState {
24 SysBusDevice parent;
26 SDHCIState slots[ASPEED_SDHCI_NUM_SLOTS];
27 uint8_t num_slots;
29 MemoryRegion iomem;
30 qemu_irq irq;
32 uint32_t regs[ASPEED_SDHCI_NUM_REGS];
35 #endif /* ASPEED_SDHCI_H */