ricoh.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:
VxWorks
开发平台:
C/C++
- /* ricoh.h - Ricoh PCMCIA Host Bus Adaptor chip header */
- /* Copyright 1984-1996 Wind River Systems, Inc. */
- /* Copyright (c) 1994 David A. Hinds -- All Rights Reserved */
- /*
- modification history
- --------------------
- 01b,22feb96,hdn cleaned up.
- 01a,04dec95,hdn written based on David Hinds's version 2.6.3.
- */
- #ifndef __INCricohh
- #define __INCricohh
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifndef _ASMLANGUAGE
- #define RF5C_MODE_CTL 0x1f /* Mode control */
- #define RF5C_PWR_CTL 0x2f /* Mixed voltage control */
- #define RF5C_CHIP_ID 0x3a /* Chip identification */
- #define RF5C_MODE_CTL_3 0x3b /* Mode control 3 */
- /* I/O window address offset */
- #define RF5C_IO_OFF(w) (0x36+((w)<<1))
- /* Flags for RF5C_MODE_CTL */
- #define RF5C_MODE_ATA 0x01 /* ATA mode */
- #define RF5C_MODE_LED_ENA 0x02 /* IRQ 12 is LED */
- #define RF5C_MODE_CA21 0x04
- #define RF5C_MODE_CA22 0x08
- #define RF5C_MODE_CA23 0x10
- #define RF5C_MODE_CA24 0x20
- #define RF5C_MODE_CA25 0x40
- #define RF5C_MODE_3STATE_BIT7 0x80
- /* Flags for RF5C_PWR_CTL */
- #define RF5C_PWR_VCC_3V 0x01
- #define RF5C_PWR_IREQ_HIGH 0x02
- #define RF5C_PWR_INPACK_ENA 0x04
- #define RF5C_PWR_5V_DET 0x08
- #define RF5C_PWR_TC_SEL 0x10 /* Terminal Count: irq 11 or 15 */
- #define RF5C_PWR_DREQ_LOW 0x20
- #define RF5C_PWR_DREQ_OFF 0x00 /* DREQ steering control */
- #define RF5C_PWR_DREQ_INPACK 0x40
- #define RF5C_PWR_DREQ_SPKR 0x80
- #define RF5C_PWR_DREQ_IOIS16 0xc0
- /* Values for RF5C_CHIP_ID */
- #define RF5C_CHIP_RF5C296 0x32
- #define RF5C_CHIP_RF5C396 0xb2
- /* Flags for RF5C_MODE_CTL_3 */
- #define RF5C_MCTL3_DISABLE 0x01 /* Disable PCMCIA interface */
- #define RF5C_MCTL3_DMA_ENA 0x02
- #endif /* _ASMLANGUAGE */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCricohh */