Hi,

Philipp Schmid writes:
> What I have done sofar and I have had some success with, is to alter the
> ed->dma field to contain the physical address (i.e. virt_to_phys) of the
> corresponding ed structure.  I then redefined dma_to_virt to phys_to_virt.
> This is not a clean solution and a dirty hack at best and I'm sure I'm going
> to run into trouble at some point.  Can anyone think of a better way? Could
> this functionality easily be patched into my source tree?
> 
I think the only clean solution would be to implement a new version of
ohci-q.c that would break down the data from URBs into PTDs directly
instead of creating OHCI TDs that cannot be used directly anyway. This
would eliminate the necessity to get back a virtual address from a
physical or bus address.

In my latest code I'm only accessing the data structures referenced by
the _dma fields with the DMA controller which is how it is supposed to
be.


Lothar Wassmann


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to