Jesper Nilsson | da4d091 | 2008-01-21 11:09:56 +0100 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * Various shadow registers. Defines for these are in include/asm-etrax100/io.h |
| 3 | */ |
| 4 | |
| 5 | /* Shadows for internal Etrax-registers */ |
| 6 | |
| 7 | unsigned long genconfig_shadow; |
Mikael Starvik | 63245d2 | 2005-07-27 11:44:35 -0700 | [diff] [blame] | 8 | unsigned long gen_config_ii_shadow; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | unsigned long port_g_data_shadow; |
| 10 | unsigned char port_pa_dir_shadow; |
| 11 | unsigned char port_pa_data_shadow; |
| 12 | unsigned char port_pb_i2c_shadow; |
| 13 | unsigned char port_pb_config_shadow; |
| 14 | unsigned char port_pb_dir_shadow; |
| 15 | unsigned char port_pb_data_shadow; |
| 16 | unsigned long r_timer_ctrl_shadow; |
| 17 | |
| 18 | /* Shadows for external I/O port registers. |
| 19 | * These are only usable if there actually IS a latch connected |
| 20 | * to the corresponding external chip-select pin. |
| 21 | * |
Simon Arlott | 49b4ff3 | 2007-10-20 01:08:50 +0200 | [diff] [blame] | 22 | * A common usage is that CSP0 controls LEDs and CSP4 video chips. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | unsigned long port_cse1_shadow; |
| 26 | unsigned long port_csp0_shadow; |
| 27 | unsigned long port_csp4_shadow; |
| 28 | |
| 29 | /* Corresponding addresses for the ports. |
| 30 | * These are initialized in arch/cris/mm/init.c using ioremap. |
| 31 | */ |
| 32 | |
| 33 | volatile unsigned long *port_cse1_addr; |
| 34 | volatile unsigned long *port_csp0_addr; |
| 35 | volatile unsigned long *port_csp4_addr; |
| 36 | |