aboutsummaryrefslogtreecommitdiff
path: root/hw/sd.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sd.c')
-rw-r--r--hw/sd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/sd.c b/hw/sd.c
index 9888547436..b7f053b0ba 100644
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -51,7 +51,7 @@ typedef enum {
sd_r6 = 6, /* Published RCA response */
sd_r7, /* Operating voltage */
sd_r1b = -1,
-} sd_rsp_type_t;
+} e_sd_rsp_type;
struct SDState {
enum {
@@ -130,7 +130,7 @@ static void sd_set_status(SDState *sd)
sd->card_status |= sd->state << 9;
}
-static const sd_cmd_type_t sd_cmd_type[64] = {
+static const e_sd_cmd_type sd_cmd_type[64] = {
sd_bc, sd_none, sd_bcr, sd_bcr, sd_none, sd_none, sd_none, sd_ac,
sd_bcr, sd_ac, sd_ac, sd_adtc, sd_ac, sd_ac, sd_none, sd_ac,
sd_ac, sd_adtc, sd_adtc, sd_none, sd_none, sd_none, sd_none, sd_none,
@@ -141,7 +141,7 @@ static const sd_cmd_type_t sd_cmd_type[64] = {
sd_adtc, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_none,
};
-static const sd_cmd_type_t sd_acmd_type[64] = {
+static const e_sd_cmd_type sd_acmd_type[64] = {
sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_ac, sd_none,
sd_none, sd_none, sd_none, sd_none, sd_none, sd_adtc, sd_none, sd_none,
sd_none, sd_none, sd_none, sd_none, sd_none, sd_none, sd_adtc, sd_ac,
@@ -579,7 +579,7 @@ static void sd_lock_command(SDState *sd)
sd->card_status &= ~CARD_IS_LOCKED;
}
-static sd_rsp_type_t sd_normal_command(SDState *sd,
+static e_sd_rsp_type sd_normal_command(SDState *sd,
SDRequest req)
{
uint32_t rca = 0x0000;
@@ -1118,7 +1118,7 @@ static sd_rsp_type_t sd_normal_command(SDState *sd,
return sd_r0;
}
-static sd_rsp_type_t sd_app_command(SDState *sd,
+static e_sd_rsp_type sd_app_command(SDState *sd,
SDRequest req) {
uint32_t rca;
@@ -1231,7 +1231,7 @@ static sd_rsp_type_t sd_app_command(SDState *sd,
int sd_do_command(SDState *sd, SDRequest *req,
uint8_t *response) {
uint32_t last_status = sd->card_status;
- sd_rsp_type_t rtype;
+ e_sd_rsp_type rtype;
int rsplen;
if (!sd->bdrv || !bdrv_is_inserted(sd->bdrv) || !sd->enable) {