]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] add Big Endian variants of ioread/iowrite
authorJames Bottomley <James.Bottomley@SteelEye.com>
Sat, 16 Apr 2005 22:25:54 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:25:54 +0000 (15:25 -0700)
commit52c91e8caa26408e0605ab2da8d65390f3dbeb06
treee9e5058c8bec8d94f37d4f88f95e5905f64b05d0
parentb3a473f07eab95790b7f86d067b4bf5fc8b23d73
[PATCH] add Big Endian variants of ioread/iowrite

In the new io infrastructure, all of our operators are expecting the
underlying device to be little endian (because the PCI bus, their main
consumer, is LE).

However, there are a fair few devices and busses in the world that are
actually Big Endian.  There's even evidence that some of these BE bus and
chip types are attached to LE systems.  Thus, there's a need for a BE
equivalent of our io{read,write}{16,32} operations.

The attached patch adds this as io{read,write}{16,32}be.  When it's in,
I'll add the first consume (the 53c700 SCSI chip driver).

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/parisc/lib/iomap.c
include/asm-generic/iomap.h
lib/iomap.c