Patchwork [3/7] block: add eMMC block device type

login
register
mail settings
Submitter Vincent Palatin
Date July 25, 2011, 11:19 p.m.
Message ID <1311635951-11047-4-git-send-email-vpalatin@chromium.org>
Download mbox | patch
Permalink /patch/106761/
State New
Headers show

Comments

Vincent Palatin - July 25, 2011, 11:19 p.m.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
---
 blockdev.c |    2 ++
 blockdev.h |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

Patch

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;