Commit Graph

299 Commits

Author SHA1 Message Date
mycroft 49051114a6 Major cleanup and many bugs fixed; based in part on Brad Huntting's version
for BSD/386.  More to be done when the low-level interrupt system is replaced.
1994-03-08 08:12:56 +00:00
mycroft 5a17003403 Some changes inspired by Bruce Evans's driver:
Consolidate error reporting in one function.  Actually use the dk_status and
dk_error fields, and pass around only the error bit to avoid lots of unneeded
assignments and tests.  No functional differences.
1994-03-07 05:54:44 +00:00
mycroft 991225bfc8 Remove DKFL_QUIET. 1994-03-07 03:18:35 +00:00
ws 581b6ca207 Don't let uninitialized variable slip by 1994-03-06 19:34:46 +00:00
mycroft 41cc9cb4f2 Better delay() from magnum branch. 1994-03-06 17:37:56 +00:00
mycroft 5f4063cc56 DELAY() --> delay(). This is not a macro. 1994-03-06 17:21:44 +00:00
mycroft 0c082bcaf8 DELAY() --> delay(). This is not a macro. 1994-03-06 17:18:43 +00:00
mycroft 87ed28e74e Move the drive select and various other things into wdcommand(), to avoid
duplicating code.
1994-03-05 08:17:06 +00:00
mycroft 3e02952c52 Make sure we clear the interrupt when necessary. Why this isn't needed on
my hardware is a mystery.
1994-03-04 23:43:14 +00:00
mycroft 652712272f Add another missing splx(). 1994-03-04 17:51:10 +00:00
mycroft 0f92f76ceb Remember to splx() on some error conditions. 1994-03-04 17:45:22 +00:00
mycroft ef3c1bf7e6 Start the timeout loop *after* we've decided there is a disk there. 1994-03-04 04:15:24 +00:00
mycroft 220512c2a8 De-ANSIfy. Move the timeout counter into struct disk. Remove unneeded args
to wd[gs]etctlr().  Other minor changes.
1994-03-04 03:43:48 +00:00
hpeyerl 499a02a6a9 New probe for 3c579's (EISA). EISA cards still don't work but I
have no idea when I'll be able to work on this next.
1994-03-04 01:31:50 +00:00
mycroft 34115459a4 Upload the ether address to the card after a reset, per Matt Kimmel. 1994-03-03 15:30:27 +00:00
mycroft fa396ad402 Watch `seek complete' bit per IBM documentation. Clean up wdioctl(). Other
minor cleanup.
1994-03-03 01:58:21 +00:00
mycroft 7b734f94ec Be more careful about clearing the controller and drive active flags. 1994-03-02 23:27:13 +00:00
mycroft 37135f9686 Add 8003W and 8003EB, per David Greenman. 1994-03-02 22:47:36 +00:00
mycroft 21118b1bc4 Don't busy-wait for read or write completion. 1994-03-02 22:07:00 +00:00
mycroft 469206981a Fix prototype of wdintr(). 1994-03-02 21:43:42 +00:00
mycroft e9326b3ba7 Make wdc_wait() do an implicit wait_for_unbusy(). Pass structure pointers
rahter than unit numbers where appropriate.  Fix conflict if two drives have
I/O pending at the same time.  Add some more sanity checks.  Some other minor
cleanup.
1994-03-02 21:42:31 +00:00
mycroft 81de6fa982 Increment outbound packet count, per Matt Kimmel. 1994-03-02 16:23:23 +00:00
hpeyerl a37cf2aecc Make probe routines return amount of space used. Still needs some
work to determine difference between SB/SB-pro.
1994-03-02 16:23:10 +00:00
mycroft 04d67df50c Add mouse gunk. 1994-03-02 08:02:27 +00:00
mycroft 2292eadf37 Set the keyboard to scancode table 1 rather than having the 8042 convert. 1994-03-02 06:46:11 +00:00
mycroft 165d9e602c Fix the 790 interrupt table, per Christoph Robitschko. 1994-03-02 03:40:46 +00:00
mycroft 9091bc8257 Remove some dead code. 1994-03-01 18:22:52 +00:00
mycroft a3735835a3 New constants for setting and clearing masks. 1994-03-01 18:18:07 +00:00
mycroft 7dd7c20604 Clean up DMA code. Mask and unmask channels. Warn if terminal count not
reached.
1994-03-01 18:16:33 +00:00
deraadt 83c054bf10 Driver should now work on new & old bt742/747/445 versions of the
BusTech cards. Fixes from Michael VanLoon <michaelv@iastate.edu>
KNF'd too.
1994-03-01 12:42:36 +00:00
mycroft 69b37af13f Clean up a bit more; make it look like other drivers. Remove SIOCGIFADDR. 1994-03-01 05:41:26 +00:00
cgd 92dba352d6 format cop, plus fix up ether_type byte order difference.
things that i think look bogus are marked "XXX" with "cgd" in the
same line; some enet-savvy person should look through them.
1994-03-01 04:12:25 +00:00
hpeyerl a65ae4142d Driver for 3Com Etherlink (3c501)
>From Matthew E. Kimmel (kimmel@cs.umass.edu)
1994-03-01 02:45:00 +00:00
deraadt 8f09bb0623 add vnclose function 1994-02-27 08:41:11 +00:00
mycroft 8ba740e6ab Get the residual count right. 1994-02-26 19:49:25 +00:00
mycroft 060ee7dbab Clean up busy-wait code a little, and we need a special disksort() to skip
over bufs in a combined transfer.
1994-02-26 19:00:51 +00:00
mycroft 969cea2357 Fix bug from 1.43 correctly. 1994-02-26 17:59:46 +00:00
mycroft 4299a2baec Fix typo. 1994-02-26 17:13:44 +00:00
mycroft aeae0fd5e3 Various cleanup, and fix last night's bug. 1994-02-26 17:10:12 +00:00
mycroft fa83b6f469 Fix typo. 1994-02-26 00:08:01 +00:00
mycroft a7cdc040ec Some more stylistic cleanup. 1994-02-26 00:00:17 +00:00
hpeyerl e56750e9d0 Remove backwoods compatibility. 1994-02-25 23:09:26 +00:00
mycroft 7f6bce365b Fix an obvious bug that could stall the queue. 1994-02-25 18:30:37 +00:00
mycroft 2c3b28e0f9 Remove some redundant code. 1994-02-25 18:17:30 +00:00
mycroft 7e6ee0b562 Increase polling delay. 1994-02-25 18:08:21 +00:00
mycroft 9091e07409 Generalize busy-wait loops. 1994-02-25 17:45:28 +00:00
mycroft faf08f7262 Don't bother #ifdefing things that are needed and always enabled. 1994-02-25 16:54:41 +00:00
mycroft f6cee22427 Don't reimplement disksort(). 1994-02-25 16:43:48 +00:00
mycroft 373782a3af `We are the KNF. You will be assimilated.' 1994-02-25 16:40:47 +00:00
mycroft 8e023368fd Add clockmask. 1994-02-22 23:39:32 +00:00