Subject: Re: pcitoh() and htopci()
To: Lennart Augustsson <lennart@augustsson.net>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 11/03/1999 09:50:06
On Wed, 03 Nov 1999 11:06:45 +0100 
 Lennart Augustsson <lennart@augustsson.net> wrote:

 > Just about every PCI device driver that is converted to work
 > on big-endian machines will need to do byte swapping.
 > 
 > Should we define pcitoh() and htopci() macros in pci.h?
 > Currently each driver has its own homegrown definitions
 > (possibly with different names).

No, because the names are wrong.

What we need is:

	hto{le,be}{16,32}()
	{le,be}toh{16,32}()

        -- Jason R. Thorpe <thorpej@nas.nasa.gov>