Subject: Re: pcitoh() and htopci()
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Matthew Jacob <mjacob@feral.com>
List: tech-kern
Date: 11/03/1999 10:38:23
On Wed, 3 Nov 1999, Jason Thorpe wrote:

> 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}()

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