Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/sun3/dev/kd.c
RevisionDateAuthorComments
 1.61  21-Dec-2024  tsutsui Make local dev_type_*() functions static.
 1.60  20-Dec-2024  tsutsui Remove trailing whitespace.
 1.59  25-Jul-2014  dholland branches: 1.59.64;
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.58  16-Mar-2014  dholland branches: 1.58.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.57  27-Oct-2012  chs branches: 1.57.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.56  24-Apr-2011  rmind branches: 1.56.4; 1.56.14;
Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency. Remove some unnecessary malloc.h inclusions as well.
 1.55  28-Apr-2008  martin branches: 1.55.22; 1.55.28;
Remove clause 3 and 4 from TNF licenses
 1.54  29-Mar-2008  tsutsui branches: 1.54.2; 1.54.4;
Split softc and device_t for zsc(4) and its children.

XXX we should restructure MI APIs and make it really machine independent.
 1.53  19-Nov-2007  ad branches: 1.53.14;
- Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
 1.52  28-Oct-2007  rjs branches: 1.52.2;
Move prototype for kd_later() before first use.
 1.51  18-Oct-2007  joerg Initialise the callbacks for tty.t_rstrt_ch in ttymalloc
as all drivers but Sun/SPARC's kd.c use the same arguments.
Separate callout_reset into callout_schedule and the initial
callout_setfunc using that.
 1.50  04-Mar-2007  christos branches: 1.50.2; 1.50.18; 1.50.20; 1.50.24;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.49  16-Feb-2007  ad branches: 1.49.2;
More spllowersoftclock() fallout.
 1.48  05-Oct-2006  tsutsui Make sun3 use common sun68k/sun68k/isr.c, sun68k/include/cpu.h and
sun68k/include/intr.h.

This also means now sun3 has GENERIC_SOFT_INTERRUPTS support,
so also adapt fd.c and zs.c to MI softintr(9) APIs.

(I'll also update related sources in yamt-splraiseipl branch later)
 1.47  01-Oct-2006  elad Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks!
 1.46  23-Jul-2006  ad branches: 1.46.4; 1.46.6;
Use the LWP cached credentials where sane.
 1.45  14-May-2006  elad integrate kauth.
 1.44  11-Dec-2005  christos branches: 1.44.4; 1.44.6; 1.44.8; 1.44.10; 1.44.12;
merge ktrace-lwp.
 1.43  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.42  22-Jan-2005  chs branches: 1.42.8;
de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
 1.41  15-Jul-2003  lukem branches: 1.41.8;
__KERNEL_RCSID()
 1.40  23-Oct-2002  jdolecek branches: 1.40.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.39  10-Oct-2002  martin Pass a struct cons_channel * to cc_iclose, not a struct kbd_softc *.
This argument has been previously unused, thus undetected due to void*
typing. Mmm, copy & paste. Note that sparc got it right though.

Many thanks to Valeriy E. Ushakov <uwe@netbsd.org> for debugging support.
 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  17-Mar-2002  atatat branches: 1.37.4;
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.36  05-Sep-2001  tsutsui branches: 1.36.2; 1.36.6;
Remove register prefixes.
 1.35  02-May-2001  scw branches: 1.35.2;
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.34  02-Nov-2000  eeh branches: 1.34.2;
Adapt to new line discipline scheme.
 1.33  21-May-2000  eeh Need to provide a consdev to the cons_attach_input call now.
 1.32  19-May-2000  eeh Fix the sparc64 console.

Unlike the other Sun machines, UltraSPARCs can have consoles run on different
chips than zs, so we need to support them. So, here we go:

Add a new PROM console driver with a major number and everything.
This is the default driver if nothing else attaches. It does not
use the keyboard driver since the PROM translates keystrokes itself.
(Unfortunately it also swallows L1-A).

Have the keyboard driver take over the console when it attaches on a
serial port. When a serial port detects a keyboard and attaches the
keyboard driver, it needs to provide a set of consdev vectors. They
keyboard driver will use those to send I/O to the keyboard and mouse.
 1.31  31-Mar-2000  tsutsui Remove declaration of kd_rom_intr(). It is not needed on sun3.
 1.30  23-Mar-2000  thorpej New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
 1.29  19-Mar-2000  pk Minimal changes to accomodate the console input channel attachment
changes in the keyboard driver (see /sys/dev/sun/kbd*)
 1.28  06-Mar-2000  thorpej - Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
 1.27  05-Aug-1999  thorpej branches: 1.27.2;
Change the semantics of splsoftclock() to be like other spl*() functions,
that is priority is rasied. Add a new spllowersoftclock() to provide the
atomic drop-to-softclock semantics that the old splsoftclock() provided,
and update calls accordingly.

This fixes a problem with using the "rnd" pseudo-device from within
interrupt context to extract random data (e.g. from within the softnet
interrupt) where doing so would incorrectly unblock interrupts (causing
all sorts of lossage).

XXX 4 platforms do not have priority-raising capability: newsmips, sparc,
XXX sparc64, and VAX. This platforms still have this bug until their
XXX spl*() functions are fixed.
 1.26  26-Feb-1998  gwr Fix build with NFB=0
 1.25  10-Feb-1997  gwr Make some more things static, and cosmetic stuff.
 1.24  10-Feb-1997  gwr Forgot to initialize cn->cn_dev, cn->cn_pri
 1.23  27-Jan-1997  gwr branches: 1.23.2;
Fix copyrights (/s/REGENTS/FOUNDATION/)
 1.22  17-Dec-1996  gwr Make this compile with -Werror -Wall -Wstrict-prototypes
(finally! yea!) Also get rid of __BROKEN_INDIRECT_CONFIG
 1.21  20-Nov-1996  gwr Most files that were copyright Adam Glass and/or Gordon W. Ross
are now copyright The NetBSD Foundation (rights assigned).
 1.20  13-Oct-1996  christos backout previous kprintf change
 1.19  11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.18  02-Sep-1996  mycroft tty stop functions really should return void, not int, and certainly not both.
 1.17  15-Jun-1996  gwr branches: 1.17.2;
merge 1.2 changes
 1.16  26-Apr-1996  gwr Remove some hacks that "went around" the linesw[] operations.
 1.15  07-Apr-1996  gwr minor cleanup
 1.14  24-Jan-1996  gwr Update for the new z8530 driver
 1.13  26-Apr-1995  gwr Add xxtty()
 1.12  10-Apr-1995  mycroft Add a dummy kdstop().
 1.11  28-Mar-1995  gwr Avoid passing non-ASCII chars to the PROM.
Call PROM at splsoftclock to avoid missing interrupts.
 1.10  24-Mar-1995  gwr Cleanup, and deal with kd != console
 1.9  10-Mar-1995  gwr Add kdcnpollc so it can call fb_unblank
 1.8  17-Dec-1994  gwr Fix kd (keyboard/display) driver kdcngetc/kdcnputc functions.
 1.7  12-Dec-1994  gwr New autoconfig interface to support VME, etc.
 1.6  01-Dec-1994  gwr Export some headers that X will want, and minor clean-up.
 1.5  21-Nov-1994  gwr Lots of changes. Fairly stable now.
 1.4  26-Oct-1994  cgd new RCS ID format.
 1.3  03-Jun-1994  gwr Fix initialization of keyboard port (works now).
 1.2  05-May-1994  gwr cosmetic
 1.1  04-May-1994  gwr This provides a tty device for dev/cons.c to point at.
 1.17.2.2  15-Jun-1996  gwr merge 1.2 changes
 1.17.2.1  15-Jun-1996  gwr file kd.c was added on branch netbsd-1-2 on 1996-06-15 14:58:03 +0000
 1.23.2.1  12-Mar-1997  is Merge in changes from The Trunk
 1.27.2.2  22-Nov-2000  bouyer Sync with HEAD.
 1.27.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.34.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.35.2.3  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.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.35.2.1  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.36.6.5  11-Nov-2002  nathanw Catch up to -current
 1.36.6.4  18-Oct-2002  nathanw Catch up to -current.
 1.36.6.3  17-Sep-2002  nathanw Catch up to -current.
 1.36.6.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.36.6.1  05-Sep-2001  nathanw file kd.c was added on branch nathanw_sa on 2002-04-01 07:43:23 +0000
 1.36.2.3  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.36.2.2  11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.36.2.1  10-Oct-2001  fvdl Convert all remaining devices.
 1.37.4.1  19-May-2002  gehenna Add device switch.
Replace the access to devsw table and the hard-coded majors with devsw API.
 1.40.6.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.40.6.5  04-Feb-2005  skrll Adapt to branch.
 1.40.6.4  24-Jan-2005  skrll Sync with HEAD.
 1.40.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.40.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.40.6.1  03-Aug-2004  skrll Sync with HEAD
 1.41.8.1  29-Apr-2005  kent sync with -current
 1.42.8.7  07-Dec-2007  yamt sync with head
 1.42.8.6  15-Nov-2007  yamt sync with head.
 1.42.8.5  27-Oct-2007  yamt sync with head.
 1.42.8.4  03-Sep-2007  yamt sync with head.
 1.42.8.3  26-Feb-2007  yamt sync with head.
 1.42.8.2  30-Dec-2006  yamt sync with head.
 1.42.8.1  21-Jun-2006  yamt sync with head.
 1.44.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.44.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.44.10.2  10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.44.10.1  08-Mar-2006  elad Adapt to kernel authorization KPI.

I expect *some* lossage here...
 1.44.8.2  11-Aug-2006  yamt sync with head
 1.44.8.1  24-May-2006  yamt sync with head.
 1.44.6.1  01-Jun-2006  kardel Sync with head.
 1.44.4.1  09-Sep-2006  rpaulo sync with head
 1.46.6.1  22-Oct-2006  yamt sync with head
 1.46.4.1  18-Nov-2006  ad Sync with head.
 1.49.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.50.24.3  21-Nov-2007  bouyer Sync with HEAD
 1.50.24.2  13-Nov-2007  bouyer Sync with HEAD
 1.50.24.1  25-Oct-2007  bouyer Sync with HEAD.
 1.50.20.2  09-Jan-2008  matt sync with HEAD
 1.50.20.1  06-Nov-2007  matt sync with HEAD
 1.50.18.3  21-Nov-2007  joerg Sync with HEAD.
 1.50.18.2  28-Oct-2007  joerg Sync with HEAD.
 1.50.18.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.50.2.2  03-Dec-2007  ad Sync with HEAD.
 1.50.2.1  23-Oct-2007  ad Sync with head.
 1.52.2.1  08-Dec-2007  mjf Sync with HEAD.
 1.53.14.2  02-Jun-2008  mjf Sync with HEAD.
 1.53.14.1  03-Apr-2008  mjf Sync with HEAD.
 1.54.4.1  16-May-2008  yamt sync with head.
 1.54.2.1  18-May-2008  yamt sync with head.
 1.55.28.1  06-Jun-2011  jruoho Sync with HEAD.
 1.55.22.1  31-May-2011  rmind sync with head
 1.56.14.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.56.14.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.56.4.2  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.56.4.1  30-Oct-2012  yamt sync with head
 1.57.2.1  18-May-2014  rmind sync with head
 1.58.2.1  10-Aug-2014  tls Rebase.
 1.59.64.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed