patch-2.3.20 linux/include/asm-ppc/amigappc.h
Next file: linux/include/asm-ppc/amigayle.h
Previous file: linux/include/asm-ppc/amigahw.h
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Thu Oct 7 10:17:09 1999
- Orig file:
v2.3.19/linux/include/asm-ppc/amigappc.h
- Orig date:
Mon Dec 21 08:37:24 1998
diff -u --recursive --new-file v2.3.19/linux/include/asm-ppc/amigappc.h linux/include/asm-ppc/amigappc.h
@@ -16,30 +16,24 @@
#ifndef __ASSEMBLY__
-#ifndef iobarrier_rw /* Don't include io.h - avoid circular dependency */
-#define iobarrier_rw() eieio()
-#endif
+/* #include <asm/system.h> */
+#define mb() __asm__ __volatile__ ("sync" : : : "memory")
#define APUS_WRITE(_a_, _v_) \
do { \
(*((volatile unsigned char *)(_a_)) = (_v_)); \
- iobarrier_rw (); \
+ mb(); \
} while (0)
-#define APUS_READ(_a_, _v_) \
+#define APUS_READ(_a_, _v_) \
do { \
(_v_) = (*((volatile unsigned char *)(_a_))); \
- iobarrier_rw (); \
+ mb(); \
} while (0)
#endif /* ndef __ASSEMBLY__ */
/* Maybe add a [#ifdef WANT_ZTWOBASE] condition to amigahw.h? */
#define zTwoBase (0x80000000)
-
-/* At CYBERBASEp we find the following sum:
- * -KERNELBASE+CyberStormMemoryBase
- */
-#define CYBERBASEp (0xfff00000)
#define APUS_IPL_BASE (zTwoBase + 0x00f60000)
#define APUS_REG_RESET (APUS_IPL_BASE + 0x00)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)