From: Peter Maydell Date: Sun, 18 Dec 2011 20:37:52 +0000 (+0100) Subject: hw/sd.c: Add comment regarding CARD_STATUS_* defines X-Git-Tag: v1.1-rc0~695 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8d334c828f14a341e18bcc123b303ec29f8df76;p=thirdparty%2Fqemu.git hw/sd.c: Add comment regarding CARD_STATUS_* defines Add a clarifying comment about what the CARD_STATUS_[ABC] macros are defining. Signed-off-by: Peter Maydell Signed-off-by: Andrzej Zaborowski --- diff --git a/hw/sd.c b/hw/sd.c index a1c98c0100a..245b6c30466 100644 --- a/hw/sd.c +++ b/hw/sd.c @@ -309,6 +309,11 @@ static void sd_set_rca(SDState *sd) sd->rca += 0x4567; } +/* Card status bits, split by clear condition: + * A : According to the card current state + * B : Always related to the previous command + * C : Cleared by read + */ #define CARD_STATUS_A 0x02004100 #define CARD_STATUS_B 0x00c01e00 #define CARD_STATUS_C 0xfd39a028