opsput_lan.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef _OPSPUT_OPSPUT_LAN_H
  2. #define _OPSPUT_OPSPUT_LAN_H
  3. /*
  4. * include/asm-m32r/opsput/opsput_lan.h
  5. *
  6. * OPSPUT-LAN board
  7. *
  8. * Copyright (c) 2002-2004 Takeo Takahashi, Mamoru Sakugawa
  9. *
  10. * This file is subject to the terms and conditions of the GNU General
  11. * Public License. See the file "COPYING" in the main directory of
  12. * this archive for more details.
  13. */
  14. #ifndef __ASSEMBLY__
  15. /*
  16. * C functions use non-cache address.
  17. */
  18. #define OPSPUT_LAN_BASE (0x10000000 /* + NONCACHE_OFFSET */)
  19. #else
  20. #define OPSPUT_LAN_BASE (0x10000000 + NONCACHE_OFFSET)
  21. #endif /* __ASSEMBLY__ */
  22. /* ICU
  23. * ICUISTS: status register
  24. * ICUIREQ0: request register
  25. * ICUIREQ1: request register
  26. * ICUCR3: control register for CFIREQ# interrupt
  27. * ICUCR4: control register for CFC Card insert interrupt
  28. * ICUCR5: control register for CFC Card eject interrupt
  29. * ICUCR6: control register for external interrupt
  30. * ICUCR11: control register for MMC Card insert/eject interrupt
  31. * ICUCR13: control register for SC error interrupt
  32. * ICUCR14: control register for SC receive interrupt
  33. * ICUCR15: control register for SC send interrupt
  34. * ICUCR16: control register for SIO0 receive interrupt
  35. * ICUCR17: control register for SIO0 send interrupt
  36. */
  37. #define OPSPUT_LAN_IRQ_LAN (OPSPUT_LAN_PLD_IRQ_BASE + 1) /* LAN */
  38. #define OPSPUT_LAN_IRQ_I2C (OPSPUT_LAN_PLD_IRQ_BASE + 3) /* I2C */
  39. #define OPSPUT_LAN_ICUISTS __reg16(OPSPUT_LAN_BASE + 0xc0002)
  40. #define OPSPUT_LAN_ICUISTS_VECB_MASK (0xf000)
  41. #define OPSPUT_LAN_VECB(x) ((x) & OPSPUT_LAN_ICUISTS_VECB_MASK)
  42. #define OPSPUT_LAN_ICUISTS_ISN_MASK (0x07c0)
  43. #define OPSPUT_LAN_ICUISTS_ISN(x) ((x) & OPSPUT_LAN_ICUISTS_ISN_MASK)
  44. #define OPSPUT_LAN_ICUIREQ0 __reg16(OPSPUT_LAN_BASE + 0xc0004)
  45. #define OPSPUT_LAN_ICUCR1 __reg16(OPSPUT_LAN_BASE + 0xc0010)
  46. #define OPSPUT_LAN_ICUCR3 __reg16(OPSPUT_LAN_BASE + 0xc0014)
  47. #endif /* _OPSPUT_OPSPUT_LAN_H */