Up to [cvs.NetBSD.org] / src / sys / dev / ata
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: fvdl-softdep-base
Revision 1.5 / (download) - annotate - [select for diffs], Mon Jan 18 20:06:24 1999 UTC (25 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame,
fvdl-softdep-base,
fvdl-softdep,
comdex-fall-1999-base,
comdex-fall-1999,
chs-ubc2-newbase,
chs-ubc2-base,
chs-ubc2,
bouyer-ide-last-dist
Branch point for: thorpej_scsipi,
netbsd-1-4
Changes since 1.4: +2 -1
lines
Diff to previous 1.4 (colored)
move wd.c:print_wderror() to ata.c:ata_perror(). In wdc_probe_caps() add code to guess the ATA revision supported (if ATA4 if Ultra-DMA, ATA2 if PIO mode > 2). We can't rely on param.atap_ata_major here, at last one Ultra-DMA drive claims to support only ATA-3. Use the ATA version in ata_perror(), and to try a flush cache command in a shutdown hook for IDE drives.