1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 #ifndef _LINUX_CIRRUS_H
31 #define _LINUX_CIRRUS_H
32
33 #define PD67_MISC_CTL_1 0x16
34 #define PD67_FIFO_CTL 0x17
35 #define PD67_MISC_CTL_2 0x1E
36 #define PD67_CHIP_INFO 0x1f
37 #define PD67_ATA_CTL 0x026
38 #define PD67_EXT_INDEX 0x2e
39 #define PD67_EXT_DATA 0x2f
40
41
42 #define PD67_DATA_MASK0 0x01
43 #define PD67_DATA_MASK1 0x02
44 #define PD67_DMA_CTL 0x03
45
46
47 #define PD67_EXT_CTL_1 0x03
48 #define PD67_MEM_PAGE(n) ((n)+5)
49 #define PD67_EXTERN_DATA 0x0a
50 #define PD67_MISC_CTL_3 0x25
51 #define PD67_SMB_PWR_CTL 0x26
52
53
54 #define PD67_IO_OFF(w) (0x36+((w)<<1))
55
56
57 #define PD67_TIME_SETUP(n) (0x3a + 3*(n))
58 #define PD67_TIME_CMD(n) (0x3b + 3*(n))
59 #define PD67_TIME_RECOV(n) (0x3c + 3*(n))
60
61
62 #define PD67_MC1_5V_DET 0x01
63 #define PD67_MC1_MEDIA_ENA 0x01
64 #define PD67_MC1_VCC_3V 0x02
65 #define PD67_MC1_PULSE_MGMT 0x04
66 #define PD67_MC1_PULSE_IRQ 0x08
67 #define PD67_MC1_SPKR_ENA 0x10
68 #define PD67_MC1_INPACK_ENA 0x80
69
70
71 #define PD67_FIFO_EMPTY 0x80
72
73
74 #define PD67_MC2_FREQ_BYPASS 0x01
75 #define PD67_MC2_DYNAMIC_MODE 0x02
76 #define PD67_MC2_SUSPEND 0x04
77 #define PD67_MC2_5V_CORE 0x08
78 #define PD67_MC2_LED_ENA 0x10
79 #define PD67_MC2_FAST_PCI 0x10
80 #define PD67_MC2_3STATE_BIT7 0x20
81 #define PD67_MC2_DMA_MODE 0x40
82 #define PD67_MC2_IRQ15_RI 0x80
83
84
85 #define PD67_INFO_SLOTS 0x20
86 #define PD67_INFO_CHIP_ID 0xc0
87 #define PD67_INFO_REV 0x1c
88
89
90 #define PD67_TIME_SCALE 0xc0
91 #define PD67_TIME_SCALE_1 0x00
92 #define PD67_TIME_SCALE_16 0x40
93 #define PD67_TIME_SCALE_256 0x80
94 #define PD67_TIME_SCALE_4096 0xc0
95 #define PD67_TIME_MULT 0x3f
96
97
98 #define PD67_DMA_MODE 0xc0
99 #define PD67_DMA_OFF 0x00
100 #define PD67_DMA_DREQ_INPACK 0x40
101 #define PD67_DMA_DREQ_WP 0x80
102 #define PD67_DMA_DREQ_BVD2 0xc0
103 #define PD67_DMA_PULLUP 0x20
104
105
106 #define PD67_EC1_VCC_PWR_LOCK 0x01
107 #define PD67_EC1_AUTO_PWR_CLEAR 0x02
108 #define PD67_EC1_LED_ENA 0x04
109 #define PD67_EC1_INV_CARD_IRQ 0x08
110 #define PD67_EC1_INV_MGMT_IRQ 0x10
111 #define PD67_EC1_PULLUP_CTL 0x20
112
113
114 #define PD67_MC3_IRQ_MASK 0x03
115 #define PD67_MC3_IRQ_PCPCI 0x00
116 #define PD67_MC3_IRQ_EXTERN 0x01
117 #define PD67_MC3_IRQ_PCIWAY 0x02
118 #define PD67_MC3_IRQ_PCI 0x03
119 #define PD67_MC3_PWR_MASK 0x0c
120 #define PD67_MC3_PWR_SERIAL 0x00
121 #define PD67_MC3_PWR_TI2202 0x08
122 #define PD67_MC3_PWR_SMB 0x0c
123
124
125
126
127 #define PD68_EXT_CTL_2 0x0b
128 #define PD68_PCI_SPACE 0x22
129 #define PD68_PCCARD_SPACE 0x23
130 #define PD68_WINDOW_TYPE 0x24
131 #define PD68_EXT_CSC 0x2e
132 #define PD68_MISC_CTL_4 0x2f
133 #define PD68_MISC_CTL_5 0x30
134 #define PD68_MISC_CTL_6 0x31
135
136
137 #define PD68_MC3_HW_SUSP 0x10
138 #define PD68_MC3_MM_EXPAND 0x40
139 #define PD68_MC3_MM_ARM 0x80
140
141
142 #define PD6832_BCR_MGMT_IRQ_ENA 0x0800
143
144
145 #define PD6832_SOCKET_NUMBER 0x004c
146
147 #endif