mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-20 10:16:34 +01:00
3a2f7427fe
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: |
||
---|---|---|
.. | ||
ic | ||
sound | ||
aha1542.c | ||
aha1742.c | ||
bt742a.c | ||
clock.c | ||
elink.c | ||
elink.h | ||
fd.c | ||
fdc.h | ||
fdreg.h | ||
ft.c | ||
ftreg.h | ||
icu.h | ||
icu.s | ||
if_ed.c | ||
if_edreg.h | ||
if_el.c | ||
if_elreg.h | ||
if_ep.c | ||
if_epreg.h | ||
if_ie507.h | ||
if_ie.c | ||
if_iereg.h | ||
if_is.c | ||
if_isreg.h | ||
if_le.c | ||
if_ze.c | ||
if_zereg.h | ||
isa_device.h | ||
isa.c | ||
isa.h | ||
iso8859.font | ||
kbd.h | ||
kbdtables.h | ||
lpt.c | ||
lptreg.h | ||
mcd.c | ||
mcdreg.h | ||
mse.c | ||
npx.c | ||
pas.c | ||
pcaudio.c | ||
psm.c | ||
rtc.h | ||
sio.c | ||
sioreg.h | ||
spkr.c | ||
syscons.c | ||
timerreg.h | ||
ultra14f.c | ||
vector.s | ||
wd.c | ||
wdreg.h | ||
wt.c | ||
wtreg.h |