> Well, maybe not "necessary" ... if every reference to registers or > the in-memory data structures could be switched at compile time > from normal to big-endian, it could also be done at run-time.
With a signicant runtime cost & ugliness, but yes > But given what you said about chip errata and donelist corruption, > maybe that'd be the best solution. > > > >>Thing is, I didn't think that readl()/writel() was supposed to be > >>bus-specific. > > > > > > Well ... it's supposed to be PCI and extend to all MMIO in the "normal" > > cases, but there isn't a simple way to deal with embedded chips like > > that who mix both a PCI bus (thus little endian devices) and on-chip > > big endian peripherals. > > The conventions for providing access to chip registers are more > than a bit overloaded, too ... readl() and inw() etc will "work" > on most processors and busses, but the semantics change. > > - Dave -- Benjamin Herrenschmidt <[EMAIL PROTECTED]> ------------------------------------------------------- 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
