patch-2.1.121 linux/include/asm-arm/fiq.h

Next file: linux/include/asm-arm/io.h
Previous file: linux/include/asm-arm/elf.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.120/linux/include/asm-arm/fiq.h linux/include/asm-arm/fiq.h
@@ -1,32 +1,34 @@
-/* Support for FIQ on ARM architectures.
+/*
+ *  linux/include/asm-arm/fiq.h
+ *
+ * Support for FIQ on ARM architectures.
  * Written by Philip Blundell <philb@gnu.org>, 1998
+ * Re-written by Russell King
  */
 
 #ifndef __ASM_FIQ_H
 #define __ASM_FIQ_H
 
-struct fiq_handler {
-	 const char *name;
-	 int (*callback)(void);
-};
-
-extern int claim_fiq(struct fiq_handler *f);
-extern void release_fiq(struct fiq_handler *f);
-
-#endif
-/* Support for FIQ on ARM architectures.
- * Written by Philip Blundell <philb@gnu.org>, 1998
- */
-
-#ifndef __ASM_FIQ_H
-#define __ASM_FIQ_H
+#include <asm/ptrace.h>
 
 struct fiq_handler {
-	 const char *name;
-	 int (*callback)(void);
+	struct fiq_handler *next;
+	/* Name
+	 */
+	const char *name;
+	/* Called to ask driver to relinquish/
+	 * reacquire FIQ
+	 * return zero to accept, or -<errno>
+	 */
+	int (*fiq_op)(void *, int relinquish);
+	/* data for the relinquish/reacquire functions
+	 */
+	void *dev_id;
 };
 
 extern int claim_fiq(struct fiq_handler *f);
 extern void release_fiq(struct fiq_handler *f);
+extern void set_fiq_handler(void *start, unsigned int length);
+extern void set_fiq_regs(struct pt_regs *regs);
 
 #endif

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