cvs commit: src/sys/dev/fdc fdc.c src/sys/dev/ic nec765.h
jkim at FreeBSD.org
Fri Sep 14 16:44:12 PDT 2007
jkim 2007-09-14 23:44:11 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
MFC: sys/dev/fdc/fdc.c 1.310-1.313
sys/dev/ic/nec765.h 1.12, 1.13
- Enhanced floppy controllers have Data Rate Select Register (DSR) at 0x3f4.
Use it to reset controller and to select data rate. According to Intel
80277AA datasheet, software reset behaves the same as DOR reset except
that it is self clearing. National Semiconductor PC8477B datasheet says
the same. As a side effect, we no longer use Configuration Control
Register (CCR) at 0x3f7 for these controllers, which is often missing
in modern hardware.
- Assume floppy disk is not inserted when we have exhausted retries. This
significantly reduces booting time when there is broken floppy disk drive,
controller, cable, BIOS, etc.
When the floppy controller interface is correctly implemented, disk change
signal (DSKCHG) is reflected in the Digital Input Register (DIR) at 0x3f7.
However, there are many cases that the signal is unusable. Moreover, some
BIOS does not reserve the port at all. In those cases, the register may not
- Fix style nits.
Revision Changes Path
1.307.2.4 +27 -8 src/sys/dev/fdc/fdc.c
126.96.36.199 +29 -23 src/sys/dev/ic/nec765.h
188.8.131.52 +2 -2 src/sys/pc98/cbus/fdc.c
More information about the cvs-all