aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/pdc202xx_new.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/pci/pdc202xx_new.c')
-rw-r--r--drivers/ide/pci/pdc202xx_new.c76
1 files changed, 19 insertions, 57 deletions
diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c
index 8bce030550d7..20dc6bc1aee5 100644
--- a/drivers/ide/pci/pdc202xx_new.c
+++ b/drivers/ide/pci/pdc202xx_new.c
@@ -504,64 +504,26 @@ static struct pci_dev * __devinit pdc20270_get_dev2(struct pci_dev *dev)
504 return NULL; 504 return NULL;
505} 505}
506 506
507static ide_pci_device_t pdcnew_chipsets[] __devinitdata = { 507#define DECLARE_PDCNEW_DEV(name_str, udma) \
508 { /* 0 */ 508 { \
509 .name = "PDC20268", 509 .name = name_str, \
510 .init_chipset = init_chipset_pdcnew, 510 .init_chipset = init_chipset_pdcnew, \
511 .init_hwif = init_hwif_pdc202new, 511 .init_hwif = init_hwif_pdc202new, \
512 .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD, 512 .host_flags = IDE_HFLAG_POST_SET_MODE | \
513 .pio_mask = ATA_PIO4, 513 IDE_HFLAG_OFF_BOARD, \
514 .mwdma_mask = ATA_MWDMA2, 514 .pio_mask = ATA_PIO4, \
515 .udma_mask = ATA_UDMA5, 515 .mwdma_mask = ATA_MWDMA2, \
516 },{ /* 1 */ 516 .udma_mask = udma, \
517 .name = "PDC20269",
518 .init_chipset = init_chipset_pdcnew,
519 .init_hwif = init_hwif_pdc202new,
520 .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD,
521 .pio_mask = ATA_PIO4,
522 .mwdma_mask = ATA_MWDMA2,
523 .udma_mask = ATA_UDMA6,
524 },{ /* 2 */
525 .name = "PDC20270",
526 .init_chipset = init_chipset_pdcnew,
527 .init_hwif = init_hwif_pdc202new,
528 .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD,
529 .pio_mask = ATA_PIO4,
530 .mwdma_mask = ATA_MWDMA2,
531 .udma_mask = ATA_UDMA5,
532 },{ /* 3 */
533 .name = "PDC20271",
534 .init_chipset = init_chipset_pdcnew,
535 .init_hwif = init_hwif_pdc202new,
536 .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD,
537 .pio_mask = ATA_PIO4,
538 .mwdma_mask = ATA_MWDMA2,
539 .udma_mask = ATA_UDMA6,
540 },{ /* 4 */
541 .name = "PDC20275",
542 .init_chipset = init_chipset_pdcnew,
543 .init_hwif = init_hwif_pdc202new,
544 .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD,
545 .pio_mask = ATA_PIO4,
546 .mwdma_mask = ATA_MWDMA2,
547 .udma_mask = ATA_UDMA6,
548 },{ /* 5 */
549 .name = "PDC20276",
550 .init_chipset = init_chipset_pdcnew,
551 .init_hwif = init_hwif_pdc202new,
552 .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD,
553 .pio_mask = ATA_PIO4,
554 .mwdma_mask = ATA_MWDMA2,
555 .udma_mask = ATA_UDMA6,
556 },{ /* 6 */
557 .name = "PDC20277",
558 .init_chipset = init_chipset_pdcnew,
559 .init_hwif = init_hwif_pdc202new,
560 .host_flags = IDE_HFLAG_POST_SET_MODE | IDE_HFLAG_OFF_BOARD,
561 .pio_mask = ATA_PIO4,
562 .mwdma_mask = ATA_MWDMA2,
563 .udma_mask = ATA_UDMA6,
564 } 517 }
518
519static ide_pci_device_t pdcnew_chipsets[] __devinitdata = {
520 /* 0 */ DECLARE_PDCNEW_DEV("PDC20268", ATA_UDMA5),
521 /* 1 */ DECLARE_PDCNEW_DEV("PDC20269", ATA_UDMA6),
522 /* 2 */ DECLARE_PDCNEW_DEV("PDC20270", ATA_UDMA5),
523 /* 3 */ DECLARE_PDCNEW_DEV("PDC20271", ATA_UDMA6),
524 /* 4 */ DECLARE_PDCNEW_DEV("PDC20275", ATA_UDMA6),
525 /* 5 */ DECLARE_PDCNEW_DEV("PDC20276", ATA_UDMA6),
526 /* 6 */ DECLARE_PDCNEW_DEV("PDC20277", ATA_UDMA6),
565}; 527};
566 528
567/** 529/**