diff options
Diffstat (limited to 'drivers/ide/pci/siimage.c')
-rw-r--r-- | drivers/ide/pci/siimage.c | 232 |
1 files changed, 113 insertions, 119 deletions
diff --git a/drivers/ide/pci/siimage.c b/drivers/ide/pci/siimage.c index 590ce7b0f9f3..4cf8fc54aa2a 100644 --- a/drivers/ide/pci/siimage.c +++ b/drivers/ide/pci/siimage.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2001-2002 Andre Hedrick <andre@linux-ide.org> | 2 | * Copyright (C) 2001-2002 Andre Hedrick <andre@linux-ide.org> |
3 | * Copyright (C) 2003 Red Hat <alan@redhat.com> | 3 | * Copyright (C) 2003 Red Hat <alan@redhat.com> |
4 | * Copyright (C) 2007 MontaVista Software, Inc. | 4 | * Copyright (C) 2007-2008 MontaVista Software, Inc. |
5 | * Copyright (C) 2007-2008 Bartlomiej Zolnierkiewicz | 5 | * Copyright (C) 2007-2008 Bartlomiej Zolnierkiewicz |
6 | * | 6 | * |
7 | * May be copied or modified under the terms of the GNU General Public License | 7 | * May be copied or modified under the terms of the GNU General Public License |
@@ -17,10 +17,10 @@ | |||
17 | * | 17 | * |
18 | * FAQ Items: | 18 | * FAQ Items: |
19 | * If you are using Marvell SATA-IDE adapters with Maxtor drives | 19 | * If you are using Marvell SATA-IDE adapters with Maxtor drives |
20 | * ensure the system is set up for ATA100/UDMA5 not UDMA6. | 20 | * ensure the system is set up for ATA100/UDMA5, not UDMA6. |
21 | * | 21 | * |
22 | * If you are using WD drives with SATA bridges you must set the | 22 | * If you are using WD drives with SATA bridges you must set the |
23 | * drive to "Single". "Master" will hang | 23 | * drive to "Single". "Master" will hang. |
24 | * | 24 | * |
25 | * If you have strange problems with nVidia chipset systems please | 25 | * If you have strange problems with nVidia chipset systems please |
26 | * see the SI support documentation and update your system BIOS | 26 | * see the SI support documentation and update your system BIOS |
@@ -42,25 +42,24 @@ | |||
42 | #include <linux/hdreg.h> | 42 | #include <linux/hdreg.h> |
43 | #include <linux/ide.h> | 43 | #include <linux/ide.h> |
44 | #include <linux/init.h> | 44 | #include <linux/init.h> |
45 | 45 | #include <linux/io.h> | |
46 | #include <asm/io.h> | ||
47 | 46 | ||
48 | /** | 47 | /** |
49 | * pdev_is_sata - check if device is SATA | 48 | * pdev_is_sata - check if device is SATA |
50 | * @pdev: PCI device to check | 49 | * @pdev: PCI device to check |
51 | * | 50 | * |
52 | * Returns true if this is a SATA controller | 51 | * Returns true if this is a SATA controller |
53 | */ | 52 | */ |
54 | 53 | ||
55 | static int pdev_is_sata(struct pci_dev *pdev) | 54 | static int pdev_is_sata(struct pci_dev *pdev) |
56 | { | 55 | { |
57 | #ifdef CONFIG_BLK_DEV_IDE_SATA | 56 | #ifdef CONFIG_BLK_DEV_IDE_SATA |
58 | switch(pdev->device) { | 57 | switch (pdev->device) { |
59 | case PCI_DEVICE_ID_SII_3112: | 58 | case PCI_DEVICE_ID_SII_3112: |
60 | case PCI_DEVICE_ID_SII_1210SA: | 59 | case PCI_DEVICE_ID_SII_1210SA: |
61 | return 1; | 60 | return 1; |
62 | case PCI_DEVICE_ID_SII_680: | 61 | case PCI_DEVICE_ID_SII_680: |
63 | return 0; | 62 | return 0; |
64 | } | 63 | } |
65 | BUG(); | 64 | BUG(); |
66 | #endif | 65 | #endif |
@@ -70,10 +69,10 @@ static int pdev_is_sata(struct pci_dev *pdev) | |||
70 | /** | 69 | /** |
71 | * is_sata - check if hwif is SATA | 70 | * is_sata - check if hwif is SATA |
72 | * @hwif: interface to check | 71 | * @hwif: interface to check |
73 | * | 72 | * |
74 | * Returns true if this is a SATA controller | 73 | * Returns true if this is a SATA controller |
75 | */ | 74 | generated by cgit v1.2.2 (git 2.25.0) at 2025-09-24 15:29:44 -0400 |