diff options
Diffstat (limited to 'drivers/ide/pci/sc1200.c')
-rw-r--r-- | drivers/ide/pci/sc1200.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/drivers/ide/pci/sc1200.c b/drivers/ide/pci/sc1200.c index 54c5c98a2e2..d2c8b5524f2 100644 --- a/drivers/ide/pci/sc1200.c +++ b/drivers/ide/pci/sc1200.c | |||
@@ -362,33 +362,26 @@ static int sc1200_resume (struct pci_dev *dev) | |||
362 | */ | 362 | */ |
363 | static void __devinit init_hwif_sc1200 (ide_hwif_t *hwif) | 363 | static void __devinit init_hwif_sc1200 (ide_hwif_t *hwif) |
364 | { | 364 | { |
365 | if (hwif->mate) | ||
366 | hwif->serialized = hwif->mate->serialized = 1; | ||
367 | |||
368 | hwif->set_pio_mode = &sc1200_set_pio_mode; | 365 | hwif->set_pio_mode = &sc1200_set_pio_mode; |
369 | hwif->set_dma_mode = &sc1200_set_dma_mode; | 366 | hwif->set_dma_mode = &sc1200_set_dma_mode; |
370 | 367 | ||
371 | hwif->drives[0].autotune = 1; | ||
372 | hwif->drives[1].autotune = 1; | ||
373 | |||
374 | if (hwif->dma_base == 0) | 368 | if (hwif->dma_base == 0) |
375 | return; | 369 | return; |
376 | 370 | ||
377 | hwif->udma_filter = sc1200_udma_filter; | 371 | hwif->udma_filter = sc1200_udma_filter; |
378 | hwif->ide_dma_end = &sc1200_ide_dma_end; | 372 | hwif->ide_dma_end = &sc1200_ide_dma_end; |
379 | |||
380 | hwif->atapi_dma = 1; | ||
381 | hwif->ultra_mask = 0x07; | ||
382 | hwif->mwdma_mask = 0x07; | ||
383 | } | 373 | } |
384 | 374 | ||
385 | static ide_pci_device_t sc1200_chipset __devinitdata = { | 375 | static const struct ide_port_info sc1200_chipset __devinitdata = { |
386 | .name = "SC1200", | 376 | .name = "SC1200", |
387 | .init_hwif = init_hwif_sc1200, | 377 | .init_hwif = init_hwif_sc1200, |
388 | .autodma = AUTODMA, | 378 | .host_flags = IDE_HFLAG_SERIALIZE | |
389 | .bootable = ON_BOARD, | 379 | IDE_HFLAG_POST_SET_MODE | |
390 | .host_flags = IDE_HFLAG_ABUSE_DMA_MODES | IDE_HFLAG_POST_SET_MODE, | 380 | IDE_HFLAG_ABUSE_DMA_MODES | |
381 | IDE_HFLAG_BOOTABLE, | ||
391 | .pio_mask = ATA_PIO4, | 382 | .pio_mask = ATA_PIO4, |
383 | .mwdma_mask = ATA_MWDMA2, | ||
384 | .udma_mask = ATA_UDMA2, | ||
392 | }; | 385 | }; |
393 | 386 | ||
394 | static int __devinit sc1200_init_one(struct pci_dev *dev, const struct pci_device_id *id) | 387 | static int __devinit sc1200_init_one(struct pci_dev *dev, const struct pci_device_id *id) |