From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Vincent Palatin Date: Mon, 25 Jul 2011 16:19:07 -0700 Message-Id: <1311635951-11047-4-git-send-email-vpalatin@chromium.org> In-Reply-To: <1311635951-11047-1-git-send-email-vpalatin@chromium.org> References: <1311635951-11047-1-git-send-email-vpalatin@chromium.org> Subject: [Qemu-devel] [PATCH 3/7] block: add eMMC block device type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Qemu devel Cc: Vincent Palatin 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; -- 1.7.3.1