7e131e8ea54e9c92f9fbc7158b8ac53f2fcc7e9b
[reactos.git] / reactos / drivers / storage / ide / uniata / bm_devs.h
1 /*++
2
3 Copyright (c) 2002-2005 Alexandr A. Telyatnikov (Alter)
4
5 Module Name:
6 bm_devs.h
7
8 Abstract:
9 This file contains list of 'well known' PCI IDE controllers
10
11 Author:
12 Alexander A. Telyatnikov (Alter)
13
14 Environment:
15 kernel mode only
16
17 Notes:
18
19 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30 Revision History:
31
32 --*/
33
34 #define IDE_MAX_CHAN 8
35 // Thanks to SATA Port Multipliers:
36 #define IDE_MAX_LUN_PER_CHAN 16
37 #define IDE_MAX_LUN (AHCI_MAX_PORT*IDE_MAX_LUN_PER_CHAN)
38
39 #define MAX_QUEUE_STAT 8
40
41 //
42 // values for TransferMode
43 //
44 #define ATA_PIO 0x00
45 #define ATA_PIO_NRDY 0x01
46
47 #define ATA_PIO0 0x08
48 #define ATA_PIO1 0x09
49 #define ATA_PIO2 0x0a
50 #define ATA_PIO3 0x0b
51 #define ATA_PIO4 0x0c
52 #define ATA_PIO5 0x0d
53
54 #define ATA_DMA 0x10
55 #define ATA_SDMA 0x10
56 #define ATA_SDMA0 0x10
57 #define ATA_SDMA1 0x11
58 #define ATA_SDMA2 0x12
59
60 #define ATA_WDMA 0x20
61 #define ATA_WDMA0 0x20
62 #define ATA_WDMA1 0x21
63 #define ATA_WDMA2 0x22
64
65 #define ATA_UDMA 0x40
66 #define ATA_UDMA0 0x40 // ATA-16
67 #define ATA_UDMA1 0x41 // ATA-25
68 #define ATA_UDMA2 0x42 // ATA-33
69 #define ATA_UDMA3 0x43 // ATA-44
70 #define ATA_UDMA4 0x44 // ATA-66
71 #define ATA_UDMA5 0x45 // ATA-100
72 #define ATA_UDMA6 0x46 // ATA-133
73 //#define ATA_UDMA7 0x47 // ATA-166
74
75 #define ATA_SA150 0x47 /*0x80*/
76 #define ATA_SA300 0x48 /*0x81*/
77
78 // define PIO timings in nanoseconds
79 #define PIO0_TIMING 600
80
81 //#define UniataGetPioTiming(LunExt) ((LunExt->TransferMode <= ATA_PIO0) ? PIO0_TIMING : 0)
82 #define UniataGetPioTiming(LunExt) 0 //ktp
83
84 #ifndef __IDE_BUSMASTER_DEVICES_H__
85 #define __IDE_BUSMASTER_DEVICES_H__
86
87 typedef struct _BUSMASTER_CONTROLLER_INFORMATION {
88 PCHAR VendorId;
89 ULONG VendorIdLength;
90 ULONG nVendorId;
91 PCHAR DeviceId;
92 ULONG DeviceIdLength;
93 ULONG nDeviceId;
94 ULONG nRevId;
95 ULONG MaxTransferMode;
96 PCHAR FullDevName;
97 ULONG RaidFlags;
98 CHAR VendorIdStr[4];
99 CHAR DeviceIdStr[4];
100 ULONG slotNumber;
101 ULONG busNumber;
102 CHAR channel;
103 // CHAR numOfChannes;
104 CHAR MasterDev;
105 BOOLEAN Known;
106 #ifndef USER_MODE
107 CHAR ChanInitOk; // 0x01 - primary, 0x02 - secondary
108 BOOLEAN Isr2Enable;
109 PDEVICE_OBJECT Isr2DevObj;
110 KIRQL Isr2Irql;
111 KAFFINITY Isr2Affinity;
112 ULONG Isr2Vector;
113 PKINTERRUPT Isr2InterruptObject;
114 CHAR AltInitMasterDev; // 0xff - uninitialized, 0x00 - normal, 0x01 - change ISA to PCI
115 #endif
116
117 }BUSMASTER_CONTROLLER_INFORMATION, *PBUSMASTER_CONTROLLER_INFORMATION;
118
119 /* defines for known chipset PCI id's */
120 #define ATA_ACARD_ID 0x1191
121 #define ATA_ATP850 0x00021191
122 #define ATA_ATP850A 0x00041191
123 #define ATA_ATP850R 0x00051191
124 #define ATA_ATP860A 0x00061191
125 #define ATA_ATP860R 0x00071191
126 #define ATA_ATP865A 0x00081191
127 #define ATA_ATP865R 0x00091191
128
129 #define ATA_AMD_ID 0x1022
130 #define ATA_AMD755 0x74011022
131 #define ATA_AMD756 0x74091022
132 #define ATA_AMD766 0x74111022
133 #define ATA_AMD768 0x74411022
134 #define ATA_AMD8111 0x74691022
135
136 #define ATA_ACER_LABS_ID 0x10b9
137 #define ATA_ALI_1533 0x153310b9
138 #define ATA_ALI_5229 0x522910b9
139 #define ATA_ALI_5281 0x528110b9
140 #define ATA_ALI_5287 0x528710b9
141 #define ATA_ALI_5288 0x528810b9
142 #define ATA_ALI_5289 0x528910b9
143
144 #define ATA_ATI_ID 0x1002
145 #define ATA_ATI_IXP200 0x43491002
146 #define ATA_ATI_IXP300 0x43691002
147 #define ATA_ATI_IXP400 0x43761002
148 #define ATA_ATI_IXP300_S1 0x436e1002
149 #define ATA_ATI_IXP400_S1 0x43791002
150 #define ATA_ATI_IXP400_S2 0x437a1002
151
152 #define ATA_CYRIX_ID 0x1078
153 #define ATA_CYRIX_5530 0x01021078
154
155 #define ATA_CYPRESS_ID 0x1080
156 #define ATA_CYPRESS_82C693 0xc6931080
157
158 #define ATA_DEC_21150 0x00221011
159 #define ATA_DEC_21150_1 0x00231011
160
161 #define ATA_HIGHPOINT_ID 0x1103
162 #define ATA_HPT366 0x00041103
163 #define ATA_HPT372 0x00051103
164 #define ATA_HPT302 0x00061103
165 #define ATA_HPT371 0x00071103
166 #define ATA_HPT374 0x00081103
167
168 #define ATA_INTEL_ID 0x8086
169 #define ATA_I960RM 0x09628086
170 #define ATA_I82371FB 0x12308086
171 #define ATA_I82371SB 0x70108086
172 #define ATA_I82371AB 0x71118086
173 #define ATA_I82443MX 0x71998086
174 #define ATA_I82451NX 0x84ca8086
175 #define ATA_I82372FB 0x76018086
176 #define ATA_I82801AB 0x24218086
177 #define ATA_I82801AA 0x24118086
178 #define ATA_I82801BA 0x244a8086
179 #define ATA_I82801BA_1 0x244b8086
180 #define ATA_I82801CA 0x248a8086
181 #define ATA_I82801CA_1 0x248b8086
182 #define ATA_I82801DB 0x24cb8086
183 #define ATA_I82801DB_1 0x24ca8086
184 #define ATA_I82801EB 0x24db8086
185 #define ATA_I82801EB_1 0x24d18086
186 #define ATA_I82801EB_2 0x24df8086
187 #define ATA_I6300ESB 0x25a28086
188 #define ATA_I6300ESB_1 0x25a38086
189 #define ATA_I6300ESB_2 0x25b08086
190 #define ATA_I82801FB 0x266f8086
191 #define ATA_I82801FB_S1 0x26518086
192 #define ATA_I82801FB_R1 0x26528086
193 #define ATA_I82801FB_M 0x26538086
194 #define ATA_I82801GB 0x27df8086
195 #define ATA_I82801GB_S1 0x27c08086
196 #define ATA_I82801GB_R1 0x27c38086
197 #define ATA_I82801GB_AH 0x27c18086
198 #define ATA_I82801GB_M 0x27c58086
199
200 #define ATA_NATIONAL_ID 0x100b
201 #define ATA_SC1100 0x0502100b
202
203 #define ATA_NETCELL_ID 0x169c
204 #define ATA_NETCELL_SR 0x0044169c
205
206 #define ATA_NVIDIA_ID 0x10de
207 #define ATA_NFORCE1 0x01bc10de
208 #define ATA_NFORCE2 0x006510de
209 #define ATA_NFORCE2_MCP 0x008510de
210 #define ATA_NFORCE3 0x00d510de
211 #define ATA_NFORCE3_PRO 0x00e510de
212 #define ATA_NFORCE3_PRO_S1 0x00e310de
213 #define ATA_NFORCE3_PRO_S2 0x00ee10de
214 #define ATA_NFORCE3_MCP 0x003510de
215 #define ATA_NFORCE3_MCP_S1 0x003610de
216 #define ATA_NFORCE3_MCP_S2 0x003e10de
217 #define ATA_NFORCE4 0x005310de
218 #define ATA_NFORCE4_S1 0x005410de
219 #define ATA_NFORCE4_S2 0x005510de
220
221 #define ATA_PROMISE_ID 0x105a
222 #define ATA_PDC20246 0x4d33105a
223 #define ATA_PDC20262 0x4d38105a
224 #define ATA_PDC20263 0x0d38105a
225 #define ATA_PDC20265 0x0d30105a
226 #define ATA_PDC20267 0x4d30105a
227 #define ATA_PDC20268 0x4d68105a
228 #define ATA_PDC20269 0x4d69105a
229 #define ATA_PDC20270 0x6268105a
230 #define ATA_PDC20271 0x6269105a
231 #define ATA_PDC20275 0x1275105a
232 #define ATA_PDC20276 0x5275105a
233 #define ATA_PDC20277 0x7275105a
234 #define ATA_PDC20318 0x3318105a
235 #define ATA_PDC20319 0x3319105a
236 #define ATA_PDC20371 0x3371105a
237 #define ATA_PDC20375 0x3375105a
238 #define ATA_PDC20376 0x3376105a
239 #define ATA_PDC20377 0x3377105a
240 #define ATA_PDC20378 0x3373105a
241 #define ATA_PDC20379 0x3372105a
242 #define ATA_PDC20617 0x6617105a
243 #define ATA_PDC20618 0x6626105a
244 #define ATA_PDC20619 0x6629105a
245 #define ATA_PDC20620 0x6620105a
246 #define ATA_PDC20621 0x6621105a
247 #define ATA_PDC20622 0x6622105a
248
249 #define ATA_SERVERWORKS_ID 0x1166
250 #define ATA_ROSB4_ISA 0x02001166
251 #define ATA_ROSB4 0x02111166
252 #define ATA_CSB5 0x02121166
253 #define ATA_CSB6 0x02131166
254 #define ATA_CSB6_1 0x02171166
255 #define ATA_HT1000 0x02141166
256 #define ATA_HT1000_S1 0x024b1166
257 #define ATA_HT1000_S2 0x024a1166
258 #define ATA_K2 0x02401166
259 #define ATA_FRODO4 0x02411166
260 #define ATA_FRODO8 0x02421166
261
262 #define ATA_SILICON_IMAGE_ID 0x1095
263 #define ATA_SII3114 0x31141095
264 #define ATA_SII3512 0x35121095
265 #define ATA_SII3112 0x31121095
266 #define ATA_SII3112_1 0x02401095
267 #define ATA_SII0680 0x06801095
268 #define ATA_CMD646 0x06461095
269 #define ATA_CMD648 0x06481095
270 #define ATA_CMD649 0x06491095
271
272 #define ATA_SIS_ID 0x1039
273 #define ATA_SISSOUTH 0x00081039
274 #define ATA_SIS5511 0x55111039
275 #define ATA_SIS5513 0x55131039
276 #define ATA_SIS5517 0x55171039
277 #define ATA_SIS5518 0x55181039
278 #define ATA_SIS5571 0x55711039
279 #define ATA_SIS5591 0x55911039
280 #define ATA_SIS5596 0x55961039
281 #define ATA_SIS5597 0x55971039
282 #define ATA_SIS5598 0x55981039
283 #define ATA_SIS5600 0x56001039
284 #define ATA_SIS530 0x05301039
285 #define ATA_SIS540 0x05401039
286 #define ATA_SIS550 0x05501039
287 #define ATA_SIS620 0x06201039
288 #define ATA_SIS630 0x06301039
289 #define ATA_SIS635 0x06351039
290 #define ATA_SIS633 0x06331039
291 #define ATA_SIS640 0x06401039
292 #define ATA_SIS645 0x06451039
293 #define ATA_SIS646 0x06461039
294 #define ATA_SIS648 0x06481039
295 #define ATA_SIS650 0x06501039
296 #define ATA_SIS651 0x06511039
297 #define ATA_SIS652 0x06521039
298 #define ATA_SIS655 0x06551039
299 #define ATA_SIS658 0x06581039
300 #define ATA_SIS661 0x06611039
301 #define ATA_SIS730 0x07301039
302 #define ATA_SIS733 0x07331039
303 #define ATA_SIS735 0x07351039
304 #define ATA_SIS740 0x07401039
305 #define ATA_SIS745 0x07451039
306 #define ATA_SIS746 0x07461039
307 #define ATA_SIS748 0x07481039
308 #define ATA_SIS750 0x07501039
309 #define ATA_SIS751 0x07511039
310 #define ATA_SIS752 0x07521039
311 #define ATA_SIS755 0x07551039
312 #define ATA_SIS961 0x09611039
313 #define ATA_SIS962 0x09621039
314 #define ATA_SIS963 0x09631039
315 #define ATA_SIS964 0x09641039
316 #define ATA_SIS964_1 0x01801039
317
318 #define ATA_VIA_ID 0x1106
319 #define ATA_VIA82C571 0x05711106
320 #define ATA_VIA82C586 0x05861106
321 #define ATA_VIA82C596 0x05961106
322 #define ATA_VIA82C686 0x06861106
323 #define ATA_VIA8231 0x82311106
324 #define ATA_VIA8233 0x30741106
325 #define ATA_VIA8233A 0x31471106
326 #define ATA_VIA8233C 0x31091106
327 #define ATA_VIA8235 0x31771106
328 #define ATA_VIA8237 0x32271106
329 #define ATA_VIA8251 0x33491106
330 #define ATA_VIA8361 0x31121106
331 #define ATA_VIA8363 0x03051106
332 #define ATA_VIA8371 0x03911106
333 #define ATA_VIA8662 0x31021106
334 #define ATA_VIA6410 0x31641106
335 #define ATA_VIA6420 0x31491106
336 #define ATA_VIA6421 0x32491106
337
338 #define ATA_ITE_ID 0x1283
339 #define ATA_IT8172G 0x81721283
340 #define ATA_IT8212F 0x82121283
341
342 #define ATA_OPTI_ID 0x1045
343 #define ATA_OPTI82C621 0xc6211045
344 #define ATA_OPTI82C625 0xd5681045
345
346 #define ATA_HINT_ID 0x3388
347 #define ATA_HINTEIDE_ID 0x80133388
348
349 /* chipset setup related defines */
350 /* Used in HW_DEVICE_EXTENSION.InitMethod */
351
352 #define CHIPTYPE_MASK 0x000000ff
353 #define CHIPFLAG_MASK 0xffffff00
354
355 #define UNIATA_RAID_CONTROLLER 0x80000000
356 #define UNIATA_SIMPLEX_ONLY 0x40000000
357 #define UNIATA_NO_SLAVE 0x20000000
358 #define UNIATA_SATA 0x10000000
359 #define UNIATA_NO_DPC 0x08000000
360 #define UNIATA_NO_DPC_ATAPI 0x04000000
361 #define UNIATA_AHCI 0x02000000
362 #define UNIATA_NO80CHK 0x01000000
363
364 #define ATPOLD 0x0100
365
366 #define ALIOLD 0x0100
367 #define ALINEW 0x0200
368
369 #define HPT366 0
370 #define HPT370 1
371 #define HPT372 2
372 #define HPT374 3
373 #define HPTOLD 0x0100
374
375 #define PROLD 0
376 #define PRNEW 1
377 #define PRTX 2
378 #define PRMIO 3
379 #define PRIDX 4
380 #define PRTX4 0x0100
381 #define PRSX4K 0x0200
382 #define PRSX6K 0x0400
383 #define PRSATA 0x0800
384 #define PRDUAL 0x1000
385
386 #define SWKS33 0
387 #define SWKS66 1
388 #define SWKS100 2
389 #define SWKSMIO 3
390
391 #define SIIOLD 0
392 #define SIICMD 1
393 #define SIIMIO 2
394
395 #define SIIINTR 0x0100
396 #define SIIENINTR 0x0200
397 #define SII4CH 0x0400
398 #define SIISETCLK 0x0800
399 #define SIIBUG 0x1000
400 #define SIINOSATAIRQ 0x2000
401
402 //#define SIS_SOUTH 1
403 #define SISSATA 2
404 #define SIS133NEW 3
405 #define SIS133OLD 4
406 #define SIS100NEW 5
407 #define SIS100OLD 6
408 #define SIS66 7
409 #define SIS33 8
410
411 #define SIS_BASE 0x0100
412 #define SIS_SOUTH 0x0200
413
414 #define ICH4_FIX 0x0100
415
416 #define NV4OFF 0x0100
417 #define NVQ 0x0200
418
419 #define VIA33 0
420 #define VIA66 1
421 #define VIA100 2
422 #define VIA133 3
423 #define AMDNVIDIA 4
424 #define AMDCABLE 0x0100
425 #define AMDBUG 0x0200
426 #define VIABAR 0x0400
427 #define VIACLK 0x0800
428 #define VIABUG 0x1000
429 #define VIASOUTH 0x2000
430 #define VIAAST 0x4000
431 #define VIAPRQ 0x8000
432
433 #define ITE_33 0
434 #define ITE_133 1
435
436 #ifdef USER_MODE
437 #define PCI_DEV_HW_SPEC_BM(idhi, idlo, rev, mode, name, flags) \
438 { #idlo, 4, 0x##idlo, #idhi, 4, 0x##idhi, rev, mode, name, flags}
439 #else
440 #define PCI_DEV_HW_SPEC_BM(idhi, idlo, rev, mode, name, flags) \
441 { #idlo, 4, 0x##idlo, #idhi, 4, 0x##idhi, rev, mode, NULL, flags}
442 #endif
443
444 #define BMLIST_TERMINATOR (0xffffffffL)
445
446 BUSMASTER_CONTROLLER_INFORMATION const BusMasterAdapters[] = {
447
448 PCI_DEV_HW_SPEC_BM( 0005, 1191, 0x00, ATA_UDMA2, "Acard ATP850" , ATPOLD | UNIATA_SIMPLEX_ONLY ),
449 PCI_DEV_HW_SPEC_BM( 0006, 1191, 0x00, ATA_UDMA4, "Acard ATP860A" , UNIATA_NO80CHK ),
450 PCI_DEV_HW_SPEC_BM( 0007, 1191, 0x00, ATA_UDMA4, "Acard ATP860R" , UNIATA_NO80CHK ),
451 PCI_DEV_HW_SPEC_BM( 0008, 1191, 0x00, ATA_UDMA6, "Acard ATP865A" , UNIATA_NO80CHK ),
452 PCI_DEV_HW_SPEC_BM( 0009, 1191, 0x00, ATA_UDMA6, "Acard ATP865R" , UNIATA_NO80CHK ),
453
454 PCI_DEV_HW_SPEC_BM( 5289, 10b9, 0x00, ATA_SA150, "ALI M5289" , UNIATA_SATA | UNIATA_NO_SLAVE ),
455 PCI_DEV_HW_SPEC_BM( 5288, 10b9, 0x00, ATA_SA300, "ALI M5288" , UNIATA_SATA | UNIATA_NO_SLAVE ),
456 PCI_DEV_HW_SPEC_BM( 5287, 10b9, 0x00, ATA_SA150, "ALI M5287" , UNIATA_SATA | UNIATA_NO_SLAVE ),
457 PCI_DEV_HW_SPEC_BM( 5281, 10b9, 0x00, ATA_SA150, "ALI M5281" , UNIATA_SATA | UNIATA_NO_SLAVE ),
458 PCI_DEV_HW_SPEC_BM( 5229, 10b9, 0xc5, ATA_UDMA6, "ALI M5229 UDMA6" , ALINEW ),
459 PCI_DEV_HW_SPEC_BM( 5229, 10b9, 0xc4, ATA_UDMA5, "ALI M5229 UDMA5" , ALINEW ),
460 PCI_DEV_HW_SPEC_BM( 5229, 10b9, 0xc2, ATA_UDMA4, "ALI M5229 UDMA4" , ALINEW ),
461 PCI_DEV_HW_SPEC_BM( 5229, 10b9, 0x20, ATA_UDMA2, "ALI M5229 UDMA2" , ALIOLD ),
462 PCI_DEV_HW_SPEC_BM( 5229, 10b9, 0x00, ATA_WDMA2, "ALI M5229 WDMA2" , ALIOLD ),
463
464 PCI_DEV_HW_SPEC_BM( 7401, 1022, 0x00, ATA_UDMA2, "AMD 755" , AMDNVIDIA | 0x00 ),
465 PCI_DEV_HW_SPEC_BM( 7409, 1022, 0x00, ATA_UDMA4, "AMD 756" , AMDNVIDIA | UNIATA_NO80CHK ),
466 PCI_DEV_HW_SPEC_BM( 7411, 1022, 0x00, ATA_UDMA5, "AMD 766" , AMDNVIDIA | AMDBUG ),
467 PCI_DEV_HW_SPEC_BM( 7441, 1022, 0x00, ATA_UDMA5, "AMD 768" , AMDNVIDIA ),
468 PCI_DEV_HW_SPEC_BM( 7469, 1022, 0x00, ATA_UDMA6, "AMD 8111" , AMDNVIDIA ),
469
470 PCI_DEV_HW_SPEC_BM( 4349, 1002, 0x00, ATA_UDMA5, "ATI IXP200" , 0 ),
471 PCI_DEV_HW_SPEC_BM( 4369, 1002, 0x00, ATA_UDMA6, "ATI IXP300" , 0 ),
472 PCI_DEV_HW_SPEC_BM( 4376, 1002, 0x00, ATA_UDMA6, "ATI IXP400" , 0 ),
473 PCI_DEV_HW_SPEC_BM( 436e, 1002, 0x00, ATA_SA150, "ATI IXP300" , SIIMIO | UNIATA_SATA ),
474 PCI_DEV_HW_SPEC_BM( 4379, 1002, 0x00, ATA_SA150, "ATI IXP400" , SIIMIO | SIINOSATAIRQ | UNIATA_SATA ),
475 PCI_DEV_HW_SPEC_BM( 437a, 1002, 0x00, ATA_SA150, "ATI IXP400" , SIIMIO | SIINOSATAIRQ | UNIATA_SATA ),
476
477 PCI_DEV_HW_SPEC_BM( 0004, 1103, 0x05, ATA_UDMA6, "HighPoint HPT372" , HPT372 | 0x00 | UNIATA_RAID_CONTROLLER),
478 PCI_DEV_HW_SPEC_BM( 0004, 1103, 0x03, ATA_UDMA5, "HighPoint HPT370" , HPT370 | 0x00 | UNIATA_RAID_CONTROLLER),
479 PCI_DEV_HW_SPEC_BM( 0004, 1103, 0x02, ATA_UDMA4, "HighPoint HPT368" , HPT366 | 0x00 | UNIATA_RAID_CONTROLLER),
480 PCI_DEV_HW_SPEC_BM( 0004, 1103, 0x00, ATA_UDMA4, "HighPoint HPT366" , HPT366 | HPTOLD | UNIATA_RAID_CONTROLLER),
481 PCI_DEV_HW_SPEC_BM( 0005, 1103, 0x01, ATA_UDMA6, "HighPoint HPT372" , HPT372 | 0x00 | UNIATA_RAID_CONTROLLER),
482 PCI_DEV_HW_SPEC_BM( 0005, 1103, 0x00, ATA_UDMA4, "HighPoint HPT372" , HPT372 | HPTOLD | UNIATA_RAID_CONTROLLER),
483 PCI_DEV_HW_SPEC_BM( 0006, 1103, 0x01, ATA_UDMA6, "HighPoint HPT302" , HPT372 | 0x00 | UNIATA_RAID_CONTROLLER),
484 PCI_DEV_HW_SPEC_BM( 0007, 1103, 0x01, ATA_UDMA6, "HighPoint HPT371" , HPT372 | 0x00 | UNIATA_RAID_CONTROLLER),
485 PCI_DEV_HW_SPEC_BM( 0008, 1103, 0x07, ATA_UDMA6, "HighPoint HPT374" , HPT374 | 0x00 | UNIATA_RAID_CONTROLLER),
486
487 PCI_DEV_HW_SPEC_BM( 1230, 8086, 0x00, ATA_WDMA2, "Intel PIIX" , 0 ),
488 PCI_DEV_HW_SPEC_BM( 7010, 8086, 0x00, ATA_WDMA2, "Intel PIIX3" , 0 ),
489 PCI_DEV_HW_SPEC_BM( 7111, 8086, 0x00, ATA_UDMA3, "Intel PIIX4" , 0 ),
490 PCI_DEV_HW_SPEC_BM( 7199, 8086, 0x00, ATA_UDMA2, "Intel PIIX4" , 0 ),
491 PCI_DEV_HW_SPEC_BM( 84ca, 8086, 0x00, ATA_UDMA2, "Intel PIIX4" , 0 ),
492 PCI_DEV_HW_SPEC_BM( 7601, 8086, 0x00, ATA_UDMA2, "Intel ICH0" , 0 ),
493 PCI_DEV_HW_SPEC_BM( 2421, 8086, 0x00, ATA_UDMA4, "Intel ICH" , 0 ),
494 PCI_DEV_HW_SPEC_BM( 2411, 8086, 0x00, ATA_UDMA4, "Intel ICH" , 0 ),
495 PCI_DEV_HW_SPEC_BM( 244a, 8086, 0x00, ATA_UDMA5, "Intel ICH2" , 0 ),
496 PCI_DEV_HW_SPEC_BM( 244b, 8086, 0x00, ATA_UDMA5, "Intel ICH2" , 0 ),
497 PCI_DEV_HW_SPEC_BM( 248a, 8086, 0x00, ATA_UDMA5, "Intel ICH3" , 0 ),
498 PCI_DEV_HW_SPEC_BM( 248b, 8086, 0x00, ATA_UDMA5, "Intel ICH3" , 0 ),
499 PCI_DEV_HW_SPEC_BM( 24cb, 8086, 0x00, ATA_UDMA5, "Intel ICH4" , ICH4_FIX | UNIATA_NO_DPC ),
500 PCI_DEV_HW_SPEC_BM( 24ca, 8086, 0x00, ATA_UDMA5, "Intel ICH4" , ICH4_FIX | UNIATA_NO_DPC ),
501 PCI_DEV_HW_SPEC_BM( 24db, 8086, 0x00, ATA_UDMA5, "Intel ICH5 EB" , 0 ),
502 PCI_DEV_HW_SPEC_BM( 24d1, 8086, 0x00, ATA_SA150, "Intel ICH5 EB1" , UNIATA_SATA ),
503 PCI_DEV_HW_SPEC_BM( 24df, 8086, 0x00, ATA_SA150, "Intel ICH5 EB2" , UNIATA_SATA ),
504 PCI_DEV_HW_SPEC_BM( 25a2, 8086, 0x00, ATA_UDMA5, "Intel 6300ESB" , 0 ),
505 PCI_DEV_HW_SPEC_BM( 25a3, 8086, 0x00, ATA_SA150, "Intel 6300ESB1" , UNIATA_SATA ),
506 PCI_DEV_HW_SPEC_BM( 25b0, 8086, 0x00, ATA_SA150, "Intel 6300ESB2" , UNIATA_SATA ),
507 PCI_DEV_HW_SPEC_BM( 266f, 8086, 0x00, ATA_UDMA5, "Intel ICH6" , 0 ),
508 PCI_DEV_HW_SPEC_BM( 2651, 8086, 0x00, ATA_SA150, "Intel ICH6" , UNIATA_SATA | UNIATA_AHCI ),
509 PCI_DEV_HW_SPEC_BM( 2652, 8086, 0x00, ATA_SA150, "Intel ICH6" , UNIATA_SATA | UNIATA_AHCI ),
510 PCI_DEV_HW_SPEC_BM( 2653, 8086, 0x00, ATA_SA150, "Intel ICH6M" , UNIATA_SATA | UNIATA_AHCI ),
511 PCI_DEV_HW_SPEC_BM( 27df, 8086, 0x00, ATA_UDMA5, "Intel ICH7" , 0 ),
512 PCI_DEV_HW_SPEC_BM( 27c0, 8086, 0x00, ATA_SA300, "Intel ICH7" , UNIATA_SATA | UNIATA_AHCI ),
513 PCI_DEV_HW_SPEC_BM( 27c1, 8086, 0x00, ATA_SA300, "Intel ICH7" , UNIATA_SATA | UNIATA_AHCI ),
514 PCI_DEV_HW_SPEC_BM( 27c3, 8086, 0x00, ATA_SA300, "Intel ICH7" , UNIATA_SATA | UNIATA_AHCI ),
515 PCI_DEV_HW_SPEC_BM( 27c4, 8086, 0x00, ATA_SA300, "Intel ICH7M" , UNIATA_SATA | UNIATA_AHCI ),
516 PCI_DEV_HW_SPEC_BM( 27c5, 8086, 0x00, ATA_SA300, "Intel ICH7M" , UNIATA_SATA | UNIATA_AHCI ),
517 PCI_DEV_HW_SPEC_BM( 27c6, 8086, 0x00, ATA_SA300, "Intel ICH7M" , UNIATA_SATA | UNIATA_AHCI ),
518 PCI_DEV_HW_SPEC_BM( 269e, 8086, 0x00, ATA_UDMA5, "Intel 63XXESB2" , 0 ),
519 PCI_DEV_HW_SPEC_BM( 2680, 8086, 0x00, ATA_SA300, "Intel 63XXESB2" , UNIATA_SATA | UNIATA_AHCI ),
520 PCI_DEV_HW_SPEC_BM( 2681, 8086, 0x00, ATA_SA300, "Intel 63XXESB2" , UNIATA_SATA | UNIATA_AHCI ),
521 PCI_DEV_HW_SPEC_BM( 2682, 8086, 0x00, ATA_SA300, "Intel 63XXESB2" , UNIATA_SATA | UNIATA_AHCI ),
522 PCI_DEV_HW_SPEC_BM( 2683, 8086, 0x00, ATA_SA300, "Intel 63XXESB2" , UNIATA_SATA | UNIATA_AHCI ),
523 PCI_DEV_HW_SPEC_BM( 2820, 8086, 0x00, ATA_SA300, "Intel ICH8" , 0 ),
524 PCI_DEV_HW_SPEC_BM( 2821, 8086, 0x00, ATA_SA300, "Intel ICH8" , UNIATA_SATA | UNIATA_AHCI ),
525 PCI_DEV_HW_SPEC_BM( 2822, 8086, 0x00, ATA_SA300, "Intel ICH8" , UNIATA_SATA | UNIATA_AHCI ),
526 PCI_DEV_HW_SPEC_BM( 2824, 8086, 0x00, ATA_SA300, "Intel ICH8" , UNIATA_SATA | UNIATA_AHCI ),
527 PCI_DEV_HW_SPEC_BM( 2825, 8086, 0x00, ATA_SA300, "Intel ICH8" , UNIATA_SATA | UNIATA_AHCI ),
528 PCI_DEV_HW_SPEC_BM( 2829, 8086, 0x00, ATA_SA300, "Intel ICH8M" , UNIATA_SATA | UNIATA_AHCI ),
529 PCI_DEV_HW_SPEC_BM( 282a, 8086, 0x00, ATA_SA300, "Intel ICH8M" , UNIATA_SATA | UNIATA_AHCI ),
530 PCI_DEV_HW_SPEC_BM( 2920, 8086, 0x00, ATA_SA300, "Intel ICH9" , UNIATA_SATA | UNIATA_AHCI ),
531 PCI_DEV_HW_SPEC_BM( 2926, 8086, 0x00, ATA_SA300, "Intel ICH9" , UNIATA_SATA | UNIATA_AHCI ),
532 PCI_DEV_HW_SPEC_BM( 2923, 8086, 0x00, ATA_SA300, "Intel ICH9" , UNIATA_SATA | UNIATA_AHCI ),
533 PCI_DEV_HW_SPEC_BM( 2922, 8086, 0x00, ATA_SA300, "Intel ICH9" , UNIATA_SATA | UNIATA_AHCI ),
534 // PCI_DEV_HW_SPEC_BM( 3200, 8086, 0x00, ATA_SA150, "Intel 31244" , UNIATA_SATA ),
535
536 PCI_DEV_HW_SPEC_BM( 01bc, 10de, 0x00, ATA_UDMA5, "nVidia nForce" , AMDNVIDIA ),
537 PCI_DEV_HW_SPEC_BM( 0065, 10de, 0x00, ATA_UDMA6, "nVidia nForce2" , AMDNVIDIA ),
538 PCI_DEV_HW_SPEC_BM( 0085, 10de, 0x00, ATA_UDMA6, "nVidia nForce2 Pro",AMDNVIDIA ),
539 PCI_DEV_HW_SPEC_BM( 008e, 10de, 0x00, ATA_SA150, "nVidia nForce2 Pro S1",UNIATA_SATA ),
540 PCI_DEV_HW_SPEC_BM( 00d5, 10de, 0x00, ATA_UDMA6, "nVidia nForce3" , AMDNVIDIA ),
541 PCI_DEV_HW_SPEC_BM( 00e5, 10de, 0x00, ATA_UDMA6, "nVidia nForce3 Pro",AMDNVIDIA ),
542 PCI_DEV_HW_SPEC_BM( 00e3, 10de, 0x00, ATA_SA150, "nVidia nForce3 Pro S1",UNIATA_SATA ),
543 PCI_DEV_HW_SPEC_BM( 00ee, 10de, 0x00, ATA_SA150, "nVidia nForce3 Pro S2",UNIATA_SATA ),
544 PCI_DEV_HW_SPEC_BM( 0035, 10de, 0x00, ATA_UDMA6, "nVidia nForce MCP", AMDNVIDIA ),
545 PCI_DEV_HW_SPEC_BM( 0036, 10de, 0x00, ATA_SA150, "nVidia nForce MCP S1",NV4OFF | UNIATA_SATA ),
546 PCI_DEV_HW_SPEC_BM( 003e, 10de, 0x00, ATA_SA150, "nVidia nForce MCP S2",NV4OFF | UNIATA_SATA ),
547 PCI_DEV_HW_SPEC_BM( 0053, 10de, 0x00, ATA_UDMA6, "nVidia nForce CK804", AMDNVIDIA ),
548 PCI_DEV_HW_SPEC_BM( 0054, 10de, 0x00, ATA_SA300, "nVidia nForce CK804 S1",NV4OFF | UNIATA_SATA ),
549 PCI_DEV_HW_SPEC_BM( 0055, 10de, 0x00, ATA_SA300, "nVidia nForce CK804 S2",NV4OFF | UNIATA_SATA ),
550 PCI_DEV_HW_SPEC_BM( 0265, 10de, 0x00, ATA_UDMA6, "nVidia nForce MCP51", AMDNVIDIA ),
551 PCI_DEV_HW_SPEC_BM( 0266, 10de, 0x00, ATA_SA300, "nVidia nForce MCP51 S1",NV4OFF | NVQ | UNIATA_SATA ),
552 PCI_DEV_HW_SPEC_BM( 0267, 10de, 0x00, ATA_SA300, "nVidia nForce MCP51 S2",NV4OFF | NVQ | UNIATA_SATA ),
553 PCI_DEV_HW_SPEC_BM( 036e, 10de, 0x00, ATA_UDMA6, "nVidia nForce MCP55", AMDNVIDIA ),
554 PCI_DEV_HW_SPEC_BM( 037e, 10de, 0x00, ATA_SA300, "nVidia nForce MCP55 S1",NV4OFF | NVQ | UNIATA_SATA ),
555 PCI_DEV_HW_SPEC_BM( 037f, 10de, 0x00, ATA_SA300, "nVidia nForce MCP55 S2",NV4OFF | NVQ | UNIATA_SATA ),
556
557 PCI_DEV_HW_SPEC_BM( 0502, 100b, 0x00, ATA_UDMA2, "National Geode SC1100", 0 ),
558
559 PCI_DEV_HW_SPEC_BM( 4d33, 105a, 0x00, ATA_UDMA2, "Promise PDC20246" , PROLD | 0x00 ),
560 PCI_DEV_HW_SPEC_BM( 4d38, 105a, 0x00, ATA_UDMA4, "Promise PDC20262" , PRNEW | 0x00 ),
561 PCI_DEV_HW_SPEC_BM( 0d38, 105a, 0x00, ATA_UDMA4, "Promise PDC20263" , PRNEW | 0x00 | UNIATA_RAID_CONTROLLER),
562 PCI_DEV_HW_SPEC_BM( 0d30, 105a, 0x00, ATA_UDMA5, "Promise PDC20265" , PRNEW | 0x00 | UNIATA_RAID_CONTROLLER),
563 PCI_DEV_HW_SPEC_BM( 4d30, 105a, 0x00, ATA_UDMA5, "Promise PDC20267" , PRNEW | 0x00 | UNIATA_RAID_CONTROLLER),
564 PCI_DEV_HW_SPEC_BM( 4d68, 105a, 0x00, ATA_UDMA5, "Promise PDC20268" , PRTX | PRTX4 | UNIATA_RAID_CONTROLLER),
565 PCI_DEV_HW_SPEC_BM( 4d69, 105a, 0x00, ATA_UDMA6, "Promise PDC20269" , PRTX | 0x00 | UNIATA_RAID_CONTROLLER),
566 PCI_DEV_HW_SPEC_BM( 6268, 105a, 0x00, ATA_UDMA5, "Promise PDC20270" , PRTX | PRTX4 | UNIATA_RAID_CONTROLLER),
567 PCI_DEV_HW_SPEC_BM( 6269, 105a, 0x00, ATA_UDMA6, "Promise PDC20271" , PRTX | 0x00 | UNIATA_RAID_CONTROLLER),
568 PCI_DEV_HW_SPEC_BM( 1275, 105a, 0x00, ATA_UDMA6, "Promise PDC20275" , PRTX | 0x00 | UNIATA_RAID_CONTROLLER),
569 PCI_DEV_HW_SPEC_BM( 5275, 105a, 0x00, ATA_UDMA6, "Promise PDC20276" , PRTX | PRSX6K | UNIATA_RAID_CONTROLLER),
570 PCI_DEV_HW_SPEC_BM( 7275, 105a, 0x00, ATA_UDMA6, "Promise PDC20277" , PRTX | 0x00 | UNIATA_RAID_CONTROLLER),
571 PCI_DEV_HW_SPEC_BM( 3318, 105a, 0x00, ATA_SA150, "Promise PDC20318" , PRMIO | PRSATA | UNIATA_RAID_CONTROLLER | UNIATA_SATA),
572 PCI_DEV_HW_SPEC_BM( 3319, 105a, 0x00, ATA_SA150, "Promise PDC20319" , PRMIO | PRSATA | UNIATA_RAID_CONTROLLER | UNIATA_SATA),
573 PCI_DEV_HW_SPEC_BM( 3371, 105a, 0x00, ATA_SA150, "Promise PDC20371" , PRMIO | PRSATA | UNIATA_RAID_CONTROLLER | UNIATA_SATA),
574 PCI_DEV_HW_SPEC_BM( 3375, 105a, 0x00, ATA_SA150, "Promise PDC20375" , PRMIO | PRSATA | UNIATA_RAID_CONTROLLER | UNIATA_SATA),
575 PCI_DEV_HW_SPEC_BM( 3376, 105a, 0x00, ATA_SA150, "Promise PDC20376" , PRMIO | PRSATA | UNIATA_RAID_CONTROLLER | UNIATA_SATA),
576 PCI_DEV_HW_SPEC_BM( 3377, 105a, 0x00, ATA_SA150, "Promise PDC20377" , PRMIO | PRSATA | UNIATA_RAID_CONTROLLER | UNIATA_SATA),
577 PCI_DEV_HW_SPEC_BM( 3373, 105a, 0x00, ATA_SA150, "Promise PDC20378" , PRMIO | PRSATA | UNIATA_RAID_CONTROLLER | UNIATA_SATA),
578 PCI_DEV_HW_SPEC_BM( 3372, 105a, 0x00, ATA_SA150, "Promise PDC20379" , PRMIO | PRSATA | UNIATA_RAID_CONTROLLER | UNIATA_SATA),
579 PCI_DEV_HW_SPEC_BM( 6617, 105a, 0x00, ATA_UDMA6, "Promise PDC20617" , PRMIO | PRDUAL | UNIATA_RAID_CONTROLLER),
580 PCI_DEV_HW_SPEC_BM( 6626, 105a, 0x00, ATA_UDMA6, "Promise PDC20618" , PRMIO | PRDUAL | UNIATA_RAID_CONTROLLER),
581 PCI_DEV_HW_SPEC_BM( 6629, 105a, 0x00, ATA_UDMA6, "Promise PDC20619" , PRMIO | PRDUAL | UNIATA_RAID_CONTROLLER),
582 PCI_DEV_HW_SPEC_BM( 6620, 105a, 0x00, ATA_UDMA6, "Promise PDC20620" , PRMIO | PRDUAL | UNIATA_RAID_CONTROLLER),
583 /* PCI_DEV_HW_SPEC_BM( 6621, 105a, 0x00, ATA_UDMA6, "Promise PDC20621" , PRMIO | PRSX4X | UNIATA_RAID_CONTROLLER),
584 PCI_DEV_HW_SPEC_BM( 6622, 105a, 0x00, ATA_UDMA6, "Promise PDC20622" , PRMIO | PRSX4X | UNIATA_RAID_CONTROLLER),*/
585
586 PCI_DEV_HW_SPEC_BM( 0211, 1166, 0x00, ATA_UDMA2, "ServerWorks ROSB4", SWKS33 | UNIATA_NO_DPC ),
587 PCI_DEV_HW_SPEC_BM( 0212, 1166, 0x92, ATA_UDMA5, "ServerWorks CSB5" , SWKS100 ),
588 PCI_DEV_HW_SPEC_BM( 0212, 1166, 0x00, ATA_UDMA4, "ServerWorks CSB5" , SWKS66 ),
589 PCI_DEV_HW_SPEC_BM( 0213, 1166, 0x00, ATA_UDMA5, "ServerWorks CSB6" , SWKS100 ),
590 PCI_DEV_HW_SPEC_BM( 0217, 1166, 0x00, ATA_UDMA4, "ServerWorks CSB6" , SWKS66 ),
591 PCI_DEV_HW_SPEC_BM( 0214, 1166, 0x00, ATA_UDMA5, "ServerWorks HT1000" , SWKS100 ),
592 PCI_DEV_HW_SPEC_BM( 024b, 1166, 0x00, ATA_SA150, "ServerWorks HT1000" , SWKS100 ),
593 PCI_DEV_HW_SPEC_BM( 024a, 1166, 0x00, ATA_SA150, "ServerWorks HT1000" , SWKSMIO ),
594 PCI_DEV_HW_SPEC_BM( 0240, 1166, 0x00, ATA_SA150, "ServerWorks K2" , SWKSMIO ),
595 PCI_DEV_HW_SPEC_BM( 0241, 1166, 0x00, ATA_SA150, "ServerWorks Frodo4" , SWKSMIO ),
596 PCI_DEV_HW_SPEC_BM( 0242, 1166, 0x00, ATA_SA150, "ServerWorks Frodo8" , SWKSMIO ),
597
598 PCI_DEV_HW_SPEC_BM( 3114, 1095, 0x00, ATA_SA150, "SiI 3114" , SIIMIO | SII4CH | UNIATA_SATA ),
599 PCI_DEV_HW_SPEC_BM( 3512, 1095, 0x02, ATA_SA150, "SiI 3512" , SIIMIO | UNIATA_SATA ),
600 PCI_DEV_HW_SPEC_BM( 3112, 1095, 0x02, ATA_SA150, "SiI 3112" , SIIMIO | UNIATA_SATA ),
601 PCI_DEV_HW_SPEC_BM( 0240, 1095, 0x02, ATA_SA150, "SiI 3112" , SIIMIO | UNIATA_SATA ),
602 PCI_DEV_HW_SPEC_BM( 3512, 1095, 0x00, ATA_SA150, "SiI 3512" , SIIMIO | SIIBUG | UNIATA_SATA ),
603 PCI_DEV_HW_SPEC_BM( 3112, 1095, 0x00, ATA_SA150, "SiI 3112" , SIIMIO | SIIBUG | UNIATA_SATA ),
604 PCI_DEV_HW_SPEC_BM( 0240, 1095, 0x00, ATA_SA150, "SiI 3112" , SIIMIO | SIIBUG | UNIATA_SATA ),
605 PCI_DEV_HW_SPEC_BM( 0680, 1095, 0x00, ATA_UDMA6, "SiI 0680" , SIIMIO | SIISETCLK ),
606 PCI_DEV_HW_SPEC_BM( 0649, 1095, 0x00, ATA_UDMA5, "CMD 649" , SIICMD | SIIINTR | UNIATA_NO_DPC_ATAPI ),
607 PCI_DEV_HW_SPEC_BM( 0648, 1095, 0x00, ATA_UDMA4, "CMD 648" , SIICMD | SIIINTR ),
608 PCI_DEV_HW_SPEC_BM( 0646, 1095, 0x07, ATA_UDMA2, "CMD 646U2" , SIICMD | 0 ),
609 PCI_DEV_HW_SPEC_BM( 0646, 1095, 0x00, ATA_WDMA2, "CMD 646" , SIICMD | 0 ),
610 PCI_DEV_HW_SPEC_BM( 0640, 1095, 0x00, ATA_PIO4 , "CMD 640" , SIIOLD | SIIENINTR | UNIATA_SIMPLEX_ONLY),
611
612 /** PCI_DEV_HW_SPEC_BM( 0963, 1039, 0x00, ATA_UDMA6, "SiS 963" , SIS133NEW ),
613 PCI_DEV_HW_SPEC_BM( 0962, 1039, 0x00, ATA_UDMA6, "SiS 962" , SIS133NEW ),
614
615 PCI_DEV_HW_SPEC_BM( 0755, 1039, 0x00, ATA_UDMA6, "SiS 755" , SIS_SOUTH ),
616 PCI_DEV_HW_SPEC_BM( 0752, 1039, 0x00, ATA_UDMA6, "SiS 752" , SIS_SOUTH ),
617 PCI_DEV_HW_SPEC_BM( 0751, 1039, 0x00, ATA_UDMA6, "SiS 751" , SIS_SOUTH ),
618 PCI_DEV_HW_SPEC_BM( 0750, 1039, 0x00, ATA_UDMA6, "SiS 750" , SIS_SOUTH ),
619 PCI_DEV_HW_SPEC_BM( 0748, 1039, 0x00, ATA_UDMA6, "SiS 748" , SIS_SOUTH ),
620 PCI_DEV_HW_SPEC_BM( 0746, 1039, 0x00, ATA_UDMA6, "SiS 746" , SIS_SOUTH ),
621 PCI_DEV_HW_SPEC_BM( 0745, 1039, 0x00, ATA_UDMA5, "SiS 745" , SIS100NEW ),
622 PCI_DEV_HW_SPEC_BM( 0740, 1039, 0x00, ATA_UDMA5, "SiS 740" , SIS_SOUTH ),
623 PCI_DEV_HW_SPEC_BM( 0735, 1039, 0x00, ATA_UDMA5, "SiS 735" , SIS100NEW ),
624 PCI_DEV_HW_SPEC_BM( 0733, 1039, 0x00, ATA_UDMA5, "SiS 733" , SIS100NEW ),
625 PCI_DEV_HW_SPEC_BM( 0730, 1039, 0x00, ATA_UDMA5, "SiS 730" , SIS100OLD ),
626
627 PCI_DEV_HW_SPEC_BM( 0658, 1039, 0x00, ATA_UDMA6, "SiS 658" , SIS_SOUTH ),
628 PCI_DEV_HW_SPEC_BM( 0655, 1039, 0x00, ATA_UDMA6, "SiS 655" , SIS_SOUTH ),
629 PCI_DEV_HW_SPEC_BM( 0652, 1039, 0x00, ATA_UDMA6, "SiS 652" , SIS_SOUTH ),
630 PCI_DEV_HW_SPEC_BM( 0651, 1039, 0x00, ATA_UDMA6, "SiS 651" , SIS_SOUTH ),
631 PCI_DEV_HW_SPEC_BM( 0650, 1039, 0x00, ATA_UDMA6, "SiS 650" , SIS_SOUTH ),
632 PCI_DEV_HW_SPEC_BM( 0648, 1039, 0x00, ATA_UDMA6, "SiS 648" , SIS_SOUTH ),
633 PCI_DEV_HW_SPEC_BM( 0646, 1039, 0x00, ATA_UDMA6, "SiS 645DX" , SIS_SOUTH ),
634 PCI_DEV_HW_SPEC_BM( 0645, 1039, 0x00, ATA_UDMA6, "SiS 645" , SIS_SOUTH ),
635 PCI_DEV_HW_SPEC_BM( 0640, 1039, 0x00, ATA_UDMA4, "SiS 640" , SIS_SOUTH ),
636 PCI_DEV_HW_SPEC_BM( 0635, 1039, 0x00, ATA_UDMA5, "SiS 635" , SIS100NEW ),
637 PCI_DEV_HW_SPEC_BM( 0633, 1039, 0x00, ATA_UDMA5, "SiS 633" , SIS100NEW ),
638 PCI_DEV_HW_SPEC_BM( 0630, 1039, 0x00, ATA_UDMA5, "SiS 630S" , SIS100OLD ),
639 PCI_DEV_HW_SPEC_BM( 0630, 1039, 0x00, ATA_UDMA4, "SiS 630" , SIS66, ),
640 PCI_DEV_HW_SPEC_BM( 0620, 1039, 0x00, ATA_UDMA4, "SiS 620" , SIS66, ),
641
642 PCI_DEV_HW_SPEC_BM( 0550, 1039, 0x00, ATA_UDMA5, "SiS 550" , SIS66, ),
643 PCI_DEV_HW_SPEC_BM( 0540, 1039, 0x00, ATA_UDMA4, "SiS 540" , SIS66, ),
644 PCI_DEV_HW_SPEC_BM( 0530, 1039, 0x00, ATA_UDMA4, "SiS 530" , SIS66, ),
645 */
646 PCI_DEV_HW_SPEC_BM( 5513, 1039, 0xc2, ATA_UDMA2, "SiS ATA-xxx" , 0 ),
647 PCI_DEV_HW_SPEC_BM( 5513, 1039, 0x00, ATA_WDMA2, "SiS ATA-xxx" , 0 ),
648 PCI_DEV_HW_SPEC_BM( 0601, 1039, 0x00, ATA_WDMA2, "SiS ATA-xxx" , 0 ),
649
650 /* PCI_DEV_HW_SPEC_BM( 0586, 1106, 0x41, ATA_UDMA2, "VIA 82C586B" , VIA33 | 0x00 ),
651 PCI_DEV_HW_SPEC_BM( 0586, 1106, 0x40, ATA_UDMA2, "VIA 82C586B" , VIA33 | VIAPRQ ),
652 PCI_DEV_HW_SPEC_BM( 0586, 1106, 0x02, ATA_UDMA2, "VIA 82C586B" , VIA33 | 0x00 ),
653 PCI_DEV_HW_SPEC_BM( 0586, 1106, 0x00, ATA_WDMA2, "VIA 82C586" , VIA33 | 0x00 ),
654 PCI_DEV_HW_SPEC_BM( 0596, 1106, 0x12, ATA_UDMA4, "VIA 82C596B" , VIA66 | VIACLK ),
655 PCI_DEV_HW_SPEC_BM( 0596, 1106, 0x00, ATA_UDMA2, "VIA 82C596" , VIA33 | 0x00 ),
656 PCI_DEV_HW_SPEC_BM( 0686, 1106, 0x40, ATA_UDMA5, "VIA 82C686B" , VIA100 | VIABUG ),
657 PCI_DEV_HW_SPEC_BM( 0686, 1106, 0x10, ATA_UDMA4, "VIA 82C686A" , VIA66 | VIACLK ),
658 PCI_DEV_HW_SPEC_BM( 0686, 1106, 0x00, ATA_UDMA2, "VIA 82C686" , VIA33 | 0x00 ),
659 PCI_DEV_HW_SPEC_BM( 8231, 1106, 0x00, ATA_UDMA5, "VIA 8231" , VIA100 | VIABUG ),
660 PCI_DEV_HW_SPEC_BM( 3074, 1106, 0x00, ATA_UDMA5, "VIA 8233" , VIA100 | 0x00 ),
661 PCI_DEV_HW_SPEC_BM( 3109, 1106, 0x00, ATA_UDMA5, "VIA 8233C" , VIA100 | 0x00 ),
662 PCI_DEV_HW_SPEC_BM( 3147, 1106, 0x00, ATA_UDMA6, "VIA 8233A" , VIA133 | VIAAST ),
663 PCI_DEV_HW_SPEC_BM( 3177, 1106, 0x00, ATA_UDMA6, "VIA 8235" , VIA133 | VIAAST ),
664 */
665 PCI_DEV_HW_SPEC_BM( 0571, 1106, 0x00, ATA_UDMA2, "VIA ATA-xxx" , 0 ),
666 PCI_DEV_HW_SPEC_BM( 3164, 1106, 0x00, ATA_UDMA6, "VIA 6410" , 0 ),
667 PCI_DEV_HW_SPEC_BM( 3149, 1106, 0x00, ATA_SA150, "VIA 6420" , 0 | UNIATA_SATA ),
668 PCI_DEV_HW_SPEC_BM( 3249, 1106, 0x00, ATA_SA150, "VIA 6421" , VIABAR | UNIATA_SATA ),
669 PCI_DEV_HW_SPEC_BM( 0591, 1106, 0x00, ATA_SA150, "VIA 8237A" , 0 | UNIATA_SATA ),
670 //PCI_DEV_HW_SPEC_BM( 3349, 1106, 0x00, ATA_SA150, "VIA 8251" , VIAAHCI| UNIATA_SATA ),
671
672 PCI_DEV_HW_SPEC_BM( c693, 1080, 0x00, ATA_WDMA2, "Cypress 82C693" ,0 ),
673
674 /*
675 PCI_DEV_HW_SPEC_BM( 4d68, 105a, 0, 0, "Promise TX2 ATA-100 controller", UNIATA_RAID_CONTROLLER),
676 PCI_DEV_HW_SPEC_BM( 6268, 105a, 0, 0, "Promise TX2 ATA-100 controller", UNIATA_RAID_CONTROLLER),
677
678 PCI_DEV_HW_SPEC_BM( 4d69, 105a, 0, 0, "Promise TX2 ATA-133 controller", UNIATA_RAID_CONTROLLER),
679 PCI_DEV_HW_SPEC_BM( 5275, 105a, 0, 0, "Promise TX2 ATA-133 controller", UNIATA_RAID_CONTROLLER),
680 PCI_DEV_HW_SPEC_BM( 6269, 105a, 0, 0, "Promise TX2 ATA-133 controller", UNIATA_RAID_CONTROLLER),
681 PCI_DEV_HW_SPEC_BM( 7275, 105a, 0, 0, "Promise TX2 ATA-133 controller", UNIATA_RAID_CONTROLLER),
682
683 PCI_DEV_HW_SPEC_BM( 4d33, 105a, 0, 0, "Promise Ultra/FastTrak-33 controller", UNIATA_RAID_CONTROLLER),
684
685 PCI_DEV_HW_SPEC_BM( 0d38, 105a, 0, 0, "Promise FastTrak 66 controller", 0),
686 PCI_DEV_HW_SPEC_BM( 4d38, 105a, 0, 0, "Promise Ultra/FastTrak-66 controller", UNIATA_RAID_CONTROLLER),
687
688 PCI_DEV_HW_SPEC_BM( 4d30, 105a, 0, 0, "Promise Ultra/FastTrak-100 controller", UNIATA_RAID_CONTROLLER),
689 PCI_DEV_HW_SPEC_BM( 0d30, 105a, 0, 0, "Promise OEM ATA-100 controllers", UNIATA_RAID_CONTROLLER),
690
691 PCI_DEV_HW_SPEC_BM( 0004, 1103, 0, 0, "HighPoint HPT366/368/370/372 controller", UNIATA_RAID_CONTROLLER),
692 PCI_DEV_HW_SPEC_BM( 0005, 1103, 0, 0, "HighPoint HPT372 controller", UNIATA_RAID_CONTROLLER),
693 PCI_DEV_HW_SPEC_BM( 0008, 1103, 0, 0, "HighPoint HPT374 controller", UNIATA_RAID_CONTROLLER),
694 */
695 PCI_DEV_HW_SPEC_BM( 0001, 16ca, 0x00, ATA_WDMA2, "Cenatek Rocket Drive",0 ),
696
697 PCI_DEV_HW_SPEC_BM( 0102, 1078, 0x00, ATA_UDMA2, "Cyrix 5530" , 0 ),
698
699 PCI_DEV_HW_SPEC_BM( 0102, 1042, 0x00, ATA_PIO4, "RZ 100x" , 0 ),
700
701 PCI_DEV_HW_SPEC_BM( 8172, 1283, 0x00, ATA_UDMA2, "IT8172" , 0 ),
702 PCI_DEV_HW_SPEC_BM( 8212, 1283, 0x00, ATA_UDMA6, "IT8212F" , ITE_133 ),
703
704 PCI_DEV_HW_SPEC_BM( 0044, 169c, 0x00, ATA_UDMA2, "Netcell SR3000/5000", 0 ),
705
706 PCI_DEV_HW_SPEC_BM( 8013, 3388, 0x00, ATA_DMA, "HiNT VXII EIDE" , 0 ),
707
708 // Terminator
709 PCI_DEV_HW_SPEC_BM( ffff, ffff, 0xff, BMLIST_TERMINATOR, NULL , BMLIST_TERMINATOR )
710 };
711
712 #define NUM_BUSMASTER_ADAPTERS (sizeof(BusMasterAdapters) / sizeof(BUSMASTER_CONTROLLER_INFORMATION))
713
714 /*
715 Looks for device with specified Device/Vendor and Revision
716 in specified device list and returnts its index.
717 If no matching record found, -1 is returned
718 */
719 __inline
720 ULONG
721 Ata_is_dev_listed(
722 PBUSMASTER_CONTROLLER_INFORMATION BusMasterAdapters,
723 ULONG VendorId,
724 ULONG DeviceId,
725 ULONG RevId, // min suitable revision
726 ULONG lim
727 )
728 {
729 for(ULONG k=0; k<lim; k++) {
730 if(BusMasterAdapters[k].nVendorId == 0xffff &&
731 BusMasterAdapters[k].nDeviceId == 0xffff &&
732 BusMasterAdapters[k].nRevId == 0xff) {
733 if(lim != BMLIST_TERMINATOR)
734 continue;
735 return BMLIST_TERMINATOR;
736 }
737 if(BusMasterAdapters[k].nVendorId == VendorId &&
738 (BusMasterAdapters[k].nDeviceId == DeviceId || DeviceId == 0xffff) &&
739 (!RevId || BusMasterAdapters[k].nRevId <= RevId) )
740 return k;
741 }
742 return BMLIST_TERMINATOR;
743 }
744
745 #define Ata_is_supported_dev(pciData) \
746 ((pciData)->BaseClass == PCI_DEV_CLASS_STORAGE && \
747 (pciData)->SubClass == PCI_DEV_SUBCLASS_IDE)
748
749
750 #endif //__IDE_BUSMASTER_H__