matt
7109fe9012
Add cn_halt and cn_flush entries to consdevs. (needed for dma-only console
...
devices).
2003-03-06 00:38:26 +00:00
jdolecek
e0cc03a09b
merge kqueue branch into -current
...
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
provos
0f09ed48a5
remove trailing \n in panic(). approved perry.
2002-09-27 15:35:29 +00:00
gehenna
77a6b82b27
Merge the gehenna-devsw branch into the trunk.
...
This merge changes the device switch tables from static array to
dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.
- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.
- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
soren
5fa952b83f
As in PR kern/10999 from Matthew Orgass, make the panic message more
...
helpful in the case where no console device has registered.
2002-08-02 19:55:32 +00:00
lukem
2bbe2de647
add RCSIDs
2001-11-13 05:32:49 +00:00
jdolecek
07677cc805
Use back the 'u'&037 form - since it's CTRL-u, it's more readable that way
...
Use \007 instead of symbolic constant, since that's what is more often used.
Pointed out by Robert Elz.
2001-06-04 09:45:03 +00:00
jdolecek
dccf11ae11
cngetsn(): cosmetic only - use '\025' instead 'u'&037, and '\b' instead '\007'
2001-06-03 17:56:10 +00:00
lukem
461a7daf74
fix comment
2001-06-03 14:29:42 +00:00
mrg
305e44c869
check for when cnopen() will call itself recursively, and panic instead of losing badly.
2000-06-12 05:02:22 +00:00
itojun
e6469f14ad
move static function getstr() to cons.c, make it publically available
...
as cngetsn(). there will be other consumer.
2000-05-08 16:30:57 +00:00
augustss
169ac5b3c1
Remove register declarations.
2000-03-30 12:41:09 +00:00
thorpej
a183d34f04
- Implement cnbell() -- ring the console bell. The cn_bell entrypoint
...
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
2000-03-06 21:36:05 +00:00
leo
7bff22bddc
Catch a console configuration error. Instead of jumping through cdevsw indexed
...
on major(NODEV), call panic...
1999-08-04 14:40:54 +00:00
mycroft
2bc736661a
Implement poll(2).
1996-09-07 12:40:22 +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
jonathan
8ae2ddf4ad
fixes for -Wall -Wmissing-prototypes:
...
add "return (0);" to cnstop()'s emtpy body.
1996-04-08 19:57:30 +00:00
christos
d4f46b2259
cnputc returns void
1996-02-04 02:04:08 +00:00
cgd
523c12167c
fix definition of nullcnpollc, and add a prototype for it.
1995-11-25 00:03:35 +00:00
pk
333a55a4ce
Remove duplicate definition of `constty'.
1995-04-11 22:08:06 +00:00
mellon
57289e2cf2
Split cninit from cons so ports that can't use it don't have to include it.
1995-04-11 10:06:38 +00:00
mycroft
6e992fcd83
Add a dummy cnstop().
1995-04-10 06:30:52 +00:00
cgd
cba4b405e4
don't let args default, return values, add protos
1995-03-24 15:29:46 +00:00
mycroft
a395d884d5
Remove extra arg to d_open and vn_open().
1994-12-14 19:09:13 +00:00
christos
c2c3dce760
added extra argument to vn_open
1994-11-14 06:00:10 +00:00
mycroft
1c76bf7aa1
Add a nullcnpollc(), for people who don't want to deal.
1994-10-30 22:16:37 +00:00
cgd
6ac2bbfc35
be more careful with types, also pull in headers where necessary.
1994-10-30 21:43:03 +00:00
mycroft
511d2732a3
Implement cnpollc().
1994-10-26 17:56:53 +00:00
cgd
cf92afd66e
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
1994-06-29 06:29:24 +00:00
cgd
89e331dcad
new standard, minimally intrusive ID format
1994-06-27 19:40:57 +00:00
mycroft
3b4b77ca23
Reverse sense of vfinddev().
1994-06-08 11:19:41 +00:00
cgd
49b3055feb
undo that last
1994-04-11 21:53:54 +00:00
cgd
34ac381d05
don't cdevvp() if a vnode for the dev already exists. Note that that's
...
conceptually icky; you end up ref'ing a 'real' vnode, and hence perhaps
tying down a file system; should be able to reference a 'fake' one,
but i doesn't appear save to cdevvp() if vnode for same dev is already
around... also, mark vfinddev()s XXX (for later).
1994-04-11 19:53:29 +00:00
cgd
17378eaf33
and fix the other case. ugly fix, but it works
1994-04-10 01:11:28 +00:00
cgd
fd3fc1deb4
get sense of two comparisons right. from Chris Hopps <chopps@lamp>
1994-02-16 00:09:39 +00:00
cgd
f1ab8b020a
new location of cons.h
1994-02-01 03:35:06 +00:00
cgd
da816a79ea
make behaviour with constty consistent, deal properly with the case
...
where there's no console, and set things up so that this can be made
'shared' eventually. look at diffs for exact changes.
1994-01-27 07:55:44 +00:00
cgd
8803fd0388
if CN_REMOTE, don't redirect output. this file needs some help,
...
but now at least i'm thinking about it again.
1994-01-27 05:30:38 +00:00
deraadt
1eacd36710
pccons.c now dynamically allocates it's "struct tty"
...
cons.c's "struct tty *cn_tty" wasn't used by any of the kernel, and goes away.
1993-07-07 11:00:23 +00:00
andrew
0e6cb953ea
ANSIfications - removed all implicit function return types and argument
...
definitions. Ensured that all files include "systm.h" to gain access to
general prototypes. Casts where necessary.
1993-06-27 06:01:27 +00:00
deraadt
0b12df586d
1. It is now possible to build a kernel that does not have a pc0 device driver.
...
2. "press any key to reboot" reads the key from the console.
3. wddump() still needs a non-blocking getc() routine (or flush)
1993-05-28 09:10:29 +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
ad845984f9
add pg_wait, which must be set if you want pg() to actually wait for keybd
...
input. this one is way useful...
1993-05-04 05:47:50 +00:00
cgd
e541169ce2
after 0.2.2 "stable" patches applied
1993-03-21 18:04:42 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00