Home | History | Annotate | only in /src/sys/dev/dec
History log of /src/sys/dev/dec
RevisionDateAuthorComments
 1.4 03-May-2001  matt export dec_boot.h
 1.3 11-Apr-2001  jdolecek Only install headers which are actually used by our userland. This
saves about 2.2MB under /usr/include/dev/. Discussed on tech-kern@
recently.

I HOPE to get the list right. The headers I left in are ones
used for MI tools and those whose usage I discovered by grep over tree sources.
Feel free to put needed includes back in if you encounter anything which
should not be removed from lists.
 1.2 16-Jun-2000  matt branches: 1.2.4;
Move dec_boot.h to here from arch/pmax/include and add the VAX boot block
info. Eventually Alpha boot block information as well.
 1.1 12-Jun-1998  cgd branches: 1.1.14; 1.1.22;
Rework the way kernel include files are installed. In the new method,
as with user-land programs, include files are installed by each directory
in the tree that has includes to install. (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.) The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change. Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
 1.1.22.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.1.14.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.14.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.2.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.11 23-May-2009  he After the change from "struct device *" to "device_t", we now depend
on the definitions from <sys/device.h>, so include it here.
 1.10 12-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.9 03-Jan-2008  joerg branches: 1.9.10; 1.9.24;
Timecounter and generic todr support for pmax. From Garret D'Amore.
 1.8 11-Dec-2005  christos branches: 1.8.46; 1.8.52; 1.8.60;
merge ktrace-lwp.
 1.7 27-Feb-2005  perry branches: 1.7.4;
nuke trailing whitespace
 1.6 04-Feb-2005  perry de-__P
 1.5 13-Feb-2004  wiz branches: 1.5.8; 1.5.10;
Uppercase CPU, plural is CPUs.
 1.4 22-Jun-1997  jonathan branches: 1.4.54;
Clone Alpha ``cpu-independent'' clock API headers into sys/dev/tc/,
to share them with pmax.
 1.3 07-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2 17-Apr-1996  cgd branches: 1.2.2;
clean up clock handling: clock drivers are now seperate from the
chip-independent clock code. 'clock' has been renamed 'mcclock' 'clock'
has been renamed 'mcclock' (since it's a driver for that particular
clock, and since eventually there may be another clock chip driver),
and now attaches via seperate match/attach functions to both TC and ISA.
This removes a whole lot of #ifdefs...
 1.1 28-Jun-1995  cgd sync with my current Alpha sources
 1.2.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.4.54.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.4.54.4 04-Feb-2005  skrll Sync with HEAD.
 1.4.54.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.54.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.54.1 03-Aug-2004  skrll Sync with HEAD
 1.5.10.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.5.10.1 12-Feb-2005  yamt sync with head.
 1.5.8.1 29-Apr-2005  kent sync with -current
 1.7.4.1 21-Jan-2008  yamt sync with head
 1.8.60.1 08-Jan-2008  bouyer Sync with HEAD
 1.8.52.1 18-Feb-2008  mjf Sync with HEAD.
 1.8.46.1 09-Jan-2008  matt sync with HEAD
 1.9.24.2 23-Jul-2009  jym Sync with HEAD.
 1.9.24.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.9.10.2 20-Jun-2009  yamt sync with head
 1.9.10.1 16-May-2009  yamt sync with head
 1.7 11-Dec-2005  christos merge ktrace-lwp.
 1.6 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.5 14-May-2002  lukem branches: 1.5.10;
Migrate alpha/pmax/vax bootblock stuff from <dev/dec/dec_boot.h> to
<sys/bootblock.h> (leaving ultrix compat goo in the former)
 1.4 03-Apr-2002  lukem - Add alpha boot block info, derived from sys/arch/alpha/include/disklabel.h,
adding "alpha_" / "ALPHA_" prefix to items as appropriate. Rename
CHECKSUM_BOOT_BLOCK() -> ALPHA_BOOT_BLOCK_CKSUM(). Add cgd's copyright
from disklabel.h.
- Clean up a couple of comments.
 1.3 21-Jun-2000  matt branches: 1.3.2; 1.3.4; 1.3.6; 1.3.8;
There's only for 15 blocks of bootstrap, not 16.
 1.2 16-Jun-2000  matt branches: 1.2.2;
Fix typo.
 1.1 16-Jun-2000  matt Move dec_boot.h to here from arch/pmax/include and add the VAX boot block
info. Eventually Alpha boot block information as well.
 1.2.2.1 22-Jun-2000  matt VAX bootloader is a max of 15 blocks long.
 1.3.8.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.6.2 20-Jun-2002  nathanw Catch up to -current.
 1.3.6.1 17-Apr-2002  nathanw Catch up to -current.
 1.3.4.2 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.3.4.1 21-Jun-2000  bouyer file dec_boot.h was added on branch thorpej_scsipi on 2000-11-20 11:39:54 +0000
 1.3.2.2 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.3.2.1 21-Jun-2000  minoura file dec_boot.h was added on branch minoura-xpg4dl on 2000-06-22 17:06:24 +0000
 1.5.10.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.10.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.10.1 03-Aug-2004  skrll Sync with HEAD
 1.44 02-Feb-2024  tsutsui Use aprint_normal(9) for attach messages.
 1.43 26-Oct-2022  riastradh vax/dz(4): Convert to ttylock/ttyunlock.
 1.42 25-Jul-2014  dholland Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.41 16-Mar-2014  dholland branches: 1.41.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.40 24-Apr-2011  rmind branches: 1.40.4; 1.40.14; 1.40.18;
Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency. Remove some unnecessary malloc.h inclusions as well.
 1.39 09-May-2010  hans branches: 1.39.2;
The interrupt handler uses the softc, so it's probably a good idea to
initialize it before causing interrupts. Prevents a panic on VAXstation
4000/9x with SPX console.
 1.38 08-Sep-2008  gmcgarry branches: 1.38.4; 1.38.14; 1.38.16;
Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
preprocessor macros.
 1.37 27-May-2008  ad branches: 1.37.4;
PR kern/38763 "hanging in tty" bugfix breaks the build for vax (and
probably others)
 1.36 25-May-2008  ad Properly fix the "hanging in tty" bug that was worked around with cv_wakeup()
some time again.
 1.35 15-Mar-2008  matt branches: 1.35.2; 1.35.4; 1.35.6;
Switch dz driver to PRIVALLOC and device_* accessors.
 1.34 11-Mar-2008  matt 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.33 20-Nov-2007  yamt branches: 1.33.10; 1.33.14;
dzstart: remove a variable which is no longer used after the previous change.
 1.32 19-Nov-2007  ad - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
 1.31 07-Nov-2007  ad Merge tty changes from the vmlocking branch.
 1.30 19-Oct-2007  ad branches: 1.30.2;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.29 08-Oct-2007  ad branches: 1.29.2;
Merge from vmlocking: fix many timing problems on mips.
 1.28 14-Jul-2007  ad branches: 1.28.6; 1.28.8; 1.28.10;
- Wait for output to drain before bashing the chip again to change line
parameters. This isn't really correct, but it does stop the system
hanging in ttyout.
- Sprinkle a couple more delays and barriers.
 1.27 14-Jul-2007  ad Delay after bashing the chip at boot, otherwise output gets screwed up
and the console doesn't work properly.
 1.26 09-Jul-2007  ad Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.25 04-Mar-2007  christos branches: 1.25.2; 1.25.4;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.24 03-Oct-2006  he branches: 1.24.4;
Restore inadvertently deleted close-brace by previous change.
 1.23 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.22 29-Jul-2006  ad branches: 1.22.4; 1.22.6;
Remove unused variable.
 1.21 21-Jul-2006  ad - Use the LWP cached credentials where sane.
- Minor cosmetic changes.
 1.20 15-May-2006  yamt - include kauth.h for kauth_authorize_generic.
- wrap a long line.
 1.19 14-May-2006  elad integrate kauth.
 1.18 11-Dec-2005  christos branches: 1.18.4; 1.18.6; 1.18.8; 1.18.10; 1.18.12;
merge ktrace-lwp.
 1.17 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.16 27-Feb-2005  perry branches: 1.16.4;
nuke trailing whitespace
 1.15 25-Apr-2004  matt branches: 1.15.4; 1.15.6;
Constify the speedtab arrays
 1.14 14-Dec-2003  ad Missing splx() calls.
 1.13 13-Dec-2003  ad Add write barriers (a no-op on vax).
 1.12 09-Dec-2003  ad Catch break for cn_check_magic() and remove the pmax-specific hack.
 1.11 18-Oct-2003  ragge Add cnmagic support to the DZ driver. Pmax should also use cnmagic instead
of it's homwgrown tests.
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.9 23-Oct-2002  jdolecek branches: 1.9.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.8 25-Sep-2002  thorpej Don't include <sys/map.h>.
 1.7 24-Sep-2002  ad On pmax, drop into DDB on break.
 1.6 19-Sep-2002  ad Also initalize dz_sc for each line.
 1.5 18-Sep-2002  ad Remove some duplicate/confusing lines.
 1.4 18-Sep-2002  ad Initalize sc_dz[*].dz_line for the benefit of the bus front-end.
 1.3 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.2 17-Mar-2002  atatat branches: 1.2.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.1 25-Feb-2002  ad branches: 1.1.2; 1.1.8;
Move the dz driver to dev/dec, since it can be shared with pmax.
 1.1.8.4 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.1.8.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1 25-Feb-2002  jdolecek file dz.c was added on branch kqueue on 2002-03-16 16:00:50 +0000
 1.1.2.6 11-Nov-2002  nathanw Catch up to -current
 1.1.2.5 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.4 17-Sep-2002  nathanw Catch up to -current.
 1.1.2.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 25-Feb-2002  nathanw file dz.c was added on branch nathanw_sa on 2002-02-28 04:13:14 +0000
 1.2.4.1 16-May-2002  gehenna Add the character device switch.
 1.9.6.6 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.9.6.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.9.6.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.6.3 18-Sep-2004  skrll Sync with HEAD.
 1.9.6.2 12-Aug-2004  skrll Adapt to new world order.

Vax GENERIC compiles.
 1.9.6.1 03-Aug-2004  skrll Sync with HEAD
 1.15.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.15.4.1 29-Apr-2005  kent sync with -current
 1.16.4.7 17-Mar-2008  yamt sync with head.
 1.16.4.6 07-Dec-2007  yamt sync with head
 1.16.4.5 15-Nov-2007  yamt sync with head.
 1.16.4.4 27-Oct-2007  yamt sync with head.
 1.16.4.3 03-Sep-2007  yamt sync with head.
 1.16.4.2 30-Dec-2006  yamt sync with head.
 1.16.4.1 21-Jun-2006  yamt sync with head.
 1.18.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.18.10.2 10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.18.10.1 08-Mar-2006  elad Adapt to kernel authorization KPI.
 1.18.8.2 11-Aug-2006  yamt sync with head
 1.18.8.1 24-May-2006  yamt sync with head.
 1.18.6.1 01-Jun-2006  kardel Sync with head.
 1.18.4.1 09-Sep-2006  rpaulo sync with head
 1.22.6.1 22-Oct-2006  yamt sync with head
 1.22.4.1 18-Nov-2006  ad Sync with head.
 1.24.4.1 12-Mar-2007  rmind Sync with HEAD.
 1.25.4.1 11-Jul-2007  mjf Sync with head.
 1.25.2.5 23-Oct-2007  ad Sync with head.
 1.25.2.4 19-Oct-2007  ad Replace the tty locks with a global tty_lock.
 1.25.2.3 15-Jul-2007  ad On mips, add a bunch more delays. Behaves a lot better now.
 1.25.2.2 15-Jul-2007  ad Sync with head.
 1.25.2.1 01-Jul-2007  ad Adapt to callout API change.
 1.28.10.1 14-Oct-2007  yamt sync with head.
 1.28.8.4 23-Mar-2008  matt sync with HEAD
 1.28.8.3 09-Jan-2008  matt sync with HEAD
 1.28.8.2 08-Nov-2007  matt sync with -HEAD
 1.28.8.1 06-Nov-2007  matt sync with HEAD
 1.28.6.3 21-Nov-2007  joerg Sync with HEAD.
 1.28.6.2 11-Nov-2007  joerg Sync with HEAD.
 1.28.6.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.29.2.3 21-Nov-2007  bouyer Sync with HEAD
 1.29.2.2 13-Nov-2007  bouyer Sync with HEAD
 1.29.2.1 25-Oct-2007  bouyer Sync with HEAD.
 1.30.2.2 08-Dec-2007  mjf Sync with HEAD.
 1.30.2.1 19-Nov-2007  mjf Sync with HEAD.
 1.33.14.3 28-Sep-2008  mjf Sync with HEAD.
 1.33.14.2 02-Jun-2008  mjf Sync with HEAD.
 1.33.14.1 03-Apr-2008  mjf Sync with HEAD.
 1.33.10.1 24-Mar-2008  keiichi sync with head.
 1.35.6.2 24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.35.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.35.4.2 11-Aug-2010  yamt sync with head.
 1.35.4.1 04-May-2009  yamt sync with head.
 1.35.2.1 04-Jun-2008  yamt sync with head
 1.37.4.1 19-Oct-2008  haad Sync with HEAD.
 1.38.16.2 31-May-2011  rmind sync with head
 1.38.16.1 30-May-2010  rmind sync with head
 1.38.14.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.38.4.1 21-Nov-2010  riz Pull up following revision(s) (requested by hans in ticket #1459):
sys/arch/vax/vsa/dz_vsbus.c: revision 1.41
sys/dev/dec/dz.c: revision 1.39
sys/arch/vax/vsa/spx.c: revision 1.3
Make SPX work as console device on VAXstation 4000/9x.
Make console keyboard work on VAXstation 4000/9x. Seems not to break
anything on other VAXstations (tested on 4000 VLC).
The interrupt handler uses the softc, so it's probably a good idea to
initialize it before causing interrupts. Prevents a panic on VAXstation
4000/9x with SPX console.
 1.39.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.40.18.1 18-May-2014  rmind sync with head
 1.40.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.40.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.41.2.1 10-Aug-2014  tls Rebase.
 1.35 06-Apr-2025  riastradh dzkbd(4): Nix trailing whitespace.

No functional change intended.
 1.34 04-Mar-2025  hans dzkbd: set the keyboard type according to what lk201_init() detected

This makes wsconsctl report the correct keyboard type. The layout is
still hardcoded for a LK401 by default, though.
 1.33 04-Mar-2025  hans dzkbd: perform keyboard initialization again for console keyboards

Also, initialize dzkbd_console_internal properly. Makes keyboard type
detection work on framebuffer console on VAXstations. Not tested on
pmax, but unlikely to cause issues there.
 1.32 14-Feb-2024  tsutsui branches: 1.32.2;
Fix a fatal typo that causes dzkbd_cngetc() to stall.

Should be pulled up to netbsd-10 and netbsd-9.
 1.31 02-Feb-2024  tsutsui Use aprint_normal(9) for attach messages.
 1.30 07-Aug-2021  thorpej branches: 1.30.6;
Merge thorpej-cfargs2.
 1.29 24-Apr-2021  thorpej branches: 1.29.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.28 10-Nov-2019  chs branches: 1.28.10;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.27 02-Jan-2015  jklos branches: 1.27.18; 1.27.24;
Patches from Björ Johannesson to fix DEC LK201 keyboards, this time
applied to correct tree.
 1.26 27-Oct-2012  chs branches: 1.26.12; 1.26.14;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.25 16-Jul-2012  abs branches: 1.25.2;
revert last
 1.24 16-Jul-2012  abs Allow WSKBDIO_SETMODE
 1.23 12-May-2009  cegger branches: 1.23.12;
struct device * -> device_t, no functional changes intended.
 1.22 12-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.21 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.20 03-Dec-2007  ad branches: 1.20.18; 1.20.26; 1.20.32;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
 1.19 19-Oct-2007  ad branches: 1.19.2;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.18 14-Jul-2007  ad branches: 1.18.6; 1.18.8; 1.18.12;
Delay after bashing the chip at boot, otherwise output gets screwed up
and the console doesn't work properly.
 1.17 04-Mar-2007  christos branches: 1.17.2;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.16 29-Mar-2006  thorpej branches: 1.16.14;
Use device_private().
 1.15 11-Dec-2005  christos branches: 1.15.4; 1.15.6; 1.15.8; 1.15.10; 1.15.12;
merge ktrace-lwp.
 1.14 27-Feb-2005  perry branches: 1.14.4;
nuke trailing whitespace
 1.13 04-Feb-2005  perry de-__P
 1.12 07-Aug-2003  agc branches: 1.12.8; 1.12.10;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.11 29-Dec-2002  ad branches: 1.11.2;
In dzkbd_attach(): set dzi_ls for the console keyboard, too.
 1.10 02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.9 30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.8 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.7 17-Mar-2002  atatat 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.6 13-Mar-2002  ad zskbd_keydesctab -> lkkbd_keydesctab
 1.5 25-Feb-2002  ad Move the dz driver to dev/dec, since it can be shared with pmax.
 1.4 13-Nov-2001  lukem add/cleanup RCSID
 1.3 24-Sep-2001  chs fix typo in previous.
 1.2 18-Sep-2001  ad Get/set keyclick volume.
 1.1 02-Dec-2000  ragge branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Support files to use wskbd/wsmouse on VAXen with DZ-like chips.
From Matthew Fredette (fredette@MIT.EDU).
 1.1.8.1 01-Oct-2001  fvdl Catch up with -current.
 1.1.6.4 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.1.6.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.7 03-Jan-2003  thorpej Sync with HEAD.
 1.1.4.6 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.5 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.4 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.3 14-Nov-2001  nathanw Catch up to -current.
 1.1.4.2 26-Sep-2001  nathanw Catch up to -current.
Again.
 1.1.4.1 21-Sep-2001  nathanw Catch up to -current.
 1.1.2.2 08-Dec-2000  bouyer Sync with HEAD.
 1.1.2.1 02-Dec-2000  bouyer file dzkbd.c was added on branch thorpej_scsipi on 2000-12-08 09:12:16 +0000
 1.11.2.6 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.11.2.5 04-Feb-2005  skrll Sync with HEAD.
 1.11.2.4 13-Jan-2005  skrll Adapt to branch
 1.11.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.11.2.1 03-Aug-2004  skrll Sync with HEAD
 1.12.10.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.12.10.1 12-Feb-2005  yamt sync with head.
 1.12.8.1 29-Apr-2005  kent sync with -current
 1.14.4.4 07-Dec-2007  yamt sync with head
 1.14.4.3 27-Oct-2007  yamt sync with head.
 1.14.4.2 03-Sep-2007  yamt sync with head.
 1.14.4.1 21-Jun-2006  yamt sync with head.
 1.15.12.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.15.10.1 19-Apr-2006  elad sync with head.
 1.15.8.1 01-Apr-2006  yamt sync with head.
 1.15.6.1 22-Apr-2006  simonb Sync with head.
 1.15.4.1 09-Sep-2006  rpaulo sync with head
 1.16.14.1 12-Mar-2007  rmind Sync with HEAD.
 1.17.2.2 23-Oct-2007  ad Sync with head.
 1.17.2.1 15-Jul-2007  ad Sync with head.
 1.18.12.1 25-Oct-2007  bouyer Sync with HEAD.
 1.18.8.2 09-Jan-2008  matt sync with HEAD
 1.18.8.1 06-Nov-2007  matt sync with HEAD
 1.18.6.2 09-Dec-2007  jmcneill Sync with HEAD.
 1.18.6.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.19.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.20.32.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.20.26.1 28-Apr-2009  skrll Sync with HEAD.
 1.20.18.2 16-May-2009  yamt sync with head
 1.20.18.1 04-May-2009  yamt sync with head.
 1.23.12.1 30-Oct-2012  yamt sync with head
 1.25.2.2 03-Dec-2017  jdolecek update from HEAD
 1.25.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.26.14.1 06-Apr-2015  skrll Sync with HEAD
 1.26.12.2 02-Jan-2015  snj Revert changes that were presumably intended for HEAD. Hi jklos!
 1.26.12.1 02-Jan-2015  jklos Patches from Björn Johannessonto fix DEC LK201 keyboards.
 1.27.24.1 17-Feb-2024  martin Pull up following revision(s) (requested by tsutsui in ticket #1798):

sys/dev/dec/dzkbd.c: revision 1.32
sys/dev/dec/lk201var.h: revision 1.8
sys/dev/dec/lk201_ws.c: revision 1.11

Fix a fatal typo that causes dzkbd_cngetc() to stall.

Use proper macro for return values and remove #if 0'ed out block.
Mostly from OpenBSD/vax. No binary changes.
 1.27.18.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.28.10.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.29.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.30.6.2 04-Apr-2025  martin Pull up following revision(s) (requested by hans in ticket #1084):

sys/dev/dec/dzkbd.c: revision 1.33

dzkbd: perform keyboard initialization again for console keyboards

Also, initialize dzkbd_console_internal properly. Makes keyboard type
detection work on framebuffer console on VAXstations. Not tested on
pmax, but unlikely to cause issues there.
 1.30.6.1 17-Feb-2024  martin Pull up following revision(s) (requested by tsutsui in ticket #596):

sys/dev/dec/dzkbd.c: revision 1.32
sys/dev/dec/lk201var.h: revision 1.8
sys/dev/dec/lk201_ws.c: revision 1.11

Fix a fatal typo that causes dzkbd_cngetc() to stall.

Use proper macro for return values and remove #if 0'ed out block.
Mostly from OpenBSD/vax. No binary changes.
 1.32.2.1 02-Aug-2025  perseant Sync with HEAD
 1.3 06-Jan-2003  matt Add multiple inclusion protection.
 1.2 06-Mar-2001  matt Change parameter to int from u_short as gcc doesn't like subint
arguments.
 1.1 02-Dec-2000  ragge branches: 1.1.2; 1.1.4;
Support files to use wskbd/wsmouse on VAXen with DZ-like chips.
From Matthew Fredette (fredette@MIT.EDU).
 1.1.4.2 07-Jan-2003  thorpej Sync with HEAD.
 1.1.4.1 09-Apr-2001  nathanw Catch up with -current.
 1.1.2.3 12-Mar-2001  bouyer Sync with HEAD.
 1.1.2.2 08-Dec-2000  bouyer Sync with HEAD.
 1.1.2.1 02-Dec-2000  bouyer file dzkbdvar.h was added on branch thorpej_scsipi on 2000-12-08 09:12:17 +0000
 1.25 02-Feb-2024  tsutsui Use aprint_normal(9) for attach messages.
 1.24 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.23 24-Apr-2021  thorpej branches: 1.23.8;
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
actually needed.
- Don't be explicit about what interface attribute is attaching if
the device only has one. (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
situations, making is visibly easier to see when indirect config is
in play, and allowing for future change in semantics. (As of now,
this is just a wrapper around config_match(), but that is an
implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.22 27-Oct-2012  chs branches: 1.22.54;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.21 12-May-2009  cegger branches: 1.21.12; 1.21.22;
struct device * -> device_t, no functional changes intended.
 1.20 12-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.19 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.18 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.17 19-Oct-2007  ad branches: 1.17.20; 1.17.28; 1.17.34;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.16 04-Mar-2007  christos branches: 1.16.2; 1.16.14; 1.16.16; 1.16.20;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.15 12-Nov-2006  plunky branches: 1.15.4;
Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
 1.14 29-Mar-2006  thorpej branches: 1.14.8; 1.14.10;
Use device_private().
 1.13 11-Dec-2005  christos branches: 1.13.4; 1.13.6; 1.13.8; 1.13.10; 1.13.12;
merge ktrace-lwp.
 1.12 27-Feb-2005  perry branches: 1.12.4;
nuke trailing whitespace
 1.11 04-Feb-2005  perry de-__P
 1.10 07-Aug-2003  agc branches: 1.10.8; 1.10.10;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.9 02-Oct-2002  thorpej branches: 1.9.6;
Add trailing ; to CFATTACH_DECL.
 1.8 30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.7 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.6 24-Sep-2002  ad Make the self-test logic match zsms, removing a 300ms delay on open.
 1.5 26-Mar-2002  fredette Wait longer for the mouse self-test to complete, otherwise some
faster machines decide that the mouse is broken.
 1.4 17-Mar-2002  atatat 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.3 25-Feb-2002  ad Move the dz driver to dev/dec, since it can be shared with pmax.
 1.2 13-Nov-2001  lukem add/cleanup RCSID
 1.1 02-Dec-2000  ragge branches: 1.1.2; 1.1.4; 1.1.6;
Support files to use wskbd/wsmouse on VAXen with DZ-like chips.
From Matthew Fredette (fredette@MIT.EDU).
 1.1.6.4 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.1.6.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.4 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 14-Nov-2001  nathanw Catch up to -current.
 1.1.2.2 08-Dec-2000  bouyer Sync with HEAD.
 1.1.2.1 02-Dec-2000  bouyer file dzms.c was added on branch thorpej_scsipi on 2000-12-08 09:12:17 +0000
 1.9.6.6 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.9.6.5 04-Feb-2005  skrll Sync with HEAD.
 1.9.6.4 13-Jan-2005  skrll Adapt to branch
 1.9.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.9.6.1 03-Aug-2004  skrll Sync with HEAD
 1.10.10.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.10.10.1 12-Feb-2005  yamt sync with head.
 1.10.8.1 29-Apr-2005  kent sync with -current
 1.12.4.4 27-Oct-2007  yamt sync with head.
 1.12.4.3 03-Sep-2007  yamt sync with head.
 1.12.4.2 30-Dec-2006  yamt sync with head.
 1.12.4.1 21-Jun-2006  yamt sync with head.
 1.13.12.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.13.10.1 19-Apr-2006  elad sync with head.
 1.13.8.1 01-Apr-2006  yamt sync with head.
 1.13.6.1 22-Apr-2006  simonb Sync with head.
 1.13.4.1 09-Sep-2006  rpaulo sync with head
 1.14.10.1 10-Dec-2006  yamt sync with head.
 1.14.8.1 18-Nov-2006  ad Sync with head.
 1.15.4.1 12-Mar-2007  rmind Sync with HEAD.
 1.16.20.1 25-Oct-2007  bouyer Sync with HEAD.
 1.16.16.1 06-Nov-2007  matt sync with HEAD
 1.16.14.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.16.2.1 23-Oct-2007  ad Sync with head.
 1.17.34.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.17.28.1 28-Apr-2009  skrll Sync with HEAD.
 1.17.20.2 16-May-2009  yamt sync with head
 1.17.20.1 04-May-2009  yamt sync with head.
 1.21.22.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.21.12.1 30-Oct-2012  yamt sync with head
 1.22.54.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.23.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 13-Dec-2003  ad Add write barriers (a no-op on vax).
 1.2 06-Jan-2003  matt branches: 1.2.2;
Add multiple inclusion protection.
 1.1 25-Feb-2002  ad branches: 1.1.2; 1.1.8;
Move the dz driver to dev/dec, since it can be shared with pmax.
 1.1.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1 25-Feb-2002  jdolecek file dzreg.h was added on branch kqueue on 2002-03-16 16:00:50 +0000
 1.1.2.3 07-Jan-2003  thorpej Sync with HEAD.
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 25-Feb-2002  nathanw file dzreg.h was added on branch nathanw_sa on 2002-02-28 04:13:15 +0000
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.12 27-Dec-2019  msaitoh s/recevive/receive/ in comment.
 1.11 12-May-2009  cegger branches: 1.11.64;
struct device * -> device_t, no functional changes intended.
 1.10 15-Mar-2008  matt branches: 1.10.4; 1.10.18;
Switch dz driver to PRIVALLOC and device_* accessors.
 1.9 04-Mar-2007  christos branches: 1.9.16; 1.9.32; 1.9.36;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.8 11-Dec-2005  christos branches: 1.8.26;
merge ktrace-lwp.
 1.7 04-Feb-2005  perry branches: 1.7.6;
de-__P
 1.6 07-Aug-2003  agc branches: 1.6.8; 1.6.10;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.5 06-Jan-2003  matt branches: 1.5.2;
Add multiple inclusion protection.
 1.4 24-Sep-2002  ad On pmax, drop into DDB on break.
 1.3 18-Sep-2002  ad Remove some duplicate/confusing lines.
 1.2 18-Sep-2002  ad Initalize sc_dz[*].dz_line for the benefit of the bus front-end.
 1.1 25-Feb-2002  ad branches: 1.1.2; 1.1.8;
Move the dz driver to dev/dec, since it can be shared with pmax.
 1.1.8.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.1.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1 25-Feb-2002  jdolecek file dzvar.h was added on branch kqueue on 2002-03-16 16:00:51 +0000
 1.1.2.4 07-Jan-2003  thorpej Sync with HEAD.
 1.1.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 25-Feb-2002  nathanw file dzvar.h was added on branch nathanw_sa on 2002-02-28 04:13:15 +0000
 1.5.2.4 04-Feb-2005  skrll Sync with HEAD.
 1.5.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.2.1 03-Aug-2004  skrll Sync with HEAD
 1.6.10.1 12-Feb-2005  yamt sync with head.
 1.6.8.1 29-Apr-2005  kent sync with -current
 1.7.6.2 17-Mar-2008  yamt sync with head.
 1.7.6.1 03-Sep-2007  yamt sync with head.
 1.8.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.9.36.1 03-Apr-2008  mjf Sync with HEAD.
 1.9.32.1 24-Mar-2008  keiichi sync with head.
 1.9.16.1 23-Mar-2008  matt sync with HEAD
 1.10.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.10.4.1 16-May-2009  yamt sync with head
 1.11.64.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.10 19-Aug-2023  andvar remove likely accidental part of the comment.
 1.9 27-Dec-2019  msaitoh s/le_de_subr/le_dec_subr/ in comment.
 1.8 29-Jul-2006  ad branches: 1.8.148;
Remove RASTERCONSOLE support from the pmax port.
 1.7 13-Mar-2002  ad branches: 1.7.28; 1.7.42; 1.7.46;
Give wskbdmap_lk201.c its own attribute.
 1.6 25-Feb-2002  ad Argh, dont reference any wscons parts in files.dec yet.
 1.5 25-Feb-2002  ad Move the dz driver to dev/dec, since it can be shared with pmax.
 1.4 04-Aug-1999  nisimura branches: 1.4.14; 1.4.16;
- Replace device node names of zskbd/zsms into lkkbd/vsms, respectively.
No functionality was changed at this moment.
- Apply recent changes in GENERIC to TCWSCONS.
 1.3 22-Oct-1998  briggs Updates from Takuya Kuomoto for wscons support for TC alphas.
 1.2 22-Jul-1997  jonathan pathname typo.
 1.1 22-Jul-1997  jonathan Create sys/dev/dec and cleanup sys/dev/tc:

* Move clockvar.h (header file for generic clock code) to sys/dev/dec.
* Move if_le_dec.c with DEC padded LANCE-dma (pmax/pmax, ioasic, vax 3400)
to sys/dev/dec. Remove from sys/dev/tc.
* Declare attribute le_dec_subr in /sys/dev/dec/files.dec,
use if_le_dec.c when it's defined.
* Move IOCTL asic declaration from pmax and Alpha MD machine
files to sys/dev/tc/files.tc.
* move TurboChannel and ioasic if_le attachments from pmax and Alpha machine
config files to /sys/dev/tc/files.tc. Add le_dec_subr attribute.
* Add if_le_dec attribute to if_le_ibus (pmax ds3100 pmax) LANCE attachment.
 1.4.16.1 16-Mar-2002  jdolecek Catch up with -current.
 1.4.14.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.4.14.1 28-Feb-2002  nathanw Catch up to -current.
 1.7.46.1 11-Aug-2006  yamt sync with head
 1.7.42.1 09-Sep-2006  rpaulo sync with head
 1.7.28.1 30-Dec-2006  yamt sync with head.
 1.8.148.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.21 22-Jun-2017  flxd spelling (DEC called it "TURBOchannel")
 1.20 19-Jan-2010  pooka branches: 1.20.22; 1.20.40;
Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff. ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
 1.19 04-Apr-2008  tsutsui branches: 1.19.4;
Split device_t/softc for le(4) and variants and misc cosmetic changes.
 1.18 19-Oct-2007  ad branches: 1.18.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.17 24-Dec-2005  perry branches: 1.17.30; 1.17.44; 1.17.46; 1.17.50;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.16 11-Dec-2005  christos merge ktrace-lwp.
 1.15 27-Feb-2005  perry branches: 1.15.4;
nuke trailing whitespace
 1.14 04-Feb-2005  perry de-__P
 1.13 07-Aug-2003  agc branches: 1.13.8; 1.13.10;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.12 13-Nov-2001  lukem branches: 1.12.16;
add/cleanup RCSID
 1.11 30-May-2001  mrg branches: 1.11.2;
use _KERNEL_OPT
 1.10 21-Jul-1998  drochner branches: 1.10.26;
adapt to LANCE driver split
 1.9 05-Jul-1998  jonathan defopt INET, NETATALK.
 1.8 22-Jul-1997  jonathan Create sys/dev/dec and cleanup sys/dev/tc:

* Move clockvar.h (header file for generic clock code) to sys/dev/dec.
* Move if_le_dec.c with DEC padded LANCE-dma (pmax/pmax, ioasic, vax 3400)
to sys/dev/dec. Remove from sys/dev/tc.
* Declare attribute le_dec_subr in /sys/dev/dec/files.dec,
use if_le_dec.c when it's defined.
* Move IOCTL asic declaration from pmax and Alpha MD machine
files to sys/dev/tc/files.tc.
* move TurboChannel and ioasic if_le attachments from pmax and Alpha machine
config files to /sys/dev/tc/files.tc. Add le_dec_subr attribute.
* Add if_le_dec attribute to if_le_ibus (pmax ds3100 pmax) LANCE attachment.
 1.7 16-Jun-1997  jonathan include <machine/bus.h>.
 1.6 15-Jun-1997  mhitch DECstation MIPS3 support: wbflush() is cpu-dependent, need declaration from
machine/locore.h.
 1.5 17-Mar-1997  thorpej #include <net/if_media.h>
 1.4 15-Mar-1997  is New ARP system, supports IPv4 over any hardware link.

Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
 1.3 13-Oct-1996  christos branches: 1.3.6;
backout kprintf changes
 1.2 10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.1 07-May-1996  thorpej Make the MI LANCE driver standalone, and use cfattach to resolve
naming conflicts between bus attachments on ports that can have
multiple instances of the LANCE.

Changed struct ifnet to have a pointer to the softc of the underlying
device and a printable "external name" (name + unit number), thus eliminating
if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)()
to take a struct ifnet *, rather than a unit number.
 1.3.6.2 09-Mar-1997  is netinet/if_ether.h -> netinet/if_inarp.h
 1.3.6.1 27-Feb-1997  is Changing to the new world order.
 1.10.26.2 14-Nov-2001  nathanw Catch up to -current.
 1.10.26.1 21-Jun-2001  nathanw Catch up to -current.
 1.11.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.12.16.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.12.16.4 04-Feb-2005  skrll Sync with HEAD.
 1.12.16.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.16.2 18-Sep-2004  skrll Sync with HEAD.
 1.12.16.1 03-Aug-2004  skrll Sync with HEAD
 1.13.10.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.13.10.1 12-Feb-2005  yamt sync with head.
 1.13.8.1 29-Apr-2005  kent sync with -current
 1.15.4.2 27-Oct-2007  yamt sync with head.
 1.15.4.1 21-Jun-2006  yamt sync with head.
 1.17.50.1 25-Oct-2007  bouyer Sync with HEAD.
 1.17.46.1 06-Nov-2007  matt sync with HEAD
 1.17.44.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.17.30.1 23-Oct-2007  ad Sync with head.
 1.18.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.19.4.1 11-Mar-2010  yamt sync with head
 1.20.40.1 28-Aug-2017  skrll Sync with HEAD
 1.20.22.1 03-Dec-2017  jdolecek update from HEAD
 1.9 11-Dec-2005  christos merge ktrace-lwp.
 1.8 04-Feb-2005  perry de-__P
 1.7 19-Mar-1999  ad branches: 1.7.42; 1.7.50; 1.7.52;
Defined KEY_CAPSLOCK.
 1.6 10-Mar-1999  kleink Un-nest __P().
 1.5 22-Oct-1998  drochner back out last change - this file in unrelated to wscons stuff
 1.4 22-Oct-1998  briggs Updates from Takuya Kuomoto for wscons support for TC alphas.
 1.3 22-Mar-1998  jonathan Clone lk20.h (keycode definitions) to /sys/dev/dec.
Update source pmax files accordingly.
cvs remove old pmax/dev/lk201.h.
 1.2 05-Jan-1998  perry RCSID Police.
 1.1 11-Sep-1995  jonathan Initialization and keymapping code for DEC LK-201 and successor keyboards,
abstrated out of the pmax scc and dc7085 drivers.
 1.7.52.1 12-Feb-2005  yamt sync with head.
 1.7.50.1 29-Apr-2005  kent sync with -current
 1.7.42.1 04-Feb-2005  skrll Sync with HEAD.
 1.11 14-Feb-2024  tsutsui Use proper macro for return values and remove #if 0'ed out block.

Mostly from OpenBSD/vax. No binary changes.
 1.10 11-Jul-2016  skrll branches: 1.10.24; 1.10.50;
Don't use a callout unnecessarily - especially not this early
 1.9 02-Jan-2015  jklos Patches from Björ Johannesson to fix DEC LK201 keyboards, this time
applied to correct tree.
 1.8 14-Mar-2009  dsl branches: 1.8.22; 1.8.38; 1.8.40;
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.7 11-Dec-2005  christos branches: 1.7.74; 1.7.84; 1.7.90;
merge ktrace-lwp.
 1.6 24-Mar-2004  drochner remove license clauses 3 and 4 from my cpoyright notices
 1.5 13-Nov-2001  lukem branches: 1.5.16;
add/cleanup RCSID
 1.4 19-Sep-2001  ad Save the new keyclick volume for later retrieval.
 1.3 18-Sep-2001  ad Get/set keyclick volume.
 1.2 22-Oct-1998  drochner branches: 1.2.24; 1.2.26; 1.2.28;
separate keyboard handling from serial interface handling some more,
improve bell handling, initialize kbd on powerup
 1.1 17-Sep-1998  drochner LK201/LK401 support for wscons (only decoding for now).
 1.2.28.1 01-Oct-2001  fvdl Catch up with -current.
 1.2.26.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.24.2 14-Nov-2001  nathanw Catch up to -current.
 1.2.24.1 21-Sep-2001  nathanw Catch up to -current.
 1.5.16.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.16.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.16.1 03-Aug-2004  skrll Sync with HEAD
 1.7.90.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.7.84.1 28-Apr-2009  skrll Sync with HEAD.
 1.7.74.1 04-May-2009  yamt sync with head.
 1.8.40.2 05-Oct-2016  skrll Sync with HEAD
 1.8.40.1 06-Apr-2015  skrll Sync with HEAD
 1.8.38.2 02-Jan-2015  snj Revert changes that were presumably intended for HEAD. Hi jklos!
 1.8.38.1 02-Jan-2015  jklos Patches from Björn Johannessonto fix DEC LK201 keyboards.
 1.8.22.1 03-Dec-2017  jdolecek update from HEAD
 1.10.50.1 17-Feb-2024  martin Pull up following revision(s) (requested by tsutsui in ticket #596):

sys/dev/dec/dzkbd.c: revision 1.32
sys/dev/dec/lk201var.h: revision 1.8
sys/dev/dec/lk201_ws.c: revision 1.11

Fix a fatal typo that causes dzkbd_cngetc() to stall.

Use proper macro for return values and remove #if 0'ed out block.
Mostly from OpenBSD/vax. No binary changes.
 1.10.24.1 17-Feb-2024  martin Pull up following revision(s) (requested by tsutsui in ticket #1798):

sys/dev/dec/dzkbd.c: revision 1.32
sys/dev/dec/lk201var.h: revision 1.8
sys/dev/dec/lk201_ws.c: revision 1.11

Fix a fatal typo that causes dzkbd_cngetc() to stall.

Use proper macro for return values and remove #if 0'ed out block.
Mostly from OpenBSD/vax. No binary changes.
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 27-Feb-2005  perry nuke trailing whitespace
 1.1 17-Sep-1998  drochner branches: 1.1.46; 1.1.54; 1.1.56;
LK201/LK401 support for wscons (only decoding for now).
 1.1.56.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.1.54.1 29-Apr-2005  kent sync with -current
 1.1.46.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.8 14-Feb-2024  tsutsui Use proper macro for return values and remove #if 0'ed out block.

Mostly from OpenBSD/vax. No binary changes.
 1.7 02-Jan-2015  jklos branches: 1.7.24; 1.7.50;
Patches from Björ Johannesson to fix DEC LK201 keyboards, this time
applied to correct tree.
 1.6 11-Dec-2005  christos branches: 1.6.120; 1.6.138; 1.6.140;
merge ktrace-lwp.
 1.5 04-Feb-2005  perry de-__P
 1.4 24-Mar-2004  drochner branches: 1.4.8; 1.4.10;
remove license clauses 3 and 4 from my cpoyright notices
 1.3 18-Sep-2001  ad branches: 1.3.18;
Get/set keyclick volume.
 1.2 22-Oct-1998  drochner branches: 1.2.24; 1.2.26; 1.2.28;
separate keyboard handling from serial interface handling some more,
improve bell handling, initialize kbd on powerup
 1.1 17-Sep-1998  drochner LK201/LK401 support for wscons (only decoding for now).
 1.2.28.1 01-Oct-2001  fvdl Catch up with -current.
 1.2.26.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.24.1 21-Sep-2001  nathanw Catch up to -current.
 1.3.18.4 04-Feb-2005  skrll Sync with HEAD.
 1.3.18.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.18.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.18.1 03-Aug-2004  skrll Sync with HEAD
 1.4.10.1 12-Feb-2005  yamt sync with head.
 1.4.8.1 29-Apr-2005  kent sync with -current
 1.6.140.1 06-Apr-2015  skrll Sync with HEAD
 1.6.138.2 02-Jan-2015  snj Revert changes that were presumably intended for HEAD. Hi jklos!
 1.6.138.1 02-Jan-2015  jklos Patches from Björn Johannessonto fix DEC LK201 keyboards.
 1.6.120.1 03-Dec-2017  jdolecek update from HEAD
 1.7.50.1 17-Feb-2024  martin Pull up following revision(s) (requested by tsutsui in ticket #596):

sys/dev/dec/dzkbd.c: revision 1.32
sys/dev/dec/lk201var.h: revision 1.8
sys/dev/dec/lk201_ws.c: revision 1.11

Fix a fatal typo that causes dzkbd_cngetc() to stall.

Use proper macro for return values and remove #if 0'ed out block.
Mostly from OpenBSD/vax. No binary changes.
 1.7.24.1 17-Feb-2024  martin Pull up following revision(s) (requested by tsutsui in ticket #1798):

sys/dev/dec/dzkbd.c: revision 1.32
sys/dev/dec/lk201var.h: revision 1.8
sys/dev/dec/lk201_ws.c: revision 1.11

Fix a fatal typo that causes dzkbd_cngetc() to stall.

Use proper macro for return values and remove #if 0'ed out block.
Mostly from OpenBSD/vax. No binary changes.
 1.32 07-Sep-2025  thorpej Change todr_chip_handle::cookie -> todr_chip_handle::todr_dev, and
make it a device_t. Upcoming functional changes will require the
device_t associated with a TODR device.

Change todr_chip_handle::bus_cookie -> todr_chip_handle::todr_devaux.
Nothing was using the old field, but I decided to keep it around just
in cause something needs it in the future.

And with these largely mechanical yet semantically meaningful changes,
thus spake the Oracle: "Welcome to NetBSD 11.99.2."
 1.31 07-Sep-2025  thorpej todr_chip_handle::base_time -> todr_chip_handle::todr_base_time

NFCI
 1.30 02-Feb-2024  tsutsui Use aprint_normal(9) for attach messages.
 1.29 24-Aug-2023  andvar s/MC_DFEAULTHZ/MC_DEFAULTHZ/ for alpha specific default rate definition.
 1.28 17-Nov-2014  christos PR/49207: Kamil Rytarowski: Add sys/clock.h with generic time macros
(derived from clock_subr.h). Keep clock_subr.h with the kernel structures
and functions to reduce diffs, and have clock.h only include standalone
constants and macros.
 1.27 04-Jun-2011  tsutsui branches: 1.27.12;
Split device_t/softc. Tested on GXemul.
 1.26 06-Apr-2011  tsutsui branches: 1.26.2;
Make this compile with options DEBUG. (PRId64 for time_t)
 1.25 03-May-2010  mhitch branches: 1.25.2;
Fix error introduced with timecounters - RTC clock register only uses
the last 2 digits of the year. Fixes setting the clock and keeps the
DECstation PROM happy and stops it from setting the date to Jan 1, 1972.
 1.24 12-Dec-2009  tsutsui branches: 1.24.2; 1.24.4;
Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
 1.23 12-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.22 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.21 08-Apr-2008  cegger branches: 1.21.4; 1.21.12; 1.21.18;
use aprint_*_dev and device_xname
 1.20 29-Mar-2008  tsutsui Remove an extra newline added in rev 1.18.
It will be put in the following clockattach().
 1.19 04-Jan-2008  simonb branches: 1.19.6;
Make this compile with DEBUG enabled (fix a printf format, convert to
timecounters).
 1.18 03-Jan-2008  joerg Timecounter and generic todr support for pmax. From Garret D'Amore.
 1.17 11-Dec-2005  christos branches: 1.17.46; 1.17.52; 1.17.60;
merge ktrace-lwp.
 1.16 04-Feb-2005  perry branches: 1.16.6;
de-__P
 1.15 05-Dec-2001  simonb branches: 1.15.16; 1.15.24; 1.15.26;
Remove some debug printf()s.
 1.14 23-Nov-2001  simonb Remove hardcoded values for HZ (under different names!) from mcclock.c
and clock_machdep.h, so that now HZ can be any supported frequency of
the mc146818a/ds1287a RTCs.
Tested at 256Hz and 2048Hz.
 1.13 13-Nov-2001  lukem add/cleanup RCSID
 1.12 15-Jan-1999  thorpej branches: 1.12.20; 1.12.22;
__pmax__ -> pmax, like other ports.
 1.11 19-Apr-1998  jonathan Copy alpha/tc/mcclock_ioasic.c (duplicated in pmax/tc/mcclock_ioasic.c)
into sys/dev/dec and split into a clockfns layer and a "middle" layer
for other DEC systems which use mcclocks with each onchip byte
register padded out to a 32-bit word.

Clone alpha/alpha/mcclock (also duplicated in pmax port) into
sys/dev/dec, and ifdef for default clockrates on pmax and alpha.

Use new machinery on pmax for ibus,ioasic attached mcclocks.
 1.10 12-Jan-1998  thorpej Adjust for config changes.
 1.9 02-Sep-1997  thorpej Nuke the idea of <machine/options.h>. It completely defeats the purpose
of fine-grain option dependencies.
 1.8 22-Jul-1997  jonathan branches: 1.8.2;
Use new <dev/dec/clockvar.h> and and <dev/dec/mcclokvar.h>.
Garbage-collect original headers from sys/arch/alpha.
 1.7 07-Apr-1997  cgd by default, provide RCS IDs for NetBSD/alpha kernel files in kernel binaries.
This can be disabled (to save a bit of space) with the NO_KERNEL_RCSIDS
options, which is present but commented out in the ALPHA config file.
In ELF-format kernels, these strings are present in the kernel binary but
are not loaded into memory. (In ECOFF-format kernels, there's no easy way
to keep them from being loaded, so they _are_ loaded into memory.)
 1.6 07-Apr-1997  cgd clean up NetBSD RCS ID strings, include machine/options.h
 1.5 12-Mar-1997  cgd enabled SQWE as well as PIE in reg B.
 1.4 13-Oct-1996  christos branches: 1.4.2;
backout previous kprintf change
 1.3 10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.2 17-Apr-1996  cgd fix copyrights
 1.1 17-Apr-1996  cgd clean up clock handling: clock drivers are now seperate from the
chip-independent clock code. 'clock' has been renamed 'mcclock' 'clock'
has been renamed 'mcclock' (since it's a driver for that particular
clock, and since eventually there may be another clock chip driver),
and now attaches via seperate match/attach functions to both TC and ISA.
This removes a whole lot of #ifdefs...
 1.4.2.2 12-Aug-1997  cgd sync with -current as of August 11, 1997
 1.4.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.8.2.1 04-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.12.22.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.12.20.2 08-Jan-2002  nathanw Catch up to -current.
 1.12.20.1 14-Nov-2001  nathanw Catch up to -current.
 1.15.26.1 12-Feb-2005  yamt sync with head.
 1.15.24.1 29-Apr-2005  kent sync with -current
 1.15.16.1 04-Feb-2005  skrll Sync with HEAD.
 1.16.6.1 21-Jan-2008  yamt sync with head
 1.17.60.1 08-Jan-2008  bouyer Sync with HEAD
 1.17.52.1 18-Feb-2008  mjf Sync with HEAD.
 1.17.46.1 09-Jan-2008  matt sync with HEAD
 1.19.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.19.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.21.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.21.12.1 28-Apr-2009  skrll Sync with HEAD.
 1.21.4.4 11-Aug-2010  yamt sync with head.
 1.21.4.3 11-Mar-2010  yamt sync with head
 1.21.4.2 16-May-2009  yamt sync with head
 1.21.4.1 04-May-2009  yamt sync with head.
 1.24.4.3 12-Jun-2011  rmind sync with head
 1.24.4.2 21-Apr-2011  rmind sync with head
 1.24.4.1 30-May-2010  rmind sync with head
 1.24.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.25.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.26.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.27.12.1 03-Dec-2017  jdolecek update from HEAD
 1.16 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.15 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.14 03-Jan-2008  joerg branches: 1.14.10; 1.14.18; 1.14.24;
Timecounter and generic todr support for pmax. From Garret D'Amore.
 1.13 11-Dec-2005  christos branches: 1.13.46; 1.13.52; 1.13.60;
merge ktrace-lwp.
 1.12 27-Feb-2005  perry branches: 1.12.4;
nuke trailing whitespace
 1.11 04-Feb-2005  perry de-__P
 1.10 13-Nov-2001  lukem branches: 1.10.16; 1.10.24; 1.10.26;
add/cleanup RCSID
 1.9 19-Apr-1998  jonathan branches: 1.9.26; 1.9.28;
Copy alpha/tc/mcclock_ioasic.c (duplicated in pmax/tc/mcclock_ioasic.c)
into sys/dev/dec and split into a clockfns layer and a "middle" layer
for other DEC systems which use mcclocks with each onchip byte
register padded out to a 32-bit word.

Clone alpha/alpha/mcclock (also duplicated in pmax port) into
sys/dev/dec, and ifdef for default clockrates on pmax and alpha.

Use new machinery on pmax for ibus,ioasic attached mcclocks.
 1.8 02-Sep-1997  thorpej Nuke the idea of <machine/options.h>. It completely defeats the purpose
of fine-grain option dependencies.
 1.7 22-Jul-1997  jonathan branches: 1.7.2;
Use new <dev/dec/clockvar.h> and and <dev/dec/mcclokvar.h>.
Garbage-collect original headers from sys/arch/alpha.
 1.6 07-Apr-1997  cgd by default, provide RCS IDs for NetBSD/alpha kernel files in kernel binaries.
This can be disabled (to save a bit of space) with the NO_KERNEL_RCSIDS
options, which is present but commented out in the ALPHA config file.
In ELF-format kernels, these strings are present in the kernel binary but
are not loaded into memory. (In ECOFF-format kernels, there's no easy way
to keep them from being loaded, so they _are_ loaded into memory.)
 1.5 06-Apr-1997  cgd clean up NetBSD RCS ID strings, include machine/options.h
 1.4 08-Dec-1996  cgd remove all traces of __BROKEN_INDIRECT_CONFIG (except in shared drivers)
 1.3 05-Dec-1996  cgd update these so they compile whether or not __BROKEN_INDIRECT_CONFIG
is defined.
 1.2 17-Apr-1996  cgd branches: 1.2.2;
fix copyrights
 1.1 17-Apr-1996  cgd clean up clock handling: clock drivers are now seperate from the
chip-independent clock code. 'clock' has been renamed 'mcclock' 'clock'
has been renamed 'mcclock' (since it's a driver for that particular
clock, and since eventually there may be another clock chip driver),
and now attaches via seperate match/attach functions to both TC and ISA.
This removes a whole lot of #ifdefs...
 1.2.2.4 12-Aug-1997  cgd sync with -current as of August 11, 1997
 1.2.2.3 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.2.2 08-Dec-1996  cgd sync __BROKEN_INDIRECT_CONFIG removal with trunk.
 1.2.2.1 07-Dec-1996  cgd mostly sync with changes on the trunk
 1.7.2.1 04-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.9.28.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.9.26.1 14-Nov-2001  nathanw Catch up to -current.
 1.10.26.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.10.26.1 12-Feb-2005  yamt sync with head.
 1.10.24.1 29-Apr-2005  kent sync with -current
 1.10.16.2 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.10.16.1 04-Feb-2005  skrll Sync with HEAD.
 1.12.4.1 21-Jan-2008  yamt sync with head
 1.13.60.1 08-Jan-2008  bouyer Sync with HEAD
 1.13.52.1 18-Feb-2008  mjf Sync with HEAD.
 1.13.46.1 09-Jan-2008  matt sync with HEAD
 1.14.24.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.14.18.1 28-Apr-2009  skrll Sync with HEAD.
 1.14.10.1 04-May-2009  yamt sync with head.
 1.10 11-Feb-2000  simonb Declare the mcclock_pad32_busfns variable as extern.
 1.9 19-Apr-1998  jonathan branches: 1.9.14;
Copy alpha/tc/mcclock_ioasic.c (duplicated in pmax/tc/mcclock_ioasic.c)
into sys/dev/dec and split into a clockfns layer and a "middle" layer
for other DEC systems which use mcclocks with each onchip byte
register padded out to a 32-bit word.

Clone alpha/alpha/mcclock (also duplicated in pmax port) into
sys/dev/dec, and ifdef for default clockrates on pmax and alpha.

Use new machinery on pmax for ibus,ioasic attached mcclocks.
 1.8 02-Sep-1997  thorpej Nuke the idea of <machine/options.h>. It completely defeats the purpose
of fine-grain option dependencies.
 1.7 22-Jul-1997  jonathan branches: 1.7.2;
Use new <dev/dec/clockvar.h> and and <dev/dec/mcclokvar.h>.
Garbage-collect original headers from sys/arch/alpha.
 1.6 07-Apr-1997  cgd by default, provide RCS IDs for NetBSD/alpha kernel files in kernel binaries.
This can be disabled (to save a bit of space) with the NO_KERNEL_RCSIDS
options, which is present but commented out in the ALPHA config file.
In ELF-format kernels, these strings are present in the kernel binary but
are not loaded into memory. (In ECOFF-format kernels, there's no easy way
to keep them from being loaded, so they _are_ loaded into memory.)
 1.5 06-Apr-1997  cgd clean up NetBSD RCS ID strings, include machine/options.h
 1.4 08-Dec-1996  cgd remove all traces of __BROKEN_INDIRECT_CONFIG (except in shared drivers)
 1.3 05-Dec-1996  cgd update these so they compile whether or not __BROKEN_INDIRECT_CONFIG
is defined.
 1.2 17-Apr-1996  cgd branches: 1.2.2;
fix copyrights
 1.1 17-Apr-1996  cgd clean up clock handling: clock drivers are now seperate from the
chip-independent clock code. 'clock' has been renamed 'mcclock' 'clock'
has been renamed 'mcclock' (since it's a driver for that particular
clock, and since eventually there may be another clock chip driver),
and now attaches via seperate match/attach functions to both TC and ISA.
This removes a whole lot of #ifdefs...
 1.2.2.4 12-Aug-1997  cgd sync with -current as of August 11, 1997
 1.2.2.3 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.2.2.2 08-Dec-1996  cgd sync __BROKEN_INDIRECT_CONFIG removal with trunk.
 1.2.2.1 07-Dec-1996  cgd mostly sync with changes on the trunk
 1.7.2.1 04-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.9.14.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.8 04-Jun-2011  tsutsui Split device_t/softc. Tested on GXemul.
 1.7 03-Jan-2008  joerg branches: 1.7.32; 1.7.38; 1.7.42;
Timecounter and generic todr support for pmax. From Garret D'Amore.
 1.6 11-Dec-2005  christos branches: 1.6.46; 1.6.52; 1.6.60;
merge ktrace-lwp.
 1.5 04-Feb-2005  perry branches: 1.5.6;
de-__P
 1.4 22-Jun-1997  jonathan branches: 1.4.54; 1.4.62; 1.4.64;
Clone Alpha ``cpu-independent'' clock API headers into sys/dev/tc/,
to share them with pmax.
 1.3 07-Apr-1997  cgd clean up NetBSD RCS ID strings
 1.2 17-Apr-1996  cgd branches: 1.2.2;
fix copyrights
 1.1 17-Apr-1996  cgd clean up clock handling: clock drivers are now seperate from the
chip-independent clock code. 'clock' has been renamed 'mcclock' 'clock'
has been renamed 'mcclock' (since it's a driver for that particular
clock, and since eventually there may be another clock chip driver),
and now attaches via seperate match/attach functions to both TC and ISA.
This removes a whole lot of #ifdefs...
 1.2.2.1 01-Jun-1997  cgd sync the nwscons branch up with yesterday's version of the trunk.
Lots of conflicts/changes because of the RCS Id format changes.
Also, a few cleanups and corrections.
 1.4.64.1 12-Feb-2005  yamt sync with head.
 1.4.62.1 29-Apr-2005  kent sync with -current
 1.4.54.1 04-Feb-2005  skrll Sync with HEAD.
 1.5.6.1 21-Jan-2008  yamt sync with head
 1.6.60.1 08-Jan-2008  bouyer Sync with HEAD
 1.6.52.1 18-Feb-2008  mjf Sync with HEAD.
 1.6.46.1 09-Jan-2008  matt sync with HEAD
 1.7.42.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.7.38.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.32.1 12-Jun-2011  rmind sync with head
 1.12 28-Oct-2017  riastradh Kill some more extern struct cfdriver declarations.

Down with externs in .c!
 1.11 14-Mar-2009  dsl branches: 1.11.22;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.10 12-Jun-2008  cegger branches: 1.10.4; 1.10.10;
use device_lookup_private to get softc
XXX this driver assumes unit of zero
 1.9 26-May-2008  nisimura branches: 1.9.2;
- assign 2 clause TNF license to the files cited as my ownership.
- abandon and remove my copyright notice from the three files were
copied in order to adapt HW I don't have; pvr.c, pm.c and stic.c
 1.8 04-Mar-2007  christos branches: 1.8.36; 1.8.38; 1.8.40; 1.8.42;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.7 12-Nov-2006  plunky branches: 1.7.4;
Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
 1.6 11-Dec-2005  christos branches: 1.6.20; 1.6.22;
merge ktrace-lwp.
 1.5 04-Feb-2005  perry branches: 1.5.6;
de-__P
 1.4 17-Mar-2002  atatat branches: 1.4.12; 1.4.20; 1.4.22;
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.3 13-Nov-2001  lukem add/cleanup RCSID
 1.2 08-Jan-2000  takemura branches: 1.2.6; 1.2.8; 1.2.10;
Absolute pointing device support.
- Wsmouse_input() get new argument 'flag', which indicates whether x/y/z are
relative or absolute.
- Wsmouse get new io controls, WSMOUSEIO_SCALIBCOORDS and
WSMOUSEIO_GCALIBCOORDS.
 1.1 20-Nov-1999  nisimura branches: 1.1.2;
Introduce wscons vsxxx mice (and possible tablet) routines; changes
of existing codes (lk201_ws.c, zskbd.c, and zsms.c) will follow.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.10.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.10.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.8.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.8.1 14-Nov-2001  nathanw Catch up to -current.
 1.2.6.2 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.2.6.1 08-Jan-2000  bouyer file vsxxx.c was added on branch thorpej_scsipi on 2000-11-20 11:39:54 +0000
 1.4.22.1 12-Feb-2005  yamt sync with head.
 1.4.20.1 29-Apr-2005  kent sync with -current
 1.4.12.1 04-Feb-2005  skrll Sync with HEAD.
 1.5.6.2 03-Sep-2007  yamt sync with head.
 1.5.6.1 30-Dec-2006  yamt sync with head.
 1.6.22.1 10-Dec-2006  yamt sync with head.
 1.6.20.1 18-Nov-2006  ad Sync with head.
 1.7.4.1 12-Mar-2007  rmind Sync with HEAD.
 1.8.42.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.8.40.1 04-May-2009  yamt sync with head.
 1.8.38.2 17-Jun-2008  yamt sync with head.
 1.8.38.1 04-Jun-2008  yamt sync with head
 1.8.36.2 29-Jun-2008  mjf Sync with HEAD.
 1.8.36.1 02-Jun-2008  mjf Sync with HEAD.
 1.9.2.1 18-Jun-2008  simonb Sync with head.
 1.10.10.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.10.4.1 28-Apr-2009  skrll Sync with HEAD.
 1.11.22.1 03-Dec-2017  jdolecek update from HEAD
 1.6 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.5 12-May-2009  cegger branches: 1.5.12; 1.5.22;
struct device * -> device_t, no functional changes intended.
 1.4 26-May-2008  nisimura branches: 1.4.12;
- assign 2 clause TNF license to the files cited as my ownership.
- abandon and remove my copyright notice from the three files were
copied in order to adapt HW I don't have; pvr.c, pm.c and stic.c
 1.3 11-Dec-2005  christos branches: 1.3.70; 1.3.72; 1.3.74; 1.3.76;
merge ktrace-lwp.
 1.2 04-Feb-2005  perry de-__P
 1.1 20-Nov-1999  nisimura branches: 1.1.2; 1.1.8; 1.1.32; 1.1.40; 1.1.42;
Introduce wscons vsxxx mice (and possible tablet) routines; changes
of existing codes (lk201_ws.c, zskbd.c, and zsms.c) will follow.
 1.1.42.1 12-Feb-2005  yamt sync with head.
 1.1.40.1 29-Apr-2005  kent sync with -current
 1.1.32.1 04-Feb-2005  skrll Sync with HEAD.
 1.1.8.2 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.1.8.1 20-Nov-1999  bouyer file vsxxxvar.h was added on branch thorpej_scsipi on 2000-11-20 11:39:55 +0000
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.76.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.3.74.2 16-May-2009  yamt sync with head
 1.3.74.1 04-May-2009  yamt sync with head.
 1.3.72.1 04-Jun-2008  yamt sync with head
 1.3.70.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.12.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.5.22.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.5.12.1 30-Oct-2012  yamt sync with head
 1.6 13-Mar-2002  ad zskbd_keydesctab -> lkkbd_keydesctab
 1.5 13-Nov-2001  lukem add/cleanup RCSID
 1.4 02-Dec-2000  ragge branches: 1.4.2; 1.4.4;
Accept the "Utf�r" key as a giant ctrl-alt key. On LK201 "Ctrl" and
"Compose" cannot be pressed at the same time.
 1.3 06-Jan-1999  drochner branches: 1.3.8;
use new KS_KEYCODE macro from wsksymdef.h
 1.2 18-Sep-1998  drochner Map the "backspace" key to "delete" and the "remove" key to
"keypad-delete". (This is not completely clean; for me these keys make
up perhaps a "function field", but no "keypad".)
This is the mapping expected by applications.
Proposed by Chris Jones via PR kern/6089 and Dave Sainty.
 1.1 17-Sep-1998  drochner wskbd map for LK201/LK401
 1.3.8.1 08-Dec-2000  bouyer Sync with HEAD.
 1.4.4.2 16-Mar-2002  jdolecek Catch up with -current.
 1.4.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.4.2.1 14-Nov-2001  nathanw Catch up to -current.
 1.3 13-Mar-2002  ad zskbd_keydesctab -> lkkbd_keydesctab
 1.2 17-Sep-1998  drochner branches: 1.2.24; 1.2.26;
Add definition for highest legal LK201 keycode.
 1.1 17-Sep-1998  drochner wskbd map for LK201/LK401
 1.2.26.1 16-Mar-2002  jdolecek Catch up with -current.
 1.2.24.1 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.6 05-Jul-2000  nisimura Repopulate 4 files, zs_ioasic.c and zs_ioasicvar.h from arch/alpha/tc,
zskbd.c and zsms.c from dev/dec/, respectively. No functionality
change this time.
 1.5 16-Sep-1999  drochner branches: 1.5.2;
set baudrate before talking to the keyboard (in non-console case)
from Konrad Schroder per PR port-alpha/8422
 1.4 03-Feb-1999  mycroft Catch up with a change to the stint interface.
 1.3 22-Oct-1998  drochner adapt to keyboard driver changes
 1.2 22-Oct-1998  nisimura - General cleanups for NWSCONS zskbd.c and zsms.c Comments for
future improvement work.
 1.1 22-Oct-1998  briggs Code from Toru Nishimura and Matthias Drochner work on pmax wscons in a
very slightly modified form for wscons support on the TC alpha.
XXX This could use some more work, but this code should be sharable
among the alpha and pmax systems as-is.
 1.5.2.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck, and commit Makefile which
I forgot in the batch of commits.
 1.2 05-Jul-2000  nisimura Repopulate 4 files, zs_ioasic.c and zs_ioasicvar.h from arch/alpha/tc,
zskbd.c and zsms.c from dev/dec/, respectively. No functionality
change this time.
 1.1 22-Oct-1998  briggs branches: 1.1.12;
Code from Toru Nishimura and Matthias Drochner work on pmax wscons in a
very slightly modified form for wscons support on the TC alpha.
XXX This could use some more work, but this code should be sharable
among the alpha and pmax systems as-is.
 1.1.12.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck, and commit Makefile which
I forgot in the batch of commits.
 1.7 05-Jul-2000  nisimura Repopulate 4 files, zs_ioasic.c and zs_ioasicvar.h from arch/alpha/tc,
zskbd.c and zsms.c from dev/dec/, respectively. No functionality
change this time.
 1.6 08-Jan-2000  takemura Absolute pointing device support.
- Wsmouse_input() get new argument 'flag', which indicates whether x/y/z are
relative or absolute.
- Wsmouse get new io controls, WSMOUSEIO_SCALIBCOORDS and
WSMOUSEIO_GCALIBCOORDS.
 1.5 26-Oct-1999  drochner allow to wildcard the serial channel
 1.4 19-Sep-1999  drochner branches: 1.4.2; 1.4.4; 1.4.6;
set odd parity for the serial line
(done by directly setting zilog chip control bits -- there should be
a zs_set_frame() or so in z8530sc.c)
fixes PR port-alpha/8423 by Konrad Schroder <perseant@hhhh.org>
 1.3 03-Feb-1999  mycroft Catch up with a change to the stint interface.
 1.2 22-Oct-1998  nisimura - General cleanups for NWSCONS zskbd.c and zsms.c Comments for
future improvement work.
 1.1 22-Oct-1998  briggs wscons mouse interface for DEC mice off the Zilog SCC.
Ported from dev/sun/ms.c by Takuya Koumoto <takuya-k@is.aist-nara.ac.jp>.
 1.4.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.4.1 15-Nov-1999  fvdl Sync with -current
 1.4.2.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck, and commit Makefile which
I forgot in the batch of commits.

RSS XML Feed