Home | History | Annotate | Download | only in vax
History log of /src/sys/arch/vax/vax/gencons.c
RevisionDateAuthorComments
 1.56  22-May-2017  ragge Update copyright notice for Ludd (remove clause 3 & 4).
 1.55  07-Jul-2016  msaitoh KNF. Remove extra spaces. No functional change.
 1.54  25-Jul-2014  dholland branches: 1.54.4;
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.53  16-Mar-2014  dholland branches: 1.53.2;
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
 1.52  24-Apr-2011  rmind branches: 1.52.4; 1.52.14; 1.52.18;
Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency. Remove some unnecessary malloc.h inclusions as well.
 1.51  14-Dec-2010  matt branches: 1.51.2;
Cleanups includes. Change <machine/XXX.h> to <sys/XXX.h>
Remove unneeded includes.
 1.50  02-Apr-2009  tsutsui branches: 1.50.4;
Don't use relative path from <machine> in #include.
It won't work for symlinks.
 1.49  11-Mar-2008  matt branches: 1.49.4; 1.49.12; 1.49.18;
Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.48  19-Nov-2007  ad branches: 1.48.10; 1.48.14;
- Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
 1.47  04-Mar-2007  christos branches: 1.47.2; 1.47.18; 1.47.20; 1.47.24; 1.47.26;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.46  16-Feb-2007  matt branches: 1.46.2;
Partially adapt the VAX port to the newlock2 changes. These are untested
but they do at least compile.
 1.45  01-Oct-2006  elad Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!

Also, add forgotten splx() calls in some places.
 1.44  23-Jul-2006  ad branches: 1.44.4; 1.44.6;
Use the LWP cached credentials where sane.
 1.43  14-May-2006  elad integrate kauth.
 1.42  11-Dec-2005  christos branches: 1.42.4; 1.42.6; 1.42.8; 1.42.10; 1.42.12;
merge ktrace-lwp.
 1.41  06-Sep-2005  kleink Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges. Noted by David Holland in PR kern/31126.
 1.40  15-Jul-2003  lukem branches: 1.40.16;
__KERNEL_RCSID()
 1.39  23-Oct-2002  jdolecek branches: 1.39.6;
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
 1.38  06-Sep-2002  gehenna 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.
 1.37  04-Jun-2002  ragge Do not disable interrupts until output queue is drained.
 1.36  17-Mar-2002  atatat branches: 1.36.4; 1.36.6;
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
 1.35  12-Jun-2001  ragge branches: 1.35.2; 1.35.4; 1.35.8;
Fix problem where console interrupts never got enabled after RB_ASKNAME.
 1.34  03-Jun-2001  ragge A bunch of fixes:
- Make generic console routines not relying on running on master cpu.
- Add routine to start console transmitter (after IPI).
- Use real IPIs instead of the "console doorbell".
- Add routines cpu_send_ipi()/cpu_handle_ipi().
 1.33  16-May-2001  matt Add a VAXANY type. Eventually to used in INSTALL / GENERIC to easily
include support for all VAX platforms
 1.32  02-May-2001  scw 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.
 1.31  01-May-2001  ragge Support for MicroVAX 1.
 1.30  24-Apr-2001  ragge Support for KA681 (4000/500A) from Michael Kukat.
 1.29  28-Jan-2001  ragge branches: 1.29.2;
A bunch of new CPUs that are supported, from Michael Kukat
(michael@unixiron.org). Among them are 4000/400, 4000/500 and 4000/105A.
 1.28  02-Nov-2000  eeh Adapt to new line discipline scheme.
 1.27  26-Jul-2000  ragge Oops, forgot a debug return.
 1.26  26-Jul-2000  ragge KA88 console support.
 1.25  06-Jul-2000  ragge Recognise VAX 6000/400.
 1.24  04-Jun-2000  matt Add extra argument to scb_vecalloc (a struct evcnt *)
Move ivec_dsp from trap.h to scb.h
Add interrupt counting to asc, le, ze, ncr, dz interrupts.
add common support for counting interrupts to cnm_idisp so
it can be done very efficiently.
 1.23  08-May-2000  ragge branches: 1.23.2;
VAX 4000/200 support. From Michael Kukat.
 1.22  24-Jan-2000  matt Revamp the VAX interrupt handling code. Make it compatible with all the
other ports. Clean up some things.
 1.21  06-Jun-1999  ragge branches: 1.21.2;
Complete support for VAX 4000/300. From Michael Kukat. (michael@camaronet.de)
 1.20  19-Jan-1999  ragge branches: 1.20.4;
Allocate (almost) all interrupt vectors dynamically. Simplifies much
work when adding support for new machines and devices.
 1.19  31-Aug-1998  ragge Support for all 4 console lines on KA820. Support for this written
by Sergey Svishchev (svs@ropnet.ru).
 1.18  04-Jul-1998  jonathan defopt DDB.
 1.17  08-Jun-1998  ragge Wall fixes.
 1.16  13-Apr-1998  ragge Wall cleaning.
 1.15  21-Mar-1998  mycroft Eliminate uses of TS_WOPEN in hard-wired devices.
 1.14  21-Mar-1998  ragge Add support for QDSS graphic console. Code originated from 4.4BSD,
ported to NetBSD by Boris Gjenero <bgjenero@undergrad.math.uwaterloo.ca>
 1.13  15-Mar-1997  ragge Clean up console autoconfiguration so that the VAXstation DZ11-like
console work.
 1.12  26-Feb-1997  ragge Patches to make VS2000 to work. From Ari Suutari.
 1.11  02-Sep-1996  mycroft branches: 1.11.6;
tty stop functions really should return void, not int, and certainly not both.
 1.10  08-Apr-1996  ragge Added prototypes to everything. Made all files compile with -Wall.
 1.9  07-Mar-1996  ragge Support for VAX 8600/8650 added. Works with lots of Unibus adapters,
and will probably work with Massbus adapters as well. (Not tested,
but it's the same code as for 11/780). Ubareset's may cause crashes
on 8600 also like 11/780, but they are more uncommon. No support
for console RL02 yet, but it's likely to come.
 1.8  02-Feb-1996  mycroft Fix #includes.
 1.7  28-Jan-1996  ragge Fix bug causing ^[ to be sent when returning from DDB.
 1.6  21-Aug-1995  ragge Added gencntty();
 1.5  16-Jun-1995  ragge rudimentary DDB support.
 1.4  03-May-1995  ragge Changed conf.c to new style. Took away double saving of regs in traps.
Changed boot() to use vfs_shutdown(). Updated setregs.
 1.3  26-Oct-1994  cgd new RCS ID format.
 1.2  08-Oct-1994  ragge Lots of bug fixes; clock and mem files new.
 1.1  16-Aug-1994  ragge branches: 1.1.2;
Lots of bug fixes. Generic console support added. Major changes in machdep.c.
pmap.c now supports user process mapping. Page faults handles correctly.
 1.1.2.2  16-Aug-1994  ragge Lots of bug fixes. Generic console support added. Major changes in machdep.c.
pmap.c now supports user process mapping. Page faults handles correctly.
 1.1.2.1  16-Aug-1994  ragge file gencons.c was added on branch netbsd-1-0 on 1994-08-16 23:47:27 +0000
 1.11.6.1  12-Mar-1997  is Merge in changes from Trunk
 1.20.4.1  21-Jun-1999  thorpej Sync w/ -current.
 1.21.2.3  11-Feb-2001  bouyer Sync with HEAD.
 1.21.2.2  22-Nov-2000  bouyer Sync with HEAD.
 1.21.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.23.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.29.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.35.8.5  11-Nov-2002  nathanw Catch up to -current
 1.35.8.4  17-Sep-2002  nathanw Catch up to -current.
 1.35.8.3  20-Jun-2002  nathanw Catch up to -current.
 1.35.8.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.35.8.1  12-Jun-2001  nathanw file gencons.c was added on branch nathanw_sa on 2002-04-01 07:43:31 +0000
 1.35.4.2  13-Oct-2001  fvdl Revert the t_dev -> t_devvp change in struct tty. The way that tty
structs are currently used (especially by console ttys) aren't
ready for it, and this will require quite a few changes.
 1.35.4.1  10-Oct-2001  fvdl Convert all remaining devices.
 1.35.2.2  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.35.2.1  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.36.6.1  05-Jun-2002  lukem Pull up revision 1.37 (requested by ragge in ticket #159):
Do not disable interrupts until output queue is drained.
 1.36.4.2  15-Jul-2002  gehenna catch up with -current.
 1.36.4.1  19-May-2002  gehenna Add device switch.
Replace the access to devsw table and the hard-coded majors with devsw API.
 1.39.6.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.39.6.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.39.6.3  18-Sep-2004  skrll Sync with HEAD.
 1.39.6.2  12-Aug-2004  skrll Adapt to new world order.

Vax GENERIC compiles.
 1.39.6.1  03-Aug-2004  skrll Sync with HEAD
 1.40.16.6  17-Mar-2008  yamt sync with head.
 1.40.16.5  07-Dec-2007  yamt sync with head
 1.40.16.4  03-Sep-2007  yamt sync with head.
 1.40.16.3  26-Feb-2007  yamt sync with head.
 1.40.16.2  30-Dec-2006  yamt sync with head.
 1.40.16.1  21-Jun-2006  yamt sync with head.
 1.42.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.42.10.3  13-May-2006  elad sprinkle some #include <sys/kauth.h> in files that use kauth kpi but
don't include it yet. hopefully this will prevent some fallout.
 1.42.10.2  10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.42.10.1  08-Mar-2006  elad Adapt to kernel authorization KPI.

I expect *some* lossage here...
 1.42.8.2  11-Aug-2006  yamt sync with head
 1.42.8.1  24-May-2006  yamt sync with head.
 1.42.6.1  01-Jun-2006  kardel Sync with head.
 1.42.4.1  09-Sep-2006  rpaulo sync with head
 1.44.6.1  22-Oct-2006  yamt sync with head
 1.44.4.1  18-Nov-2006  ad Sync with head.
 1.46.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.47.26.1  08-Dec-2007  mjf Sync with HEAD.
 1.47.24.1  21-Nov-2007  bouyer Sync with HEAD
 1.47.20.2  23-Mar-2008  matt sync with HEAD
 1.47.20.1  09-Jan-2008  matt sync with HEAD
 1.47.18.1  21-Nov-2007  joerg Sync with HEAD.
 1.47.2.1  03-Dec-2007  ad Sync with HEAD.
 1.48.14.1  03-Apr-2008  mjf Sync with HEAD.
 1.48.10.1  24-Mar-2008  keiichi sync with head.
 1.49.18.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.49.12.1  28-Apr-2009  skrll Sync with HEAD.
 1.49.4.1  04-May-2009  yamt sync with head.
 1.50.4.2  31-May-2011  rmind sync with head
 1.50.4.1  05-Mar-2011  rmind sync with head
 1.51.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.52.18.1  18-May-2014  rmind sync with head
 1.52.14.2  03-Dec-2017  jdolecek update from HEAD
 1.52.14.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.52.4.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.53.2.1  10-Aug-2014  tls Rebase.
 1.54.4.2  28-Aug-2017  skrll Sync with HEAD
 1.54.4.1  09-Jul-2016  skrll Sync with HEAD

RSS XML Feed