i82365.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _LINUX_I82365_H
00018 #define _LINUX_I82365_H
00019
00020
00021
00022
00023 #define I365_IDENT 0x00
00024 #define I365_STATUS 0x01
00025 #define I365_POWER 0x02
00026 #define I365_INTCTL 0x03
00027 #define I365_CSC 0x04
00028 #define I365_CSCINT 0x05
00029 #define I365_ADDRWIN 0x06
00030 #define I365_IOCTL 0x07
00031 #define I365_GENCTL 0x16
00032 #define I365_GBLCTL 0x1E
00033
00034
00035 #define I365_IO(map) (0x08+((map)<<2))
00036 #define I365_MEM(map) (0x10+((map)<<3))
00037 #define I365_W_START 0
00038 #define I365_W_STOP 2
00039 #define I365_W_OFF 4
00040
00041
00042 #define I365_CS_BVD1 0x01
00043 #define I365_CS_STSCHG 0x01
00044 #define I365_CS_BVD2 0x02
00045 #define I365_CS_SPKR 0x02
00046 #define I365_CS_DETECT 0x0C
00047 #define I365_CS_WRPROT 0x10
00048 #define I365_CS_READY 0x20
00049 #define I365_CS_POWERON 0x40
00050 #define I365_CS_GPI 0x80
00051
00052
00053 #define I365_PWR_OFF 0x00
00054 #define I365_PWR_OUT 0x80
00055 #define I365_PWR_NORESET 0x40
00056 #define I365_PWR_AUTO 0x20
00057 #define I365_VCC_MASK 0x18
00058
00059
00060
00061 #define I365_VCC_5V 0x10
00062 #define I365_VCC_3V 0x18
00063 #define I365_VPP2_MASK 0x0c
00064 #define I365_VPP2_5V 0x04
00065 #define I365_VPP2_12V 0x08
00066 #define I365_VPP1_MASK 0x03
00067 #define I365_VPP1_5V 0x01
00068 #define I365_VPP1_12V 0x02
00069
00070
00071 #define I365_RING_ENA 0x80
00072 #define I365_PC_RESET 0x40
00073 #define I365_PC_IOCARD 0x20
00074 #define I365_INTR_ENA 0x10
00075 #define I365_IRQ_MASK 0x0F
00076
00077
00078 #define I365_CSC_BVD1 0x01
00079 #define I365_CSC_STSCHG 0x01
00080 #define I365_CSC_BVD2 0x02
00081 #define I365_CSC_READY 0x04
00082 #define I365_CSC_DETECT 0x08
00083 #define I365_CSC_ANY 0x0F
00084 #define I365_CSC_GPI 0x10
00085
00086
00087 #define I365_ENA_IO(map) (0x40 << (map))
00088 #define I365_ENA_MEM(map) (0x01 << (map))
00089
00090
00091 #define I365_IOCTL_MASK(map) (0x0F << (map<<2))
00092 #define I365_IOCTL_WAIT(map) (0x08 << (map<<2))
00093 #define I365_IOCTL_0WS(map) (0x04 << (map<<2))
00094 #define I365_IOCTL_IOCS16(map) (0x02 << (map<<2))
00095 #define I365_IOCTL_16BIT(map) (0x01 << (map<<2))
00096
00097
00098 #define I365_CTL_16DELAY 0x01
00099 #define I365_CTL_RESET 0x02
00100 #define I365_CTL_GPI_ENA 0x04
00101 #define I365_CTL_GPI_CTL 0x08
00102 #define I365_CTL_RESUME 0x10
00103 #define I365_CTL_SW_IRQ 0x20
00104
00105
00106 #define I365_GBL_PWRDOWN 0x01
00107 #define I365_GBL_CSC_LEV 0x02
00108 #define I365_GBL_WRBACK 0x04
00109 #define I365_GBL_IRQ_0_LEV 0x08
00110 #define I365_GBL_IRQ_1_LEV 0x10
00111
00112
00113 #define I365_MEM_16BIT 0x8000
00114 #define I365_MEM_0WS 0x4000
00115 #define I365_MEM_WS1 0x8000
00116 #define I365_MEM_WS0 0x4000
00117 #define I365_MEM_WRPROT 0x8000
00118 #define I365_MEM_REG 0x4000
00119
00120 #define I365_REG(slot, reg) (((slot) << 6) + reg)
00121
00122 #endif
00123
00124
00125
00126
00127
00128
00129
00130
00131 #ifndef _LINUX_VG468_H
00132 #define _LINUX_VG468_H
00133
00134
00135 #define I365_IDENT_VADEM 0x08
00136
00137
00138 #define VG468_VPP2_MASK 0x0c
00139 #define VG468_VPP2_5V 0x04
00140 #define VG468_VPP2_12V 0x08
00141
00142
00143 #define VG469_VSENSE 0x1f
00144 #define VG469_VSELECT 0x2f
00145 #define VG468_CTL 0x38
00146 #define VG468_TIMER 0x39
00147 #define VG468_MISC 0x3a
00148 #define VG468_GPIO_CFG 0x3b
00149 #define VG469_EXT_MODE 0x3c
00150 #define VG468_SELECT 0x3d
00151 #define VG468_SELECT_CFG 0x3e
00152 #define VG468_ATA 0x3f
00153
00154
00155 #define VG469_VSENSE_A_VS1 0x01
00156 #define VG469_VSENSE_A_VS2 0x02
00157 #define VG469_VSENSE_B_VS1 0x04
00158 #define VG469_VSENSE_B_VS2 0x08
00159
00160
00161 #define VG469_VSEL_VCC 0x03
00162 #define VG469_VSEL_5V 0x00
00163 #define VG469_VSEL_3V 0x03
00164 #define VG469_VSEL_MAX 0x0c
00165 #define VG469_VSEL_EXT_STAT 0x10
00166 #define VG469_VSEL_EXT_BUS 0x20
00167 #define VG469_VSEL_MIXED 0x40
00168 #define VG469_VSEL_ISA 0x80
00169
00170
00171 #define VG468_CTL_SLOW 0x01
00172 #define VG468_CTL_ASYNC 0x02
00173 #define VG468_CTL_TSSI 0x08
00174 #define VG468_CTL_DELAY 0x10
00175 #define VG468_CTL_INPACK 0x20
00176 #define VG468_CTL_POLARITY 0x40
00177 #define VG468_CTL_COMPAT 0x80
00178
00179 #define VG469_CTL_WS_COMPAT 0x04
00180 #define VG469_CTL_STRETCH 0x10
00181
00182
00183 #define VG468_TIMER_ZEROPWR 0x10
00184 #define VG468_TIMER_SIGEN 0x20
00185 #define VG468_TIMER_STATUS 0x40
00186 #define VG468_TIMER_RES 0x80
00187 #define VG468_TIMER_MASK 0x0f
00188
00189
00190 #define VG468_MISC_GPIO 0x04
00191 #define VG468_MISC_DMAWSB 0x08
00192 #define VG469_MISC_LEDENA 0x10
00193 #define VG468_MISC_VADEMREV 0x40
00194 #define VG468_MISC_UNLOCK 0x80
00195
00196
00197 #define VG469_MODE_VPPST 0x03
00198 #define VG469_MODE_INT_SENSE 0x04
00199 #define VG469_MODE_CABLE 0x08
00200 #define VG469_MODE_COMPAT 0x10
00201 #define VG469_MODE_TEST 0x20
00202 #define VG469_MODE_RIO 0x40
00203
00204
00205 #define VG469_MODE_B_3V 0x01
00206
00207 #endif
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217 #ifndef _LINUX_RICOH_H
00218 #define _LINUX_RICOH_H
00219
00220
00221 #define RF5C_MODE_CTL 0x1f
00222 #define RF5C_PWR_CTL 0x2f
00223 #define RF5C_CHIP_ID 0x3a
00224 #define RF5C_MODE_CTL_3 0x3b
00225
00226
00227 #define RF5C_IO_OFF(w) (0x36+((w)<<1))
00228
00229
00230 #define RF5C_MODE_ATA 0x01
00231 #define RF5C_MODE_LED_ENA 0x02
00232 #define RF5C_MODE_CA21 0x04
00233 #define RF5C_MODE_CA22 0x08
00234 #define RF5C_MODE_CA23 0x10
00235 #define RF5C_MODE_CA24 0x20
00236 #define RF5C_MODE_CA25 0x40
00237 #define RF5C_MODE_3STATE_BIT7 0x80
00238
00239
00240 #define RF5C_PWR_VCC_3V 0x01
00241 #define RF5C_PWR_IREQ_HIGH 0x02
00242 #define RF5C_PWR_INPACK_ENA 0x04
00243 #define RF5C_PWR_5V_DET 0x08
00244 #define RF5C_PWR_TC_SEL 0x10
00245 #define RF5C_PWR_DREQ_LOW 0x20
00246 #define RF5C_PWR_DREQ_OFF 0x00
00247 #define RF5C_PWR_DREQ_INPACK 0x40
00248 #define RF5C_PWR_DREQ_SPKR 0x80
00249 #define RF5C_PWR_DREQ_IOIS16 0xc0
00250
00251
00252 #define RF5C_CHIP_RF5C296 0x32
00253 #define RF5C_CHIP_RF5C396 0xb2
00254
00255
00256 #define RF5C_MCTL3_DISABLE 0x01
00257 #define RF5C_MCTL3_DMA_ENA 0x02
00258
00259
00260
00261
00262 #define RL5C46X_BCR_3E0_ENA 0x0800
00263 #define RL5C46X_BCR_3E2_ENA 0x1000
00264
00265
00266 #define RL5C4XX_CONFIG 0x80
00267 #define RL5C4XX_CONFIG_IO_1_MODE 0x0200
00268 #define RL5C4XX_CONFIG_IO_0_MODE 0x0100
00269 #define RL5C4XX_CONFIG_PREFETCH 0x0001
00270
00271
00272
00273 #define RL5C4XX_MISC 0x0082
00274 #define RL5C4XX_MISC_HW_SUSPEND_ENA 0x0002
00275 #define RL5C4XX_MISC_VCCEN_POL 0x0100
00276 #define RL5C4XX_MISC_VPPEN_POL 0x0200
00277 #define RL5C46X_MISC_SUSPEND 0x0001
00278 #define RL5C46X_MISC_PWR_SAVE_2 0x0004
00279 #define RL5C46X_MISC_IFACE_BUSY 0x0008
00280 #define RL5C46X_MISC_B_LOCK 0x0010
00281 #define RL5C46X_MISC_A_LOCK 0x0020
00282 #define RL5C46X_MISC_PCI_LOCK 0x0040
00283 #define RL5C47X_MISC_IFACE_BUSY 0x0004
00284 #define RL5C47X_MISC_PCI_INT_MASK 0x0018
00285 #define RL5C47X_MISC_PCI_INT_DIS 0x0020
00286 #define RL5C47X_MISC_SUBSYS_WR 0x0040
00287 #define RL5C47X_MISC_SRIRQ_ENA 0x0080
00288 #define RL5C47X_MISC_5V_DISABLE 0x0400
00289 #define RL5C47X_MISC_LED_POL 0x0800
00290
00291
00292 #define RL5C4XX_16BIT_CTL 0x0084
00293 #define RL5C4XX_16CTL_IO_TIMING 0x0100
00294 #define RL5C4XX_16CTL_MEM_TIMING 0x0200
00295 #define RL5C46X_16CTL_LEVEL_1 0x0010
00296 #define RL5C46X_16CTL_LEVEL_2 0x0020
00297
00298
00299 #define RL5C4XX_16BIT_IO_0 0x0088
00300 #define RL5C4XX_16BIT_MEM_0 0x0088
00301 #define RL5C4XX_SETUP_MASK 0x0007
00302 #define RL5C4XX_SETUP_SHIFT 0
00303 #define RL5C4XX_CMD_MASK 0x01f0
00304 #define RL5C4XX_CMD_SHIFT 4
00305 #define RL5C4XX_HOLD_MASK 0x1c00
00306 #define RL5C4XX_HOLD_SHIFT 10
00307 #define RL5C4XX_MISC_CONTROL 0x2F
00308 #define RL5C4XX_ZV_ENABLE 0x08
00309
00310 #endif
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320 #ifndef _LINUX_CIRRUS_H
00321 #define _LINUX_CIRRUS_H
00322
00323 #ifndef PCI_VENDOR_ID_CIRRUS
00324 #define PCI_VENDOR_ID_CIRRUS 0x1013
00325 #endif
00326 #ifndef PCI_DEVICE_ID_CIRRUS_6729
00327 #define PCI_DEVICE_ID_CIRRUS_6729 0x1100
00328 #endif
00329 #ifndef PCI_DEVICE_ID_CIRRUS_6832
00330 #define PCI_DEVICE_ID_CIRRUS_6832 0x1110
00331 #endif
00332
00333 #define PD67_MISC_CTL_1 0x16
00334 #define PD67_FIFO_CTL 0x17
00335 #define PD67_MISC_CTL_2 0x1E
00336 #define PD67_CHIP_INFO 0x1f
00337 #define PD67_ATA_CTL 0x026
00338 #define PD67_EXT_INDEX 0x2e
00339 #define PD67_EXT_DATA 0x2f
00340
00341
00342 #define PD67_DATA_MASK0 0x01
00343 #define PD67_DATA_MASK1 0x02
00344 #define PD67_DMA_CTL 0x03
00345
00346
00347 #define PD67_EXT_CTL_1 0x03
00348 #define PD67_MEM_PAGE(n) ((n)+5)
00349 #define PD67_EXTERN_DATA 0x0a
00350 #define PD67_MISC_CTL_3 0x25
00351 #define PD67_SMB_PWR_CTL 0x26
00352
00353
00354 #define PD67_IO_OFF(w) (0x36+((w)<<1))
00355
00356
00357 #define PD67_TIME_SETUP(n) (0x3a + 3*(n))
00358 #define PD67_TIME_CMD(n) (0x3b + 3*(n))
00359 #define PD67_TIME_RECOV(n) (0x3c + 3*(n))
00360
00361
00362 #define PD67_MC1_5V_DET 0x01
00363 #define PD67_MC1_MEDIA_ENA 0x01
00364 #define PD67_MC1_VCC_3V 0x02
00365 #define PD67_MC1_PULSE_MGMT 0x04
00366 #define PD67_MC1_PULSE_IRQ 0x08
00367 #define PD67_MC1_SPKR_ENA 0x10
00368 #define PD67_MC1_INPACK_ENA 0x80
00369
00370
00371 #define PD67_FIFO_EMPTY 0x80
00372
00373
00374 #define PD67_MC2_FREQ_BYPASS 0x01
00375 #define PD67_MC2_DYNAMIC_MODE 0x02
00376 #define PD67_MC2_SUSPEND 0x04
00377 #define PD67_MC2_5V_CORE 0x08
00378 #define PD67_MC2_LED_ENA 0x10
00379 #define PD67_MC2_FAST_PCI 0x10
00380 #define PD67_MC2_3STATE_BIT7 0x20
00381 #define PD67_MC2_DMA_MODE 0x40
00382 #define PD67_MC2_IRQ15_RI 0x80
00383
00384
00385 #define PD67_INFO_SLOTS 0x20
00386 #define PD67_INFO_CHIP_ID 0xc0
00387 #define PD67_INFO_REV 0x1c
00388
00389
00390 #define PD67_TIME_SCALE 0xc0
00391 #define PD67_TIME_SCALE_1 0x00
00392 #define PD67_TIME_SCALE_16 0x40
00393 #define PD67_TIME_SCALE_256 0x80
00394 #define PD67_TIME_SCALE_4096 0xc0
00395 #define PD67_TIME_MULT 0x3f
00396
00397
00398 #define PD67_DMA_MODE 0xc0
00399 #define PD67_DMA_OFF 0x00
00400 #define PD67_DMA_DREQ_INPACK 0x40
00401 #define PD67_DMA_DREQ_WP 0x80
00402 #define PD67_DMA_DREQ_BVD2 0xc0
00403 #define PD67_DMA_PULLUP 0x20
00404
00405
00406 #define PD67_EC1_VCC_PWR_LOCK 0x01
00407 #define PD67_EC1_AUTO_PWR_CLEAR 0x02
00408 #define PD67_EC1_LED_ENA 0x04
00409 #define PD67_EC1_INV_CARD_IRQ 0x08
00410 #define PD67_EC1_INV_MGMT_IRQ 0x10
00411 #define PD67_EC1_PULLUP_CTL 0x20
00412
00413
00414 #define PD67_MC3_IRQ_MASK 0x03
00415 #define PD67_MC3_IRQ_PCPCI 0x00
00416 #define PD67_MC3_IRQ_EXTERN 0x01
00417 #define PD67_MC3_IRQ_PCIWAY 0x02
00418 #define PD67_MC3_IRQ_PCI 0x03
00419 #define PD67_MC3_PWR_MASK 0x0c
00420 #define PD67_MC3_PWR_SERIAL 0x00
00421 #define PD67_MC3_PWR_TI2202 0x08
00422 #define PD67_MC3_PWR_SMB 0x0c
00423
00424
00425
00426
00427 #define PD68_EXT_CTL_2 0x0b
00428 #define PD68_PCI_SPACE 0x22
00429 #define PD68_PCCARD_SPACE 0x23
00430 #define PD68_WINDOW_TYPE 0x24
00431 #define PD68_EXT_CSC 0x2e
00432 #define PD68_MISC_CTL_4 0x2f
00433 #define PD68_MISC_CTL_5 0x30
00434 #define PD68_MISC_CTL_6 0x31
00435
00436
00437 #define PD68_MC3_HW_SUSP 0x10
00438 #define PD68_MC3_MM_EXPAND 0x40
00439 #define PD68_MC3_MM_ARM 0x80
00440
00441
00442 #define PD6832_BCR_MGMT_IRQ_ENA 0x0800
00443
00444
00445 #define PD6832_SOCKET_NUMBER 0x004c
00446
00447 #endif
00448
00449
00450