diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-07-03 11:12:00 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-07-05 23:55:02 +0200 |
commit | 0bcea3f74b04cdc23ecd6822bea7e46a55eb4be7 (patch) | |
tree | ef94aec664bbe772cdde2b4c384e1885e611471f /hw/sd/sdmmc-internal.h | |
parent | 5241b759bcf1e9952a5a5503bc802d76409b4ac6 (diff) |
hw/sd/sdcard: Extract TYPE_SDMMC_COMMON from TYPE_SD_CARD
In order to keep eMMC model simpler to maintain,
extract common properties and the common code from
class_init to the (internal) TYPE_SDMMC_COMMON.
Update the corresponding QOM cast macros.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Tested-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Tested-by: Cédric Le Goater <clg@redhat.com>
Message-Id: <20240703134356.85972-6-philmd@linaro.org>
Diffstat (limited to 'hw/sd/sdmmc-internal.h')
-rw-r--r-- | hw/sd/sdmmc-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/sd/sdmmc-internal.h b/hw/sd/sdmmc-internal.h index cc0b69e834..91eb5b6b2f 100644 --- a/hw/sd/sdmmc-internal.h +++ b/hw/sd/sdmmc-internal.h @@ -11,6 +11,9 @@ #ifndef SDMMC_INTERNAL_H #define SDMMC_INTERNAL_H +#define TYPE_SDMMC_COMMON "sdmmc-common" +DECLARE_OBJ_CHECKERS(SDState, SDCardClass, SDMMC_COMMON, TYPE_SDMMC_COMMON) + /* * EXT_CSD Modes segment * |