#include "sysemu/sysemu.h"
#include "sysemu/blockdev.h"
-#ifdef CONFIG_MARU
-#include "../tizen/src/mloop_event.h"
-#endif
-
//#define DEBUG_MSD
#ifdef DEBUG_MSD
}
}
-#ifdef CONFIG_MARU
-static void usb_msd_handle_destroy(USBDevice *dev)
-{
- mloop_evcmd_set_usbdisk(NULL);
-}
-#endif
-
static void usb_msd_password_cb(void *opaque, int err)
{
MSDState *s = opaque;
QemuOpts *opts;
DriveInfo *dinfo;
USBDevice *dev;
-#ifndef CONFIG_MARU
const char *p1;
char fmt[32];
-#endif
/* parse -usbdevice disk: syntax into drive opts */
snprintf(id, sizeof(id), "usb%d", nr++);
opts = qemu_opts_create(qemu_find_opts("drive"), id, 0, NULL);
-#ifndef CONFIG_MARU
+
p1 = strchr(filename, ':');
if (p1++) {
const char *p2;
}
filename = p1;
}
-#endif
if (!*filename) {
printf("block device specification needed\n");
return NULL;
if (qdev_init(&dev->qdev) < 0)
return NULL;
-#ifdef CONFIG_MARU
- mloop_evcmd_set_usbdisk(dev);
-#endif
-
return dev;
}
uc->handle_reset = usb_msd_handle_reset;
uc->handle_control = usb_msd_handle_control;
uc->handle_data = usb_msd_handle_data;
-#ifdef CONFIG_MARU
- uc->handle_destroy = usb_msd_handle_destroy;
-#endif
set_bit(DEVICE_CATEGORY_STORAGE, dc->categories);
dc->fw_name = "storage";
dc->vmsd = &vmstate_usb_msd;