mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
hw/sd/sd.c: QOMify
Turn the SD card into a QOM device. This conversion only changes the device itself; the various functions which are effectively methods on the device are not touched at this point. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com> Message-id: 1455646193-13238-3-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
ac6de31acd
commit
260bc9d8aa
2 changed files with 80 additions and 22 deletions
|
@ -68,6 +68,9 @@ typedef struct {
|
|||
|
||||
typedef struct SDState SDState;
|
||||
|
||||
#define TYPE_SD_CARD "sd-card"
|
||||
#define SD_CARD(obj) OBJECT_CHECK(SDState, (obj), TYPE_SD_CARD)
|
||||
|
||||
SDState *sd_init(BlockBackend *bs, bool is_spi);
|
||||
int sd_do_command(SDState *sd, SDRequest *req,
|
||||
uint8_t *response);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue