aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2003-10-26 19:27:16 +0000
committerMax Khon <fjoe@FreeBSD.org>2003-10-26 19:27:16 +0000
commit447948bfdf73b4bdf1a5b9bd955b8ce09f6a53f3 (patch)
tree0969add4eb6813312402c17d845e504a1bbb2c71
parenta76434685e633018c6479b39610aead35dad748a (diff)
downloadsrc-447948bfdf73b4bdf1a5b9bd955b8ce09f6a53f3.tar.gz
src-447948bfdf73b4bdf1a5b9bd955b8ce09f6a53f3.zip
MFS: rev. 1.35.2.35:
Fix setting PIO mode timings on AcerLabs Aladdin IV/V chipsets. Approved by: re
Notes
Notes: svn path=/releng/4.9/; revision=121581
-rw-r--r--sys/dev/ata/ata-dma.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c
index 60cb0f5dd2db..edd893cd4916 100644
--- a/sys/dev/ata/ata-dma.c
+++ b/sys/dev/ata/ata-dma.c
@@ -490,12 +490,12 @@ ata_dmainit(struct ata_device *atadev, int apiomode, int wdmamode, int udmamode)
int32_t timing;
switch(ATA_PIO0 + apiomode) {
- case ATA_PIO0: timing = 0x006d0003;
- case ATA_PIO1: timing = 0x00580002;
- case ATA_PIO2: timing = 0x00440001;
- case ATA_PIO3: timing = 0x00330001;
- case ATA_PIO4: timing = 0x00310001;
- default: timing = 0x006d0003;
+ case ATA_PIO0: timing = 0x006d0003; break;
+ case ATA_PIO1: timing = 0x00580002; break;
+ case ATA_PIO2: timing = 0x00440001; break;
+ case ATA_PIO3: timing = 0x00330001; break;
+ case ATA_PIO4: timing = 0x00310001; break;
+ default: timing = 0x006d0003; break;
}
pci_write_config(parent, 0x58 + (channel << 2), timing, 4);
word54 &= ~(0x000f000f << (devno << 2));