diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:07 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-18 18:30:07 -0400 |
commit | 5f8b6c34854a966fe5eb7241fde0419d47d5d408 (patch) | |
tree | 052afd508d9cd314f503d938182db55355f1b392 /drivers/ide/pci/slc90e66.c | |
parent | 9adf768a398745c539623210502b521e671c59d7 (diff) |
ide: add ->mwdma_mask and ->swdma_mask to ide_pci_device_t (take 2)
* Add ->mwdma_mask and ->swdma_mask to ide_pci_device_t.
* Set ide_hwif_t DMA masks using DMA masks from ide_pci_device_t in
setup-pci.c::ide_pci_setup_ports() (iff DMA base is valid and ->init_hwif
method may still override them).
* Convert IDE PCI host drivers to use ide_pci_device_t DMA masks.
While at it:
* Use ATA_{UDMA,MWDMA,SWDMA}* defines.
* hpt34x.c: add separate ide_pci_device_t instances for HPT343 and HPT345.
* serverworks.c: fix DMA masks being set before checking DMA base.
v2:
* Add missing masks to DECLARE_GENERIC_PCI_DEV() macro.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/slc90e66.c')
-rw-r--r-- | drivers/ide/pci/slc90e66.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/ide/pci/slc90e66.c b/drivers/ide/pci/slc90e66.c index 4f213e4c0c42..416fbab2ed36 100644 --- a/drivers/ide/pci/slc90e66.c +++ b/drivers/ide/pci/slc90e66.c | |||
@@ -147,10 +147,6 @@ static void __devinit init_hwif_slc90e66 (ide_hwif_t *hwif) | |||
147 | if (hwif->dma_base == 0) | 147 | if (hwif->dma_base == 0) |
148 | return; | 148 | return; |
149 | 149 | ||
150 | hwif->ultra_mask = 0x1f; | ||
151 | hwif->mwdma_mask = 0x06; | ||
152 | hwif->swdma_mask = 0x04; | ||
153 | |||
154 | if (hwif->cbl != ATA_CBL_PATA40_SHORT) | 150 | if (hwif->cbl != ATA_CBL_PATA40_SHORT) |
155 | /* bit[0(1)]: 0:80, 1:40 */ | 151 | /* bit[0(1)]: 0:80, 1:40 */ |
156 | hwif->cbl = (reg47 & mask) ? ATA_CBL_PATA40 : ATA_CBL_PATA80; | 152 | hwif->cbl = (reg47 & mask) ? ATA_CBL_PATA40 : ATA_CBL_PATA80; |
@@ -162,6 +158,9 @@ static ide_pci_device_t slc90e66_chipset __devinitdata = { | |||
162 | .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, | 158 | .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, |
163 | .host_flags = IDE_HFLAG_BOOTABLE, | 159 | .host_flags = IDE_HFLAG_BOOTABLE, |
164 | .pio_mask = ATA_PIO4, | 160 | .pio_mask = ATA_PIO4, |
161 | .swdma_mask = ATA_SWDMA2_ONLY, | ||
162 | .mwdma_mask = ATA_MWDMA12_ONLY, | ||
163 | .udma_mask = ATA_UDMA4, | ||
165 | }; | 164 | }; |
166 | 165 | ||
167 | static int __devinit slc90e66_init_one(struct pci_dev *dev, const struct pci_device_id *id) | 166 | static int __devinit slc90e66_init_one(struct pci_dev *dev, const struct pci_device_id *id) |