Subject: Re: pcitoh() and htopci()
To: None <lennart@augustsson.net>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-kern
Date: 11/03/1999 20:13:53
In <38200935.CA7D0C96@augustsson.net>
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).
I would like "host's endian to {lettle,big} endian"
and "{lettle,big} endian to host's endian" macros,
which were suggestted by you before. (about a year ago?)
I think these macros should be used in usb/[ou]hci.c, too.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp