Hi !

I have an embedded XScale system with an SL811HS USB host chip. I've got 
usb-2.4 via Bitkeeper and looked into it because it had code for this USB chip 
and I had problems with

http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=1272/1

The links to my mail with the problems I had with this driver are

http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2003-January/013071.html



So I copied the relevant pieces from the usb-2.4 tree into my 2.4.19-rmk4-pxa2 
tree and tried to compile the stuff.

However, this did not work.

I saw that in hcd.c there is the following code:

        // NOTE:  2.5 does this if !URB_NO_DMA_MAP transfer flag
        if (usb_pipecontrol (urb->pipe))
                urb->setup_dma = pci_map_single (
                                hcd->pdev,
                                urb->setup_packet,
                                sizeof (struct usb_ctrlrequest),
                                PCI_DMA_TODEVICE);
        if (urb->transfer_buffer_length != 0)
                urb->transfer_dma = pci_map_single (
                                hcd->pdev,
                                urb->transfer_buffer,
                                urb->transfer_buffer_length,
                                usb_pipein (urb->pipe)
                                    ? PCI_DMA_FROMDEVICE
                                    : PCI_DMA_TODEVICE);

No I wonder how I would convert this code to work on my PCI-less device --- 
That means that CONFIG_PCI is not set so there is no hcd->pdev.

Also, the chip is not DMA-driven, nDACK and nDREQ pins are not connected to 
the CPU, so calling dma functions should not be done ?!?



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to