]> git.proxmox.com Git - mirror_qemu.git/blame - hw/sd/sdmmc-internal.h
Merge remote-tracking branch 'remotes/philmd/tags/sdmmc-20220108' into staging
[mirror_qemu.git] / hw / sd / sdmmc-internal.h
CommitLineData
f250015b
PMD
1/*
2 * SD/MMC cards common
3 *
4 * Copyright (c) 2018 Philippe Mathieu-Daudé <f4bug@amsat.org>
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
58ea30f5
MA
10
11#ifndef SDMMC_INTERNAL_H
12#define SDMMC_INTERNAL_H
f250015b
PMD
13
14#define SDMMC_CMD_MAX 64
15
2ed61fb5
PMD
16/**
17 * sd_cmd_name:
18 * @cmd: A SD "normal" command, up to SDMMC_CMD_MAX.
19 *
20 * Returns a human-readable name describing the command.
21 * The return value is always a static string which does not need
22 * to be freed after use.
23 *
24 * Returns: The command name of @cmd or "UNKNOWN_CMD".
25 */
26const char *sd_cmd_name(uint8_t cmd);
27
28/**
29 * sd_acmd_name:
30 * @cmd: A SD "Application-Specific" command, up to SDMMC_CMD_MAX.
31 *
32 * Returns a human-readable name describing the application command.
33 * The return value is always a static string which does not need
34 * to be freed after use.
35 *
36 * Returns: The application command name of @cmd or "UNKNOWN_ACMD".
37 */
38const char *sd_acmd_name(uint8_t cmd);
39
f250015b 40#endif