diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:10 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:10 -0400 |
commit | 5ef8cb5d9262678d3020a9395afb96592bffe069 (patch) | |
tree | 02ba9709f8f8eac06bf5bd850b74a774ed50d0a9 /drivers | |
parent | 05d7e6cbcd19a7a0c3ffe06913c3864fd99816cd (diff) |
pdc202xx_old: add DECLARE_PDC2026X_DEV() macro
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/pci/pdc202xx_old.c | 60 |
1 files changed, 19 insertions, 41 deletions
diff --git a/drivers/ide/pci/pdc202xx_old.c b/drivers/ide/pci/pdc202xx_old.c index d7b2210b4ebc..5b308d5c10ba 100644 --- a/drivers/ide/pci/pdc202xx_old.c +++ b/drivers/ide/pci/pdc202xx_old.c | |||
@@ -386,6 +386,19 @@ static void __devinit pdc202ata4_fixup_irq(struct pci_dev *dev, | |||
386 | } | 386 | } |
387 | } | 387 | } |
388 | 388 | ||
389 | #define DECLARE_PDC2026X_DEV(name_str, udma) \ | ||
390 | { \ | ||
391 | .name = name_str, \ | ||
392 | .init_chipset = init_chipset_pdc202xx, \ | ||
393 | .init_hwif = init_hwif_pdc202xx, \ | ||
394 | .init_dma = init_dma_pdc202xx, \ | ||
395 | .extra = 48, \ | ||
396 | .host_flags = IDE_HFLAG_OFF_BOARD, \ | ||
397 | .pio_mask = ATA_PIO4, \ | ||
398 | .mwdma_mask = ATA_MWDMA2, \ | ||
399 | .udma_mask = udma, \ | ||
400 | } | ||
401 | |||
389 | static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | 402 | static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { |
390 | { /* 0 */ | 403 | { /* 0 */ |
391 | .name = "PDC20246", | 404 | .name = "PDC20246", |
@@ -397,47 +410,12 @@ static ide_pci_device_t pdc202xx_chipsets[] __devinitdata = { | |||
397 | .pio_mask = ATA_PIO4, | 410 | .pio_mask = ATA_PIO4, |
398 | .mwdma_mask = ATA_MWDMA2, | 411 | .mwdma_mask = ATA_MWDMA2, |
399 | .udma_mask = ATA_UDMA2, | 412 | .udma_mask = ATA_UDMA2, |
400 | },{ /* 1 */ | 413 | }, |
401 | .name = "PDC20262", | 414 | |
402 | .init_chipset = init_chipset_pdc202xx, | 415 | /* 1 */ DECLARE_PDC2026X_DEV("PDC20262", ATA_UDMA4), |
403 | .init_hwif = init_hwif_pdc202xx, | 416 | /* 2 */ DECLARE_PDC2026X_DEV("PDC20263", ATA_UDMA4), |
404 | .init_dma = init_dma_pdc202xx, | 417 | /* 3 */ DECLARE_PDC2026X_DEV("PDC20265", ATA_UDMA5), |
405 | .extra = 48, | 418 | /* 4 */ DECLARE_PDC2026X_DEV("PDC20267", ATA_UDMA5), |
406 | .host_flags = IDE_HFLAG_OFF_BOARD, | ||
407 | .pio_mask = ATA_PIO4, | ||
408 | .mwdma_mask = ATA_MWDMA2, | ||
409 | .udma_mask = ATA_UDMA4, | ||
410 | },{ /* 2 */ | ||
411 | .name = "PDC20263", | ||
412 | .init_chipset = init_chipset_pdc202xx, | ||
413 | .init_hwif = init_hwif_pdc202xx, | ||
414 | .init_dma = init_dma_pdc202xx, | ||
415 | .extra = 48, | ||
416 | .host_flags = IDE_HFLAG_OFF_BOARD, | ||
417 | .pio_mask = ATA_PIO4, | ||
418 | .mwdma_mask = ATA_MWDMA2, | ||
419 | .udma_mask = ATA_UDMA4, | ||
420 | },{ /* 3 */ | ||
421 | .name = "PDC20265", | ||
422 | .init_chipset = init_chipset_pdc202xx, | ||
423 | .init_hwif = init_hwif_pdc202xx, | ||
424 | .init_dma = init_dma_pdc202xx, | ||
425 | .extra = 48, | ||
426 | .host_flags = IDE_HFLAG_OFF_BOARD, | ||
427 | .pio_mask = ATA_PIO4, | ||
428 | .mwdma_mask = ATA_MWDMA2, | ||
429 | .udma_mask = ATA_UDMA5, | ||
430 | },{ /* 4 */ | ||
431 | .name = "PDC20267", | ||
432 | .init_chipset = init_chipset_pdc202xx, | ||
433 | .init_hwif = init_hwif_pdc202xx, | ||
434 | .init_dma = init_dma_pdc202xx, | ||
435 | .extra = 48, | ||
436 | .host_flags = IDE_HFLAG_OFF_BOARD, | ||
437 | .pio_mask = ATA_PIO4, | ||
438 | .mwdma_mask = ATA_MWDMA2, | ||
439 | .udma_mask = ATA_UDMA5, | ||
440 | } | ||
441 | }; | 419 | }; |
442 | 420 | ||
443 | /** | 421 | /** |