diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:59 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-19 19:11:59 -0400 |
commit | 4099d14322149c7a467e4997b87be4ba8eb78697 (patch) | |
tree | 133a913d7f9c2dacaaaef5cfdf2ae6911dc21f4c /drivers/ide/legacy | |
parent | 6a824c92db4d606c324272c4eed366fb71672440 (diff) |
ide: add PIO masks
* Add ATA_PIO[0-6] defines to <linux/ata.h>.
* Add ->pio_mask field to ide_pci_device_t and ide_hwif_t.
* Add PIO masks to host drivers.
<linux/ata.h> change ACK-ed by Jeff Garzik <jeff@garzik.org>.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/legacy')
-rw-r--r-- | drivers/ide/legacy/ali14xx.c | 2 | ||||
-rw-r--r-- | drivers/ide/legacy/dtc2278.c | 1 | ||||
-rw-r--r-- | drivers/ide/legacy/ht6560b.c | 2 | ||||
-rw-r--r-- | drivers/ide/legacy/qd65xx.c | 1 | ||||
-rw-r--r-- | drivers/ide/legacy/umc8672.c | 2 |
5 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ide/legacy/ali14xx.c b/drivers/ide/legacy/ali14xx.c index d5c7a57b71c1..9b9c4761cb7d 100644 --- a/drivers/ide/legacy/ali14xx.c +++ b/drivers/ide/legacy/ali14xx.c | |||
@@ -211,10 +211,12 @@ static int __init ali14xx_probe(void) | |||
211 | mate = &ide_hwifs[1]; | 211 | mate = &ide_hwifs[1]; |
212 | 212 | ||
213 | hwif->chipset = ide_ali14xx; | 213 | hwif->chipset = ide_ali14xx; |
214 | hwif->pio_mask = ATA_PIO4; | ||
214 | hwif->tuneproc = &ali14xx_tune_drive; | 215 | hwif->tuneproc = &ali14xx_tune_drive; |
215 | hwif->mate = mate; | 216 | hwif->mate = mate; |
216 | 217 | ||
217 | mate->chipset = ide_ali14xx; | 218 | mate->chipset = ide_ali14xx; |
219 | mate->pio_mask = ATA_PIO4; | ||
218 | mate->tuneproc = &ali14xx_tune_drive; | 220 | mate->tuneproc = &ali14xx_tune_drive; |
219 | mate->mate = hwif; | 221 | mate->mate = hwif; |
220 | mate->channel = 1; | 222 | mate->channel = 1; |
diff --git a/drivers/ide/legacy/dtc2278.c b/drivers/ide/legacy/dtc2278.c index 8c4c27e5dc10..6c01d951d074 100644 --- a/drivers/ide/legacy/dtc2278.c +++ b/drivers/ide/legacy/dtc2278.c | |||
@@ -123,6 +123,7 @@ static int __init dtc2278_probe(void) | |||
123 | 123 | ||
124 | hwif->serialized = 1; | 124 | hwif->serialized = 1; |
125 | hwif->chipset = ide_dtc2278; | 125 | hwif->chipset = ide_dtc2278; |
126 | hwif->pio_mask = ATA_PIO4; | ||
126 | hwif->tuneproc = &tune_dtc2278; | 127 | hwif->tuneproc = &tune_dtc2278; |
127 | hwif->drives[0].no_unmask = 1; | 128 | hwif->drives[0].no_unmask = 1; |
128 | hwif->drives[1].no_unmask = 1; | 129 | hwif->drives[1].no_unmask = 1; |
diff --git a/drivers/ide/legacy/ht6560b.c b/drivers/ide/legacy/ht6560b.c index 82ed37df9566..bfaa2025173b 100644 --- a/drivers/ide/legacy/ht6560b.c +++ b/drivers/ide/legacy/ht6560b.c | |||
@@ -333,12 +333,14 @@ int __init ht6560b_init(void) | |||
333 | 333 | ||
334 | hwif->chipset = ide_ht6560b; | 334 | hwif->chipset = ide_ht6560b; |
335 | hwif->selectproc = &ht6560b_selectproc; | 335 | hwif->selectproc = &ht6560b_selectproc; |
336 | hwif->pio_mask = ATA_PIO5; | ||
336 | hwif->tuneproc = &tune_ht6560b; | 337 | hwif->tuneproc = &tune_ht6560b; |
337 | hwif->serialized = 1; /* is this needed? */ | 338 | hwif->serialized = 1; /* is this needed? */ |
338 | hwif->mate = mate; | 339 | hwif->mate = mate; |
339 | 340 | ||
340 | mate->chipset = ide_ht6560b; | 341 | mate->chipset = ide_ht6560b; |
341 | mate->selectproc = &ht6560b_selectproc; | 342 | mate->selectproc = &ht6560b_selectproc; |
343 | mate->pio_mask = ATA_PIO5; | ||
342 | mate->tuneproc = &tune_ht6560b; | 344 | mate->tuneproc = &tune_ht6560b; |
343 | mate->serialized = 1; /* is this needed? */ | 345 | mate->serialized = 1; /* is this needed? */ |
344 | mate->mate = hwif; | 346 | mate->mate = hwif; |
diff --git a/drivers/ide/legacy/qd65xx.c b/drivers/ide/legacy/qd65xx.c index 39145102b348..8b87a424094a 100644 --- a/drivers/ide/legacy/qd65xx.c +++ b/drivers/ide/legacy/qd65xx.c | |||
@@ -346,6 +346,7 @@ static void __init qd_setup(ide_hwif_t *hwif, int base, int config, | |||
346 | hwif->drives[1].drive_data = data1; | 346 | hwif->drives[1].drive_data = data1; |
347 | hwif->drives[0].io_32bit = | 347 | hwif->drives[0].io_32bit = |
348 | hwif->drives[1].io_32bit = 1; | 348 | hwif->drives[1].io_32bit = 1; |
349 | hwif->pio_mask = ATA_PIO4; | ||
349 | hwif->tuneproc = tuneproc; | 350 | hwif->tuneproc = tuneproc; |
350 | probe_hwif_init(hwif); | 351 | probe_hwif_init(hwif); |
351 | } | 352 | } |
diff --git a/drivers/ide/legacy/umc8672.c b/drivers/ide/legacy/umc8672.c index caeebd41081f..d2862e638bc5 100644 --- a/drivers/ide/legacy/umc8672.c +++ b/drivers/ide/legacy/umc8672.c | |||
@@ -149,10 +149,12 @@ static int __init umc8672_probe(void) | |||
149 | mate = &ide_hwifs[1]; | 149 | mate = &ide_hwifs[1]; |
150 | 150 | ||
151 | hwif->chipset = ide_umc8672; | 151 | hwif->chipset = ide_umc8672; |
152 | hwif->pio_mask = ATA_PIO4; | ||
152 | hwif->tuneproc = &tune_umc; | 153 | hwif->tuneproc = &tune_umc; |
153 | hwif->mate = mate; | 154 | hwif->mate = mate; |
154 | 155 | ||
155 | mate->chipset = ide_umc8672; | 156 | mate->chipset = ide_umc8672; |
157 | mate->pio_mask = ATA_PIO4; | ||
156 | mate->tuneproc = &tune_umc; | 158 | mate->tuneproc = &tune_umc; |
157 | mate->mate = hwif; | 159 | mate->mate = hwif; |
158 | mate->channel = 1; | 160 | mate->channel = 1; |