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

VxWorks

开发平台:

C/C++

  1. /* ricoh.h - Ricoh PCMCIA Host Bus Adaptor chip header */
  2. /* Copyright 1984-1996 Wind River Systems, Inc. */
  3. /* Copyright (c) 1994 David A. Hinds -- All Rights Reserved */
  4. /*
  5. modification history
  6. --------------------
  7. 01b,22feb96,hdn  cleaned up.
  8. 01a,04dec95,hdn  written based on David Hinds's version 2.6.3.
  9. */
  10. #ifndef __INCricohh
  11. #define __INCricohh
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #ifndef _ASMLANGUAGE
  16. #define RF5C_MODE_CTL 0x1f /* Mode control */
  17. #define RF5C_PWR_CTL 0x2f /* Mixed voltage control */
  18. #define RF5C_CHIP_ID 0x3a /* Chip identification */
  19. #define RF5C_MODE_CTL_3 0x3b /* Mode control 3 */
  20. /* I/O window address offset */
  21. #define RF5C_IO_OFF(w) (0x36+((w)<<1))
  22. /* Flags for RF5C_MODE_CTL */
  23. #define RF5C_MODE_ATA 0x01 /* ATA mode */
  24. #define RF5C_MODE_LED_ENA 0x02 /* IRQ 12 is LED */
  25. #define RF5C_MODE_CA21 0x04
  26. #define RF5C_MODE_CA22 0x08
  27. #define RF5C_MODE_CA23 0x10
  28. #define RF5C_MODE_CA24 0x20
  29. #define RF5C_MODE_CA25 0x40
  30. #define RF5C_MODE_3STATE_BIT7 0x80
  31. /* Flags for RF5C_PWR_CTL */
  32. #define RF5C_PWR_VCC_3V 0x01
  33. #define RF5C_PWR_IREQ_HIGH 0x02
  34. #define RF5C_PWR_INPACK_ENA 0x04
  35. #define RF5C_PWR_5V_DET 0x08
  36. #define RF5C_PWR_TC_SEL 0x10 /* Terminal Count: irq 11 or 15 */
  37. #define RF5C_PWR_DREQ_LOW 0x20
  38. #define RF5C_PWR_DREQ_OFF 0x00 /* DREQ steering control */
  39. #define RF5C_PWR_DREQ_INPACK 0x40
  40. #define RF5C_PWR_DREQ_SPKR 0x80
  41. #define RF5C_PWR_DREQ_IOIS16 0xc0
  42. /* Values for RF5C_CHIP_ID */
  43. #define RF5C_CHIP_RF5C296 0x32
  44. #define RF5C_CHIP_RF5C396 0xb2
  45. /* Flags for RF5C_MODE_CTL_3 */
  46. #define RF5C_MCTL3_DISABLE 0x01 /* Disable PCMCIA interface */
  47. #define RF5C_MCTL3_DMA_ENA 0x02
  48. #endif /* _ASMLANGUAGE */
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif /* __INCricohh */