0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 #ifndef _LINUX_CIRRUS_H
0031 #define _LINUX_CIRRUS_H
0032
0033 #define PD67_MISC_CTL_1 0x16
0034 #define PD67_FIFO_CTL 0x17
0035 #define PD67_MISC_CTL_2 0x1E
0036 #define PD67_CHIP_INFO 0x1f
0037 #define PD67_ATA_CTL 0x026
0038 #define PD67_EXT_INDEX 0x2e
0039 #define PD67_EXT_DATA 0x2f
0040
0041
0042 #define PD67_DATA_MASK0 0x01
0043 #define PD67_DATA_MASK1 0x02
0044 #define PD67_DMA_CTL 0x03
0045
0046
0047 #define PD67_EXT_CTL_1 0x03
0048 #define PD67_MEM_PAGE(n) ((n)+5)
0049 #define PD67_EXTERN_DATA 0x0a
0050 #define PD67_MISC_CTL_3 0x25
0051 #define PD67_SMB_PWR_CTL 0x26
0052
0053
0054 #define PD67_IO_OFF(w) (0x36+((w)<<1))
0055
0056
0057 #define PD67_TIME_SETUP(n) (0x3a + 3*(n))
0058 #define PD67_TIME_CMD(n) (0x3b + 3*(n))
0059 #define PD67_TIME_RECOV(n) (0x3c + 3*(n))
0060
0061
0062 #define PD67_MC1_5V_DET 0x01
0063 #define PD67_MC1_MEDIA_ENA 0x01
0064 #define PD67_MC1_VCC_3V 0x02
0065 #define PD67_MC1_PULSE_MGMT 0x04
0066 #define PD67_MC1_PULSE_IRQ 0x08
0067 #define PD67_MC1_SPKR_ENA 0x10
0068 #define PD67_MC1_INPACK_ENA 0x80
0069
0070
0071 #define PD67_FIFO_EMPTY 0x80
0072
0073
0074 #define PD67_MC2_FREQ_BYPASS 0x01
0075 #define PD67_MC2_DYNAMIC_MODE 0x02
0076 #define PD67_MC2_SUSPEND 0x04
0077 #define PD67_MC2_5V_CORE 0x08
0078 #define PD67_MC2_LED_ENA 0x10
0079 #define PD67_MC2_FAST_PCI 0x10
0080 #define PD67_MC2_3STATE_BIT7 0x20
0081 #define PD67_MC2_DMA_MODE 0x40
0082 #define PD67_MC2_IRQ15_RI 0x80
0083
0084
0085 #define PD67_INFO_SLOTS 0x20
0086 #define PD67_INFO_CHIP_ID 0xc0
0087 #define PD67_INFO_REV 0x1c
0088
0089
0090 #define PD67_TIME_SCALE 0xc0
0091 #define PD67_TIME_SCALE_1 0x00
0092 #define PD67_TIME_SCALE_16 0x40
0093 #define PD67_TIME_SCALE_256 0x80
0094 #define PD67_TIME_SCALE_4096 0xc0
0095 #define PD67_TIME_MULT 0x3f
0096
0097
0098 #define PD67_DMA_MODE 0xc0
0099 #define PD67_DMA_OFF 0x00
0100 #define PD67_DMA_DREQ_INPACK 0x40
0101 #define PD67_DMA_DREQ_WP 0x80
0102 #define PD67_DMA_DREQ_BVD2 0xc0
0103 #define PD67_DMA_PULLUP 0x20
0104
0105
0106 #define PD67_EC1_VCC_PWR_LOCK 0x01
0107 #define PD67_EC1_AUTO_PWR_CLEAR 0x02
0108 #define PD67_EC1_LED_ENA 0x04
0109 #define PD67_EC1_INV_CARD_IRQ 0x08
0110 #define PD67_EC1_INV_MGMT_IRQ 0x10
0111 #define PD67_EC1_PULLUP_CTL 0x20
0112
0113
0114 #define PD67_MC3_IRQ_MASK 0x03
0115 #define PD67_MC3_IRQ_PCPCI 0x00
0116 #define PD67_MC3_IRQ_EXTERN 0x01
0117 #define PD67_MC3_IRQ_PCIWAY 0x02
0118 #define PD67_MC3_IRQ_PCI 0x03
0119 #define PD67_MC3_PWR_MASK 0x0c
0120 #define PD67_MC3_PWR_SERIAL 0x00
0121 #define PD67_MC3_PWR_TI2202 0x08
0122 #define PD67_MC3_PWR_SMB 0x0c
0123
0124
0125
0126
0127 #define PD68_EXT_CTL_2 0x0b
0128 #define PD68_PCI_SPACE 0x22
0129 #define PD68_PCCARD_SPACE 0x23
0130 #define PD68_WINDOW_TYPE 0x24
0131 #define PD68_EXT_CSC 0x2e
0132 #define PD68_MISC_CTL_4 0x2f
0133 #define PD68_MISC_CTL_5 0x30
0134 #define PD68_MISC_CTL_6 0x31
0135
0136
0137 #define PD68_MC3_HW_SUSP 0x10
0138 #define PD68_MC3_MM_EXPAND 0x40
0139 #define PD68_MC3_MM_ARM 0x80
0140
0141
0142 #define PD6832_BCR_MGMT_IRQ_ENA 0x0800
0143
0144
0145 #define PD6832_SOCKET_NUMBER 0x004c
0146
0147 #endif