mirror of
https://github.com/qemu/qemu.git
synced 2025-07-27 12:20:07 +00:00

Generated using: $ ./scripts/codeconverter/converter.py -i \ --pattern=TypeCheckMacro $(git grep -l '' -- '*.[ch]') Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-12-ehabkost@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20200831210740.126168-13-ehabkost@redhat.com> Message-Id: <20200831210740.126168-14-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
38 lines
882 B
C
38 lines
882 B
C
/*
|
|
* Aspeed SD Host Controller
|
|
* Eddie James <eajames@linux.ibm.com>
|
|
*
|
|
* Copyright (C) 2019 IBM Corp
|
|
* SPDX-License-Identifer: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef ASPEED_SDHCI_H
|
|
#define ASPEED_SDHCI_H
|
|
|
|
#include "hw/sd/sdhci.h"
|
|
#include "qom/object.h"
|
|
|
|
#define TYPE_ASPEED_SDHCI "aspeed.sdhci"
|
|
typedef struct AspeedSDHCIState AspeedSDHCIState;
|
|
DECLARE_INSTANCE_CHECKER(AspeedSDHCIState, ASPEED_SDHCI,
|
|
TYPE_ASPEED_SDHCI)
|
|
|
|
#define ASPEED_SDHCI_CAPABILITIES 0x01E80080
|
|
#define ASPEED_SDHCI_NUM_SLOTS 2
|
|
#define ASPEED_SDHCI_NUM_REGS (ASPEED_SDHCI_REG_SIZE / sizeof(uint32_t))
|
|
#define ASPEED_SDHCI_REG_SIZE 0x100
|
|
|
|
struct AspeedSDHCIState {
|
|
SysBusDevice parent;
|
|
|
|
SDHCIState slots[ASPEED_SDHCI_NUM_SLOTS];
|
|
uint8_t num_slots;
|
|
|
|
MemoryRegion iomem;
|
|
qemu_irq irq;
|
|
|
|
uint32_t regs[ASPEED_SDHCI_NUM_REGS];
|
|
};
|
|
|
|
#endif /* ASPEED_SDHCI_H */
|