aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/generic.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-18 18:30:06 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-10-18 18:30:06 -0400
commit47b687882c02f802dd5bbe1227effe006820246e (patch)
tree7b9048ebfa0a53203e4e3c55649f28e352a143cc /drivers/ide/pci/generic.c
parent7cab14a79973893392111b8f887856a54621f759 (diff)
ide: add IDE_HFLAG_NO_{DMA,AUTODMA} host flags
Add IDE_HFLAG_NO_{DMA,AUTODMA} host flags. Convert all host drivers using ide_pci_device_t to use these flags instead of d->autodma and then remove no longer needed d->autodma. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/generic.c')
-rw-r--r--drivers/ide/pci/generic.c29
1 files changed, 13 insertions, 16 deletions
diff --git a/drivers/ide/pci/generic.c b/drivers/ide/pci/generic.c
index 7389b6e2ed1d..88fa2963d1e3 100644
--- a/drivers/ide/pci/generic.c
+++ b/drivers/ide/pci/generic.c
@@ -78,48 +78,45 @@ static void __devinit init_hwif_generic (ide_hwif_t *hwif)
78 { \ 78 { \
79 .name = name_str, \ 79 .name = name_str, \
80 .init_hwif = init_hwif_generic, \ 80 .init_hwif = init_hwif_generic, \
81 .autodma = dma_setting, \
82 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | \ 81 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | \
82 dma_setting | \
83 IDE_HFLAG_BOOTABLE, \ 83 IDE_HFLAG_BOOTABLE, \
84 } 84 }
85 85
86static ide_pci_device_t generic_chipsets[] __devinitdata = { 86static ide_pci_device_t generic_chipsets[] __devinitdata = {
87 /* 0 */ DECLARE_GENERIC_PCI_DEV("Unknown", AUTODMA), 87 /* 0 */ DECLARE_GENERIC_PCI_DEV("Unknown", 0),
88 88
89 { /* 1 */ 89 { /* 1 */
90 .name = "NS87410", 90 .name = "NS87410",
91 .init_hwif = init_hwif_generic, 91 .init_hwif = init_hwif_generic,
92 .autodma = AUTODMA,
93 .enablebits = {{0x43,0x08,0x08}, {0x47,0x08,0x08}}, 92 .enablebits = {{0x43,0x08,0x08}, {0x47,0x08,0x08}},
94 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | 93 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA |
95 IDE_HFLAG_BOOTABLE, 94 IDE_HFLAG_BOOTABLE,
96 }, 95 },
97 96
98 /* 2 */ DECLARE_GENERIC_PCI_DEV("SAMURAI", AUTODMA), 97 /* 2 */ DECLARE_GENERIC_PCI_DEV("SAMURAI", 0),
99 /* 3 */ DECLARE_GENERIC_PCI_DEV("HT6565", AUTODMA), 98 /* 3 */ DECLARE_GENERIC_PCI_DEV("HT6565", 0),
100 /* 4 */ DECLARE_GENERIC_PCI_DEV("UM8673F", NODMA), 99 /* 4 */ DECLARE_GENERIC_PCI_DEV("UM8673F", IDE_HFLAG_NO_DMA),
101 /* 5 */ DECLARE_GENERIC_PCI_DEV("UM8886A", NODMA), 100 /* 5 */ DECLARE_GENERIC_PCI_DEV("UM8886A", IDE_HFLAG_NO_DMA),
102 /* 6 */ DECLARE_GENERIC_PCI_DEV("UM8886BF", NODMA), 101 /* 6 */ DECLARE_GENERIC_PCI_DEV("UM8886BF", IDE_HFLAG_NO_DMA),
103 /* 7 */ DECLARE_GENERIC_PCI_DEV("HINT_IDE", AUTODMA), 102 /* 7 */ DECLARE_GENERIC_PCI_DEV("HINT_IDE", 0),
104 /* 8 */ DECLARE_GENERIC_PCI_DEV("VIA_IDE", NOAUTODMA), 103 /* 8 */ DECLARE_GENERIC_PCI_DEV("VIA_IDE", IDE_HFLAG_NO_AUTODMA),
105 /* 9 */ DECLARE_GENERIC_PCI_DEV("OPTI621V", NOAUTODMA), 104 /* 9 */ DECLARE_GENERIC_PCI_DEV("OPTI621V", IDE_HFLAG_NO_AUTODMA),
106 105
107 { /* 10 */ 106 { /* 10 */
108 .name = "VIA8237SATA", 107 .name = "VIA8237SATA",
109 .init_hwif = init_hwif_generic, 108 .init_hwif = init_hwif_generic,
110 .autodma = AUTODMA,
111 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | 109 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA |
112 IDE_HFLAG_OFF_BOARD, 110 IDE_HFLAG_OFF_BOARD,
113 }, 111 },
114 112
115 /* 11 */ DECLARE_GENERIC_PCI_DEV("Piccolo0102", NOAUTODMA), 113 /* 11 */ DECLARE_GENERIC_PCI_DEV("Piccolo0102", IDE_HFLAG_NO_AUTODMA),
116 /* 12 */ DECLARE_GENERIC_PCI_DEV("Piccolo0103", NOAUTODMA), 114 /* 12 */ DECLARE_GENERIC_PCI_DEV("Piccolo0103", IDE_HFLAG_NO_AUTODMA),
117 /* 13 */ DECLARE_GENERIC_PCI_DEV("Piccolo0105", NOAUTODMA), 115 /* 13 */ DECLARE_GENERIC_PCI_DEV("Piccolo0105", IDE_HFLAG_NO_AUTODMA),
118 116
119 { /* 14 */ 117 { /* 14 */
120 .name = "Revolution", 118 .name = "Revolution",
121 .init_hwif = init_hwif_generic, 119 .init_hwif = init_hwif_generic,
122 .autodma = AUTODMA,
123 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | 120 .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA |
124 IDE_HFLAG_OFF_BOARD, 121 IDE_HFLAG_OFF_BOARD,
125 } 122 }