patch-2.1.96 linux/include/asm-arm/arch-arc/oldlatches.h

Next file: linux/include/asm-arm/arch-arc/processor.h
Previous file: linux/include/asm-arm/arch-arc/mmu.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.95/linux/include/asm-arm/arch-arc/oldlatches.h linux/include/asm-arm/arch-arc/oldlatches.h
@@ -1,6 +1,19 @@
-#ifndef _ASM_ARM_ARCHARC_OLDLATCH_H
-#define _ASM_ARM_ARCHARC_OLDLATCH_H
+/*
+ * linux/include/asm-arm/arch-arc/oldlatches.h
+ *
+ * Copyright (C) 1996 Russell King, Dave Gilbert
+ *
+ * Dummy oldlatches.h
+ *
+ * Modifications:
+ *  04-04-1998	PJB/RMK	Merged arc and a5k versions
+ */
+#ifndef _ASM_ARCH_OLDLATCH_H
+#define _ASM_ARCH_OLDLATCH_H
 
+#include <linux/config.h>
+
+#if defined(CONFIG_ARCH_ARC)
 #define LATCHA_FDSEL0    (1<<0)
 #define LATCHA_FDSEL1    (1<<1)
 #define LATCHA_FDSEL2    (1<<2)
@@ -21,4 +34,12 @@
 /* newval=(oldval & mask)|newdata */
 void oldlatch_aupdate(unsigned char mask,unsigned char newdata);
 
+#elif defined(CONFIG_ARCH_A5K)
+
+#ifdef __need_oldlatches
+#error "Old latches not present in this (a5k) machine"
+#endif
+
+#endif
 #endif
+

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov