2 * Cadence SDHCI emulation
4 * Copyright (c) 2020 Wind River Systems, Inc.
7 * Bin Meng <bin.meng@windriver.com>
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 or
12 * (at your option) version 3 of the License.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, see <http://www.gnu.org/licenses/>.
23 #ifndef CADENCE_SDHCI_H
24 #define CADENCE_SDHCI_H
26 #include "hw/sd/sdhci.h"
28 #define CADENCE_SDHCI_REG_SIZE 0x100
29 #define CADENCE_SDHCI_NUM_REGS (CADENCE_SDHCI_REG_SIZE / sizeof(uint32_t))
31 typedef struct CadenceSDHCIState
{
34 MemoryRegion container
;
38 uint32_t regs
[CADENCE_SDHCI_NUM_REGS
];
43 #define TYPE_CADENCE_SDHCI "cadence.sdhci"
44 #define CADENCE_SDHCI(obj) OBJECT_CHECK(CadenceSDHCIState, (obj), \
47 #endif /* CADENCE_SDHCI_H */