From patchwork Sun Dec 18 20:37:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 5838 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D044A23E2D for ; Sun, 18 Dec 2011 20:38:05 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id BF404A18281 for ; Sun, 18 Dec 2011 20:38:05 +0000 (UTC) Received: by eaac11 with SMTP id c11so1269913eaa.11 for ; Sun, 18 Dec 2011 12:38:05 -0800 (PST) Received: by 10.204.129.24 with SMTP id m24mr757065bks.89.1324240685292; Sun, 18 Dec 2011 12:38:05 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.204.40.4 with SMTP id i4cs108676bke; Sun, 18 Dec 2011 12:38:05 -0800 (PST) Received: by 10.216.138.201 with SMTP id a51mr7298514wej.24.1324240682937; Sun, 18 Dec 2011 12:38:02 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id gn10si5847896wib.92.2011.12.18.12.38.02 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 18 Dec 2011 12:38:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1RcNUe-00070S-NX; Sun, 18 Dec 2011 20:38:00 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org Subject: [PATCH 02/10] hw/sd.c: Add comment regarding CARD_STATUS_* defines Date: Sun, 18 Dec 2011 20:37:52 +0000 Message-Id: <1324240680-26905-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1324240680-26905-1-git-send-email-peter.maydell@linaro.org> References: <1324240680-26905-1-git-send-email-peter.maydell@linaro.org> Add a clarifying comment about what the CARD_STATUS_[ABC] macros are defining. Signed-off-by: Peter Maydell --- hw/sd.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/sd.c b/hw/sd.c index a1c98c0..245b6c3 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