lukem
d84d2c6c85
add missing #include "opt_kgdb.h"
2001-05-30 15:24:23 +00:00
scw
2963ff5c58
Add l_poll' to
struct linesw' and provide an xxxpoll() entry point
...
in each tty driver to indirect through it.
This allows tty line-disciplines to handle poll(2) system calls.
2001-05-02 10:32:08 +00:00
eeh
5d8e9b343a
Adapt to the new line discipline scheme.
2000-11-02 00:35:04 +00:00
thorpej
f1821c7811
Adjust for recent ttyopen() and dialout device changes.
1998-03-28 23:49:06 +00:00
thorpej
871cf5e7ce
Update for changes to config.
1998-01-12 18:30:41 +00:00
thorpej
2d397943d4
Copyright assigned to The NetBSD Foundation.
1997-10-04 09:59:35 +00:00
thorpej
0a8e2a9ce8
Use dio_intr_establish().
1997-05-05 20:58:18 +00:00
scottr
ea528012b3
dcmreadbuf() should not return immediately if the tty hasn't been opened;
...
this fixes a kgdb goof. Found by inspection.
1997-04-15 22:45:14 +00:00
thorpej
a78807e04c
Update for interrupt function and header name changes.
1997-04-14 02:33:16 +00:00
scottr
be3e57de4a
Changes to make a dcm-based console work properly:
...
- While servicing an rx, tx, or modem status interrupt: if we have a
NULL struct tty * or if the tty isn't open, just return.
- Skip the self test if we are the console; it manages to do funny
things to autoconfig messages. (XXX - this should be fixed)
1997-04-04 18:16:07 +00:00
scottr
aa88a240fe
Fix printf() and other warnings when compiled with DEBUG defined.
1997-04-02 22:37:21 +00:00
scottr
52cb2d2955
Add prototypes, and make this compile with -Wall. Remove register
...
modifier from all declarations.
Also, handle sc_flags better so that we don't lose track of the
DCM_ISCONSOLE bit.
1997-03-31 07:29:49 +00:00
thorpej
f19d55d659
- Garbage-collect the old-style configuration glue.
...
- Make sure we don't get interrupts in dcmselftest().
1997-01-30 09:11:24 +00:00
thorpej
838edf78fd
Snapshot of new config for NetBSD/hp300. This isn't quite finished yet.
...
We're about 75% there. SCSI and HP-IB are not yet supported in a new
config kernel; some autoconfiguration hackery has to be done there, yet.
These changes are enough to network boot a diskless kernel.
New config glue is enabled with the "NEWCONFIG" kernel option. If that
option is not present, an old config kernel will be built. Any kernel
configured with config(8) will automatically pick up the NEWCONFIG
option from std.hp300.
1996-12-17 08:40:56 +00:00
thorpej
648a1b19ae
isrlink() now returns a cookie. We're not interested in the cookie, so
...
cast to (void).
1996-12-09 03:14:06 +00:00
thorpej
8acf9f0215
Set the device class on non-dull devices. This is a transitional thing.
1996-10-14 07:14:11 +00:00
christos
30b3cc3d09
backout previous kprintf changes
1996-10-13 03:14:05 +00:00
christos
60dd5ceebe
printf -> kprintf, sprintf -> ksprintf
1996-10-11 00:06:28 +00:00
mycroft
b3eac79b64
tty stop functions really should return void, not int, and certainly not both.
1996-09-02 06:43:16 +00:00
thorpej
e9e80a6043
Add calls to tty_attach() and tty_detach() where appropriate.
1996-06-06 15:36:06 +00:00
thorpej
be71c11843
Add 2 missing ";"s ... they weren't noticed before because of the
...
old implementation of DELAY().
1996-05-17 15:08:13 +00:00
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
11c7d655d8
Correct some comments about 8-port DCM boards. (Thanks, Mike, for
...
pointing out the True Nature of The Force...)
1995-12-29 17:21:29 +00:00
thorpej
deb00c27b3
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.
Pointers to hardware and software constructs are now stored per port
in each instance of the softc (one softc per board) rather than indexed
by minor number.
1995-12-02 18:18:50 +00:00
thorpej
442aff9376
Say what I really meant in a printf()...
1995-10-04 08:39:14 +00:00
thorpej
f060c456de
Couple of changes:
...
* Implement TIOC{G,S}FLAGS; ttyflags works now.
* Reset the card on a "fresh open" as a sanity measure.
* Make dcmopen() and dcmclose() a little more like the
corresponding routines in the new dca.c
1995-10-04 06:39:06 +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
mycroft
106118de0d
Remove bogus declaration.
1994-01-30 18:30:45 +00:00
deraadt
9aed375ba3
tty XXstart() routines return void
1993-08-29 13:46:31 +00:00
mycroft
4862b84c92
Add RCS identifiers (this time on the correct side of the branch), and
...
incorporate recent changes in netbsd-0-9 branch.
1993-08-01 19:22:24 +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
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