blob: 326178aef6ee45f1172133b76f4663efc297bac5 [file] [log] [blame]
Mikael Starvik63245d22005-07-27 11:44:35 -07001/* $Id: shadows.c,v 1.2 2004/12/13 12:21:51 starvik Exp $
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 *
3 * Various shadow registers. Defines for these are in include/asm-etrax100/io.h
4 */
5
6/* Shadows for internal Etrax-registers */
7
8unsigned long genconfig_shadow;
Mikael Starvik63245d22005-07-27 11:44:35 -07009unsigned long gen_config_ii_shadow;
Linus Torvalds1da177e2005-04-16 15:20:36 -070010unsigned long port_g_data_shadow;
11unsigned char port_pa_dir_shadow;
12unsigned char port_pa_data_shadow;
13unsigned char port_pb_i2c_shadow;
14unsigned char port_pb_config_shadow;
15unsigned char port_pb_dir_shadow;
16unsigned char port_pb_data_shadow;
17unsigned long r_timer_ctrl_shadow;
18
19/* Shadows for external I/O port registers.
20 * These are only usable if there actually IS a latch connected
21 * to the corresponding external chip-select pin.
22 *
Simon Arlott49b4ff32007-10-20 01:08:50 +020023 * A common usage is that CSP0 controls LEDs and CSP4 video chips.
Linus Torvalds1da177e2005-04-16 15:20:36 -070024 */
25
26unsigned long port_cse1_shadow;
27unsigned long port_csp0_shadow;
28unsigned long port_csp4_shadow;
29
30/* Corresponding addresses for the ports.
31 * These are initialized in arch/cris/mm/init.c using ioremap.
32 */
33
34volatile unsigned long *port_cse1_addr;
35volatile unsigned long *port_csp0_addr;
36volatile unsigned long *port_csp4_addr;
37