]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] powerpc: Move dart.h
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 2 Nov 2005 04:13:20 +0000 (15:13 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 2 Nov 2005 04:25:51 +0000 (15:25 +1100)
asm-ppc64/dart.h is included in exactly one place -
arch/powerpc/sysdev/u3_iommu.c.  This patch, therefore, moves it into
arch/powerpc/sysdev.  While we're at it, update the #ifndef/#define
protecting the include, and the filename in the comments of
u3_iommu.c.

Built and booted on pSeries and G5, built for ppc32 powermac.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/dart.h [moved from include/asm-ppc64/dart.h with 94% similarity]
arch/powerpc/sysdev/u3_iommu.c

similarity index 94%
rename from include/asm-ppc64/dart.h
rename to arch/powerpc/sysdev/dart.h
index cdf8a2dec05fe53066b59ca45b7ffc14970a6a20..ea8f0d9eed8a14b752d6eb6eac7089f0fbf35ac3 100644 (file)
@@ -16,8 +16,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
-#ifndef _ASM_DART_H
-#define _ASM_DART_H
+#ifndef _POWERPC_SYSDEV_DART_H
+#define _POWERPC_SYSDEV_DART_H
 
 
 /* physical base of DART registers */
@@ -56,4 +56,4 @@
 #define DART_PAGE_FACTOR       (PAGE_SHIFT - DART_PAGE_SHIFT)
 
 
-#endif
+#endif /* _POWERPC_SYSDEV_DART_H */
index fba871a1bda5209c954f0553648f365c25b5e0ae..607722178c1a6695616c528c0511e8f22e23d41f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * arch/ppc64/kernel/u3_iommu.c
+ * arch/powerpc/sysdev/u3_iommu.c
  *
  * Copyright (C) 2004 Olof Johansson <olof@austin.ibm.com>, IBM Corporation
  *
 #include <asm/abs_addr.h>
 #include <asm/cacheflush.h>
 #include <asm/lmb.h>
-#include <asm/dart.h>
 #include <asm/ppc-pci.h>
 
+#include "dart.h"
+
 extern int iommu_force_on;
 
 /* Physical base address and size of the DART table */