I'm working on a linux 2.6 port for the motorola MPC5200 processor. This processor has on chip 1.1 OHCI (so they say...) controller. But I have two problems :
- The first is about the get_frame_number. I see that the 'glue' driver can provide a function to read this value and that's good news for me because there is an errata for this chips that specify the red value should be corrected. However, there are two places in the code where the OHCI_FRAME_NO(ohci->hcca) macro is called instead of hcd->driver->get_frame_number(hcd), on line 248 & 626 of ohci-hcd.
I actually count six references ("grep"), not two; in iso scheduling and urb unlinking, not fast paths. Easy enough to fix ... though I'd say to avoid calling usb_bus operations. Just define an OHCI routine that optionally applies that quirk, and call it everywhere the frame number is needed (including from that usb_bus operation).
- The other problems is that this chip is Big Endian ( power pc ) and that all it's internal registers including the OHCI ones are big endian ... And that's a bigger problem. The 2.4 port for this processor just uses #ifdef #define ... to override any call to cpu_to_le16 or such function when needed. However I don't want that solution because I have another OHCI controler on the PCI bus that requires those ... So what should I do ?
The register reads should always give results in native byte order, even across PCI. I'm not sure what you're saying here ... that driver mostly needs byteswapping for the in-memory data structures (TD, ED).
- Dave
Sylvain Munaut
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
