diff options
Diffstat (limited to 'drivers/ide/pci/pdc202xx_old.c')
-rw-r--r-- | drivers/ide/pci/pdc202xx_old.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c index 41ac4a94959f..fbcb0bb9c956 100644 --- a/drivers/ide/pci/pdc202xx_old.c +++ b/drivers/ide/pci/pdc202xx_old.c | |||
@@ -145,7 +145,7 @@ static int pdc202xx_tune_chipset (ide_drive_t *drive, u8 xferspeed) | |||
145 | 145 | ||
146 | static void pdc202xx_tune_drive(ide_drive_t *drive, u8 pio) | 146 | static void pdc202xx_tune_drive(ide_drive_t *drive, u8 pio) |
147 | { | 147 | { |
148 | pio = ide_get_best_pio_mode(drive, pio, 4, NULL); | 148 | pio = ide_get_best_pio_mode(drive, pio, 4); |
149 | pdc202xx_tune_chipset(drive, XFER_PIO_0 + pio); | 149 | pdc202xx_tune_chipset(drive, XFER_PIO_0 + pio); |
150 | } | 150 | } |
151 | 151 | ||
@@ -316,14 +316,6 @@ static void pdc202xx_reset (ide_drive_t *drive) | |||
316 | static unsigned int __devinit init_chipset_pdc202xx(struct pci_dev *dev, | 316 | static unsigned int __devinit init_chipset_pdc202xx(struct pci_dev *dev, |
317 | const char *name) | 317 | const char *name) |
318 | { | 318 | { |
319 | /* This doesn't appear needed */ | ||
320 | if (dev->resource[PCI_ROM_RESOURCE].start) { | ||
321 | pci_write_config_dword(dev, PCI_ROM_ADDRESS, | ||
322 | dev->resource[PCI_ROM_RESOURCE].start | PCI_ROM_ADDRESS_ENABLE); | ||
323 | printk(KERN_INFO "%s: ROM enabled at 0x%08lx\n", name, | ||
324 | (unsigned long)dev->resource[PCI_ROM_RESOURCE].start); | ||
325 | } | ||
326 | |||
327 | return dev->irq; | 319 | return dev->irq; |
328 | } | 320 | } |
329 | 321 | ||
@@ -449,10 +441,10 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | |||
449 | .init_chipset = init_chipset_pdc202xx, | 441 | .init_chipset = init_chipset_pdc202xx, |
450 | .init_hwif = init_hwif_pdc202xx, | 442 | .init_hwif = init_hwif_pdc202xx, |
451 | .init_dma = init_dma_pdc202xx, | 443 | .init_dma = init_dma_pdc202xx, |
452 | .channels = 2, | ||
453 | .autodma = AUTODMA, | 444 | .autodma = AUTODMA, |
454 | .bootable = OFF_BOARD, | 445 | .bootable = OFF_BOARD, |
455 | .extra = 16, | 446 | .extra = 16, |
447 | .pio_mask = ATA_PIO4, | ||
456 | .udma_mask = 0x07, /* udma0-2 */ | 448 | .udma_mask = 0x07, /* udma0-2 */ |
457 | },{ /* 1 */ | 449 | },{ /* 1 */ |
458 | .name = "PDC20262", | 450 | .name = "PDC20262", |
@@ -460,10 +452,10 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | |||
460 | .init_chipset = init_chipset_pdc202xx, | 452 | .init_chipset = init_chipset_pdc202xx, |
461 | .init_hwif = init_hwif_pdc202xx, | 453 | .init_hwif = init_hwif_pdc202xx, |
462 | .init_dma = init_dma_pdc202xx, | 454 | .init_dma = init_dma_pdc202xx, |
463 | .channels = 2, | ||
464 | .autodma = AUTODMA, | 455 | .autodma = AUTODMA, |
465 | .bootable = OFF_BOARD, | 456 | .bootable = OFF_BOARD, |
466 | .extra = 48, | 457 | .extra = 48, |
458 | .pio_mask = ATA_PIO4, | ||
467 | .udma_mask = 0x1f, /* udma0-4 */ | 459 | .udma_mask = 0x1f, /* udma0-4 */ |
468 | },{ /* 2 */ | 460 | },{ /* 2 */ |
469 | .name = "PDC20263", | 461 | .name = "PDC20263", |
@@ -471,10 +463,10 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | |||
471 | .init_chipset = init_chipset_pdc202xx, | 463 | .init_chipset = init_chipset_pdc202xx, |
472 | .init_hwif = init_hwif_pdc202xx, | 464 | .init_hwif = init_hwif_pdc202xx, |
473 | .init_dma = init_dma_pdc202xx, | 465 | .init_dma = init_dma_pdc202xx, |
474 | .channels = 2, | ||
475 | .autodma = AUTODMA, | 466 | .autodma = AUTODMA, |
476 | .bootable = OFF_BOARD, | 467 | .bootable = OFF_BOARD, |
477 | .extra = 48, | 468 | .extra = 48, |
469 | .pio_mask = ATA_PIO4, | ||
478 | .udma_mask = 0x1f, /* udma0-4 */ | 470 | .udma_mask = 0x1f, /* udma0-4 */ |
479 | },{ /* 3 */ | 471 | },{ /* 3 */ |
480 | .name = "PDC20265", | 472 | .name = "PDC20265", |
@@ -482,10 +474,10 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | |||
482 | .init_chipset = init_chipset_pdc202xx, | 474 | .init_chipset = init_chipset_pdc202xx, |
483 | .init_hwif = init_hwif_pdc202xx, | 475 | .init_hwif = init_hwif_pdc202xx, |
484 | .init_dma = init_dma_pdc202xx, | 476 | .init_dma = init_dma_pdc202xx, |
485 | .channels = 2, | ||
486 | .autodma = AUTODMA, | 477 | .autodma = AUTODMA, |
487 | .bootable = OFF_BOARD, | 478 | .bootable = OFF_BOARD, |
488 | .extra = 48, | 479 | .extra = 48, |
480 | .pio_mask = ATA_PIO4, | ||
489 | .udma_mask = 0x3f, /* udma0-5 */ | 481 | .udma_mask = 0x3f, /* udma0-5 */ |
490 | },{ /* 4 */ | 482 | },{ /* 4 */ |
491 | .name = "PDC20267", | 483 | .name = "PDC20267", |
@@ -493,10 +485,10 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | |||
493 | .init_chipset = init_chipset_pdc202xx, | 485 | .init_chipset = init_chipset_pdc202xx, |
494 | .init_hwif = init_hwif_pdc202xx, | 486 | .init_hwif = init_hwif_pdc202xx, |
495 | .init_dma = init_dma_pdc202xx, | 487 | .init_dma = init_dma_pdc202xx, |
496 | .channels = 2, | ||
497 | .autodma = AUTODMA, | 488 | .autodma = AUTODMA, |
498 | .bootable = OFF_BOARD, | 489 | .bootable = OFF_BOARD, |
499 | .extra = 48, | 490 | .extra = 48, |
491 | .pio_mask = ATA_PIO4, | ||
500 | .udma_mask = 0x3f, /* udma0-5 */ | 492 | .udma_mask = 0x3f, /* udma0-5 */ |
501 | } | 493 | } |
502 | }; | 494 | }; |