mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Rearrange SCSI disk emulation code.
Add USB mass storage device emulation. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1940 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e6f3e5e016
commit
2e5d83bbef
13 changed files with 1080 additions and 470 deletions
2
vl.c
2
vl.c
|
@ -3279,6 +3279,8 @@ static int usb_device_add(const char *devname)
|
|||
dev = usb_mouse_init();
|
||||
} else if (!strcmp(devname, "tablet")) {
|
||||
dev = usb_tablet_init();
|
||||
} else if (strstart(devname, "disk:", &p)) {
|
||||
dev = usb_msd_init(p);
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue