patch-2.1.44 linux/include/asm-mips/vector.h
Next file: linux/include/asm-mips/watch.h
Previous file: linux/include/asm-mips/user.h
Back to the patch index
Back to the overall index
- Lines: 58
- Date:
Thu Jun 26 12:33:40 1997
- Orig file:
v2.1.43/linux/include/asm-mips/vector.h
- Orig date:
Thu Apr 11 23:49:44 1996
diff -u --recursive --new-file v2.1.43/linux/include/asm-mips/vector.h linux/include/asm-mips/vector.h
@@ -5,19 +5,24 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (C) 1995 by Ralf Baechle
+ * Copyright (C) 1995, 1996, 1997 by Ralf Baechle
*/
#ifndef __ASM_MIPS_VECTOR_H
#define __ASM_MIPS_VECTOR_H
/*
+ * These vector structures are not very good to maintain - they'd probably
+ * grow to at leat three times the size - so I'll remove 'em and replace
+ * the with lots of ordinary variables.
+ */
+extern void (*irq_setup)(void);
+extern asmlinkage void (*fd_cacheflush)(const void *addr, size_t size);
+
+/*
* This structure defines how to access various features of
* different machine types and how to access them.
- *
- * FIXME: More things need to be accessed via this vector.
*/
struct feature {
- void (*handle_int)(void);
/*
* How to access the floppy controller's ports.
*/
@@ -37,25 +42,13 @@
int (*fd_get_dma_residue)(void);
void (*fd_enable_irq)(void);
void (*fd_disable_irq)(void);
- void (*fd_cacheflush)(unsigned char *addr, unsigned int size);
/*
- * How to access the RTC register of DS1287
+ * How to access the RTC register of the DS1287?
*/
- unsigned char (*rtc_read_data)(void);
- void (*rtc_write_data)(unsigned char);
-};
-
-/*
- * Similar to the above this is a structure that describes various
- * CPU dependent features.
- *
- * FIXME: This vector isn't being used yet
- */
-struct cpu {
- int dummy; /* keep GCC from complaining */
+ unsigned char (*rtc_read_data)(unsigned long addr);
+ void (*rtc_write_data)(unsigned char data, unsigned long addr);
};
extern struct feature *feature;
-extern struct cpu *cpu;
#endif /* __ASM_MIPS_VECTOR_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov