Skip to contentSkip to conversation

rediff of Gianni Tedesco's virtual ohci usb host controller

Qemu-devel Lonnie Mendez 1 participant 1 message Jun 20, 2005 1 message not in the archive Kbuild

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 11 lines · Thomas Strobel

Hello,

I don't really get qemu patched for usb use. I don't know if I have to patch qemu-0.7.0 with the original patch form
http://scaramanga.co.uk/stuff/qemu-usb/ before using the patch added in the mailing list. Or do I only have to use the patch from the list? The next problem I have is that I have quite a problem with getting the patch out of the html page. There are quite a few new line breaks where I don't know if they should really be there. So Lonnie Mendez, or anybody else, it would be nice if you could put your patch somewhere for download.

Hello. The archive stores attachments fairly well... so I will send it off as one.
You can also find it on http://gnome.dnsalias.net/patches/

The patch is simply a rediff with some minor changes against 0.7.0, but should
also apply against cvs. I'm fairly close to releasing another update to the current
usb-ohci work.

Makefile.target renamed from qemu-0.7.0/Makefile.target +1 -1
diff -uNr qemu-orig/qemu-0.7.0/Makefile.target qemu-0.7.0/Makefile.target
@@ -313,7 +313,7 @@
 endif
 
 # must use static linking to avoid leaving stuff in virtual address space
-VL_OBJS=vl.o osdep.o block.o readline.o monitor.o pci.o console.o
+VL_OBJS=vl.o osdep.o block.o readline.o monitor.o pci.o console.o usb-ohci.o
 VL_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o
 
 SOUND_HW = sb16.o
hw/pc.c renamed from qemu-0.7.0/hw/pc.c +3 -0
diff -uNr qemu-orig/qemu-0.7.0/hw/pc.c qemu-0.7.0/hw/pc.c
@@ -500,6 +500,9 @@
     if (pci_enabled) {
         pci_bus = i440fx_init();
         piix3_init(pci_bus);
+ 
+        /* Shut up! */
+        usb_ohci_init("Apple KeyLargo/Intrepid", 0x106b, 0x003f, pci_bus, -1);
     } else {
         pci_bus = NULL;
     }
hw/usb-ohci.c renamed from qemu-0.7.0/hw/usb-ohci.c +1163 -0

1,163 lines not on this page · raw message

vl.h renamed from qemu-0.7.0/vl.h +3 -0
diff -uNr qemu-orig/qemu-0.7.0/vl.h qemu-0.7.0/vl.h
@@ -524,6 +524,9 @@
 void pci_bios_init(void);
 void pci_info(void);
 
+void usb_ohci_init(const char *name, uint16_t vid, uint16_t did,
+			struct PCIBus *bus, int devfn);
+
 /* temporary: will be moved in platform specific file */
 PCIBus *pci_prep_init(void);
 struct openpic_t;