aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r--drivers/ide/ide.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index 5c0e4078b5cb..5b090662683e 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -100,8 +100,6 @@ static int ide_scan_direction; /* THIS was formerly 2.2.x pci=reverse */
100 100
101int noautodma = 0; 101int noautodma = 0;
102 102
103EXPORT_SYMBOL(noautodma);
104
105#ifdef CONFIG_BLK_DEV_IDEACPI 103#ifdef CONFIG_BLK_DEV_IDEACPI
106int ide_noacpi = 0; 104int ide_noacpi = 0;
107int ide_noacpitfs = 1; 105int ide_noacpitfs = 1;
@@ -418,7 +416,6 @@ static void ide_hwif_restore(ide_hwif_t *hwif, ide_hwif_t *tmp_hwif)
418 hwif->dma_exec_cmd = tmp_hwif->dma_exec_cmd; 416 hwif->dma_exec_cmd = tmp_hwif->dma_exec_cmd;
419 hwif->dma_start = tmp_hwif->dma_start; 417 hwif->dma_start = tmp_hwif->dma_start;
420 hwif->ide_dma_end = tmp_hwif->ide_dma_end; 418 hwif->ide_dma_end = tmp_hwif->ide_dma_end;
421 hwif->ide_dma_check = tmp_hwif->ide_dma_check;
422 hwif->ide_dma_on = tmp_hwif->ide_dma_on; 419 hwif->ide_dma_on = tmp_hwif->ide_dma_on;
423 hwif->dma_off_quietly = tmp_hwif->dma_off_quietly; 420 hwif->dma_off_quietly = tmp_hwif->dma_off_quietly;
424 hwif->ide_dma_test_irq = tmp_hwif->ide_dma_test_irq; 421 hwif->ide_dma_test_irq = tmp_hwif->ide_dma_test_irq;
@@ -461,7 +458,6 @@ static void ide_hwif_restore(ide_hwif_t *hwif, ide_hwif_t *tmp_hwif)
461 hwif->select_data = tmp_hwif->select_data; 458 hwif->select_data = tmp_hwif->select_data;
462 hwif->extra_base = tmp_hwif->extra_base; 459 hwif->extra_base = tmp_hwif->extra_base;
463 hwif->extra_ports = tmp_hwif->extra_ports; 460 hwif->extra_ports = tmp_hwif->extra_ports;
464 hwif->autodma = tmp_hwif->autodma;
465 461
466 hwif->hwif_data = tmp_hwif->hwif_data; 462 hwif->hwif_data = tmp_hwif->hwif_data;
467} 463}
@@ -823,7 +819,7 @@ int set_using_dma(ide_drive_t *drive, int arg)
823 if (!drive->id || !(drive->id->capability & 1)) 819 if (!drive->id || !(drive->id->capability & 1))
824 goto out; 820 goto out;
825 821
826 if (hwif->ide_dma_check == NULL) 822 if (hwif->ide_dma_on == NULL)
827 goto out; 823 goto out;
828 824
829 err = -EBUSY; 825 err = -EBUSY;
@@ -1276,7 +1272,7 @@ static int __init ide_setup(char *s)
1276 if (!strcmp(s, "ide=nodma")) { 1272 if (!strcmp(s, "ide=nodma")) {
1277 printk(" : Prevented DMA\n"); 1273 printk(" : Prevented DMA\n");
1278 noautodma = 1; 1274 noautodma = 1;
1279 return 1; 1275 goto obsolete_option;
1280 } 1276 }
1281 1277
1282#ifdef CONFIG_IDEPCI_PCIBUS_ORDER 1278#ifdef CONFIG_IDEPCI_PCIBUS_ORDER
@@ -1310,7 +1306,7 @@ static int __init ide_setup(char *s)
1310 */ 1306 */
1311 if (s[0] == 'h' && s[1] == 'd' && s[2] >= 'a' && s[2] <= max_drive) { 1307 if (s[0] == 'h' && s[1] == 'd' && s[2] >= 'a' && s[2] <= max_drive) {
1312 const char *hd_words[] = { 1308 const char *hd_words[] = {
1313 "none", "noprobe", "nowerr", "cdrom", "minus5", 1309 "none", "noprobe", "nowerr", "cdrom", "nodma",
1314 "autotune", "noautotune", "minus8", "swapdata", "bswap", 1310 "autotune", "noautotune", "minus8", "swapdata", "bswap",
1315 "noflush", "remap", "remap63", "scsi", NULL }; 1311 "noflush", "remap", "remap63", "scsi", NULL };
1316 unit = s[2] - 'a'; 1312 unit = s[2] - 'a';
@@ -1338,6 +1334,9 @@ static int __init ide_setup(char *s)
1338 drive->ready_stat = 0; 1334 drive->ready_stat = 0;
1339 hwif->noprobe = 0; 1335 hwif->noprobe = 0;
1340 goto done; 1336 goto done;
1337 case -5: /* nodma */
1338 drive->nodma = 1;
1339 goto done;
1341 case -6: /* "autotune" */ 1340 case -6: /* "autotune" */
1342 drive->autotune = IDE_TUNE_AUTO; 1341 drive->autotune = IDE_TUNE_AUTO;
1343 goto obsolete_option; 1342 goto obsolete_option;
@@ -1399,7 +1398,7 @@ static int __init ide_setup(char *s)
1399 */ 1398 */
1400 static const char *ide_words[] = { 1399 static const char *ide_words[] = {
1401 "noprobe", "serialize", "minus3", "minus4", 1400 "noprobe", "serialize", "minus3", "minus4",
1402 "reset", "dma", "ata66", "minus8", "minus9", 1401 "reset", "minus6", "ata66", "minus8", "minus9",
1403 "minus10", "four", "qd65xx", "ht6560b", "cmd640_vlb", 1402 "minus10", "four", "qd65xx", "ht6560b", "cmd640_vlb",
1404 "dtc2278", "umc8672", "ali14xx", NULL }; 1403 "dtc2278", "umc8672", "ali14xx", NULL };
1405 hw = s[3] - '0'; 1404 hw = s[3] - '0';
@@ -1478,6 +1477,7 @@ static int __init ide_setup(char *s)
1478 case -10: /* minus10 */ 1477 case -10: /* minus10 */
1479 case -9: /* minus9 */ 1478 case -9: /* minus9 */
1480 case -8: /* minus8 */ 1479 case -8: /* minus8 */
1480 case -6:
1481 case -4: 1481 case -4:
1482 case -3: 1482 case -3:
1483 goto bad_option; 1483 goto bad_option;
@@ -1492,9 +1492,6 @@ static int __init ide_setup(char *s)
1492#else 1492#else
1493 goto bad_hwif; 1493 goto bad_hwif;
1494#endif 1494#endif
1495 case -6: /* dma */
1496 hwif->autodma = 1;
1497 goto obsolete_option;
1498 case -5: /* "reset" */ 1495 case -5: /* "reset" */
1499 hwif->reset = 1; 1496 hwif->reset = 1;
1500 goto obsolete_option; 1497 goto obsolete_option;