Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
vrc4173_cardu.h File Reference
#include <linux/pci.h>
#include <pcmcia/ss.h>

Go to the source code of this file.

Data Structures

struct  vrc4173_socket
 

Macros

#define CARDU_MAX_SOCKETS   2
 
#define CARDU1   0
 
#define CARDU2   1
 
#define BRGCNT   0x3e
 
#define POST_WR_EN   0x0400
 
#define MEM1_PREF_EN   0x0200
 
#define MEM0_PREF_EN   0x0100
 
#define IREQ_INT   0x0080
 
#define CARD_RST   0x0040
 
#define MABORT_MODE   0x0020
 
#define VGA_EN   0x0008
 
#define ISA_EN   0x0004
 
#define SERR_EN   0x0002
 
#define PERR_EN   0x0001
 
#define SYSCNT   0x80
 
#define BAD_VCC_REQ_DISB   0x00200000
 
#define PCPCI_EN   0x00080000
 
#define CH_ASSIGN_MASK   0x00070000
 
#define CH_ASSIGN_NODMA   0x00040000
 
#define SUB_ID_WR_EN   0x00000008
 
#define ASYN_INT_MODE   0x00000004
 
#define PCI_CLK_RIN   0x00000002
 
#define DEVCNT   0x91
 
#define ZOOM_VIDEO_EN   0x40
 
#define SR_PCI_INT_SEL_MASK   0x18
 
#define SR_PCI_INT_SEL_NONE   0x00
 
#define PCI_INT_MODE   0x04
 
#define IRQ_MODE   0x02
 
#define IFG   0x01
 
#define CHIPCNT   0x9c
 
#define S_PREF_DISB   0x10
 
#define SERRDIS   0x9f
 
#define SERR_DIS_MAB   0x10
 
#define SERR_DIS_TAB   0x08
 
#define SERR_DIS_DT_PERR   0x04
 
#define EXCA_REGS_BASE   0x800
 
#define EXCA_REGS_SIZE   0x800
 
#define ID_REV   0x000
 
#define IF_TYPE_16BIT   0x80
 
#define IF_STATUS   0x001
 
#define CARD_PWR   0x40
 
#define READY   0x20
 
#define CARD_WP   0x10
 
#define CARD_DETECT2   0x08
 
#define CARD_DETECT1   0x04
 
#define BV_DETECT_MASK   0x03
 
#define BV_DETECT_GOOD   0x03 /* Memory card */
 
#define BV_DETECT_WARN   0x02
 
#define BV_DETECT_BAD1   0x01
 
#define BV_DETECT_BAD0   0x00
 
#define STSCHG   0x02 /* I/O card */
 
#define SPKR   0x01
 
#define PWR_CNT   0x002
 
#define CARD_OUT_EN   0x80
 
#define VCC_MASK   0x18
 
#define VCC_3V   0x18
 
#define VCC_5V   0x10
 
#define VCC_0V   0x00
 
#define VPP_MASK   0x03
 
#define VPP_12V   0x02
 
#define VPP_VCC   0x01
 
#define VPP_0V   0x00
 
#define INT_GEN_CNT   0x003
 
#define CARD_REST0   0x40
 
#define CARD_TYPE_MASK   0x20
 
#define CARD_TYPE_IO   0x20
 
#define CARD_TYPE_MEM   0x00
 
#define CARD_SC   0x004
 
#define CARD_DT_CHG   0x08
 
#define RDY_CHG   0x04
 
#define BAT_WAR_CHG   0x02
 
#define BAT_DEAD_ST_CHG   0x01
 
#define CARD_SCI   0x005
 
#define CARD_DT_EN   0x08
 
#define RDY_EN   0x04
 
#define BAT_WAR_EN   0x02
 
#define BAT_DEAD_EN   0x01
 
#define ADR_WIN_EN   0x006
 
#define IO_WIN_EN(x)   (0x40 << (x))
 
#define MEM_WIN_EN(x)   (0x01 << (x))
 
#define IO_WIN_CNT   0x007
 
#define IO_WIN_CNT_MASK(x)   (0x03 << ((x) << 2))
 
#define IO_WIN_DATA_AUTOSZ(x)   (0x02 << ((x) << 2))
 
#define IO_WIN_DATA_16BIT(x)   (0x01 << ((x) << 2))
 
#define IO_WIN_SA(x)   (0x008 + ((x) << 2))
 
#define IO_WIN_EA(x)   (0x00a + ((x) << 2))
 
#define MEM_WIN_SA(x)   (0x010 + ((x) << 3))
 
#define MEM_WIN_DSIZE   0x8000
 
#define MEM_WIN_EA(x)   (0x012 + ((x) << 3))
 
#define MEM_WIN_OA(x)   (0x014 + ((x) << 3))
 
#define MEM_WIN_WP   0x8000
 
#define MEM_WIN_REGSET   0x4000
 
#define GEN_CNT   0x016
 
#define VS2_STATUS   0x80
 
#define VS1_STATUS   0x40
 
#define EXCA_REG_RST_EN   0x02
 
#define GLO_CNT   0x01e
 
#define FUN_INT_LEV   0x08
 
#define INT_WB_CLR   0x04
 
#define CSC_INT_LEV   0x02
 
#define IO_WIN_OAL(x)   (0x036 + ((x) << 1))
 
#define IO_WIN_OAH(x)   (0x037 + ((x) << 1))
 
#define MEM_WIN_SAU(x)   (0x040 + (x))
 
#define IO_SETUP_TIM   0x080
 
#define IO_CMD_TIM   0x081
 
#define IO_HOLD_TIM   0x082
 
#define MEM_SETUP_TIM(x)   (0x084 + ((x) << 2))
 
#define MEM_CMD_TIM(x)   (0x085 + ((x) << 2))
 
#define MEM_HOLD_TIM(x)   (0x086 + ((x) << 2))
 
#define TIM_CLOCKS(x)   ((x) - 1)
 
#define MEM_TIM_SEL1   0x08c
 
#define MEM_TIM_SEL2   0x08d
 
#define MEM_WIN_TIMSEL1(x)   (0x03 << (((x) & 3) << 1))
 
#define MEM_WIN_PWEN   0x091
 
#define POSTWEN   0x01
 
#define CARDBUS_SOCKET_REGS_BASE   0x000
 
#define CARDBUS_SOCKET_REGS_SIZE   0x800
 
#define SKT_EV   0x000
 
#define POW_CYC_EV   0x00000008
 
#define CCD2_EV   0x00000004
 
#define CCD1_EV   0x00000002
 
#define CSTSCHG_EV   0x00000001
 
#define SKT_MASK   0x004
 
#define POW_CYC_MASK   0x00000008
 
#define CCD_MASK   0x00000006
 
#define CSC_MASK   0x00000001
 
#define SKT_PRE_STATE   0x008
 
#define SKT_FORCE_EV   0x00c
 
#define VOL_3V_SKT   0x20000000
 
#define VOL_5V_SKT   0x10000000
 
#define CVS_TEST   0x00004000
 
#define VOL_YV_CARD_DT   0x00002000
 
#define VOL_XV_CARD_DT   0x00001000
 
#define VOL_3V_CARD_DT   0x00000800
 
#define VOL_5V_CARD_DT   0x00000400
 
#define BAD_VCC_REQ   0x00000200
 
#define DATA_LOST   0x00000100
 
#define NOT_A_CARD   0x00000080
 
#define CREADY   0x00000040
 
#define CB_CARD_DT   0x00000020
 
#define R2_CARD_DT   0x00000010
 
#define POW_UP   0x00000008
 
#define CCD20   0x00000004
 
#define CCD10   0x00000002
 
#define CSTSCHG   0x00000001
 
#define SKT_CNT   0x010
 
#define STP_CLK_EN   0x00000080
 
#define VCC_CNT_MASK   0x00000070
 
#define VCC_CNT_3V   0x00000030
 
#define VCC_CNT_5V   0x00000020
 
#define VCC_CNT_0V   0x00000000
 
#define VPP_CNT_MASK   0x00000007
 
#define VPP_CNT_3V   0x00000003
 
#define VPP_CNT_5V   0x00000002
 
#define VPP_CNT_12V   0x00000001
 
#define VPP_CNT_0V   0x00000000
 

Typedefs

typedef struct vrc4173_socket vrc4173_socket_t
 

Macro Definition Documentation

#define ADR_WIN_EN   0x006

Definition at line 133 of file vrc4173_cardu.h.

#define ASYN_INT_MODE   0x00000004

Definition at line 62 of file vrc4173_cardu.h.

#define BAD_VCC_REQ   0x00000200

Definition at line 210 of file vrc4173_cardu.h.

#define BAD_VCC_REQ_DISB   0x00200000

Definition at line 57 of file vrc4173_cardu.h.

#define BAT_DEAD_EN   0x01

Definition at line 131 of file vrc4173_cardu.h.

#define BAT_DEAD_ST_CHG   0x01

Definition at line 125 of file vrc4173_cardu.h.

#define BAT_WAR_CHG   0x02

Definition at line 124 of file vrc4173_cardu.h.

#define BAT_WAR_EN   0x02

Definition at line 130 of file vrc4173_cardu.h.

#define BRGCNT   0x3e

Definition at line 44 of file vrc4173_cardu.h.

#define BV_DETECT_BAD0   0x00

Definition at line 100 of file vrc4173_cardu.h.

#define BV_DETECT_BAD1   0x01

Definition at line 99 of file vrc4173_cardu.h.

#define BV_DETECT_GOOD   0x03 /* Memory card */

Definition at line 97 of file vrc4173_cardu.h.

#define BV_DETECT_MASK   0x03

Definition at line 96 of file vrc4173_cardu.h.

#define BV_DETECT_WARN   0x02

Definition at line 98 of file vrc4173_cardu.h.

#define CARD_DETECT1   0x04

Definition at line 95 of file vrc4173_cardu.h.

#define CARD_DETECT2   0x08

Definition at line 94 of file vrc4173_cardu.h.

#define CARD_DT_CHG   0x08

Definition at line 122 of file vrc4173_cardu.h.

#define CARD_DT_EN   0x08

Definition at line 128 of file vrc4173_cardu.h.

#define CARD_OUT_EN   0x80

Definition at line 105 of file vrc4173_cardu.h.

#define CARD_PWR   0x40

Definition at line 91 of file vrc4173_cardu.h.

#define CARD_REST0   0x40

Definition at line 116 of file vrc4173_cardu.h.

#define CARD_RST   0x0040

Definition at line 49 of file vrc4173_cardu.h.

#define CARD_SC   0x004

Definition at line 121 of file vrc4173_cardu.h.

#define CARD_SCI   0x005

Definition at line 127 of file vrc4173_cardu.h.

#define CARD_TYPE_IO   0x20

Definition at line 118 of file vrc4173_cardu.h.

#define CARD_TYPE_MASK   0x20

Definition at line 117 of file vrc4173_cardu.h.

#define CARD_TYPE_MEM   0x00

Definition at line 119 of file vrc4173_cardu.h.

#define CARD_WP   0x10

Definition at line 93 of file vrc4173_cardu.h.

#define CARDBUS_SOCKET_REGS_BASE   0x000

Definition at line 187 of file vrc4173_cardu.h.

#define CARDBUS_SOCKET_REGS_SIZE   0x800

Definition at line 188 of file vrc4173_cardu.h.

#define CARDU1   0

Definition at line 38 of file vrc4173_cardu.h.

#define CARDU2   1

Definition at line 39 of file vrc4173_cardu.h.

#define CARDU_MAX_SOCKETS   2

Definition at line 37 of file vrc4173_cardu.h.

#define CB_CARD_DT   0x00000020

Definition at line 214 of file vrc4173_cardu.h.

#define CCD10   0x00000002

Definition at line 218 of file vrc4173_cardu.h.

#define CCD1_EV   0x00000002

Definition at line 193 of file vrc4173_cardu.h.

#define CCD20   0x00000004

Definition at line 217 of file vrc4173_cardu.h.

#define CCD2_EV   0x00000004

Definition at line 192 of file vrc4173_cardu.h.

#define CCD_MASK   0x00000006

Definition at line 198 of file vrc4173_cardu.h.

#define CH_ASSIGN_MASK   0x00070000

Definition at line 59 of file vrc4173_cardu.h.

#define CH_ASSIGN_NODMA   0x00040000

Definition at line 60 of file vrc4173_cardu.h.

#define CHIPCNT   0x9c

Definition at line 73 of file vrc4173_cardu.h.

#define CREADY   0x00000040

Definition at line 213 of file vrc4173_cardu.h.

#define CSC_INT_LEV   0x02

Definition at line 162 of file vrc4173_cardu.h.

#define CSC_MASK   0x00000001

Definition at line 199 of file vrc4173_cardu.h.

#define CSTSCHG   0x00000001

Definition at line 219 of file vrc4173_cardu.h.

#define CSTSCHG_EV   0x00000001

Definition at line 194 of file vrc4173_cardu.h.

#define CVS_TEST   0x00004000

Definition at line 205 of file vrc4173_cardu.h.

#define DATA_LOST   0x00000100

Definition at line 211 of file vrc4173_cardu.h.

#define DEVCNT   0x91

Definition at line 65 of file vrc4173_cardu.h.

#define EXCA_REG_RST_EN   0x02

Definition at line 157 of file vrc4173_cardu.h.

#define EXCA_REGS_BASE   0x800

Definition at line 84 of file vrc4173_cardu.h.

#define EXCA_REGS_SIZE   0x800

Definition at line 85 of file vrc4173_cardu.h.

#define FUN_INT_LEV   0x08

Definition at line 160 of file vrc4173_cardu.h.

#define GEN_CNT   0x016

Definition at line 154 of file vrc4173_cardu.h.

#define GLO_CNT   0x01e

Definition at line 159 of file vrc4173_cardu.h.

#define ID_REV   0x000

Definition at line 87 of file vrc4173_cardu.h.

#define IF_STATUS   0x001

Definition at line 90 of file vrc4173_cardu.h.

#define IF_TYPE_16BIT   0x80

Definition at line 88 of file vrc4173_cardu.h.

#define IFG   0x01

Definition at line 71 of file vrc4173_cardu.h.

#define INT_GEN_CNT   0x003

Definition at line 115 of file vrc4173_cardu.h.

#define INT_WB_CLR   0x04

Definition at line 161 of file vrc4173_cardu.h.

#define IO_CMD_TIM   0x081

Definition at line 170 of file vrc4173_cardu.h.

#define IO_HOLD_TIM   0x082

Definition at line 171 of file vrc4173_cardu.h.

#define IO_SETUP_TIM   0x080

Definition at line 169 of file vrc4173_cardu.h.

#define IO_WIN_CNT   0x007

Definition at line 137 of file vrc4173_cardu.h.

#define IO_WIN_CNT_MASK (   x)    (0x03 << ((x) << 2))

Definition at line 138 of file vrc4173_cardu.h.

#define IO_WIN_DATA_16BIT (   x)    (0x01 << ((x) << 2))

Definition at line 140 of file vrc4173_cardu.h.

#define IO_WIN_DATA_AUTOSZ (   x)    (0x02 << ((x) << 2))

Definition at line 139 of file vrc4173_cardu.h.

#define IO_WIN_EA (   x)    (0x00a + ((x) << 2))

Definition at line 143 of file vrc4173_cardu.h.

#define IO_WIN_EN (   x)    (0x40 << (x))

Definition at line 134 of file vrc4173_cardu.h.

#define IO_WIN_OAH (   x)    (0x037 + ((x) << 1))

Definition at line 165 of file vrc4173_cardu.h.

#define IO_WIN_OAL (   x)    (0x036 + ((x) << 1))

Definition at line 164 of file vrc4173_cardu.h.

#define IO_WIN_SA (   x)    (0x008 + ((x) << 2))

Definition at line 142 of file vrc4173_cardu.h.

#define IREQ_INT   0x0080

Definition at line 48 of file vrc4173_cardu.h.

#define IRQ_MODE   0x02

Definition at line 70 of file vrc4173_cardu.h.

#define ISA_EN   0x0004

Definition at line 52 of file vrc4173_cardu.h.

#define MABORT_MODE   0x0020

Definition at line 50 of file vrc4173_cardu.h.

#define MEM0_PREF_EN   0x0100

Definition at line 47 of file vrc4173_cardu.h.

#define MEM1_PREF_EN   0x0200

Definition at line 46 of file vrc4173_cardu.h.

#define MEM_CMD_TIM (   x)    (0x085 + ((x) << 2))

Definition at line 173 of file vrc4173_cardu.h.

#define MEM_HOLD_TIM (   x)    (0x086 + ((x) << 2))

Definition at line 174 of file vrc4173_cardu.h.

#define MEM_SETUP_TIM (   x)    (0x084 + ((x) << 2))

Definition at line 172 of file vrc4173_cardu.h.

#define MEM_TIM_SEL1   0x08c

Definition at line 177 of file vrc4173_cardu.h.

#define MEM_TIM_SEL2   0x08d

Definition at line 178 of file vrc4173_cardu.h.

#define MEM_WIN_DSIZE   0x8000

Definition at line 146 of file vrc4173_cardu.h.

#define MEM_WIN_EA (   x)    (0x012 + ((x) << 3))

Definition at line 148 of file vrc4173_cardu.h.

#define MEM_WIN_EN (   x)    (0x01 << (x))

Definition at line 135 of file vrc4173_cardu.h.

#define MEM_WIN_OA (   x)    (0x014 + ((x) << 3))

Definition at line 150 of file vrc4173_cardu.h.

#define MEM_WIN_PWEN   0x091

Definition at line 181 of file vrc4173_cardu.h.

#define MEM_WIN_REGSET   0x4000

Definition at line 152 of file vrc4173_cardu.h.

#define MEM_WIN_SA (   x)    (0x010 + ((x) << 3))

Definition at line 145 of file vrc4173_cardu.h.

#define MEM_WIN_SAU (   x)    (0x040 + (x))

Definition at line 167 of file vrc4173_cardu.h.

#define MEM_WIN_TIMSEL1 (   x)    (0x03 << (((x) & 3) << 1))

Definition at line 179 of file vrc4173_cardu.h.

#define MEM_WIN_WP   0x8000

Definition at line 151 of file vrc4173_cardu.h.

#define NOT_A_CARD   0x00000080

Definition at line 212 of file vrc4173_cardu.h.

#define PCI_CLK_RIN   0x00000002

Definition at line 63 of file vrc4173_cardu.h.

#define PCI_INT_MODE   0x04

Definition at line 69 of file vrc4173_cardu.h.

#define PCPCI_EN   0x00080000

Definition at line 58 of file vrc4173_cardu.h.

#define PERR_EN   0x0001

Definition at line 54 of file vrc4173_cardu.h.

#define POST_WR_EN   0x0400

Definition at line 45 of file vrc4173_cardu.h.

#define POSTWEN   0x01

Definition at line 182 of file vrc4173_cardu.h.

#define POW_CYC_EV   0x00000008

Definition at line 191 of file vrc4173_cardu.h.

#define POW_CYC_MASK   0x00000008

Definition at line 197 of file vrc4173_cardu.h.

#define POW_UP   0x00000008

Definition at line 216 of file vrc4173_cardu.h.

#define PWR_CNT   0x002

Definition at line 104 of file vrc4173_cardu.h.

#define R2_CARD_DT   0x00000010

Definition at line 215 of file vrc4173_cardu.h.

#define RDY_CHG   0x04

Definition at line 123 of file vrc4173_cardu.h.

#define RDY_EN   0x04

Definition at line 129 of file vrc4173_cardu.h.

#define READY   0x20

Definition at line 92 of file vrc4173_cardu.h.

#define S_PREF_DISB   0x10

Definition at line 74 of file vrc4173_cardu.h.

#define SERR_DIS_DT_PERR   0x04

Definition at line 79 of file vrc4173_cardu.h.

#define SERR_DIS_MAB   0x10

Definition at line 77 of file vrc4173_cardu.h.

#define SERR_DIS_TAB   0x08

Definition at line 78 of file vrc4173_cardu.h.

#define SERR_EN   0x0002

Definition at line 53 of file vrc4173_cardu.h.

#define SERRDIS   0x9f

Definition at line 76 of file vrc4173_cardu.h.

#define SKT_CNT   0x010

Definition at line 221 of file vrc4173_cardu.h.

#define SKT_EV   0x000

Definition at line 190 of file vrc4173_cardu.h.

#define SKT_FORCE_EV   0x00c

Definition at line 202 of file vrc4173_cardu.h.

#define SKT_MASK   0x004

Definition at line 196 of file vrc4173_cardu.h.

#define SKT_PRE_STATE   0x008

Definition at line 201 of file vrc4173_cardu.h.

#define SPKR   0x01

Definition at line 102 of file vrc4173_cardu.h.

#define SR_PCI_INT_SEL_MASK   0x18

Definition at line 67 of file vrc4173_cardu.h.

#define SR_PCI_INT_SEL_NONE   0x00

Definition at line 68 of file vrc4173_cardu.h.

#define STP_CLK_EN   0x00000080

Definition at line 222 of file vrc4173_cardu.h.

#define STSCHG   0x02 /* I/O card */

Definition at line 101 of file vrc4173_cardu.h.

#define SUB_ID_WR_EN   0x00000008

Definition at line 61 of file vrc4173_cardu.h.

#define SYSCNT   0x80

Definition at line 56 of file vrc4173_cardu.h.

#define TIM_CLOCKS (   x)    ((x) - 1)

Definition at line 175 of file vrc4173_cardu.h.

#define VCC_0V   0x00

Definition at line 109 of file vrc4173_cardu.h.

#define VCC_3V   0x18

Definition at line 107 of file vrc4173_cardu.h.

#define VCC_5V   0x10

Definition at line 108 of file vrc4173_cardu.h.

#define VCC_CNT_0V   0x00000000

Definition at line 226 of file vrc4173_cardu.h.

#define VCC_CNT_3V   0x00000030

Definition at line 224 of file vrc4173_cardu.h.

#define VCC_CNT_5V   0x00000020

Definition at line 225 of file vrc4173_cardu.h.

#define VCC_CNT_MASK   0x00000070

Definition at line 223 of file vrc4173_cardu.h.

#define VCC_MASK   0x18

Definition at line 106 of file vrc4173_cardu.h.

#define VGA_EN   0x0008

Definition at line 51 of file vrc4173_cardu.h.

#define VOL_3V_CARD_DT   0x00000800

Definition at line 208 of file vrc4173_cardu.h.

#define VOL_3V_SKT   0x20000000

Definition at line 203 of file vrc4173_cardu.h.

#define VOL_5V_CARD_DT   0x00000400

Definition at line 209 of file vrc4173_cardu.h.

#define VOL_5V_SKT   0x10000000

Definition at line 204 of file vrc4173_cardu.h.

#define VOL_XV_CARD_DT   0x00001000

Definition at line 207 of file vrc4173_cardu.h.

#define VOL_YV_CARD_DT   0x00002000

Definition at line 206 of file vrc4173_cardu.h.

#define VPP_0V   0x00

Definition at line 113 of file vrc4173_cardu.h.

#define VPP_12V   0x02

Definition at line 111 of file vrc4173_cardu.h.

#define VPP_CNT_0V   0x00000000

Definition at line 231 of file vrc4173_cardu.h.

#define VPP_CNT_12V   0x00000001

Definition at line 230 of file vrc4173_cardu.h.

#define VPP_CNT_3V   0x00000003

Definition at line 228 of file vrc4173_cardu.h.

#define VPP_CNT_5V   0x00000002

Definition at line 229 of file vrc4173_cardu.h.

#define VPP_CNT_MASK   0x00000007

Definition at line 227 of file vrc4173_cardu.h.

#define VPP_MASK   0x03

Definition at line 110 of file vrc4173_cardu.h.

#define VPP_VCC   0x01

Definition at line 112 of file vrc4173_cardu.h.

#define VS1_STATUS   0x40

Definition at line 156 of file vrc4173_cardu.h.

#define VS2_STATUS   0x80

Definition at line 155 of file vrc4173_cardu.h.

#define ZOOM_VIDEO_EN   0x40

Definition at line 66 of file vrc4173_cardu.h.

Typedef Documentation