mz7120sp4.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:4k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* mz7120sp4.h - header file for Mizar mz7120 sp4 daughter board. */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01f,22sep92,rrr  added support for c++
  7. 01e,26may92,rrr  the tree shuffle
  8. 01d,04oct91,rrr  passed through the ansification filter
  9.   -changed copyright notice
  10. 01c,05oct90,shl  added copyright notice.
  11.                  made #endif ANSI style.
  12. 01b,29apr88,gae  added definition of INCmz7120sp4h and include m68230.h.
  13. 01a,06jan88,miz  written.
  14. */
  15. /*
  16. This file contains I/O address and related constants
  17. for the Mizar mz7120 sp4 daughter board.
  18. */
  19. #ifndef __INCmz7120sp4h
  20. #define __INCmz7120sp4h
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. /* equates for m68681 serial channel - for more explanation see m68681.h, */
  25. /* which must be included in any file which also includes this file  */
  26. #define MZ_68681_BASE ((char *) 0xfe000000)
  27. #define DUART_MRA (MZ_68681_BASE + 0x03) /* mode reg. A */
  28. #define DUART_CSRA (MZ_68681_BASE + 0x07) /* clock select reg. A */
  29. #define DUART_SRA DUART_CSRA /* status reg. A */
  30. #define DUART_CRA (MZ_68681_BASE + 0x0b) /* command reg. A */
  31. #define DUART_THRA (MZ_68681_BASE + 0x0f) /* transmit buffer A */
  32. #define DUART_RHRA DUART_THRA /* receive buffer A */
  33. #define DUART_ACR (MZ_68681_BASE + 0x13) /* auxiliary control reg. */
  34. #define DUART_IPCR DUART_ACR /* input port change reg. */
  35. #define DUART_IMR (MZ_68681_BASE + 0x17) /* int. mask reg. */
  36. #define DUART_ISR DUART_IMR /* int. status reg. */
  37. #define DUART_CTUR (MZ_68681_BASE + 0x1b) /* counter timer upper reg. */
  38. #define DUART_CTLR (MZ_68681_BASE + 0x1f) /* counter timer lower reg. */
  39. #define DUART_MRB (MZ_68681_BASE + 0x23) /* mode reg. B */
  40. #define DUART_CSRB (MZ_68681_BASE + 0x27) /* clock select reg. B */
  41. #define DUART_SRB DUART_CSRB /* status reg. B */
  42. #define DUART_CRB (MZ_68681_BASE + 0x2b) /* command reg. B */
  43. #define DUART_THRB (MZ_68681_BASE + 0x2f) /* transmit buffer B */
  44. #define DUART_RHRB DUART_THRB /* receive buffer B */
  45. #define DUART_IVR (MZ_68681_BASE + 0x33) /* int. vector reg. */
  46. #define DUART_OPCR (MZ_68681_BASE + 0x37) /* output port config. reg. */
  47. #define DUART_IP DUART_OPCR /* input port */
  48. #define DUART_SOPBC (MZ_68681_BASE + 0x3b) /* set output port bits */
  49. #define DUART_CTRON DUART_SOPBC /* counter on */
  50. #define DUART_ROPBC (MZ_68681_BASE + 0x3f) /* reset output port bits */
  51. #define DUART_CTROFF DUART_ROPBC /* counter off */
  52. /* end of equates for m68681 */
  53. /* equates for m68230 pi/t channel - for more explanation see m68230.h,  */
  54. /* which must be included in any file which also includes this file */
  55. #define MZ_68230_BASE ((char *) 0xfe000080)
  56. #define PIT_PGCR (MZ_68230_BASE + 0x83) /* port general control reg. */
  57. #define PIT_PSRR (MZ_68230_BASE + 0x87) /* port service request reg. */
  58. #define PIT_PADDR (MZ_68230_BASE + 0x8b) /* port A data direction reg. */
  59. #define PIT_PBDDR (MZ_68230_BASE + 0x8f) /* port B data direction reg. */
  60. #define PIT_PCDDR (MZ_68230_BASE + 0x93) /* port C data direction reg. */
  61. #define PIT_PIVR (MZ_68230_BASE + 0x97) /* port int. vector reg. */
  62. #define PIT_PACR (MZ_68230_BASE + 0x9b) /* port A control reg. */
  63. #define PIT_PBCR (MZ_68230_BASE + 0x9f) /* port B control reg. */
  64. #define PIT_PADR (MZ_68230_BASE + 0xa3) /* port A data reg. */
  65. #define PIT_PBDR (MZ_68230_BASE + 0xa7) /* port B data reg. */
  66. #define PIT_PAAR (MZ_68230_BASE + 0xab) /* port A alternate reg. */
  67. #define PIT_PBAR (MZ_68230_BASE + 0xaf) /* port B alternate reg. */
  68. #define PIT_PCDR (MZ_68230_BASE + 0xb3) /* port C data reg. */
  69. #define PIT_PSR (MZ_68230_BASE + 0xb7) /* port status reg. */
  70. #define PIT_TCR (MZ_68230_BASE + 0xc3) /* timer control reg. */
  71. #define PIT_TIVR (MZ_68230_BASE + 0xc7) /* timer int. vector reg. */
  72. #define PIT_CPRHB (MZ_68230_BASE + 0xcf) /* ctr. preload reg. - MSB */
  73. #define PIT_CPRMB (MZ_68230_BASE + 0xd3) /* ctr. preload reg. - MB */
  74. #define PIT_CPRLB (MZ_68230_BASE + 0xd7) /* ctr. preload reg. - LSB */
  75. #define PIT_CRHB (MZ_68230_BASE + 0xdf) /* counter reg. - high byte */
  76. #define PIT_CRMB (MZ_68230_BASE + 0xe3) /* counter reg. - middle byte */
  77. #define PIT_CRLB (MZ_68230_BASE + 0xe7) /* counter reg. - low byte */
  78. #define PIT_TSR (MZ_68230_BASE + 0xeb) /* timer status reg. */
  79. /* end of equates for m68230 */
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83. #endif /* __INCmz7120sp4h */