Hi!
fireball@svn.reactos.com wrote:
Fix a few critical typos/mistakes (like interruptvector/interruptlevel), stdcall for thread's func, etc. Also added some "hacks" into hub's thread, but at least it leads to first steps to device enumeration. Driver (OHCI) bugchecks on my_pci_pool_allocation now (when trying to send URB).
in uhci_main.c I put this in,
// Probe device with real id now uhci_pci_driver.probe(dev, uhci_pci_ids);
DPRINT1("SysIoBusNumA %d\n",DeviceExtension->SystemIoBusNumber); DeviceExtension->SystemIoBusNumber = dev->bus->number; DPRINT1("SysIoBusNumB %d\n",DeviceExtension->SystemIoBusNumber);
DPRINT1("InitLinuxWrapper() done\n");
The number is init with 0 than returns a one. So, is SystemIoBusNumer the same as dev->bus->number? I think it is. But should the Linux code init before we setup Pnp?
Thanks, James
Hi All! James Tabor wrote:
Hi!
fireball@svn.reactos.com wrote:
Fix a few critical typos/mistakes (like interruptvector/interruptlevel), stdcall for thread's func, etc. Also added some "hacks" into hub's thread, but at least it leads to first steps to device enumeration. Driver (OHCI) bugchecks on my_pci_pool_allocation now (when trying to send URB).
in uhci_main.c I put this in,
// Probe device with real id now uhci_pci_driver.probe(dev, uhci_pci_ids);
DPRINT1("SysIoBusNumA %d\n",DeviceExtension->SystemIoBusNumber); DeviceExtension->SystemIoBusNumber = dev->bus->number; DPRINT1("SysIoBusNumB %d\n",DeviceExtension->SystemIoBusNumber);
DPRINT1("InitLinuxWrapper() done\n");
(drivers/usb/cromwell/uhci/uhci.c:178) SysIoBusNumA 0 (drivers/usb/cromwell/uhci/uhci.c:182) SysIoBusNumB 1
And this,
(drivers/usb/cromwell/uhci/uhci.c:419) ******************** Cromwell UHCI ******************** (drivers/usb/cromwell/uhci/uhci.c:50) UHCI: AddDevice called (drivers/usb/cromwell/uhci/uhci.c:99) UHCI: PDO 80c37000 [\Driver\Pci] (drivers/usb/cromwell/uhci/uhci.c:100) UHCI: FDO 80ddc558 [\Driver\usbuhci] (drivers/usb/cromwell/uhci/uhci.c:102) UHCI: Lower device 80c37000 [\Driver\Pci] (drivers/usb/cromwell/uhci/uhci.c:126) Done AddDevice
the driver is working with Pdo not Fdo, we should use Fdo! Need to rewrite the driver. I'm working on a rewrite, but if someone else does it, I'm okay with that! 8^D
FYI, James
Hi, Here is my uhci source for today. Make sure you copy ohci_main.h to the host directory. Thanks, James