> That's what _enables_ PCI bus-mastering (DMA) by the device. > > OHCI controllers do memory accesses all the time, as normal > part of operation. They have some registers that point to > memory locations for the USB transaction schedule, and every > millisecond they start scanning that schedule ... by reading > EDs and, if the ED's queue is non-empty, TDs. (UHCI and EHCI > work in the same general way, but those chips use different > data structures for their USB transaction schedules.) > > Then using the data in the TD, they perform USB transactions > and read/write the data buffers; and write back the updated > TD (and eventually ED). > > So DMA initialization is done as part of ED and TD setup, > at least the chip-specific parts. > > - Dave >
I can understand DMA buffer initlisation for EDs and TDs. But, in my case I am working for OHCI connecting to ARM AHB bus with a seperate general purpose DMA controller connecting to AHB as well. In the ohci pci code, I can only see the code to initlise the DMA buffer, but dont know how to actually enable/perform DMA. So I have no idea how to modify the code to make it work for my board. Can any one provide help on this. Thanks, Li Xinyi ------------------------------------------------------- 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
