mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
hw/sd: Introduce a "sd-card" SPI variant model
and replace the SDState::spi attribute with a test checking the SDProto array of commands. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
6380cd2052
commit
c3287c0f70
4 changed files with 45 additions and 18 deletions
|
@ -93,6 +93,9 @@ typedef struct {
|
|||
#define TYPE_SD_CARD "sd-card"
|
||||
OBJECT_DECLARE_TYPE(SDState, SDCardClass, SD_CARD)
|
||||
|
||||
#define TYPE_SD_CARD_SPI "sd-card-spi"
|
||||
DECLARE_INSTANCE_CHECKER(SDState, SD_CARD_SPI, TYPE_SD_CARD_SPI)
|
||||
|
||||
struct SDCardClass {
|
||||
/*< private >*/
|
||||
DeviceClass parent_class;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue