mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
77a2f97d1d
commit
d4613f9f40
4 changed files with 63 additions and 99 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue