On Fri, Feb 20, 2009 at 1:11 PM, Ira Snyder <i...@ovro.caltech.edu> wrote: > On Fri, Feb 20, 2009 at 12:57:36PM -0600, Matt Sealey wrote: > > I'm pretty sure memcpy_fromio() and memcpy_toio() will get you what you > want. They don't change byte ordering.
Are they guaranteed to only do 32-bit, aligned accesses? I made some cheats on my CPLD to ignore byte enables and so on, because it makes the design cleaner and easier to read (for students) plus, saves a ton of logic cells. It's totally within the PCI standard, but it means if you do a byte read memcpy() you get.. very weird results (i.e. not great). -- Matt Sealey <m...@genesi-usa.com> Genesi, Manager, Developer Relations _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev