rediff of Gianni Tedesco's virtual ohci usb host controller
Hello list,
Attached is a rediff of the virtual ohci host controller developed by Gianni
Tedesco. The primary changes are a fix in the handling of the HcFmInterval register so that the host controller driver toggles the Frame Interval Toggle bit instead of the host controller. This was causing win9x guest to give up configuring the host controller on bootup and initial hc configuration. The other change is to disable all eight ports on the root hub instead of leaving one enabled. This was causing a hang when loading the ohci-hcd driver with linux 2.6 host kernel.
I'll be messing with this code on/off. My plans are to eventually use it to
grab usb traffic from an old usb flatbed scanner which uses proprietary commands (yes i could use usb-snoopy, but where is the fun in that?).
The original patchset is here:
http://scaramanga.co.uk/stuff/qemu-usb/
Makefile.target renamed from qemu-0.7.0/Makefile.target +1 -1
@@ -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
@@ -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
@@ -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 ;