shadows.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Various shadow registers. Defines for these are in include/asm-etrax100/io.h
  3. */
  4. /* Shadows for internal Etrax-registers */
  5. unsigned long genconfig_shadow;
  6. unsigned long gen_config_ii_shadow;
  7. unsigned long port_g_data_shadow;
  8. unsigned char port_pa_dir_shadow;
  9. unsigned char port_pa_data_shadow;
  10. unsigned char port_pb_i2c_shadow;
  11. unsigned char port_pb_config_shadow;
  12. unsigned char port_pb_dir_shadow;
  13. unsigned char port_pb_data_shadow;
  14. unsigned long r_timer_ctrl_shadow;
  15. /* Shadows for external I/O port registers.
  16. * These are only usable if there actually IS a latch connected
  17. * to the corresponding external chip-select pin.
  18. *
  19. * A common usage is that CSP0 controls LEDs and CSP4 video chips.
  20. */
  21. unsigned long port_cse1_shadow;
  22. unsigned long port_csp0_shadow;
  23. unsigned long port_csp4_shadow;
  24. /* Corresponding addresses for the ports.
  25. * These are initialized in arch/cris/mm/init.c using ioremap.
  26. */
  27. volatile unsigned long *port_cse1_addr;
  28. volatile unsigned long *port_csp0_addr;
  29. volatile unsigned long *port_csp4_addr;