1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys/i386/include
David Greenman 3a2f7427fe Updated driver to the 1.1.5 version:
date: 1994/05/22 12:35:38;  author: joerg;  state: Exp;  lines: +6 -6
First round of floppy changes. Try making `fd' more robust.

New features:
  .  ioctl command for setting the drive type (density etc.); restricted
     to the super-user
  .  ioctl for getting/seting `drive options'; currently only option
     is FDOPT_NORETRY: inhibit the usual retries; used when verifying
     a newly formatted track

Fixes:
  .  function prototypes
  .  made all internal functions `static'
  .  cleaned up & corrected .h files
  .  restructured, to make the chaotic function sequence more rational
  .  compiled with -Wall, and cleared all warnings
  .  introduced a mirror for the (write-only) `digital output register',
     to avoid the current kludge
  .  device probing completed by seeking/recalibrating, and looking
     for track 0 being found
  .  holding the controller down in reset state while it is idle (and
     thus saving allot of headaches)
  .  make requests fail that are not a multiple of the (physical)
     sector size
  .  removed the fixed physical sector size (512 bytes), allowing for any
     size the controller could handle (128/256/512/1024 bytes)
  .  replaced some silly messages
  .  fixed the TRACE* macro usage, debugging reports should be complete
     now again (debugging output is HUGE! though)
  .  removed fd_timeout for SEEK command; seeks are always reported by
     the controller to succeed, since the `success' only refers to the
     controller's idea of success - there is no hardware line to tell about
     the seek end (other than the `track 0' line)
  .  catch SENSEI's that report about a `terminated due to READY changed'
     status - could happen after a controller reset
  .  converted ``hz / <something>'' divide operations to divisors that are
     powers of two, so gcc can optimize them into shifts
  .  write/format operations are checked against a write-protected medium
     now *prior* starting the operation
  .  error reports of `invalid command' and `wrong cylinder' will cause
     shortcuts in the retrier() now
  .  fixed a bug in the retrier() causing bogus block numbers to be reported
  .  fdformat() does care for errors now

Known Bugs:
  .  no attempts have been made (yet) to improve the performance
  .  sometimes, bogus ``seek/recalib failed'' messages are logged; this
     is still a bug in the driver, but it's not harmful since it's
     usually caught by the retrier()

Reviewed by:
Submitted by:
Obtained from:
1994-09-17 16:56:10 +00:00
..
pc Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some 1993-10-16 14:40:57 +00:00
_limits.h Added $Id$ 1994-08-02 07:55:43 +00:00
ansi.h Added $Id$ 1994-08-02 07:55:43 +00:00
asmacros.h Get all the definitions from DEFS.h and not directly from asmacros.h 1994-09-08 12:25:18 +00:00
cons.h Added $Id$ 1994-08-02 07:55:43 +00:00
console.h Added support for many more videomodes, including graphic modes up til 1994-09-15 07:26:40 +00:00
cpu.h CPU_ADJKERNTZ added for resettodtr() 1994-09-16 01:05:24 +00:00
cpufunc.h Removed inclusion of pio.h and cpufunc.h (cpufunc.h is included from 1994-09-16 13:33:56 +00:00
cputypes.h Detect if we're running on a Cyrix 486DLC and enable automatic cache 1994-09-04 19:59:24 +00:00
db_machdep.h Remove <machine/eflags.h> and all dependencies on it. eflags.h is just 1994-09-08 11:49:04 +00:00
dkio.h Quote the first arg to _IO(). Not quoting it didn't matter because 1994-09-08 12:26:07 +00:00
eflags.h Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some 1993-10-16 14:40:57 +00:00
endian.h Change "asm" to "__asm" - makes it possible to compile code with 1994-09-10 20:03:14 +00:00
exec.h Merge in the necessary bits from 1.1.5.1 to make exec.h and reloc.h 1994-08-09 14:39:57 +00:00
float.h Made all header files idempotent and moved incorrect common data from 1993-11-07 17:43:17 +00:00
floatingpoint.h Move ieeefp.h over, and put it in the correct subdirectory this time. 1994-08-04 19:16:37 +00:00
frame.h The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch. 1994-05-25 09:21:21 +00:00
ieeefp.h Delete redundant #ifdef __i386__, be consistent about idempotency 1994-08-05 14:36:04 +00:00
ioctl_fd.h Updated driver to the 1.1.5 version: 1994-09-17 16:56:10 +00:00
ioctl_pc.h >From Theo Derradt 1993-09-08 19:29:54 +00:00
ipl.h Added $Id$ 1994-08-02 07:55:43 +00:00
limits.h Added $Id$ 1994-08-02 07:55:43 +00:00
lpt.h Added $Id$ 1994-08-02 07:55:43 +00:00
mouse.h Added the psm driver from 1.1.5. 1994-09-09 11:27:50 +00:00
mtpr.h Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, some 1993-10-16 14:40:57 +00:00
npx.h Submitted by: Bruce Evans 1994-08-14 23:32:45 +00:00
param.h The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch. 1994-05-25 09:21:21 +00:00
pcaudioio.h Added prober Id string 1994-05-20 12:22:40 +00:00
pcb.h Change all #includes to follow the current Berkeley style. Some of these 1994-08-13 03:50:34 +00:00
pio.h Made all header files idempotent and moved incorrect common data from 1993-11-07 17:43:17 +00:00
pmap.h Corrected some comments regarding ptes/pdes. 1994-08-23 16:27:15 +00:00
proc.h The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch. 1994-05-25 09:21:21 +00:00
profile.h Added MCOUNT_ENTER and MCOUNT_EXIT macros to profile.h 1994-09-15 16:27:14 +00:00
psl.h Add back in CPU detection copde from 1.1.5. As an added bonus, the 1994-08-10 03:51:18 +00:00
pte.h Improved some comments. 1994-09-04 23:10:27 +00:00
ptrace.h Added $Id$ 1994-08-02 07:55:43 +00:00
reg.h The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch. 1994-05-25 09:21:21 +00:00
reloc.h Made idempotent. 1994-08-21 04:55:31 +00:00
segments.h WINE/user LDT support from John Brezak, ported to FreeBSD by Jeffrey Hsu 1994-01-31 10:27:13 +00:00
signal.h Made idempotent. 1994-08-21 04:55:31 +00:00
soundcard.h Made idempotent. 1994-08-21 04:55:31 +00:00
speaker.h Added $Id$ 1994-08-02 07:55:43 +00:00
specialreg.h Improved some comments. 1994-09-04 23:10:27 +00:00
spl.h Enable use of the RTC chip for the statistical clock. While this does 1994-08-15 03:15:20 +00:00
stdarg.h Added $Id$ 1994-08-02 07:55:43 +00:00
sysarch.h Added $Id$ 1994-08-02 07:55:43 +00:00
trap.h Made all header files idempotent and moved incorrect common data from 1993-11-07 17:43:17 +00:00
tss.h Fixed comments that start within a comment, so code compiles cleanly with 1993-11-17 23:25:28 +00:00
types.h Added $Id$ 1994-08-02 07:55:43 +00:00
ultrasound.h Added $Id$ 1994-08-02 07:55:43 +00:00
varargs.h Added $Id$ 1994-08-02 07:55:43 +00:00
vmparam.h Eliminated a whole pile of ancient (we're taking 4.3BSD) VM system 1994-09-12 11:38:31 +00:00