* [PATCH] powerpc: Fix IDE build with ARCH=ppc
@ 2006-11-21 2:45 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2006-11-21 2:45 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev list
The recent IO accessor changes broke IDE on arch/ppc due to the IDE
stream IO macros using the new reads/writes{b,w,l} accessors that
are only defined for arch/powerpc. This adds them to arch/ppc.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Index: linux-cell/include/asm-ppc/io.h
===================================================================
--- linux-cell.orig/include/asm-ppc/io.h 2006-11-21 11:01:12.000000000 +1100
+++ linux-cell/include/asm-ppc/io.h 2006-11-21 13:39:44.000000000 +1100
@@ -231,6 +231,14 @@ static inline void __raw_writel(__u32 b,
#define insl(port, buf, nl) _insl_ns((port)+___IO_BASE, (buf), (nl))
#define outsl(port, buf, nl) _outsl_ns((port)+___IO_BASE, (buf), (nl))
+#define readsb(a, b, n) _insb((a), (b), (n))
+#define readsw(a, b, n) _insw_ns((a), (b), (n))
+#define readsl(a, b, n) _insl_ns((a), (b), (n))
+#define writesb(a, b, n) _outsb((a),(b),(n))
+#define writesw(a, b, n) _outsw_ns((a),(b),(n))
+#define writesl(a, b, n) _outsl_ns((a),(b),(n))
+
+
/*
* On powermacs and 8xx we will get a machine check exception
* if we try to read data from a non-existent I/O port. Because
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-21 2:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-21 2:45 [PATCH] powerpc: Fix IDE build with ARCH=ppc Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).