diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-06-20 14:51:03 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-07-02 10:08:32 +0200 |
| commit | d4613f9f40a355e5f99268ac9daf7ad14764e99f (patch) | |
| tree | 96978e487ed9d29d8bc3e88385f049be53cf24f7 /hw/sd/sdmmc-internal.h | |
| parent | 77a2f97d1d1390d493a881983123bff5d04ead9a (diff) | |
| download | focaccia-qemu-d4613f9f40a355e5f99268ac9daf7ad14764e99f.tar.gz focaccia-qemu-d4613f9f40a355e5f99268ac9daf7ad14764e99f.zip | |
hw/sd/sdcard: Move sd_[a]cmd_name() methods to sd.c
Merge sdmmc-internal.c into sd.c by moving sd_cmd_name() and sd_acmd_name() and updating meson.build. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Message-Id: <20240628070216.92609-37-philmd@linaro.org>
Diffstat (limited to 'hw/sd/sdmmc-internal.h')
| -rw-r--r-- | hw/sd/sdmmc-internal.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/hw/sd/sdmmc-internal.h b/hw/sd/sdmmc-internal.h index 936c75cace..cc0b69e834 100644 --- a/hw/sd/sdmmc-internal.h +++ b/hw/sd/sdmmc-internal.h @@ -119,30 +119,4 @@ #define EXT_CSD_PART_CONFIG_EN_BOOT0 (0x1 << 3) #define EXT_CSD_PART_CONFIG_EN_USER (0x7 << 3) -#define SDMMC_CMD_MAX 64 - -/** - * sd_cmd_name: - * @cmd: A SD "normal" command, up to SDMMC_CMD_MAX. - * - * Returns a human-readable name describing the command. - * The return value is always a static string which does not need - * to be freed after use. - * - * Returns: The command name of @cmd or "UNKNOWN_CMD". - */ -const char *sd_cmd_name(uint8_t cmd); - -/** - * sd_acmd_name: - * @cmd: A SD "Application-Specific" command, up to SDMMC_CMD_MAX. - * - * Returns a human-readable name describing the application command. - * The return value is always a static string which does not need - * to be freed after use. - * - * Returns: The application command name of @cmd or "UNKNOWN_ACMD". - */ -const char *sd_acmd_name(uint8_t cmd); - #endif |