Commit Graph

23 Commits

Author SHA1 Message Date
thorpej
b2c3f54207 Fix logic errors in new console probe code that caused framebuffers
outside of "internal i/o" space to not even have a chance at console-hood.
Fix tested by Thorsten Frueauf <frueauf@ira.uka.de>, and offered with
my sincerest apologies that the bug ever existed in the first place.
1996-03-03 16:48:52 +00:00
thorpej
0adab4d779 Avoid accidentally lowering a devices console priority. 1996-02-26 23:40:29 +00:00
thorpej
fa7bee29a5 Completely rework how the console is probed. Console probing no longer
requires pre-autoconfigured devices.  Fix up some prototypes.  Part of the
long journey towards new config.  (GETTING THERE!)
1996-02-24 00:54:53 +00:00
thorpej
d6f4511690 All interrupt routines (except the HIL; don't ask) now take a pointer
to a softc, rather than a unit number.  Add a "dq_softc" member
to struct devqueue; this is a temporary measure until the
dma/controller/device callback spaghetti is untangled.

YAY!  No more need for dcafastservice!

HIL: squish instances of "(void) splhil()" and "(void) spl0();".
1996-02-14 02:43:54 +00:00
thorpej
34c2680a5b Re-work the serial console support a bit; it doesn't depend on statically
allocated softc's now.
1995-12-31 00:27:16 +00:00
thorpej
41cf6f071f Use a "match/attach" rather than "init" scheme for probing devices.
This is a step towards getting the drivers ready for new config.

Clean up namespace, remove several instances of global arrays.  Instead,
use a softc to carry state around.  Where possible, pass a pointer to the
softc rather than a unit number.
1995-12-02 18:15:50 +00:00
thorpej
e43d278d31 Several changes:
* Reset the card on "fresh open" as a sanity measure.
	* Use the "secret bit" to enable interrupts.
	* Make some parts look/behave like their cousins in dev/isa/com.c
	* Set the FIFO threshold based on line speed.
	* Be a little more informative when port is attached.
	* Implement TIOC{G,S}FLAGS; ttyflags now works.
First two items prevent deadlock on some systems (notably the 380,
425, and 433) which some people have been reporting.  Use of the
"secret bit" seems to be safe on systems which don't need it.  Changes
tested on a 319, 340, 345, and 380.
1995-10-04 17:46:08 +00:00
mycroft
f1e8ea1dcc Kluge the *tty() routines until this port is converted to config.new. 1995-04-19 19:15:47 +00:00
mycroft
374185caff Most of the console functions return void. 1995-04-10 01:01:40 +00:00
cgd
132b41434c new RCS ID format. 1994-10-26 07:22:45 +00:00
mycroft
c1e1831b84 Merge with 4.4-Lite. 1994-05-23 05:58:16 +00:00
mycroft
20f96b580e Add arg to ioctl functions. Clean up #includes. 1994-02-10 13:59:25 +00:00
mycroft
3738793f03 Remove outdated console handling code. 1994-02-06 01:08:36 +00:00
mycroft
ea15b558a8 Use common version of cons.c. 1994-02-06 00:44:26 +00:00
deraadt
9aed375ba3 tty XXstart() routines return void 1993-08-29 13:46:31 +00:00
mycroft
3be4221095 Change tty code to use clist interface, but with ring buffer implementation.
Also, fix a couple of bugs in tty.c and pccons.c, and some gross kluginess
in the hp300 stuff.
1993-07-12 11:36:53 +00:00
deraadt
7afa674eb4 the "struct tty *cn_tty" field in cons.c wasn't being used by anything 1993-07-07 11:12:26 +00:00
cgd
f1b8c74730 make getc() and ungetc() be rb{un,}getc(), so getc() and ungetc()
don't conflict w/ansi prototypes...
1993-06-06 23:04:42 +00:00
cgd
5e4f134585 fix for t_raw, rather than t_rawq for the tsleeps... 1993-05-29 19:41:40 +00:00
deraadt
2032b7529e Changes to hp300 code to support two things:
1. dynamic tty allocation
2. use ring buffers instead of clists
Of course, I can't test it :-)
1993-05-27 09:35:10 +00:00
cgd
fe1802950b add include of select.h if necessary for protos, or delete if extraneous 1993-05-22 11:40:42 +00:00
cgd
8d6c77881c make kernel select interface be one-stop shopping & clean it all up. 1993-05-18 18:18:40 +00:00
cgd
6dedb5151c add hp300 kernel files. generic kernel files might need some help... 1993-05-13 13:56:20 +00:00