Received: from eggs.gnu.org ([140.186.70.92]:56238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq0Zu-0002Ol-Fh for qemu-devel@nongnu.org; Wed, 25 Jan 2012 05:59:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rq0Zq-0004ky-MT for qemu-devel@nongnu.org; Wed, 25 Jan 2012 05:59:46 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:43095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rq0Zq-0004kc-IB for qemu-devel@nongnu.org; Wed, 25 Jan 2012 05:59:42 -0500 Received: from euspt1 (mailout1.w1.samsung.com [210.118.77.11]) by mailout1.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0LYC00ABWP7DFW@mailout1.w1.samsung.com> for qemu-devel@nongnu.org; Wed, 25 Jan 2012 10:59:37 +0000 (GMT) Received: from dodo.rnd.samsung.ru ([106.109.8.162]) by spt1.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LYC00C8BP6ZU1@spt1.w1.samsung.com> for qemu-devel@nongnu.org; Wed, 25 Jan 2012 10:59:37 +0000 (GMT) Date: Wed, 25 Jan 2012 14:58:50 +0400 From: Mitsyanko Igor Message-id: <1327489134-32091-1-git-send-email-i.mitsyanko@samsung.com> MIME-version: 1.0 Content-type: TEXT/PLAIN Content-transfer-encoding: 7BIT Subject: [Qemu-devel] [PATCH v4 0/4] Improve SD controllers emulation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Mitsyanko Igor , quintela@redhat.com, kyungmin.park@samsung.com, d.solodkiy@samsung.com, afaerber@suse.de Changelog v3->v4 - PATCH 1/3 rebased to current master; - Fixed .start field use during vmstate save/load; - added get_bufsize() NULL pointer check; - patches 2-4 merged into patches 2-3 v2->v3: - PATCH 2/3 splitted into smaller patches 2-4/5. - SDState structure rearrengment dropped. v1->v2: PATCH 1/3: - .calc_size field replaced with .get_bufsize field in VMStateField; - .size_offset removed completely, macros based on it rewritten to use new .get_bufsize field. PATCH 2/3: - all binary variables in SDState now have bool type; - SDState structure rearranged to ensure alignement; - sd_init(), sd_enable() now receive bool; - new version of PATCH 1/3 now used to save wp_groups array; PATCH 3/3: - DMA transfers modified and now operate with data blocks of BLKSIZE only, like real hardware does; - reset procedure optimized; - new version of PATCH 1/3 now used to save fifo_buffer. First patch of this patch set modifies existing VMStateField interface to ease save/restore functionality implementation for device's dynamically allocated buffers. This modification is used later in second patch to implement SD card's VMStateDescription structure. Fourth patch adds imlementation of new device: SD host controller fully compliant with "SD host controller specification version 2.00". It also uses vmstate field modification introduced in first patch. Mitsyanko Igor (4): vmstate: introduce get_bufsize entry in VMStateField hw/sd.c: add SD card save/load support hw/sd.c: convert SD state binary variables to bool hw: Introduce spec. ver. 2.00 compliant SD host controller Makefile.target | 1 + hw/g364fb.c | 7 +- hw/m48t59.c | 7 +- hw/mac_nvram.c | 8 +- hw/onenand.c | 7 +- hw/sd.c | 126 +++-- hw/sd.h | 4 +- hw/sdhc.c | 1570 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ hw/sdhc.h | 327 ++++++++++++ savevm.c | 18 +- vmstate.h | 43 +-- 11 files changed, 2030 insertions(+), 88 deletions(-) create mode 100644 hw/sdhc.c create mode 100644 hw/sdhc.h -- 1.7.4.1