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#include <linux/kernel.h>
28#include <linux/module.h>
29#include <linux/pci.h>
30#include <linux/blkdev.h>
31#include <linux/delay.h>
32#include <linux/device.h>
33#include <scsi/scsi_host.h>
34#include <linux/libata.h>
35#include <linux/ata.h>
36#include "sis.h"
37
38#define DRV_NAME "pata_sis"
39#define DRV_VERSION "0.5.2"
40
41struct sis_chipset {
42 u16 device;
43 const struct ata_port_info *info;
44
45
46};
47
48struct sis_laptop {
49 u16 device;
50 u16 subvendor;
51 u16 subdevice;
52};
53
54static const struct sis_laptop sis_laptop[] = {
55
56 { 0x5513, 0x1043, 0x1107 },
57 { 0x5513, 0x1734, 0x105F },
58 { 0x5513, 0x1071, 0x8640 },
59
60 { 0, }
61};
62
63static int sis_short_ata40(struct pci_dev *dev)
64{
65 const struct sis_laptop *lap = &sis_laptop[0];
66
67 while (lap->device) {
68 if (lap->device == dev->device &&
69 lap->subvendor == dev->subsystem_vendor &&
70 lap->subdevice == dev->subsystem_device)
71 return 1;
72 lap++;
73 }
74
75 return 0;
76}
77
78
79
80
81
82
83
84
85
86static int sis_old_port_base(struct ata_device *adev)
87{
88 return 0x40 + (4 * adev->link->ap->port_no) + (2 * adev->devno);
89}
90
91
92
93
94
95
96
97
98
99static int sis_port_base(struct ata_device *adev)
100{
101 struct ata_port *ap = adev->link->ap;
102 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
103 int port = 0x40;
104 u32 reg54;
105
106
107 pci_read_config_dword(pdev, 0x54, ®54);
108 if (reg54 & 0x40000000)
109 port = 0x70;
110
111 return port + (8 * ap->port_no) + (4 * adev->devno);
112}
113
114
115
116
117
118
119
120
121
122
123static int sis_133_cable_detect(struct ata_port *ap)
124{
125 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
126 u16 tmp;
127
128
129 pci_read_config_word(pdev, 0x50 + 2 * ap->port_no, &tmp);
130 if ((tmp & 0x8000) && !sis_short_ata40(pdev))
131 return ATA_CBL_PATA40;
132 return ATA_CBL_PATA80;
133}
134
135
136
137
138
139
140
141
142
143static int sis_66_cable_detect(struct ata_port *ap)
144{
145 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
146 u8 tmp;
147
148
149 pci_read_config_byte(pdev, 0x48, &tmp);
150 tmp >>= ap->port_no;
151 if ((tmp & 0x10) && !sis_short_ata40(pdev))
152 return ATA_CBL_PATA40;
153 return ATA_CBL_PATA80;
154}
155
156
157
158
159
160
161
162
163
164
165static int sis_pre_reset(struct ata_link *link, unsigned long deadline)
166{
167 static const struct pci_bits sis_enable_bits[] = {
168 { 0x4aU, 1U, 0x02UL, 0x02UL },
169 { 0x4aU, 1U, 0x04UL, 0x04UL },
170 };
171
172 struct ata_port *ap = link->ap;
173 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
174
175 if (!pci_test_config_bits(pdev, &sis_enable_bits[ap->port_no]))
176 return -ENOENT;
177
178
179
180 pci_write_config_byte(pdev, 0x4B, 0);
181 return ata_sff_prereset(link, deadline);
182}
183
184
185
186
187
188
189
190
191
192
193
194
195static void sis_set_fifo(struct ata_port *ap, struct ata_device *adev)
196{
197 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
198 u8 fifoctrl;
199 u8 mask = 0x11;
200
201 mask <<= (2 * ap->port_no);
202 mask <<= adev->devno;
203
204
205 pci_read_config_byte(pdev, 0x4B, &fifoctrl);
206 fifoctrl &= ~mask;
207
208
209 if (adev->class == ATA_DEV_ATA)
210 fifoctrl |= mask;
211 pci_write_config_byte(pdev, 0x4B, fifoctrl);
212}
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227static void sis_old_set_piomode (struct ata_port *ap, struct ata_device *adev)
228{
229 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
230 int port = sis_old_port_base(adev);
231 u8 t1, t2;
232 int speed = adev->pio_mode - XFER_PIO_0;
233
234 static const u8 active[] = { 0x00, 0x07, 0x04, 0x03, 0x01 };
235 static const u8 recovery[] = { 0x00, 0x06, 0x04, 0x03, 0x03 };
236
237 sis_set_fifo(ap, adev);
238
239 pci_read_config_byte(pdev, port, &t1);
240 pci_read_config_byte(pdev, port + 1, &t2);
241
242 t1 &= ~0x0F;
243 t2 &= ~0x07;
244
245 t1 |= active[speed];
246 t2 |= recovery[speed];
247
248 pci_write_config_byte(pdev, port, t1);
249 pci_write_config_byte(pdev, port + 1, t2);
250}
251
252
253
254
255
256
257
258
259
260
261
262
263
264static void sis_100_set_piomode (struct ata_port *ap, struct ata_device *adev)
265{
266 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
267 int port = sis_old_port_base(adev);
268 int speed = adev->pio_mode - XFER_PIO_0;
269
270 static const u8 actrec[] = { 0x00, 0x67, 0x44, 0x33, 0x31 };
271
272 sis_set_fifo(ap, adev);
273
274 pci_write_config_byte(pdev, port, actrec[speed]);
275}
276
277
278
279
280
281
282
283
284
285
286
287
288
289static void sis_133_set_piomode (struct ata_port *ap, struct ata_device *adev)
290{
291 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
292 int port;
293 u32 t1;
294 int speed = adev->pio_mode - XFER_PIO_0;
295
296 static const u32 timing133[] = {
297 0x28269000,
298 0x0C266000,
299 0x04263000,
300 0x0C0A3000,
301 0x05093000
302 };
303 static const u32 timing100[] = {
304 0x1E1C6000,
305 0x091C4000,
306 0x031C2000,
307 0x09072000,
308 0x04062000
309 };
310
311 sis_set_fifo(ap, adev);
312
313 port = sis_port_base(adev);
314 pci_read_config_dword(pdev, port, &t1);
315 t1 &= 0xC0C00FFF;
316
317 if (t1 & 0x08)
318 t1 |= timing133[speed];
319 else
320 t1 |= timing100[speed];
321 pci_write_config_byte(pdev, port, t1);
322}
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337static void sis_old_set_dmamode (struct ata_port *ap, struct ata_device *adev)
338{
339 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
340 int speed = adev->dma_mode - XFER_MW_DMA_0;
341 int drive_pci = sis_old_port_base(adev);
342 u16 timing;
343
344 static const u16 mwdma_bits[] = { 0x008, 0x302, 0x301 };
345 static const u16 udma_bits[] = { 0xE000, 0xC000, 0xA000 };
346
347 pci_read_config_word(pdev, drive_pci, &timing);
348
349 if (adev->dma_mode < XFER_UDMA_0) {
350
351
352 timing &= ~0x870F;
353 timing |= mwdma_bits[speed];
354 } else {
355
356 speed = adev->dma_mode - XFER_UDMA_0;
357 timing &= ~0x6000;
358 timing |= udma_bits[speed];
359 }
360 pci_write_config_word(pdev, drive_pci, timing);
361}
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376static void sis_66_set_dmamode (struct ata_port *ap, struct ata_device *adev)
377{
378 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
379 int speed = adev->dma_mode - XFER_MW_DMA_0;
380 int drive_pci = sis_old_port_base(adev);
381 u16 timing;
382
383
384 static const u16 mwdma_bits[] = { 0x008, 0x302, 0x301 };
385 static const u16 udma_bits[] = { 0xF000, 0xD000, 0xB000, 0xA000, 0x9000, 0x8000 };
386
387 pci_read_config_word(pdev, drive_pci, &timing);
388
389 if (adev->dma_mode < XFER_UDMA_0) {
390
391
392 timing &= ~0x870F;
393 timing |= mwdma_bits[speed];
394 } else {
395
396 speed = adev->dma_mode - XFER_UDMA_0;
397 timing &= ~0xF000;
398 timing |= udma_bits[speed];
399 }
400 pci_write_config_word(pdev, drive_pci, timing);
401}
402
403
404
405
406
407
408
409
410
411
412
413
414
415static void sis_100_set_dmamode (struct ata_port *ap, struct ata_device *adev)
416{
417 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
418 int speed = adev->dma_mode - XFER_MW_DMA_0;
419 int drive_pci = sis_old_port_base(adev);
420 u8 timing;
421
422 static const u8 udma_bits[] = { 0x8B, 0x87, 0x85, 0x83, 0x82, 0x81};
423
424 pci_read_config_byte(pdev, drive_pci + 1, &timing);
425
426 if (adev->dma_mode < XFER_UDMA_0) {
427
428 } else {
429
430 speed = adev->dma_mode - XFER_UDMA_0;
431 timing &= ~0x8F;
432 timing |= udma_bits[speed];
433 }
434 pci_write_config_byte(pdev, drive_pci + 1, timing);
435}
436
437
438
439
440
441
442
443
444
445
446
447
448
449static void sis_133_early_set_dmamode (struct ata_port *ap, struct ata_device *adev)
450{
451 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
452 int speed = adev->dma_mode - XFER_MW_DMA_0;
453 int drive_pci = sis_old_port_base(adev);
454 u8 timing;
455
456 static const u8 udma_bits[] = { 0x8F, 0x8A, 0x87, 0x85, 0x83, 0x82, 0x81};
457
458 pci_read_config_byte(pdev, drive_pci + 1, &timing);
459
460 if (adev->dma_mode < XFER_UDMA_0) {
461
462 } else {
463
464 speed = adev->dma_mode - XFER_UDMA_0;
465 timing &= ~0x8F;
466 timing |= udma_bits[speed];
467 }
468 pci_write_config_byte(pdev, drive_pci + 1, timing);
469}
470
471
472
473
474
475
476
477
478
479
480
481
482static void sis_133_set_dmamode (struct ata_port *ap, struct ata_device *adev)
483{
484 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
485 int port;
486 u32 t1;
487
488 port = sis_port_base(adev);
489 pci_read_config_dword(pdev, port, &t1);
490
491 if (adev->dma_mode < XFER_UDMA_0) {
492
493 static const u32 timing_u100[] = { 0x19154000, 0x06072000, 0x04062000 };
494 static const u32 timing_u133[] = { 0x221C6000, 0x0C0A3000, 0x05093000 };
495 int speed = adev->dma_mode - XFER_MW_DMA_0;
496
497 t1 &= 0xC0C00FFF;
498
499 t1 &= ~0x00000004;
500 if (t1 & 0x08)
501 t1 |= timing_u133[speed];
502 else
503 t1 |= timing_u100[speed];
504 } else {
505
506 static const u32 timing_u100[] = { 0x6B0, 0x470, 0x350, 0x140, 0x120, 0x110, 0x000 };
507 static const u32 timing_u133[] = { 0x9F0, 0x6A0, 0x470, 0x250, 0x230, 0x220, 0x210 };
508 int speed = adev->dma_mode - XFER_UDMA_0;
509
510 t1 &= ~0x00000FF0;
511
512 t1 |= 0x00000004;
513 if (t1 & 0x08)
514 t1 |= timing_u133[speed];
515 else
516 t1 |= timing_u100[speed];
517 }
518 pci_write_config_dword(pdev, port, t1);
519}
520
521
522
523
524
525
526
527
528static unsigned long sis_133_mode_filter(struct ata_device *adev, unsigned long mask)
529{
530 struct ata_port *ap = adev->link->ap;
531 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
532 int port = sis_port_base(adev);
533 u32 t1;
534
535 pci_read_config_dword(pdev, port, &t1);
536
537 if (!(t1 & 0x08))
538 mask &= ~(0xC0 << ATA_SHIFT_UDMA);
539 return mask;
540}
541
542static struct scsi_host_template sis_sht = {
543 ATA_BMDMA_SHT(DRV_NAME),
544};
545
546static struct ata_port_operations sis_133_for_sata_ops = {
547 .inherits = &ata_bmdma_port_ops,
548 .set_piomode = sis_133_set_piomode,
549 .set_dmamode = sis_133_set_dmamode,
550 .cable_detect = sis_133_cable_detect,
551};
552
553static struct ata_port_operations sis_base_ops = {
554 .inherits = &ata_bmdma_port_ops,
555 .prereset = sis_pre_reset,
556};
557
558static struct ata_port_operations sis_133_ops = {
559 .inherits = &sis_base_ops,
560 .set_piomode = sis_133_set_piomode,
561 .set_dmamode = sis_133_set_dmamode,
562 .cable_detect = sis_133_cable_detect,
563 .mode_filter = sis_133_mode_filter,
564};
565
566static struct ata_port_operations sis_133_early_ops = {
567 .inherits = &sis_base_ops,
568 .set_piomode = sis_100_set_piomode,
569 .set_dmamode = sis_133_early_set_dmamode,
570 .cable_detect = sis_66_cable_detect,
571};
572
573static struct ata_port_operations sis_100_ops = {
574 .inherits = &sis_base_ops,
575 .set_piomode = sis_100_set_piomode,
576 .set_dmamode = sis_100_set_dmamode,
577 .cable_detect = sis_66_cable_detect,
578};
579
580static struct ata_port_operations sis_66_ops = {
581 .inherits = &sis_base_ops,
582 .set_piomode = sis_old_set_piomode,
583 .set_dmamode = sis_66_set_dmamode,
584 .cable_detect = sis_66_cable_detect,
585};
586
587static struct ata_port_operations sis_old_ops = {
588 .inherits = &sis_base_ops,
589 .set_piomode = sis_old_set_piomode,
590 .set_dmamode = sis_old_set_dmamode,
591 .cable_detect = ata_cable_40wire,
592};
593
594static const struct ata_port_info sis_info = {
595 .flags = ATA_FLAG_SLAVE_POSS,
596 .pio_mask = ATA_PIO4,
597 .mwdma_mask = ATA_MWDMA2,
598
599 .port_ops = &sis_old_ops,
600};
601static const struct ata_port_info sis_info33 = {
602 .flags = ATA_FLAG_SLAVE_POSS,
603 .pio_mask = ATA_PIO4,
604 .mwdma_mask = ATA_MWDMA2,
605 .udma_mask = ATA_UDMA2,
606 .port_ops = &sis_old_ops,
607};
608static const struct ata_port_info sis_info66 = {
609 .flags = ATA_FLAG_SLAVE_POSS,
610 .pio_mask = ATA_PIO4,
611
612 .udma_mask = ATA_UDMA4,
613 .port_ops = &sis_66_ops,
614};
615static const struct ata_port_info sis_info100 = {
616 .flags = ATA_FLAG_SLAVE_POSS,
617 .pio_mask = ATA_PIO4,
618
619 .udma_mask = ATA_UDMA5,
620 .port_ops = &sis_100_ops,
621};
622static const struct ata_port_info sis_info100_early = {
623 .flags = ATA_FLAG_SLAVE_POSS,
624 .pio_mask = ATA_PIO4,
625
626 .udma_mask = ATA_UDMA5,
627 .port_ops = &sis_66_ops,
628};
629static const struct ata_port_info sis_info133 = {
630 .flags = ATA_FLAG_SLAVE_POSS,
631 .pio_mask = ATA_PIO4,
632 .mwdma_mask = ATA_MWDMA2,
633 .udma_mask = ATA_UDMA6,
634 .port_ops = &sis_133_ops,
635};
636const struct ata_port_info sis_info133_for_sata = {
637 .flags = ATA_FLAG_SLAVE_POSS,
638 .pio_mask = ATA_PIO4,
639
640 .udma_mask = ATA_UDMA6,
641 .port_ops = &sis_133_for_sata_ops,
642};
643static const struct ata_port_info sis_info133_early = {
644 .flags = ATA_FLAG_SLAVE_POSS,
645 .pio_mask = ATA_PIO4,
646
647 .udma_mask = ATA_UDMA6,
648 .port_ops = &sis_133_early_ops,
649};
650
651
652EXPORT_SYMBOL_GPL(sis_info133_for_sata);
653
654static void sis_fixup(struct pci_dev *pdev, struct sis_chipset *sis)
655{
656 u16 regw;
657 u8 reg;
658
659 if (sis->info == &sis_info133) {
660 pci_read_config_word(pdev, 0x50, ®w);
661 if (regw & 0x08)
662 pci_write_config_word(pdev, 0x50, regw & ~0x08);
663 pci_read_config_word(pdev, 0x52, ®w);
664 if (regw & 0x08)
665 pci_write_config_word(pdev, 0x52, regw & ~0x08);
666 return;
667 }
668
669 if (sis->info == &sis_info133_early || sis->info == &sis_info100) {
670
671 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0x80);
672
673 pci_read_config_byte(pdev, 0x49, ®);
674 if (!(reg & 0x01))
675 pci_write_config_byte(pdev, 0x49, reg | 0x01);
676 return;
677 }
678
679 if (sis->info == &sis_info66 || sis->info == &sis_info100_early) {
680
681 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0x80);
682
683 pci_read_config_byte(pdev, 0x52, ®);
684 if (!(reg & 0x04))
685 pci_write_config_byte(pdev, 0x52, reg | 0x04);
686 return;
687 }
688
689 if (sis->info == &sis_info33) {
690 pci_read_config_byte(pdev, PCI_CLASS_PROG, ®);
691 if (( reg & 0x0F ) != 0x00)
692 pci_write_config_byte(pdev, PCI_CLASS_PROG, reg & 0xF0);
693
694 }
695
696 if (sis->info == &sis_info || sis->info == &sis_info33) {
697
698
699 pci_read_config_byte(pdev, 0x52, ®);
700 if (!(reg & 0x08))
701 pci_write_config_byte(pdev, 0x52, reg|0x08);
702 return;
703 }
704
705 BUG();
706}
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
724{
725 const struct ata_port_info *ppi[] = { NULL, NULL };
726 struct pci_dev *host = NULL;
727 struct sis_chipset *chipset = NULL;
728 struct sis_chipset *sets;
729 int rc;
730
731 static struct sis_chipset sis_chipsets[] = {
732
733 { 0x0968, &sis_info133 },
734 { 0x0966, &sis_info133 },
735 { 0x0965, &sis_info133 },
736 { 0x0745, &sis_info100 },
737 { 0x0735, &sis_info100 },
738 { 0x0733, &sis_info100 },
739 { 0x0635, &sis_info100 },
740 { 0x0633, &sis_info100 },
741
742 { 0x0730, &sis_info100_early },
743 { 0x0550, &sis_info100_early },
744
745 { 0x0640, &sis_info66 },
746 { 0x0630, &sis_info66 },
747 { 0x0620, &sis_info66 },
748 { 0x0540, &sis_info66 },
749 { 0x0530, &sis_info66 },
750
751 { 0x5600, &sis_info33 },
752 { 0x5598, &sis_info33 },
753 { 0x5597, &sis_info33 },
754 { 0x5591, &sis_info33 },
755 { 0x5582, &sis_info33 },
756 { 0x5581, &sis_info33 },
757
758 { 0x5596, &sis_info },
759 { 0x5571, &sis_info },
760 { 0x5517, &sis_info },
761 { 0x5511, &sis_info },
762
763 {0}
764 };
765 static struct sis_chipset sis133_early = {
766 0x0, &sis_info133_early
767 };
768 static struct sis_chipset sis133 = {
769 0x0, &sis_info133
770 };
771 static struct sis_chipset sis100_early = {
772 0x0, &sis_info100_early
773 };
774 static struct sis_chipset sis100 = {
775 0x0, &sis_info100
776 };
777
778 ata_print_version_once(&pdev->dev, DRV_VERSION);
779
780 rc = pcim_enable_device(pdev);
781 if (rc)
782 return rc;
783
784
785 for (sets = &sis_chipsets[0]; sets->device; sets++) {
786 host = pci_get_device(PCI_VENDOR_ID_SI, sets->device, NULL);
787 if (host != NULL) {
788 chipset = sets;
789 if (sets->device == 0x630) {
790 if (host->revision >= 0x30)
791 chipset = &sis100_early;
792 }
793 break;
794 }
795 }
796
797
798 if (chipset == NULL) {
799
800 u32 idemisc;
801 u16 trueid;
802
803
804
805
806 pci_read_config_dword(pdev, 0x54, &idemisc);
807 pci_write_config_dword(pdev, 0x54, idemisc & 0x7fffffff);
808 pci_read_config_word(pdev, PCI_DEVICE_ID, &trueid);
809 pci_write_config_dword(pdev, 0x54, idemisc);
810
811 switch(trueid) {
812 case 0x5518:
813 dev_info(&pdev->dev,
814 "SiS 962/963 MuTIOL IDE UDMA133 controller\n");
815 chipset = &sis133;
816 if ((idemisc & 0x40000000) == 0) {
817 pci_write_config_dword(pdev, 0x54, idemisc | 0x40000000);
818 dev_info(&pdev->dev,
819 "Switching to 5513 register mapping\n");
820 }
821 break;
822 case 0x0180:
823 chipset = &sis133;
824 break;
825 case 0x1180:
826 chipset = &sis133;
827 break;
828 }
829 }
830
831
832 if (chipset == NULL) {
833 struct pci_dev *lpc_bridge;
834 u16 trueid;
835 u8 prefctl;
836 u8 idecfg;
837
838
839 pci_read_config_byte(pdev, 0x4a, &idecfg);
840 pci_write_config_byte(pdev, 0x4a, idecfg | 0x10);
841 pci_read_config_word(pdev, PCI_DEVICE_ID, &trueid);
842 pci_write_config_byte(pdev, 0x4a, idecfg);
843
844 switch(trueid) {
845 case 0x5517:
846 lpc_bridge = pci_get_slot(pdev->bus, 0x10);
847 if (lpc_bridge == NULL)
848 break;
849 pci_read_config_byte(pdev, 0x49, &prefctl);
850 pci_dev_put(lpc_bridge);
851
852 if (lpc_bridge->revision == 0x10 && (prefctl & 0x80)) {
853 chipset = &sis133_early;
854 break;
855 }
856 chipset = &sis100;
857 break;
858 }
859 }
860 pci_dev_put(host);
861
862
863 if (chipset == NULL)
864 return -ENODEV;
865
866 ppi[0] = chipset->info;
867
868 sis_fixup(pdev, chipset);
869
870 return ata_pci_bmdma_init_one(pdev, ppi, &sis_sht, chipset, 0);
871}
872
873#ifdef CONFIG_PM_SLEEP
874static int sis_reinit_one(struct pci_dev *pdev)
875{
876 struct ata_host *host = pci_get_drvdata(pdev);
877 int rc;
878
879 rc = ata_pci_device_do_resume(pdev);
880 if (rc)
881 return rc;
882
883 sis_fixup(pdev, host->private_data);
884
885 ata_host_resume(host);
886 return 0;
887}
888#endif
889
890static const struct pci_device_id sis_pci_tbl[] = {
891 { PCI_VDEVICE(SI, 0x5513), },
892 { PCI_VDEVICE(SI, 0x5518), },
893 { PCI_VDEVICE(SI, 0x1180), },
894
895 { }
896};
897
898static struct pci_driver sis_pci_driver = {
899 .name = DRV_NAME,
900 .id_table = sis_pci_tbl,
901 .probe = sis_init_one,
902 .remove = ata_pci_remove_one,
903#ifdef CONFIG_PM_SLEEP
904 .suspend = ata_pci_device_suspend,
905 .resume = sis_reinit_one,
906#endif
907};
908
909module_pci_driver(sis_pci_driver);
910
911MODULE_AUTHOR("Alan Cox");
912MODULE_DESCRIPTION("SCSI low-level driver for SiS ATA");
913MODULE_LICENSE("GPL");
914MODULE_DEVICE_TABLE(pci, sis_pci_tbl);
915MODULE_VERSION(DRV_VERSION);
916