jkim 8bd7d2cca7 MFC: sys/dev/fdc/fdc.c 1.310-1.313
sys/dev/ic/nec765.h	1.12, 1.13
	sys/dev/pc98/fdc.c	1.167

- 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
function.
- Fix style nits.

PR:	kern/103841
2007-09-14 23:44:11 +00:00
..
2005-05-14 10:26:31 +00:00
2007-09-14 23:44:11 +00:00