patch-2.4.5 linux/arch/cris/kernel/shadows.c
Next file: linux/arch/cris/kernel/signal.c
Previous file: linux/arch/cris/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Tue May 1 16:04:56 2001
- Orig file:
v2.4.4/linux/arch/cris/kernel/shadows.c
- Orig date:
Thu Feb 8 16:32:44 2001
diff -u --recursive --new-file v2.4.4/linux/arch/cris/kernel/shadows.c linux/arch/cris/kernel/shadows.c
@@ -1,20 +1,36 @@
-/* $Id: shadows.c,v 1.1 2000/07/10 16:25:21 bjornw Exp $
+/* $Id: shadows.c,v 1.2 2001/03/15 14:25:16 bjornw Exp $
*
- * Various Etrax shadow registers. Defines for these are in include/asm-etrax100/io.h
+ * Various shadow registers. Defines for these are in include/asm-etrax100/io.h
*/
-#include <linux/config.h>
+/* Shadows for internal Etrax-registers */
+
+unsigned long genconfig_shadow;
+unsigned long port_g_data_shadow;
+unsigned char port_pa_dir_shadow;
+unsigned char port_pa_data_shadow;
+unsigned char port_pb_i2c_shadow;
+unsigned char port_pb_config_shadow;
+unsigned char port_pb_dir_shadow;
+unsigned char port_pb_data_shadow;
+unsigned long r_timer_ctrl_shadow;
+
+/* Shadows for external I/O port registers.
+ * These are only usable if there actually IS a latch connected
+ * to the corresponding external chip-select pin.
+ *
+ * A common usage is that CSP0 controls LED's and CSP4 video chips.
+ */
+
+unsigned long port_cse1_shadow;
+unsigned long port_csp0_shadow;
+unsigned long port_csp4_shadow;
+
+/* Corresponding addresses for the ports.
+ * These are initialized in arch/cris/mm/init.c using ioremap.
+ */
+
+volatile unsigned long *port_cse1_addr;
+volatile unsigned long *port_csp0_addr;
+volatile unsigned long *port_csp4_addr;
-unsigned long genconfig_shadow = 42;
-unsigned long port_g_data_shadow = 42;
-unsigned char port_pa_dir_shadow = 42;
-unsigned char port_pa_data_shadow = 42;
-unsigned char port_pb_i2c_shadow = 42;
-unsigned char port_pb_config_shadow = 42;
-unsigned char port_pb_dir_shadow = 42;
-unsigned char port_pb_data_shadow = 42;
-unsigned long r_timer_ctrl_shadow = 42;
-
-#ifdef CONFIG_ETRAX_90000000_LEDS
-unsigned long port_90000000_shadow = 42;
-#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)