From patchwork Mon Jul 25 23:19:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Palatin X-Patchwork-Id: 106761 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A0AC4B71A4 for ; Tue, 26 Jul 2011 09:19:40 +1000 (EST) Received: from localhost ([::1]:36767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlUQz-0004qV-6h for incoming@patchwork.ozlabs.org; Mon, 25 Jul 2011 19:19:37 -0400 Received: from eggs.gnu.org ([140.186.70.92]:53468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlUQl-0004VA-Cr for qemu-devel@nongnu.org; Mon, 25 Jul 2011 19:19:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlUQj-0000oM-BE for qemu-devel@nongnu.org; Mon, 25 Jul 2011 19:19:23 -0400 Received: from smtp-out.google.com ([216.239.44.51]:20606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlUQj-0000oG-6b for qemu-devel@nongnu.org; Mon, 25 Jul 2011 19:19:21 -0400 Received: from wpaz24.hot.corp.google.com (wpaz24.hot.corp.google.com [172.24.198.88]) by smtp-out.google.com with ESMTP id p6PNJKjW026748; Mon, 25 Jul 2011 16:19:20 -0700 Received: from vpa.mtv.corp.google.com (vpa.mtv.corp.google.com [172.22.72.27]) by wpaz24.hot.corp.google.com with ESMTP id p6PNJJcE007508; Mon, 25 Jul 2011 16:19:19 -0700 Received: by vpa.mtv.corp.google.com (Postfix, from userid 125455) id 7E1B81608B8; Mon, 25 Jul 2011 16:19:19 -0700 (PDT) From: Vincent Palatin To: Qemu devel Date: Mon, 25 Jul 2011 16:19:07 -0700 Message-Id: <1311635951-11047-4-git-send-email-vpalatin@chromium.org> X-Mailer: git-send-email 1.7.3.1 In-Reply-To: <1311635951-11047-1-git-send-email-vpalatin@chromium.org> References: <1311635951-11047-1-git-send-email-vpalatin@chromium.org> X-System-Of-Record: true X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 216.239.44.51 Cc: Vincent Palatin Subject: [Qemu-devel] [PATCH 3/7] block: add eMMC block device type X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Vincent Palatin --- blockdev.c | 2 ++ blockdev.h | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/blockdev.c b/blockdev.c index 7d579d6..c836311 100644 --- a/blockdev.c +++ b/blockdev.c @@ -29,6 +29,7 @@ static const char *const if_name[IF_COUNT] = { [IF_SD] = "sd", [IF_VIRTIO] = "virtio", [IF_XEN] = "xen", + [IF_EMMC] = "emmc", }; static const int if_max_devs[IF_COUNT] = { @@ -500,6 +501,7 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi) break; case IF_PFLASH: case IF_MTD: + case IF_EMMC: break; case IF_VIRTIO: /* add virtio block device */ diff --git a/blockdev.h b/blockdev.h index 3587786..ef06335 100644 --- a/blockdev.h +++ b/blockdev.h @@ -22,6 +22,7 @@ typedef enum { IF_DEFAULT = -1, /* for use with drive_add() only */ IF_NONE, IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN, + IF_EMMC, IF_COUNT } BlockInterfaceType;