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

VxWorks

开发平台:

C/C++

  1. /* cvmeSqsys3.h - Cyclone Squall Sys-3 module header */
  2. /* Copyright 1984-2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01b,26apr02,dat  Adding cplusplus protection, SPR 75017
  7. 01a,02mar93,ccc  created.
  8. */
  9. /*
  10. This file contains the configuration parameters for the Cyclone Squall Sys-3
  11. module.
  12. */
  13. #ifndef __INCcvmeSqsys3h
  14. #define __INCcvmeSqsys3h
  15. /* includes */
  16. #include "drv/scsi/ncr710.h"
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /* defines */
  21. #define INCLUDE_EI /* include 82596 driver */
  22. #undef IO_ADRS_EI
  23. #define IO_ADRS_EI ((char *) 0x000fff00) /* 32A,32D i82596CA Ethernet */
  24. #undef INT_LVL_EI
  25. #define INT_LVL_EI 0x0
  26. #undef INT_VEC_EI
  27. #define INT_VEC_EI CVME960_VEC_XINT4
  28. #define CVME960_EI_CA ((volatile UINT8 *) 0xc0000040)
  29. #define CVME960_EI_PORT ((volatile UINT8 *) 0xc0000030)
  30. #define CVME960_EI_UNUSED ((volatile UINT8 *) 0xc0000020)
  31. #define EI_SYSBUS 0x6c
  32. #define EI_POOL_ADRS NONE
  33. #undef DEFAULT_BOOT_LINE
  34. #define DEFAULT_BOOT_LINE 
  35. "ei(0,0)host:/usr/vw/config/cvme960/vxWorks h=90.0.0.3 e=90.0.0.50 u=target"
  36. /* NCR53C710 definitions */
  37. #define CVME960_SIOP_BASE_ADRS ((volatile UINT8 *) 0xc0000100)
  38. #define CVME960_SIOP_FREQ NCR710_25MHZ /* 25-37.5 MHz chip */
  39. #define CVME960_SIOP_HW_REGS { 0,0,0,0,1,0,0,1,0,0,0,0,0,0,0}
  40. #ifdef INCLUDE_SCSI_MODULE /* change FALSE to TRUE for SCSI interface */
  41. #define INCLUDE_SCSI /* include wd33c93 SCSI interface */
  42. #define INCLUDE_SCSI_BOOT /* include ability to boot from SCSI */
  43. #define INCLUDE_DOSFS /* file system to be used */
  44. #define INT_VEC_SCSI CVME960_VEC_XINT3
  45. #define INCLUDE_SCSI_DMA
  46. #endif /* INCLUDE_SCSI_MODULE */
  47. /*
  48.  * 0xc0000010 is the Squall module status register on a read,
  49.  * and the SCSI bus reset control register on a write.
  50.  */
  51. #define SQ_STATUS_REG ((volatile unsigned char *) 0xc0000010)
  52. #define SCSI_BUS_RESET_CTRL SQ_STATUS_REG
  53. /* bit definitions of status register (0xc0000010) - bits are active low */
  54. #define SCSI_BUS_RESET_BIT 2
  55. #define SCSI_IRQ_BIT 1
  56. #define SCC_IRQ_BIT 0
  57. /* writes to SCSI_BUS_RESET_CTRL - assert/deassert RST* */
  58. #define ASSERT_SCSI_BUS_RESET 0x06
  59. #define DEASSERT_SCSI_BUS_RESET 0x02
  60. #define CLEAR_SCSI_RESET_IRQ 0x00
  61. /* SCSI DMA channel */
  62. #define SCSI_DMA_CHANNEL 0
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66. #endif /* __INCcvmeSqsys3h */