Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
ricoh.h File Reference

Go to the source code of this file.

Macros

#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 */
 
#define RF5C_IO_OFF(w)   (0x36+((w)<<1))
 
#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
 
#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
 
#define RF5C_CHIP_RF5C296   0x32
 
#define RF5C_CHIP_RF5C396   0xb2
 
#define RF5C_MCTL3_DISABLE   0x01 /* Disable PCMCIA interface */
 
#define RF5C_MCTL3_DMA_ENA   0x02
 
#define RL5C46X_BCR_3E0_ENA   0x0800
 
#define RL5C46X_BCR_3E2_ENA   0x1000
 
#define RL5C4XX_CONFIG   0x80 /* 16 bit */
 
#define RL5C4XX_CONFIG_IO_1_MODE   0x0200
 
#define RL5C4XX_CONFIG_IO_0_MODE   0x0100
 
#define RL5C4XX_CONFIG_PREFETCH   0x0001
 
#define RL5C4XX_MISC   0x0082 /* 16 bit */
 
#define RL5C4XX_MISC_HW_SUSPEND_ENA   0x0002
 
#define RL5C4XX_MISC_VCCEN_POL   0x0100
 
#define RL5C4XX_MISC_VPPEN_POL   0x0200
 
#define RL5C46X_MISC_SUSPEND   0x0001
 
#define RL5C46X_MISC_PWR_SAVE_2   0x0004
 
#define RL5C46X_MISC_IFACE_BUSY   0x0008
 
#define RL5C46X_MISC_B_LOCK   0x0010
 
#define RL5C46X_MISC_A_LOCK   0x0020
 
#define RL5C46X_MISC_PCI_LOCK   0x0040
 
#define RL5C47X_MISC_IFACE_BUSY   0x0004
 
#define RL5C47X_MISC_PCI_INT_MASK   0x0018
 
#define RL5C47X_MISC_PCI_INT_DIS   0x0020
 
#define RL5C47X_MISC_SUBSYS_WR   0x0040
 
#define RL5C47X_MISC_SRIRQ_ENA   0x0080
 
#define RL5C47X_MISC_5V_DISABLE   0x0400
 
#define RL5C47X_MISC_LED_POL   0x0800
 
#define RL5C4XX_16BIT_CTL   0x0084 /* 16 bit */
 
#define RL5C4XX_16CTL_IO_TIMING   0x0100
 
#define RL5C4XX_16CTL_MEM_TIMING   0x0200
 
#define RL5C46X_16CTL_LEVEL_1   0x0010
 
#define RL5C46X_16CTL_LEVEL_2   0x0020
 
#define RL5C4XX_16BIT_IO_0   0x0088 /* 16 bit */
 
#define RL5C4XX_16BIT_MEM_0   0x008a /* 16 bit */
 
#define RL5C4XX_SETUP_MASK   0x0007
 
#define RL5C4XX_SETUP_SHIFT   0
 
#define RL5C4XX_CMD_MASK   0x01f0
 
#define RL5C4XX_CMD_SHIFT   4
 
#define RL5C4XX_HOLD_MASK   0x1c00
 
#define RL5C4XX_HOLD_SHIFT   10
 
#define RL5C4XX_MISC_CONTROL   0x2F /* 8 bit */
 
#define RL5C4XX_ZV_ENABLE   0x08
 

Macro Definition Documentation

#define RF5C_CHIP_ID   0x3a /* Chip identification */

Definition at line 36 of file ricoh.h.

#define RF5C_CHIP_RF5C296   0x32

Definition at line 65 of file ricoh.h.

#define RF5C_CHIP_RF5C396   0xb2

Definition at line 66 of file ricoh.h.

#define RF5C_IO_OFF (   w)    (0x36+((w)<<1))

Definition at line 40 of file ricoh.h.

#define RF5C_MCTL3_DISABLE   0x01 /* Disable PCMCIA interface */

Definition at line 69 of file ricoh.h.

#define RF5C_MCTL3_DMA_ENA   0x02

Definition at line 70 of file ricoh.h.

#define RF5C_MODE_3STATE_BIT7   0x80

Definition at line 50 of file ricoh.h.

#define RF5C_MODE_ATA   0x01 /* ATA mode */

Definition at line 43 of file ricoh.h.

#define RF5C_MODE_CA21   0x04

Definition at line 45 of file ricoh.h.

#define RF5C_MODE_CA22   0x08

Definition at line 46 of file ricoh.h.

#define RF5C_MODE_CA23   0x10

Definition at line 47 of file ricoh.h.

#define RF5C_MODE_CA24   0x20

Definition at line 48 of file ricoh.h.

#define RF5C_MODE_CA25   0x40

Definition at line 49 of file ricoh.h.

#define RF5C_MODE_CTL   0x1f /* Mode control */

Definition at line 34 of file ricoh.h.

#define RF5C_MODE_CTL_3   0x3b /* Mode control 3 */

Definition at line 37 of file ricoh.h.

#define RF5C_MODE_LED_ENA   0x02 /* IRQ 12 is LED */

Definition at line 44 of file ricoh.h.

#define RF5C_PWR_5V_DET   0x08

Definition at line 56 of file ricoh.h.

#define RF5C_PWR_CTL   0x2f /* Mixed voltage control */

Definition at line 35 of file ricoh.h.

#define RF5C_PWR_DREQ_INPACK   0x40

Definition at line 60 of file ricoh.h.

#define RF5C_PWR_DREQ_IOIS16   0xc0

Definition at line 62 of file ricoh.h.

#define RF5C_PWR_DREQ_LOW   0x20

Definition at line 58 of file ricoh.h.

#define RF5C_PWR_DREQ_OFF   0x00 /* DREQ steering control */

Definition at line 59 of file ricoh.h.

#define RF5C_PWR_DREQ_SPKR   0x80

Definition at line 61 of file ricoh.h.

#define RF5C_PWR_INPACK_ENA   0x04

Definition at line 55 of file ricoh.h.

#define RF5C_PWR_IREQ_HIGH   0x02

Definition at line 54 of file ricoh.h.

#define RF5C_PWR_TC_SEL   0x10 /* Terminal Count: irq 11 or 15 */

Definition at line 57 of file ricoh.h.

#define RF5C_PWR_VCC_3V   0x01

Definition at line 53 of file ricoh.h.

#define RL5C46X_16CTL_LEVEL_1   0x0010

Definition at line 107 of file ricoh.h.

#define RL5C46X_16CTL_LEVEL_2   0x0020

Definition at line 108 of file ricoh.h.

#define RL5C46X_BCR_3E0_ENA   0x0800

Definition at line 75 of file ricoh.h.

#define RL5C46X_BCR_3E2_ENA   0x1000

Definition at line 76 of file ricoh.h.

#define RL5C46X_MISC_A_LOCK   0x0020

Definition at line 93 of file ricoh.h.

#define RL5C46X_MISC_B_LOCK   0x0010

Definition at line 92 of file ricoh.h.

#define RL5C46X_MISC_IFACE_BUSY   0x0008

Definition at line 91 of file ricoh.h.

#define RL5C46X_MISC_PCI_LOCK   0x0040

Definition at line 94 of file ricoh.h.

#define RL5C46X_MISC_PWR_SAVE_2   0x0004

Definition at line 90 of file ricoh.h.

#define RL5C46X_MISC_SUSPEND   0x0001

Definition at line 89 of file ricoh.h.

#define RL5C47X_MISC_5V_DISABLE   0x0400

Definition at line 100 of file ricoh.h.

#define RL5C47X_MISC_IFACE_BUSY   0x0004

Definition at line 95 of file ricoh.h.

#define RL5C47X_MISC_LED_POL   0x0800

Definition at line 101 of file ricoh.h.

#define RL5C47X_MISC_PCI_INT_DIS   0x0020

Definition at line 97 of file ricoh.h.

#define RL5C47X_MISC_PCI_INT_MASK   0x0018

Definition at line 96 of file ricoh.h.

#define RL5C47X_MISC_SRIRQ_ENA   0x0080

Definition at line 99 of file ricoh.h.

#define RL5C47X_MISC_SUBSYS_WR   0x0040

Definition at line 98 of file ricoh.h.

#define RL5C4XX_16BIT_CTL   0x0084 /* 16 bit */

Definition at line 104 of file ricoh.h.

#define RL5C4XX_16BIT_IO_0   0x0088 /* 16 bit */

Definition at line 111 of file ricoh.h.

#define RL5C4XX_16BIT_MEM_0   0x008a /* 16 bit */

Definition at line 112 of file ricoh.h.

#define RL5C4XX_16CTL_IO_TIMING   0x0100

Definition at line 105 of file ricoh.h.

#define RL5C4XX_16CTL_MEM_TIMING   0x0200

Definition at line 106 of file ricoh.h.

#define RL5C4XX_CMD_MASK   0x01f0

Definition at line 115 of file ricoh.h.

#define RL5C4XX_CMD_SHIFT   4

Definition at line 116 of file ricoh.h.

#define RL5C4XX_CONFIG   0x80 /* 16 bit */

Definition at line 79 of file ricoh.h.

#define RL5C4XX_CONFIG_IO_0_MODE   0x0100

Definition at line 81 of file ricoh.h.

#define RL5C4XX_CONFIG_IO_1_MODE   0x0200

Definition at line 80 of file ricoh.h.

#define RL5C4XX_CONFIG_PREFETCH   0x0001

Definition at line 82 of file ricoh.h.

#define RL5C4XX_HOLD_MASK   0x1c00

Definition at line 117 of file ricoh.h.

#define RL5C4XX_HOLD_SHIFT   10

Definition at line 118 of file ricoh.h.

#define RL5C4XX_MISC   0x0082 /* 16 bit */

Definition at line 85 of file ricoh.h.

#define RL5C4XX_MISC_CONTROL   0x2F /* 8 bit */

Definition at line 119 of file ricoh.h.

#define RL5C4XX_MISC_HW_SUSPEND_ENA   0x0002

Definition at line 86 of file ricoh.h.

#define RL5C4XX_MISC_VCCEN_POL   0x0100

Definition at line 87 of file ricoh.h.

#define RL5C4XX_MISC_VPPEN_POL   0x0200

Definition at line 88 of file ricoh.h.

#define RL5C4XX_SETUP_MASK   0x0007

Definition at line 113 of file ricoh.h.

#define RL5C4XX_SETUP_SHIFT   0

Definition at line 114 of file ricoh.h.

#define RL5C4XX_ZV_ENABLE   0x08

Definition at line 120 of file ricoh.h.