diff options
34 files changed, 30 insertions, 91 deletions
diff --git a/drivers/ide/pci/aec62xx.c b/drivers/ide/pci/aec62xx.c index eaf839fa5165..1c52cb67a267 100644 --- a/drivers/ide/pci/aec62xx.c +++ b/drivers/ide/pci/aec62xx.c | |||
@@ -244,7 +244,6 @@ static ide_pci_device_t aec62xx_chipsets[] __devinitdata = { | |||
244 | .init_setup = init_setup_aec62xx, | 244 | .init_setup = init_setup_aec62xx, |
245 | .init_chipset = init_chipset_aec62xx, | 245 | .init_chipset = init_chipset_aec62xx, |
246 | .init_hwif = init_hwif_aec62xx, | 246 | .init_hwif = init_hwif_aec62xx, |
247 | .autodma = AUTODMA, | ||
248 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, | 247 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, |
249 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, | 248 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, |
250 | .pio_mask = ATA_PIO4, | 249 | .pio_mask = ATA_PIO4, |
@@ -254,8 +253,8 @@ static ide_pci_device_t aec62xx_chipsets[] __devinitdata = { | |||
254 | .init_setup = init_setup_aec62xx, | 253 | .init_setup = init_setup_aec62xx, |
255 | .init_chipset = init_chipset_aec62xx, | 254 | .init_chipset = init_chipset_aec62xx, |
256 | .init_hwif = init_hwif_aec62xx, | 255 | .init_hwif = init_hwif_aec62xx, |
257 | .autodma = NOAUTODMA, | 256 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_NO_AUTODMA | |
258 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, | 257 | IDE_HFLAG_OFF_BOARD, |
259 | .pio_mask = ATA_PIO4, | 258 | .pio_mask = ATA_PIO4, |
260 | .udma_mask = 0x1f, /* udma0-4 */ | 259 | .udma_mask = 0x1f, /* udma0-4 */ |
261 | },{ /* 2 */ | 260 | },{ /* 2 */ |
@@ -263,7 +262,6 @@ static ide_pci_device_t aec62xx_chipsets[] __devinitdata = { | |||
263 | .init_setup = init_setup_aec62xx, | 262 | .init_setup = init_setup_aec62xx, |
264 | .init_chipset = init_chipset_aec62xx, | 263 | .init_chipset = init_chipset_aec62xx, |
265 | .init_hwif = init_hwif_aec62xx, | 264 | .init_hwif = init_hwif_aec62xx, |
266 | .autodma = AUTODMA, | ||
267 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, | 265 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, |
268 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA, | 266 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA, |
269 | .pio_mask = ATA_PIO4, | 267 | .pio_mask = ATA_PIO4, |
@@ -273,7 +271,6 @@ static ide_pci_device_t aec62xx_chipsets[] __devinitdata = { | |||
273 | .init_setup = init_setup_aec6x80, | 271 | .init_setup = init_setup_aec6x80, |
274 | .init_chipset = init_chipset_aec62xx, | 272 | .init_chipset = init_chipset_aec62xx, |
275 | .init_hwif = init_hwif_aec62xx, | 273 | .init_hwif = init_hwif_aec62xx, |
276 | .autodma = AUTODMA, | ||
277 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, | 274 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, |
278 | .pio_mask = ATA_PIO4, | 275 | .pio_mask = ATA_PIO4, |
279 | .udma_mask = 0x3f, /* udma0-5 */ | 276 | .udma_mask = 0x3f, /* udma0-5 */ |
@@ -282,7 +279,6 @@ static ide_pci_device_t aec62xx_chipsets[] __devinitdata = { | |||
282 | .init_setup = init_setup_aec6x80, | 279 | .init_setup = init_setup_aec6x80, |
283 | .init_chipset = init_chipset_aec62xx, | 280 | .init_chipset = init_chipset_aec62xx, |
284 | .init_hwif = init_hwif_aec62xx, | 281 | .init_hwif = init_hwif_aec62xx, |
285 | .autodma = AUTODMA, | ||
286 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, | 282 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, |
287 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, | 283 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, |
288 | .pio_mask = ATA_PIO4, | 284 | .pio_mask = ATA_PIO4, |
diff --git a/drivers/ide/pci/alim15x3.c b/drivers/ide/pci/alim15x3.c index b6b44e9eb492..4e034acc61b3 100644 --- a/drivers/ide/pci/alim15x3.c +++ b/drivers/ide/pci/alim15x3.c | |||
@@ -776,7 +776,6 @@ static ide_pci_device_t ali15x3_chipset __devinitdata = { | |||
776 | .init_chipset = init_chipset_ali15x3, | 776 | .init_chipset = init_chipset_ali15x3, |
777 | .init_hwif = init_hwif_ali15x3, | 777 | .init_hwif = init_hwif_ali15x3, |
778 | .init_dma = init_dma_ali15x3, | 778 | .init_dma = init_dma_ali15x3, |
779 | .autodma = AUTODMA, | ||
780 | .host_flags = IDE_HFLAG_BOOTABLE, | 779 | .host_flags = IDE_HFLAG_BOOTABLE, |
781 | .pio_mask = ATA_PIO5, | 780 | .pio_mask = ATA_PIO5, |
782 | }; | 781 | }; |
diff --git a/drivers/ide/pci/amd74xx.c b/drivers/ide/pci/amd74xx.c index 11d20bb7b85f..26263a189448 100644 --- a/drivers/ide/pci/amd74xx.c +++ b/drivers/ide/pci/amd74xx.c | |||
@@ -278,7 +278,6 @@ static void __devinit init_hwif_amd74xx(ide_hwif_t *hwif) | |||
278 | .name = name_str, \ | 278 | .name = name_str, \ |
279 | .init_chipset = init_chipset_amd74xx, \ | 279 | .init_chipset = init_chipset_amd74xx, \ |
280 | .init_hwif = init_hwif_amd74xx, \ | 280 | .init_hwif = init_hwif_amd74xx, \ |
281 | .autodma = AUTODMA, \ | ||
282 | .enablebits = {{0x40,0x02,0x02}, {0x40,0x01,0x01}}, \ | 281 | .enablebits = {{0x40,0x02,0x02}, {0x40,0x01,0x01}}, \ |
283 | .host_flags = IDE_HFLAG_PIO_NO_BLACKLIST | \ | 282 | .host_flags = IDE_HFLAG_PIO_NO_BLACKLIST | \ |
284 | IDE_HFLAG_PIO_NO_DOWNGRADE | \ | 283 | IDE_HFLAG_PIO_NO_DOWNGRADE | \ |
@@ -292,7 +291,6 @@ static void __devinit init_hwif_amd74xx(ide_hwif_t *hwif) | |||
292 | .name = name_str, \ | 291 | .name = name_str, \ |
293 | .init_chipset = init_chipset_amd74xx, \ | 292 | .init_chipset = init_chipset_amd74xx, \ |
294 | .init_hwif = init_hwif_amd74xx, \ | 293 | .init_hwif = init_hwif_amd74xx, \ |
295 | .autodma = AUTODMA, \ | ||
296 | .enablebits = {{0x50,0x02,0x02}, {0x50,0x01,0x01}}, \ | 294 | .enablebits = {{0x50,0x02,0x02}, {0x50,0x01,0x01}}, \ |
297 | .host_flags = IDE_HFLAG_PIO_NO_BLACKLIST | \ | 295 | .host_flags = IDE_HFLAG_PIO_NO_BLACKLIST | \ |
298 | IDE_HFLAG_PIO_NO_DOWNGRADE | \ | 296 | IDE_HFLAG_PIO_NO_DOWNGRADE | \ |
diff --git a/drivers/ide/pci/atiixp.c b/drivers/ide/pci/atiixp.c index f546a86f8b19..65de9363fc0d 100644 --- a/drivers/ide/pci/atiixp.c +++ b/drivers/ide/pci/atiixp.c | |||
@@ -202,14 +202,12 @@ static ide_pci_device_t atiixp_pci_info[] __devinitdata = { | |||
202 | { /* 0 */ | 202 | { /* 0 */ |
203 | .name = "ATIIXP", | 203 | .name = "ATIIXP", |
204 | .init_hwif = init_hwif_atiixp, | 204 | .init_hwif = init_hwif_atiixp, |
205 | .autodma = AUTODMA, | ||
206 | .enablebits = {{0x48,0x01,0x00}, {0x48,0x08,0x00}}, | 205 | .enablebits = {{0x48,0x01,0x00}, {0x48,0x08,0x00}}, |
207 | .host_flags = IDE_HFLAG_BOOTABLE, | 206 | .host_flags = IDE_HFLAG_BOOTABLE, |
208 | .pio_mask = ATA_PIO4, | 207 | .pio_mask = ATA_PIO4, |
209 | },{ /* 1 */ | 208 | },{ /* 1 */ |
210 | .name = "SB600_PATA", | 209 | .name = "SB600_PATA", |
211 | .init_hwif = init_hwif_atiixp, | 210 | .init_hwif = init_hwif_atiixp, |
212 | .autodma = AUTODMA, | ||
213 | .enablebits = {{0x48,0x01,0x00}, {0x00,0x00,0x00}}, | 211 | .enablebits = {{0x48,0x01,0x00}, {0x00,0x00,0x00}}, |
214 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_BOOTABLE, | 212 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_BOOTABLE, |
215 | .pio_mask = ATA_PIO4, | 213 | .pio_mask = ATA_PIO4, |
diff --git a/drivers/ide/pci/cmd64x.c b/drivers/ide/pci/cmd64x.c index 8e0ece5400b6..360ca32a0f7e 100644 --- a/drivers/ide/pci/cmd64x.c +++ b/drivers/ide/pci/cmd64x.c | |||
@@ -583,7 +583,6 @@ static ide_pci_device_t cmd64x_chipsets[] __devinitdata = { | |||
583 | .init_setup = init_setup_cmd64x, | 583 | .init_setup = init_setup_cmd64x, |
584 | .init_chipset = init_chipset_cmd64x, | 584 | .init_chipset = init_chipset_cmd64x, |
585 | .init_hwif = init_hwif_cmd64x, | 585 | .init_hwif = init_hwif_cmd64x, |
586 | .autodma = AUTODMA, | ||
587 | .enablebits = {{0x00,0x00,0x00}, {0x51,0x08,0x08}}, | 586 | .enablebits = {{0x00,0x00,0x00}, {0x51,0x08,0x08}}, |
588 | .host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE, | 587 | .host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE, |
589 | .pio_mask = ATA_PIO5, | 588 | .pio_mask = ATA_PIO5, |
@@ -593,7 +592,6 @@ static ide_pci_device_t cmd64x_chipsets[] __devinitdata = { | |||
593 | .init_setup = init_setup_cmd646, | 592 | .init_setup = init_setup_cmd646, |
594 | .init_chipset = init_chipset_cmd64x, | 593 | .init_chipset = init_chipset_cmd64x, |
595 | .init_hwif = init_hwif_cmd64x, | 594 | .init_hwif = init_hwif_cmd64x, |
596 | .autodma = AUTODMA, | ||
597 | .enablebits = {{0x51,0x04,0x04}, {0x51,0x08,0x08}}, | 595 | .enablebits = {{0x51,0x04,0x04}, {0x51,0x08,0x08}}, |
598 | .host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE, | 596 | .host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE, |
599 | .pio_mask = ATA_PIO5, | 597 | .pio_mask = ATA_PIO5, |
@@ -603,7 +601,6 @@ static ide_pci_device_t cmd64x_chipsets[] __devinitdata = { | |||
603 | .init_setup = init_setup_cmd64x, | 601 | .init_setup = init_setup_cmd64x, |
604 | .init_chipset = init_chipset_cmd64x, | 602 | .init_chipset = init_chipset_cmd64x, |
605 | .init_hwif = init_hwif_cmd64x, | 603 | .init_hwif = init_hwif_cmd64x, |
606 | .autodma = AUTODMA, | ||
607 | .enablebits = {{0x51,0x04,0x04}, {0x51,0x08,0x08}}, | 604 | .enablebits = {{0x51,0x04,0x04}, {0x51,0x08,0x08}}, |
608 | .host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE, | 605 | .host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE, |
609 | .pio_mask = ATA_PIO5, | 606 | .pio_mask = ATA_PIO5, |
@@ -613,7 +610,6 @@ static ide_pci_device_t cmd64x_chipsets[] __devinitdata = { | |||
613 | .init_setup = init_setup_cmd64x, | 610 | .init_setup = init_setup_cmd64x, |
614 | .init_chipset = init_chipset_cmd64x, | 611 | .init_chipset = init_chipset_cmd64x, |
615 | .init_hwif = init_hwif_cmd64x, | 612 | .init_hwif = init_hwif_cmd64x, |
616 | .autodma = AUTODMA, | ||
617 | .enablebits = {{0x51,0x04,0x04}, {0x51,0x08,0x08}}, | 613 | .enablebits = {{0x51,0x04,0x04}, {0x51,0x08,0x08}}, |
618 | .host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE, | 614 | .host_flags = IDE_HFLAG_ABUSE_PREFETCH | IDE_HFLAG_BOOTABLE, |
619 | .pio_mask = ATA_PIO5, | 615 | .pio_mask = ATA_PIO5, |
diff --git a/drivers/ide/pci/cs5520.c b/drivers/ide/pci/cs5520.c index efd844a87aa6..17d35ca61351 100644 --- a/drivers/ide/pci/cs5520.c +++ b/drivers/ide/pci/cs5520.c | |||
@@ -152,7 +152,6 @@ static void __devinit init_hwif_cs5520(ide_hwif_t *hwif) | |||
152 | .name = name_str, \ | 152 | .name = name_str, \ |
153 | .init_setup_dma = cs5520_init_setup_dma, \ | 153 | .init_setup_dma = cs5520_init_setup_dma, \ |
154 | .init_hwif = init_hwif_cs5520, \ | 154 | .init_hwif = init_hwif_cs5520, \ |
155 | .autodma = AUTODMA, \ | ||
156 | .host_flags = IDE_HFLAG_ISA_PORTS | \ | 155 | .host_flags = IDE_HFLAG_ISA_PORTS | \ |
157 | IDE_HFLAG_VDMA | \ | 156 | IDE_HFLAG_VDMA | \ |
158 | IDE_HFLAG_NO_ATAPI_DMA | \ | 157 | IDE_HFLAG_NO_ATAPI_DMA | \ |
diff --git a/drivers/ide/pci/cs5530.c b/drivers/ide/pci/cs5530.c index da3f54f1d960..9dfd35f43337 100644 --- a/drivers/ide/pci/cs5530.c +++ b/drivers/ide/pci/cs5530.c | |||
@@ -274,7 +274,6 @@ static ide_pci_device_t cs5530_chipset __devinitdata = { | |||
274 | .name = "CS5530", | 274 | .name = "CS5530", |
275 | .init_chipset = init_chipset_cs5530, | 275 | .init_chipset = init_chipset_cs5530, |
276 | .init_hwif = init_hwif_cs5530, | 276 | .init_hwif = init_hwif_cs5530, |
277 | .autodma = AUTODMA, | ||
278 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_BOOTABLE, | 277 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_BOOTABLE, |
279 | .pio_mask = ATA_PIO4, | 278 | .pio_mask = ATA_PIO4, |
280 | }; | 279 | }; |
diff --git a/drivers/ide/pci/cs5535.c b/drivers/ide/pci/cs5535.c index a93ba9a5fad6..8d8a9f81d934 100644 --- a/drivers/ide/pci/cs5535.c +++ b/drivers/ide/pci/cs5535.c | |||
@@ -194,7 +194,6 @@ static void __devinit init_hwif_cs5535(ide_hwif_t *hwif) | |||
194 | static ide_pci_device_t cs5535_chipset __devinitdata = { | 194 | static ide_pci_device_t cs5535_chipset __devinitdata = { |
195 | .name = "CS5535", | 195 | .name = "CS5535", |
196 | .init_hwif = init_hwif_cs5535, | 196 | .init_hwif = init_hwif_cs5535, |
197 | .autodma = AUTODMA, | ||
198 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_POST_SET_MODE | | 197 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_POST_SET_MODE | |
199 | IDE_HFLAG_BOOTABLE, | 198 | IDE_HFLAG_BOOTABLE, |
200 | .pio_mask = ATA_PIO4, | 199 | .pio_mask = ATA_PIO4, |
diff --git a/drivers/ide/pci/cy82c693.c b/drivers/ide/pci/cy82c693.c index 8fec35e2f412..f841819bc898 100644 --- a/drivers/ide/pci/cy82c693.c +++ b/drivers/ide/pci/cy82c693.c | |||
@@ -460,7 +460,6 @@ static ide_pci_device_t cy82c693_chipset __devinitdata = { | |||
460 | .init_chipset = init_chipset_cy82c693, | 460 | .init_chipset = init_chipset_cy82c693, |
461 | .init_iops = init_iops_cy82c693, | 461 | .init_iops = init_iops_cy82c693, |
462 | .init_hwif = init_hwif_cy82c693, | 462 | .init_hwif = init_hwif_cy82c693, |
463 | .autodma = AUTODMA, | ||
464 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_TRUST_BIOS_FOR_DMA | | 463 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_TRUST_BIOS_FOR_DMA | |
465 | IDE_HFLAG_BOOTABLE, | 464 | IDE_HFLAG_BOOTABLE, |
466 | .pio_mask = ATA_PIO4, | 465 | .pio_mask = ATA_PIO4, |
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 | ||
86 | static ide_pci_device_t generic_chipsets[] __devinitdata = { | 86 | static 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 | } |
diff --git a/drivers/ide/pci/hpt34x.c b/drivers/ide/pci/hpt34x.c index 1d6c6be257a7..470e06bd3f2d 100644 --- a/drivers/ide/pci/hpt34x.c +++ b/drivers/ide/pci/hpt34x.c | |||
@@ -152,9 +152,8 @@ static ide_pci_device_t hpt34x_chipset __devinitdata = { | |||
152 | .name = "HPT34X", | 152 | .name = "HPT34X", |
153 | .init_chipset = init_chipset_hpt34x, | 153 | .init_chipset = init_chipset_hpt34x, |
154 | .init_hwif = init_hwif_hpt34x, | 154 | .init_hwif = init_hwif_hpt34x, |
155 | .autodma = NOAUTODMA, | ||
156 | .extra = 16, | 155 | .extra = 16, |
157 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA, | 156 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_NO_AUTODMA, |
158 | .pio_mask = ATA_PIO5, | 157 | .pio_mask = ATA_PIO5, |
159 | }; | 158 | }; |
160 | 159 | ||
diff --git a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c index eb2cfe54b1a9..a805236bbae6 100644 --- a/drivers/ide/pci/hpt366.c +++ b/drivers/ide/pci/hpt366.c | |||
@@ -1551,7 +1551,6 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1551 | .init_chipset = init_chipset_hpt366, | 1551 | .init_chipset = init_chipset_hpt366, |
1552 | .init_hwif = init_hwif_hpt366, | 1552 | .init_hwif = init_hwif_hpt366, |
1553 | .init_dma = init_dma_hpt366, | 1553 | .init_dma = init_dma_hpt366, |
1554 | .autodma = AUTODMA, | ||
1555 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1554 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1556 | .extra = 240, | 1555 | .extra = 240, |
1557 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, | 1556 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | IDE_HFLAG_OFF_BOARD, |
@@ -1562,7 +1561,6 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1562 | .init_chipset = init_chipset_hpt366, | 1561 | .init_chipset = init_chipset_hpt366, |
1563 | .init_hwif = init_hwif_hpt366, | 1562 | .init_hwif = init_hwif_hpt366, |
1564 | .init_dma = init_dma_hpt366, | 1563 | .init_dma = init_dma_hpt366, |
1565 | .autodma = AUTODMA, | ||
1566 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1564 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1567 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 1565 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
1568 | .extra = 240, | 1566 | .extra = 240, |
@@ -1574,7 +1572,6 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1574 | .init_chipset = init_chipset_hpt366, | 1572 | .init_chipset = init_chipset_hpt366, |
1575 | .init_hwif = init_hwif_hpt366, | 1573 | .init_hwif = init_hwif_hpt366, |
1576 | .init_dma = init_dma_hpt366, | 1574 | .init_dma = init_dma_hpt366, |
1577 | .autodma = AUTODMA, | ||
1578 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1575 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1579 | .udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 1576 | .udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
1580 | .extra = 240, | 1577 | .extra = 240, |
@@ -1586,7 +1583,6 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1586 | .init_chipset = init_chipset_hpt366, | 1583 | .init_chipset = init_chipset_hpt366, |
1587 | .init_hwif = init_hwif_hpt366, | 1584 | .init_hwif = init_hwif_hpt366, |
1588 | .init_dma = init_dma_hpt366, | 1585 | .init_dma = init_dma_hpt366, |
1589 | .autodma = AUTODMA, | ||
1590 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1586 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1591 | .udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 1587 | .udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
1592 | .extra = 240, | 1588 | .extra = 240, |
@@ -1598,7 +1594,6 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1598 | .init_chipset = init_chipset_hpt366, | 1594 | .init_chipset = init_chipset_hpt366, |
1599 | .init_hwif = init_hwif_hpt366, | 1595 | .init_hwif = init_hwif_hpt366, |
1600 | .init_dma = init_dma_hpt366, | 1596 | .init_dma = init_dma_hpt366, |
1601 | .autodma = AUTODMA, | ||
1602 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1597 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1603 | .udma_mask = ATA_UDMA5, | 1598 | .udma_mask = ATA_UDMA5, |
1604 | .extra = 240, | 1599 | .extra = 240, |
@@ -1610,7 +1605,6 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = { | |||
1610 | .init_chipset = init_chipset_hpt366, | 1605 | .init_chipset = init_chipset_hpt366, |
1611 | .init_hwif = init_hwif_hpt366, | 1606 | .init_hwif = init_hwif_hpt366, |
1612 | .init_dma = init_dma_hpt366, | 1607 | .init_dma = init_dma_hpt366, |
1613 | .autodma = AUTODMA, | ||
1614 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, | 1608 | .enablebits = {{0x50,0x04,0x04}, {0x54,0x04,0x04}}, |
1615 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, | 1609 | .udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5, |
1616 | .extra = 240, | 1610 | .extra = 240, |
diff --git a/drivers/ide/pci/it8213.c b/drivers/ide/pci/it8213.c index 54fc0f4c95c4..f161836709ff 100644 --- a/drivers/ide/pci/it8213.c +++ b/drivers/ide/pci/it8213.c | |||
@@ -191,7 +191,6 @@ static void __devinit init_hwif_it8213(ide_hwif_t *hwif) | |||
191 | { \ | 191 | { \ |
192 | .name = name_str, \ | 192 | .name = name_str, \ |
193 | .init_hwif = init_hwif_it8213, \ | 193 | .init_hwif = init_hwif_it8213, \ |
194 | .autodma = AUTODMA, \ | ||
195 | .enablebits = {{0x41,0x80,0x80}}, \ | 194 | .enablebits = {{0x41,0x80,0x80}}, \ |
196 | .host_flags = IDE_HFLAG_SINGLE | \ | 195 | .host_flags = IDE_HFLAG_SINGLE | \ |
197 | IDE_HFLAG_BOOTABLE, \ | 196 | IDE_HFLAG_BOOTABLE, \ |
diff --git a/drivers/ide/pci/it821x.c b/drivers/ide/pci/it821x.c index a41e8774ab0a..3596ec3501af 100644 --- a/drivers/ide/pci/it821x.c +++ b/drivers/ide/pci/it821x.c | |||
@@ -636,7 +636,6 @@ static unsigned int __devinit init_chipset_it821x(struct pci_dev *dev, const cha | |||
636 | .name = name_str, \ | 636 | .name = name_str, \ |
637 | .init_chipset = init_chipset_it821x, \ | 637 | .init_chipset = init_chipset_it821x, \ |
638 | .init_hwif = init_hwif_it821x, \ | 638 | .init_hwif = init_hwif_it821x, \ |
639 | .autodma = AUTODMA, \ | ||
640 | .fixup = it821x_fixups, \ | 639 | .fixup = it821x_fixups, \ |
641 | .host_flags = IDE_HFLAG_BOOTABLE, \ | 640 | .host_flags = IDE_HFLAG_BOOTABLE, \ |
642 | .pio_mask = ATA_PIO4, \ | 641 | .pio_mask = ATA_PIO4, \ |
diff --git a/drivers/ide/pci/jmicron.c b/drivers/ide/pci/jmicron.c index 515683eb343d..5b0a136c879e 100644 --- a/drivers/ide/pci/jmicron.c +++ b/drivers/ide/pci/jmicron.c | |||
@@ -127,7 +127,6 @@ static void __devinit init_hwif_jmicron(ide_hwif_t *hwif) | |||
127 | static ide_pci_device_t jmicron_chipset __devinitdata = { | 127 | static ide_pci_device_t jmicron_chipset __devinitdata = { |
128 | .name = "JMB", | 128 | .name = "JMB", |
129 | .init_hwif = init_hwif_jmicron, | 129 | .init_hwif = init_hwif_jmicron, |
130 | .autodma = AUTODMA, | ||
131 | .host_flags = IDE_HFLAG_BOOTABLE, | 130 | .host_flags = IDE_HFLAG_BOOTABLE, |
132 | .enablebits = { { 0x40, 0x01, 0x01 }, { 0x40, 0x10, 0x10 } }, | 131 | .enablebits = { { 0x40, 0x01, 0x01 }, { 0x40, 0x10, 0x10 } }, |
133 | .pio_mask = ATA_PIO5, | 132 | .pio_mask = ATA_PIO5, |
diff --git a/drivers/ide/pci/ns87415.c b/drivers/ide/pci/ns87415.c index 11d51e12c33d..d21b58923829 100644 --- a/drivers/ide/pci/ns87415.c +++ b/drivers/ide/pci/ns87415.c | |||
@@ -266,7 +266,6 @@ static ide_pci_device_t ns87415_chipset __devinitdata = { | |||
266 | .init_iops = init_iops_ns87415, | 266 | .init_iops = init_iops_ns87415, |
267 | #endif | 267 | #endif |
268 | .init_hwif = init_hwif_ns87415, | 268 | .init_hwif = init_hwif_ns87415, |
269 | .autodma = AUTODMA, | ||
270 | .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | | 269 | .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | |
271 | IDE_HFLAG_NO_ATAPI_DMA | | 270 | IDE_HFLAG_NO_ATAPI_DMA | |
272 | IDE_HFLAG_BOOTABLE, | 271 | IDE_HFLAG_BOOTABLE, |
diff --git a/drivers/ide/pci/opti621.c b/drivers/ide/pci/opti621.c index 6d2dd0f332c9..558cab537db8 100644 --- a/drivers/ide/pci/opti621.c +++ b/drivers/ide/pci/opti621.c | |||
@@ -344,7 +344,6 @@ static ide_pci_device_t opti621_chipsets[] __devinitdata = { | |||
344 | { /* 0 */ | 344 | { /* 0 */ |
345 | .name = "OPTI621", | 345 | .name = "OPTI621", |
346 | .init_hwif = init_hwif_opti621, | 346 | .init_hwif = init_hwif_opti621, |
347 | .autodma = AUTODMA, | ||
348 | .enablebits = {{0x45,0x80,0x00}, {0x40,0x08,0x00}}, | 347 | .enablebits = {{0x45,0x80,0x00}, {0x40,0x08,0x00}}, |
349 | .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | | 348 | .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | |
350 | IDE_HFLAG_BOOTABLE, | 349 | IDE_HFLAG_BOOTABLE, |
@@ -352,7 +351,6 @@ static ide_pci_device_t opti621_chipsets[] __devinitdata = { | |||
352 | },{ /* 1 */ | 351 | },{ /* 1 */ |
353 | .name = "OPTI621X", | 352 | .name = "OPTI621X", |
354 | .init_hwif = init_hwif_opti621, | 353 | .init_hwif = init_hwif_opti621, |
355 | .autodma = AUTODMA, | ||
356 | .enablebits = {{0x45,0x80,0x00}, {0x40,0x08,0x00}}, | 354 | .enablebits = {{0x45,0x80,0x00}, {0x40,0x08,0x00}}, |
357 | .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | | 355 | .host_flags = IDE_HFLAG_TRUST_BIOS_FOR_DMA | |
358 | IDE_HFLAG_BOOTABLE, | 356 | IDE_HFLAG_BOOTABLE, |
diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c index 6bfc38f58cbf..24efda25c034 100644 --- a/drivers/ide/pci/pdc202xx_new.c +++ b/drivers/ide/pci/pdc202xx_new.c | |||
@@ -551,7 +551,6 @@ static ide_pci_device_t pdcnew_chipsets[] __devinitdata = { | |||
551 | .init_setup = init_setup_pdcnew, | 551 | .init_setup = init_setup_pdcnew, |
552 | .init_chipset = init_chipset_pdcnew, | 552 | .init_chipset = init_chipset_pdcnew, |
553 | .init_hwif = init_hwif_pdc202new, | 553 | .init_hwif = init_hwif_pdc202new, |
554 | .autodma = AUTODMA, | ||
555 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, | 554 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, |
556 | .pio_mask = ATA_PIO4, | 555 | .pio_mask = ATA_PIO4, |
557 | .udma_mask = 0x3f, /* udma0-5 */ | 556 | .udma_mask = 0x3f, /* udma0-5 */ |
@@ -560,7 +559,6 @@ static ide_pci_device_t pdcnew_chipsets[] __devinitdata = { | |||
560 | .init_setup = init_setup_pdcnew, | 559 | .init_setup = init_setup_pdcnew, |
561 | .init_chipset = init_chipset_pdcnew, | 560 | .init_chipset = init_chipset_pdcnew, |
562 | .init_hwif = init_hwif_pdc202new, | 561 | .init_hwif = init_hwif_pdc202new, |
563 | .autodma = AUTODMA, | ||
564 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, | 562 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, |
565 | .pio_mask = ATA_PIO4, | 563 | .pio_mask = ATA_PIO4, |
566 | .udma_mask = 0x7f, /* udma0-6*/ | 564 | .udma_mask = 0x7f, /* udma0-6*/ |
@@ -569,7 +567,6 @@ static ide_pci_device_t pdcnew_chipsets[] __devinitdata = { | |||
569 | .init_setup = init_setup_pdc20270, | 567 | .init_setup = init_setup_pdc20270, |
570 | .init_chipset = init_chipset_pdcnew, | 568 | .init_chipset = init_chipset_pdcnew, |
571 | .init_hwif = init_hwif_pdc202new, | 569 | .init_hwif = init_hwif_pdc202new, |
572 | .autodma = AUTODMA, | ||
573 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, | 570 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, |
574 | .pio_mask = ATA_PIO4, | 571 | .pio_mask = ATA_PIO4, |
575 | .udma_mask = 0x3f, /* udma0-5 */ | 572 | .udma_mask = 0x3f, /* udma0-5 */ |
@@ -578,7 +575,6 @@ static ide_pci_device_t pdcnew_chipsets[] __devinitdata = { | |||
578 | .init_setup = init_setup_pdcnew, | 575 | .init_setup = init_setup_pdcnew, |
579 | .init_chipset = init_chipset_pdcnew, | 576 | .init_chipset = init_chipset_pdcnew, |
580 | .init_hwif = init_hwif_pdc202new, | 577 | .init_hwif = init_hwif_pdc202new, |
581 | .autodma = AUTODMA, | ||
582 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, | 578 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, |
583 | .pio_mask = ATA_PIO4, | 579 | .pio_mask = ATA_PIO4, |
584 | .udma_mask = 0x7f, /* udma0-6*/ | 580 | .udma_mask = 0x7f, /* udma0-6*/ |
@@ -587,7 +583,6 @@ static ide_pci_device_t pdcnew_chipsets[] __devinitdata = { | |||
587 | .init_setup = init_setup_pdcnew, | 583 | .init_setup = init_setup_pdcnew, |
588 | .init_chipset = init_chipset_pdcnew, | 584 | .init_chipset = init_chipset_pdcnew, |
589 | .init_hwif = init_hwif_pdc202new, | 585 | .init_hwif = init_hwif_pdc202new, |
590 | .autodma = AUTODMA, | ||
591 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, | 586 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, |
592 | .pio_mask = ATA_PIO4, | 587 | .pio_mask = ATA_PIO4, |
593 | .udma_mask = 0x7f, /* udma0-6*/ | 588 | .udma_mask = 0x7f, /* udma0-6*/ |
@@ -596,7 +591,6 @@ static ide_pci_device_t pdcnew_chipsets[] __devinitdata = { | |||
596 | .init_setup = init_setup_pdc20276, | 591 | .init_setup = init_setup_pdc20276, |
597 | .init_chipset = init_chipset_pdcnew, | 592 | .init_chipset = init_chipset_pdcnew, |
598 | .init_hwif = init_hwif_pdc202new, | 593 | .init_hwif = init_hwif_pdc202new, |
599 | .autodma = AUTODMA, | ||
600 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, | 594 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, |
601 | .pio_mask = ATA_PIO4, | 595 | .pio_mask = ATA_PIO4, |
602 | .udma_mask = 0x7f, /* udma0-6*/ | 596 | .udma_mask = 0x7f, /* udma0-6*/ |
@@ -605,7 +599,6 @@ static ide_pci_device_t pdcnew_chipsets[] __devinitdata = { | |||
605 | .init_setup = init_setup_pdcnew, | 599 | .init_setup = init_setup_pdcnew, |
606 | .init_chipset = init_chipset_pdcnew, | 600 | .init_chipset = init_chipset_pdcnew, |
607 | .init_hwif = init_hwif_pdc202new, | 601 | .init_hwif = init_hwif_pdc202new, |
608 | .autodma = AUTODMA, | ||
609 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, | 602 | .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, |
610 | .pio_mask = ATA_PIO4, | 603 | .pio_mask = ATA_PIO4, |
611 | .udma_mask = 0x7f, /* udma0-6*/ | 604 | .udma_mask = 0x7f, /* udma0-6*/ |
diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c index 217701f28511..ddf9a3d81b59 100644 --- a/drivers/ide/pci/pdc202xx_old.c +++ b/drivers/ide/pci/pdc202xx_old.c | |||
@@ -421,7 +421,6 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | |||
421 | .init_chipset = init_chipset_pdc202xx, | 421 | .init_chipset = init_chipset_pdc202xx, |
422 | .init_hwif = init_hwif_pdc202xx, | 422 | .init_hwif = init_hwif_pdc202xx, |
423 | .init_dma = init_dma_pdc202xx, | 423 | .init_dma = init_dma_pdc202xx, |
424 | .autodma = AUTODMA, | ||
425 | .extra = 16, | 424 | .extra = 16, |
426 | .host_flags = IDE_HFLAG_OFF_BOARD, | 425 | .host_flags = IDE_HFLAG_OFF_BOARD, |
427 | .pio_mask = ATA_PIO4, | 426 | .pio_mask = ATA_PIO4, |
@@ -432,7 +431,6 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | |||
432 | .init_chipset = init_chipset_pdc202xx, | 431 | .init_chipset = init_chipset_pdc202xx, |
433 | .init_hwif = init_hwif_pdc202xx, | 432 | .init_hwif = init_hwif_pdc202xx, |
434 | .init_dma = init_dma_pdc202xx, | 433 | .init_dma = init_dma_pdc202xx, |
435 | .autodma = AUTODMA, | ||
436 | .extra = 48, | 434 | .extra = 48, |
437 | .host_flags = IDE_HFLAG_OFF_BOARD, | 435 | .host_flags = IDE_HFLAG_OFF_BOARD, |
438 | .pio_mask = ATA_PIO4, | 436 | .pio_mask = ATA_PIO4, |
@@ -443,7 +441,6 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | |||
443 | .init_chipset = init_chipset_pdc202xx, | 441 | .init_chipset = init_chipset_pdc202xx, |
444 | .init_hwif = init_hwif_pdc202xx, | 442 | .init_hwif = init_hwif_pdc202xx, |
445 | .init_dma = init_dma_pdc202xx, | 443 | .init_dma = init_dma_pdc202xx, |
446 | .autodma = AUTODMA, | ||
447 | .extra = 48, | 444 | .extra = 48, |
448 | .host_flags = IDE_HFLAG_OFF_BOARD, | 445 | .host_flags = IDE_HFLAG_OFF_BOARD, |
449 | .pio_mask = ATA_PIO4, | 446 | .pio_mask = ATA_PIO4, |
@@ -454,7 +451,6 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | |||
454 | .init_chipset = init_chipset_pdc202xx, | 451 | .init_chipset = init_chipset_pdc202xx, |
455 | .init_hwif = init_hwif_pdc202xx, | 452 | .init_hwif = init_hwif_pdc202xx, |
456 | .init_dma = init_dma_pdc202xx, | 453 | .init_dma = init_dma_pdc202xx, |
457 | .autodma = AUTODMA, | ||
458 | .extra = 48, | 454 | .extra = 48, |
459 | .host_flags = IDE_HFLAG_OFF_BOARD, | 455 | .host_flags = IDE_HFLAG_OFF_BOARD, |
460 | .pio_mask = ATA_PIO4, | 456 | .pio_mask = ATA_PIO4, |
@@ -465,7 +461,6 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | |||
465 | .init_chipset = init_chipset_pdc202xx, | 461 | .init_chipset = init_chipset_pdc202xx, |
466 | .init_hwif = init_hwif_pdc202xx, | 462 | .init_hwif = init_hwif_pdc202xx, |
467 | .init_dma = init_dma_pdc202xx, | 463 | .init_dma = init_dma_pdc202xx, |
468 | .autodma = AUTODMA, | ||
469 | .extra = 48, | 464 | .extra = 48, |
470 | .host_flags = IDE_HFLAG_OFF_BOARD, | 465 | .host_flags = IDE_HFLAG_OFF_BOARD, |
471 | .pio_mask = ATA_PIO4, | 466 | .pio_mask = ATA_PIO4, |
diff --git a/drivers/ide/pci/piix.c b/drivers/ide/pci/piix.c index 287f4e38981e..692623892cbc 100644 --- a/drivers/ide/pci/piix.c +++ b/drivers/ide/pci/piix.c | |||
@@ -415,7 +415,6 @@ static void __devinit init_hwif_piix(ide_hwif_t *hwif) | |||
415 | .name = name_str, \ | 415 | .name = name_str, \ |
416 | .init_chipset = init_chipset_piix, \ | 416 | .init_chipset = init_chipset_piix, \ |
417 | .init_hwif = init_hwif_piix, \ | 417 | .init_hwif = init_hwif_piix, \ |
418 | .autodma = AUTODMA, \ | ||
419 | .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, \ | 418 | .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, \ |
420 | .host_flags = IDE_HFLAG_BOOTABLE, \ | 419 | .host_flags = IDE_HFLAG_BOOTABLE, \ |
421 | .pio_mask = ATA_PIO4, \ | 420 | .pio_mask = ATA_PIO4, \ |
@@ -434,9 +433,9 @@ static ide_pci_device_t piix_pci_info[] __devinitdata = { | |||
434 | */ | 433 | */ |
435 | .name = "MPIIX", | 434 | .name = "MPIIX", |
436 | .init_hwif = init_hwif_piix, | 435 | .init_hwif = init_hwif_piix, |
437 | .autodma = NODMA, | ||
438 | .enablebits = {{0x6d,0xc0,0x80}, {0x6d,0xc0,0xc0}}, | 436 | .enablebits = {{0x6d,0xc0,0x80}, {0x6d,0xc0,0xc0}}, |
439 | .host_flags = IDE_HFLAG_ISA_PORTS | IDE_HFLAG_BOOTABLE, | 437 | .host_flags = IDE_HFLAG_ISA_PORTS | IDE_HFLAG_NO_DMA | |
438 | IDE_HFLAG_BOOTABLE, | ||
440 | .pio_mask = ATA_PIO4, | 439 | .pio_mask = ATA_PIO4, |
441 | }, | 440 | }, |
442 | 441 | ||
diff --git a/drivers/ide/pci/rz1000.c b/drivers/ide/pci/rz1000.c index c4541e42e612..dd2583ef1ad7 100644 --- a/drivers/ide/pci/rz1000.c +++ b/drivers/ide/pci/rz1000.c | |||
@@ -52,8 +52,7 @@ static void __devinit init_hwif_rz1000 (ide_hwif_t *hwif) | |||
52 | static ide_pci_device_t rz1000_chipset __devinitdata = { | 52 | static ide_pci_device_t rz1000_chipset __devinitdata = { |
53 | .name = "RZ100x", | 53 | .name = "RZ100x", |
54 | .init_hwif = init_hwif_rz1000, | 54 | .init_hwif = init_hwif_rz1000, |
55 | .autodma = NODMA, | 55 | .host_flags = IDE_HFLAG_NO_DMA | IDE_HFLAG_BOOTABLE, |
56 | .host_flags = IDE_HFLAG_BOOTABLE, | ||
57 | }; | 56 | }; |
58 | 57 | ||
59 | static int __devinit rz1000_init_one(struct pci_dev *dev, const struct pci_device_id *id) | 58 | static int __devinit rz1000_init_one(struct pci_dev *dev, const struct pci_device_id *id) |
diff --git a/drivers/ide/pci/sc1200.c b/drivers/ide/pci/sc1200.c index c131923044fc..1a1c0ef0ed5b 100644 --- a/drivers/ide/pci/sc1200.c +++ b/drivers/ide/pci/sc1200.c | |||
@@ -384,7 +384,6 @@ static void __devinit init_hwif_sc1200 (ide_hwif_t *hwif) | |||
384 | static ide_pci_device_t sc1200_chipset __devinitdata = { | 384 | static ide_pci_device_t sc1200_chipset __devinitdata = { |
385 | .name = "SC1200", | 385 | .name = "SC1200", |
386 | .init_hwif = init_hwif_sc1200, | 386 | .init_hwif = init_hwif_sc1200, |
387 | .autodma = AUTODMA, | ||
388 | .host_flags = IDE_HFLAG_ABUSE_DMA_MODES | IDE_HFLAG_POST_SET_MODE | | 387 | .host_flags = IDE_HFLAG_ABUSE_DMA_MODES | IDE_HFLAG_POST_SET_MODE | |
389 | IDE_HFLAG_BOOTABLE, | 388 | IDE_HFLAG_BOOTABLE, |
390 | .pio_mask = ATA_PIO4, | 389 | .pio_mask = ATA_PIO4, |
diff --git a/drivers/ide/pci/scc_pata.c b/drivers/ide/pci/scc_pata.c index 1784ac2b38f0..bfddc4270827 100644 --- a/drivers/ide/pci/scc_pata.c +++ b/drivers/ide/pci/scc_pata.c | |||
@@ -704,7 +704,6 @@ static void __devinit init_hwif_scc(ide_hwif_t *hwif) | |||
704 | .init_setup = init_setup_scc, \ | 704 | .init_setup = init_setup_scc, \ |
705 | .init_iops = init_iops_scc, \ | 705 | .init_iops = init_iops_scc, \ |
706 | .init_hwif = init_hwif_scc, \ | 706 | .init_hwif = init_hwif_scc, \ |
707 | .autodma = AUTODMA, \ | ||
708 | .host_flags = IDE_HFLAG_SINGLE | \ | 707 | .host_flags = IDE_HFLAG_SINGLE | \ |
709 | IDE_HFLAG_BOOTABLE, \ | 708 | IDE_HFLAG_BOOTABLE, \ |
710 | .pio_mask = ATA_PIO4, \ | 709 | .pio_mask = ATA_PIO4, \ |
diff --git a/drivers/ide/pci/serverworks.c b/drivers/ide/pci/serverworks.c index a8317c1d7b5a..338eee81f021 100644 --- a/drivers/ide/pci/serverworks.c +++ b/drivers/ide/pci/serverworks.c | |||
@@ -414,7 +414,6 @@ static ide_pci_device_t serverworks_chipsets[] __devinitdata = { | |||
414 | .init_setup = init_setup_svwks, | 414 | .init_setup = init_setup_svwks, |
415 | .init_chipset = init_chipset_svwks, | 415 | .init_chipset = init_chipset_svwks, |
416 | .init_hwif = init_hwif_svwks, | 416 | .init_hwif = init_hwif_svwks, |
417 | .autodma = AUTODMA, | ||
418 | .host_flags = IDE_HFLAG_BOOTABLE, | 417 | .host_flags = IDE_HFLAG_BOOTABLE, |
419 | .pio_mask = ATA_PIO4, | 418 | .pio_mask = ATA_PIO4, |
420 | },{ /* 1 */ | 419 | },{ /* 1 */ |
@@ -422,7 +421,6 @@ static ide_pci_device_t serverworks_chipsets[] __devinitdata = { | |||
422 | .init_setup = init_setup_svwks, | 421 | .init_setup = init_setup_svwks, |
423 | .init_chipset = init_chipset_svwks, | 422 | .init_chipset = init_chipset_svwks, |
424 | .init_hwif = init_hwif_svwks, | 423 | .init_hwif = init_hwif_svwks, |
425 | .autodma = AUTODMA, | ||
426 | .host_flags = IDE_HFLAG_BOOTABLE, | 424 | .host_flags = IDE_HFLAG_BOOTABLE, |
427 | .pio_mask = ATA_PIO4, | 425 | .pio_mask = ATA_PIO4, |
428 | },{ /* 2 */ | 426 | },{ /* 2 */ |
@@ -430,7 +428,6 @@ static ide_pci_device_t serverworks_chipsets[] __devinitdata = { | |||
430 | .init_setup = init_setup_csb6, | 428 | .init_setup = init_setup_csb6, |
431 | .init_chipset = init_chipset_svwks, | 429 | .init_chipset = init_chipset_svwks, |
432 | .init_hwif = init_hwif_svwks, | 430 | .init_hwif = init_hwif_svwks, |
433 | .autodma = AUTODMA, | ||
434 | .host_flags = IDE_HFLAG_BOOTABLE, | 431 | .host_flags = IDE_HFLAG_BOOTABLE, |
435 | .pio_mask = ATA_PIO4, | 432 | .pio_mask = ATA_PIO4, |
436 | },{ /* 3 */ | 433 | },{ /* 3 */ |
@@ -438,7 +435,6 @@ static ide_pci_device_t serverworks_chipsets[] __devinitdata = { | |||
438 | .init_setup = init_setup_csb6, | 435 | .init_setup = init_setup_csb6, |
439 | .init_chipset = init_chipset_svwks, | 436 | .init_chipset = init_chipset_svwks, |
440 | .init_hwif = init_hwif_svwks, | 437 | .init_hwif = init_hwif_svwks, |
441 | .autodma = AUTODMA, | ||
442 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_BOOTABLE, | 438 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_BOOTABLE, |
443 | .pio_mask = ATA_PIO4, | 439 | .pio_mask = ATA_PIO4, |
444 | },{ /* 4 */ | 440 | },{ /* 4 */ |
@@ -446,7 +442,6 @@ static ide_pci_device_t serverworks_chipsets[] __devinitdata = { | |||
446 | .init_setup = init_setup_svwks, | 442 | .init_setup = init_setup_svwks, |
447 | .init_chipset = init_chipset_svwks, | 443 | .init_chipset = init_chipset_svwks, |
448 | .init_hwif = init_hwif_svwks, | 444 | .init_hwif = init_hwif_svwks, |
449 | .autodma = AUTODMA, | ||
450 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_BOOTABLE, | 445 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_BOOTABLE, |
451 | .pio_mask = ATA_PIO4, | 446 | .pio_mask = ATA_PIO4, |
452 | } | 447 | } |
diff --git a/drivers/ide/pci/siimage.c b/drivers/ide/pci/siimage.c index 5ff796899dae..f3ed91006f3f 100644 --- a/drivers/ide/pci/siimage.c +++ b/drivers/ide/pci/siimage.c | |||
@@ -919,7 +919,6 @@ static void __devinit init_hwif_siimage(ide_hwif_t *hwif) | |||
919 | .init_iops = init_iops_siimage, \ | 919 | .init_iops = init_iops_siimage, \ |
920 | .init_hwif = init_hwif_siimage, \ | 920 | .init_hwif = init_hwif_siimage, \ |
921 | .fixup = siimage_fixup, \ | 921 | .fixup = siimage_fixup, \ |
922 | .autodma = AUTODMA, \ | ||
923 | .host_flags = IDE_HFLAG_BOOTABLE, \ | 922 | .host_flags = IDE_HFLAG_BOOTABLE, \ |
924 | .pio_mask = ATA_PIO4, \ | 923 | .pio_mask = ATA_PIO4, \ |
925 | } | 924 | } |
diff --git a/drivers/ide/pci/sis5513.c b/drivers/ide/pci/sis5513.c index 5e6821076906..5c30759ad008 100644 --- a/drivers/ide/pci/sis5513.c +++ b/drivers/ide/pci/sis5513.c | |||
@@ -590,9 +590,8 @@ static ide_pci_device_t sis5513_chipset __devinitdata = { | |||
590 | .name = "SIS5513", | 590 | .name = "SIS5513", |
591 | .init_chipset = init_chipset_sis5513, | 591 | .init_chipset = init_chipset_sis5513, |
592 | .init_hwif = init_hwif_sis5513, | 592 | .init_hwif = init_hwif_sis5513, |
593 | .autodma = NOAUTODMA, | ||
594 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, | 593 | .enablebits = {{0x4a,0x02,0x02}, {0x4a,0x04,0x04}}, |
595 | .host_flags = IDE_HFLAG_BOOTABLE, | 594 | .host_flags = IDE_HFLAG_NO_AUTODMA | IDE_HFLAG_BOOTABLE, |
596 | .pio_mask = ATA_PIO4, | 595 | .pio_mask = ATA_PIO4, |
597 | }; | 596 | }; |
598 | 597 | ||
diff --git a/drivers/ide/pci/sl82c105.c b/drivers/ide/pci/sl82c105.c index 97c1331e5ec3..e6eb5c7de7ae 100644 --- a/drivers/ide/pci/sl82c105.c +++ b/drivers/ide/pci/sl82c105.c | |||
@@ -404,9 +404,8 @@ static ide_pci_device_t sl82c105_chipset __devinitdata = { | |||
404 | .name = "W82C105", | 404 | .name = "W82C105", |
405 | .init_chipset = init_chipset_sl82c105, | 405 | .init_chipset = init_chipset_sl82c105, |
406 | .init_hwif = init_hwif_sl82c105, | 406 | .init_hwif = init_hwif_sl82c105, |
407 | .autodma = NOAUTODMA, | ||
408 | .enablebits = {{0x40,0x01,0x01}, {0x40,0x10,0x10}}, | 407 | .enablebits = {{0x40,0x01,0x01}, {0x40,0x10,0x10}}, |
409 | .host_flags = IDE_HFLAG_BOOTABLE, | 408 | .host_flags = IDE_HFLAG_NO_AUTODMA | IDE_HFLAG_BOOTABLE, |
410 | .pio_mask = ATA_PIO5, | 409 | .pio_mask = ATA_PIO5, |
411 | }; | 410 | }; |
412 | 411 | ||
diff --git a/drivers/ide/pci/slc90e66.c b/drivers/ide/pci/slc90e66.c index f2ab3a620647..4f213e4c0c42 100644 --- a/drivers/ide/pci/slc90e66.c +++ b/drivers/ide/pci/slc90e66.c | |||
@@ -159,7 +159,6 @@ static void __devinit init_hwif_slc90e66 (ide_hwif_t *hwif) | |||
159 | static ide_pci_device_t slc90e66_chipset __devinitdata = { | 159 | static ide_pci_device_t slc90e66_chipset __devinitdata = { |
160 | .name = "SLC90E66", | 160 | .name = "SLC90E66", |
161 | .init_hwif = init_hwif_slc90e66, | 161 | .init_hwif = init_hwif_slc90e66, |
162 | .autodma = AUTODMA, | ||
163 | .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, | 162 | .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, |
164 | .host_flags = IDE_HFLAG_BOOTABLE, | 163 | .host_flags = IDE_HFLAG_BOOTABLE, |
165 | .pio_mask = ATA_PIO4, | 164 | .pio_mask = ATA_PIO4, |
diff --git a/drivers/ide/pci/tc86c001.c b/drivers/ide/pci/tc86c001.c index 6f2d53691064..fda8592bf858 100644 --- a/drivers/ide/pci/tc86c001.c +++ b/drivers/ide/pci/tc86c001.c | |||
@@ -227,7 +227,6 @@ static ide_pci_device_t tc86c001_chipset __devinitdata = { | |||
227 | .name = "TC86C001", | 227 | .name = "TC86C001", |
228 | .init_chipset = init_chipset_tc86c001, | 228 | .init_chipset = init_chipset_tc86c001, |
229 | .init_hwif = init_hwif_tc86c001, | 229 | .init_hwif = init_hwif_tc86c001, |
230 | .autodma = AUTODMA, | ||
231 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_OFF_BOARD, | 230 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_OFF_BOARD, |
232 | .pio_mask = ATA_PIO4, | 231 | .pio_mask = ATA_PIO4, |
233 | }; | 232 | }; |
diff --git a/drivers/ide/pci/triflex.c b/drivers/ide/pci/triflex.c index 8f89b6dd5e6c..c5edb1171c10 100644 --- a/drivers/ide/pci/triflex.c +++ b/drivers/ide/pci/triflex.c | |||
@@ -111,7 +111,6 @@ static void __devinit init_hwif_triflex(ide_hwif_t *hwif) | |||
111 | static ide_pci_device_t triflex_device __devinitdata = { | 111 | static ide_pci_device_t triflex_device __devinitdata = { |
112 | .name = "TRIFLEX", | 112 | .name = "TRIFLEX", |
113 | .init_hwif = init_hwif_triflex, | 113 | .init_hwif = init_hwif_triflex, |
114 | .autodma = AUTODMA, | ||
115 | .enablebits = {{0x80, 0x01, 0x01}, {0x80, 0x02, 0x02}}, | 114 | .enablebits = {{0x80, 0x01, 0x01}, {0x80, 0x02, 0x02}}, |
116 | .host_flags = IDE_HFLAG_BOOTABLE, | 115 | .host_flags = IDE_HFLAG_BOOTABLE, |
117 | .pio_mask = ATA_PIO4, | 116 | .pio_mask = ATA_PIO4, |
diff --git a/drivers/ide/pci/trm290.c b/drivers/ide/pci/trm290.c index ad392025860e..783ef457eb60 100644 --- a/drivers/ide/pci/trm290.c +++ b/drivers/ide/pci/trm290.c | |||
@@ -324,11 +324,11 @@ static void __devinit init_hwif_trm290(ide_hwif_t *hwif) | |||
324 | static ide_pci_device_t trm290_chipset __devinitdata = { | 324 | static ide_pci_device_t trm290_chipset __devinitdata = { |
325 | .name = "TRM290", | 325 | .name = "TRM290", |
326 | .init_hwif = init_hwif_trm290, | 326 | .init_hwif = init_hwif_trm290, |
327 | .autodma = NOAUTODMA, | ||
328 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | | 327 | .host_flags = IDE_HFLAG_NO_ATAPI_DMA | |
329 | #if 0 /* play it safe for now */ | 328 | #if 0 /* play it safe for now */ |
330 | IDE_HFLAG_TRUST_BIOS_FOR_DMA | | 329 | IDE_HFLAG_TRUST_BIOS_FOR_DMA | |
331 | #endif | 330 | #endif |
331 | IDE_HFLAG_NO_AUTODMA | | ||
332 | IDE_HFLAG_BOOTABLE, | 332 | IDE_HFLAG_BOOTABLE, |
333 | }; | 333 | }; |
334 | 334 | ||
diff --git a/drivers/ide/pci/via82cxxx.c b/drivers/ide/pci/via82cxxx.c index 23f7eac96af3..91bcb6be0d51 100644 --- a/drivers/ide/pci/via82cxxx.c +++ b/drivers/ide/pci/via82cxxx.c | |||
@@ -456,18 +456,17 @@ static ide_pci_device_t via82cxxx_chipsets[] __devinitdata = { | |||
456 | .name = "VP_IDE", | 456 | .name = "VP_IDE", |
457 | .init_chipset = init_chipset_via82cxxx, | 457 | .init_chipset = init_chipset_via82cxxx, |
458 | .init_hwif = init_hwif_via82cxxx, | 458 | .init_hwif = init_hwif_via82cxxx, |
459 | .autodma = NOAUTODMA, | ||
460 | .enablebits = {{0x40,0x02,0x02}, {0x40,0x01,0x01}}, | 459 | .enablebits = {{0x40,0x02,0x02}, {0x40,0x01,0x01}}, |
461 | .host_flags = IDE_HFLAG_PIO_NO_BLACKLIST | | 460 | .host_flags = IDE_HFLAG_PIO_NO_BLACKLIST | |
462 | IDE_HFLAG_PIO_NO_DOWNGRADE | | 461 | IDE_HFLAG_PIO_NO_DOWNGRADE | |
463 | IDE_HFLAG_POST_SET_MODE | | 462 | IDE_HFLAG_POST_SET_MODE | |
463 | IDE_HFLAG_NO_AUTODMA | | ||
464 | IDE_HFLAG_BOOTABLE, | 464 | IDE_HFLAG_BOOTABLE, |
465 | .pio_mask = ATA_PIO5, | 465 | .pio_mask = ATA_PIO5, |
466 | },{ /* 1 */ | 466 | },{ /* 1 */ |
467 | .name = "VP_IDE", | 467 | .name = "VP_IDE", |
468 | .init_chipset = init_chipset_via82cxxx, | 468 | .init_chipset = init_chipset_via82cxxx, |
469 | .init_hwif = init_hwif_via82cxxx, | 469 | .init_hwif = init_hwif_via82cxxx, |
470 | .autodma = AUTODMA, | ||
471 | .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, | 470 | .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}}, |
472 | .host_flags = IDE_HFLAG_PIO_NO_BLACKLIST | | 471 | .host_flags = IDE_HFLAG_PIO_NO_BLACKLIST | |
473 | IDE_HFLAG_PIO_NO_DOWNGRADE | | 472 | IDE_HFLAG_PIO_NO_DOWNGRADE | |
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c index d5901ec9e8cc..26061fe1b712 100644 --- a/drivers/ide/setup-pci.c +++ b/drivers/ide/setup-pci.c | |||
@@ -428,9 +428,10 @@ static void ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwi | |||
428 | static void ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwif_t *hwif) | 428 | static void ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwif_t *hwif) |
429 | { | 429 | { |
430 | u16 pcicmd; | 430 | u16 pcicmd; |
431 | |||
431 | pci_read_config_word(dev, PCI_COMMAND, &pcicmd); | 432 | pci_read_config_word(dev, PCI_COMMAND, &pcicmd); |
432 | 433 | ||
433 | if ((d->autodma == AUTODMA) || | 434 | if ((d->host_flags & IDE_HFLAG_NO_AUTODMA) == 0 || |
434 | ((dev->class >> 8) == PCI_CLASS_STORAGE_IDE && | 435 | ((dev->class >> 8) == PCI_CLASS_STORAGE_IDE && |
435 | (dev->class & 0x80))) { | 436 | (dev->class & 0x80))) { |
436 | unsigned long dma_base = ide_get_or_set_dma_base(hwif); | 437 | unsigned long dma_base = ide_get_or_set_dma_base(hwif); |
@@ -558,7 +559,7 @@ void ide_pci_setup_ports(struct pci_dev *dev, ide_pci_device_t *d, int pciirq, a | |||
558 | if (d->init_iops) | 559 | if (d->init_iops) |
559 | d->init_iops(hwif); | 560 | d->init_iops(hwif); |
560 | 561 | ||
561 | if (d->autodma == NODMA) | 562 | if (d->host_flags & IDE_HFLAG_NO_DMA) |
562 | goto bypass_legacy_dma; | 563 | goto bypass_legacy_dma; |
563 | 564 | ||
564 | if(d->init_setup_dma) | 565 | if(d->init_setup_dma) |
diff --git a/include/linux/ide.h b/include/linux/ide.h index 575bf81dc84a..6f375e044c3e 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1210,10 +1210,6 @@ extern void default_hwif_iops(ide_hwif_t *); | |||
1210 | extern void default_hwif_mmiops(ide_hwif_t *); | 1210 | extern void default_hwif_mmiops(ide_hwif_t *); |
1211 | extern void default_hwif_transport(ide_hwif_t *); | 1211 | extern void default_hwif_transport(ide_hwif_t *); |
1212 | 1212 | ||
1213 | #define NODMA 0 | ||
1214 | #define NOAUTODMA 1 | ||
1215 | #define AUTODMA 2 | ||
1216 | |||
1217 | typedef struct ide_pci_enablebit_s { | 1213 | typedef struct ide_pci_enablebit_s { |
1218 | u8 reg; /* byte pci reg holding the enable-bit */ | 1214 | u8 reg; /* byte pci reg holding the enable-bit */ |
1219 | u8 mask; /* mask to isolate the enable-bit */ | 1215 | u8 mask; /* mask to isolate the enable-bit */ |
@@ -1252,6 +1248,10 @@ enum { | |||
1252 | IDE_HFLAG_NO_ATAPI_DMA = (1 << 12), | 1248 | IDE_HFLAG_NO_ATAPI_DMA = (1 << 12), |
1253 | /* set if host is a "bootable" controller */ | 1249 | /* set if host is a "bootable" controller */ |
1254 | IDE_HFLAG_BOOTABLE = (1 << 13), | 1250 | IDE_HFLAG_BOOTABLE = (1 << 13), |
1251 | /* host doesn't support DMA */ | ||
1252 | IDE_HFLAG_NO_DMA = (1 << 14), | ||
1253 | /* check if host is PCI IDE device before allowing DMA */ | ||
1254 | IDE_HFLAG_NO_AUTODMA = (1 << 15), | ||
1255 | }; | 1255 | }; |
1256 | 1256 | ||
1257 | #ifdef CONFIG_BLK_DEV_OFFBOARD | 1257 | #ifdef CONFIG_BLK_DEV_OFFBOARD |
@@ -1269,7 +1269,6 @@ typedef struct ide_pci_device_s { | |||
1269 | void (*init_hwif)(ide_hwif_t *); | 1269 | void (*init_hwif)(ide_hwif_t *); |
1270 | void (*init_dma)(ide_hwif_t *, unsigned long); | 1270 | void (*init_dma)(ide_hwif_t *, unsigned long); |
1271 | void (*fixup)(ide_hwif_t *); | 1271 | void (*fixup)(ide_hwif_t *); |
1272 | u8 autodma; | ||
1273 | ide_pci_enablebit_t enablebits[2]; | 1272 | ide_pci_enablebit_t enablebits[2]; |
1274 | unsigned int extra; | 1273 | unsigned int extra; |
1275 | struct ide_pci_device_s *next; | 1274 | struct ide_pci_device_s *next; |