Home | History | Annotate | only in /src/sys/arch/hpcmips/tx
History log of /src/sys/arch/hpcmips/tx
RevisionDateAuthorComments
 1.45 26-Mar-2014  christos - kill sprintf
- fix unused
 1.44 02-Dec-2011  shattered branches: 1.44.8; 1.44.12;
PR/32394 -- Don't define 'panic' label unconditionally, or "minimal
mobilepro 780 kernel configuration will not build".

OK by wiz@
 1.43 26-Feb-2011  tsutsui branches: 1.43.4;
Explicitly include <mips/locore.h> for wbflush().
 1.42 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
(XXX don't know how to deal with use of spllower in sleep/pause code so
hpcmips kernel will fail to compile).
 1.41 21-Jan-2010  pooka branches: 1.41.4; 1.41.6; 1.41.8;
Move arch-local variable to a better namespace to make build again.
 1.40 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.39 28-Apr-2008  martin branches: 1.39.8; 1.39.14; 1.39.18;
Remove clause 3 and 4 from TNF licenses
 1.38 08-Mar-2007  he branches: 1.38.40; 1.38.42; 1.38.44;
Due to pointer arithmetic and comparison, it appears to be least
invasive to convert three local variables from void* to char*.
 1.37 05-Mar-2007  dogcow semimechanically convert 'void foo' -> 'void *foo', as part of the continuing
caddr_t fallout.
 1.36 04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.35 24-Dec-2005  perry branches: 1.35.26;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.34 11-Dec-2005  christos merge ktrace-lwp.
 1.33 15-Jul-2003  lukem branches: 1.33.16;
__KERNEL_RCSID()
 1.32 02-Apr-2003  thorpej branches: 1.32.2;
Use PAGE_SIZE rather than NBPG.
 1.31 31-Jan-2002  uch clean up header file.
 1.30 29-Jan-2002  uch clean up debug print and configuration.
 1.29 05-Jan-2002  uch fix memory size calcuration bug.
 1.28 02-Jan-2002  uch fix memory probe sequence.
fix bootstrap stack violation. (code are moved to machdep.c)
 1.27 23-Sep-2001  uch branches: 1.27.4;
improve interrupt response.
 1.26 17-Sep-2001  uch clean up "mainbus" related code.
 1.25 16-Sep-2001  uch rearrange struct platform@sysconf.h suitable for hpcmips.
overhaul hpcmips/hpcmips/. no actual changes.
 1.24 15-Sep-2001  uch switch from splvec to ipl_sr_bits.
 1.23 14-Jun-2001  uch branches: 1.23.2; 1.23.4;
ANSI KNF. and change my copyright to TNF copyright.
 1.22 13-Jun-2001  uch (TX39) switch from TX local I/O manager to hpcio
 1.21 12-Apr-2001  thorpej splvec.splimp -> splvec.splvm
 1.20 22-Oct-2000  uch branches: 1.20.2; 1.20.4;
new I/O modules framework for TX based system.
 1.19 27-Jul-2000  cgd convert PRID handling to use macros on an int, not bit-fields.
there's no reason to use bit-fields, and they just complexity to
the header.
 1.18 22-May-2000  uch debug frame buffer draw routines moved to video_subr.c.
plumvideo also use it.
 1.17 21-May-2000  uch recognize 32MByte D-RAM.
 1.16 24-Apr-2000  uch code clean up.
 1.15 11-Apr-2000  uch sync with new mips trap.c
 1.14 21-Feb-2000  shin support non-contiguous memory.
patch from Mycroft <root@ihack.net> and uch@netbsd.org.
tested hardware:
VR4121 IBM WorkPad z50 (48MB, 16MB)
VR4121 NEC Mobile Gear II MC/R730
TX3912 Compaq C-series 810 (20MB), 2010c (20MB, 16MB)
TX3922 Sharp Telios HC-AJ2 (32MB)
 1.13 10-Feb-2000  sato add machine model name to cpu_model.
 1.12 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.11 12-Jan-2000  uch add UCB1200 sound module ucbsnd (core implementation only)
UCB1200 touch panel module moved to ucbtp and sync with vrpiu.
 1.10 07-Jan-2000  uch p7416buf and tc5165buf are merged.
 1.9 03-Jan-2000  uch Change tx_poll_establish implementation and interface.
 1.8 22-Dec-1999  uch branches: 1.8.2;
Implement TX3912/22 clock/timer module.
 1.7 12-Dec-1999  uch remove unreferrenced header file.
 1.6 12-Dec-1999  uch Telios keyboard support.
 1.5 08-Dec-1999  uch sync with skbd.
 1.4 02-Dec-1999  uch remove nonrequired include file line (fb.h)
 1.3 29-Nov-1999  uch tx39.c (tx_cons_init): fb_cnattach moved to tx3912video.c (tx3912video_attach):
 1.2 28-Nov-1999  takemura Add new device vrdsu, with which we can hard reset the VR41xx CPU.
Why don't you try shutdown comand with option '-r ?
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.8.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.2.1 22-Dec-1999  wrstuden file tx39.c was added on branch wrstuden-devbsize on 1999-12-27 18:32:10 +0000
 1.20.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.20.2.3 21-Apr-2001  bouyer Sync with HEAD
 1.20.2.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.20.2.1 22-Oct-2000  bouyer file tx39.c was added on branch thorpej_scsipi on 2000-11-20 20:47:12 +0000
 1.23.4.1 01-Oct-2001  fvdl Catch up with -current.
 1.23.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.23.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.27.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.27.4.2 11-Jan-2002  nathanw More catchup.
 1.27.4.1 23-Sep-2001  nathanw file tx39.c was added on branch nathanw_sa on 2002-01-11 23:38:25 +0000
 1.32.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.32.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.32.2.1 03-Aug-2004  skrll Sync with HEAD
 1.33.16.2 03-Sep-2007  yamt sync with head.
 1.33.16.1 21-Jun-2006  yamt sync with head.
 1.35.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.38.44.3 11-Mar-2010  yamt sync with head
 1.38.44.2 04-May-2009  yamt sync with head.
 1.38.44.1 16-May-2008  yamt sync with head.
 1.38.42.1 18-May-2008  yamt sync with head.
 1.38.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.39.18.2 29-Dec-2010  matt Adapt to the new interrupt framework.
(XXX hpcmips still has calls to _spllower which are not supported.)
 1.39.18.1 01-Feb-2010  matt fix fallout from frame/trapframe merger.
 1.39.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.39.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.41.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.41.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.41.4.1 05-Mar-2011  rmind sync with head
 1.43.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.43.4.1 17-Apr-2012  yamt sync with head
 1.44.12.1 18-May-2014  rmind sync with head
 1.44.8.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.49 26-Feb-2025  andvar Fix typos in comments, mainly s/calcurate/calculate/.
 1.48 09-Aug-2021  andvar branches: 1.48.10;
fix various typos in comments and messages.
 1.47 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.46 24-Apr-2021  thorpej branches: 1.46.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.45 11-Jul-2016  matt branches: 1.45.32;
Use pmap_kenter flags to create cached/uncached entries.
#include <mips/locore.h> when appropriate
 1.44 09-Jul-2016  skrll KNF
 1.43 07-Jun-2014  he branches: 1.43.4;
Remove set-but-not-used variable bit8.
 1.42 27-Oct-2012  chs branches: 1.42.10;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.41 27-Jan-2012  para branches: 1.41.6;
converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch

releng@ acknowledged
 1.40 14-Mar-2009  dsl branches: 1.40.12; 1.40.16;
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.39 28-Apr-2008  martin branches: 1.39.8; 1.39.14;
Remove clause 3 and 4 from TNF licenses
 1.38 04-Mar-2007  christos branches: 1.38.40; 1.38.42; 1.38.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.37 11-Dec-2005  christos branches: 1.37.26;
merge ktrace-lwp.
 1.36 12-Dec-2004  abs branches: 1.36.10;
Fix comments regarding configration bounaries
 1.35 13-Nov-2003  chs eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed. however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors. most of
the callers of uvm_useracc() make the above incorrect assumption. the
rest are all misguided optimizations, which optimize for the case
where an operation will fail. we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors. since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
 1.34 15-Jul-2003  lukem __KERNEL_RCSID()
 1.33 02-Oct-2002  thorpej branches: 1.33.6;
Use CFATTACH_DECL().
 1.32 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.31 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.30 08-Jun-2002  yamt constify.
 1.29 08-Jun-2002  yamt make auto const variables static.
 1.28 13-Apr-2002  takemura branches: 1.28.2;
Fixed dev/hpc/hpcfb.c to set RI_BSWAP flag in 8bpp for rasops8.c
and backout changes 'fix LCD byte-order setting':
arch/hpcsh/dev/hd64461/hd64461video.c Rev. 1.7 to 1.8
arch/hpcmips/dev/plumvideo.c Rev. 1.23 to 1.24
arch/hpcmips/tx/tx3912video.c Rev. 1.24 to 1.25
 1.27 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.26 06-Mar-2002  uch don't attach bivideo.
 1.25 19-Feb-2002  uch fix LCD byte-order setting.
 1.24 29-Jan-2002  uch clean up debug print and configuration.
 1.23 14-Jun-2001  uch branches: 1.23.2; 1.23.8;
ANSI KNF. and change my copyright to TNF copyright.
 1.22 22-Feb-2001  uch branches: 1.22.2;
hpc common files are moved to dev/hpc.
 1.21 03-Dec-2000  takemura Change hf_baseaddr usage. Now it potins frame buffer start address instead
of hf_baseadd + hf_offset. You should use hf_baseaddr only in kernel and
you should use hf_offset only with mmap system call from userland.
 1.20 22-Oct-2000  uch branches: 1.20.2;
forgot to set HPCFB_ACCESS_REVERSE.
 1.19 22-Oct-2000  uch reverse color support.
 1.18 04-Oct-2000  uch experimental power management support for TX3912/TX3922 based model.
 1.17 29-Jun-2000  mrg remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.16 26-Jun-2000  simonb Change the kernel mmap interface so that the offset to map is an
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".

Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
 1.15 22-May-2000  uch branches: 1.15.4;
debug frame buffer draw routines moved to video_subr.c.
plumvideo also use it.
 1.14 12-May-2000  uch fix CLUT index bug.
 1.13 10-May-2000  uch #undef'ed debug routine.
 1.12 08-May-2000  uch implement 8bpp CLUT of Plum2, TX3912 video module.
 1.11 02-May-2000  uch add ioctl, mmap.
hpcfb directly attach to tx3912video and plumvideo. (no longer use bivideo)
XXX CLUT
 1.10 24-Apr-2000  uch code clean up.
 1.9 03-Apr-2000  sato - virtual TEXT vram implimentation.
- optimize scroll.
- hardware accelerator hooking mechanism (initianly, maybe change..)
- multiscreen (some bugs, so currently disabled)
- if you want disable above codes, #define HPCFB_DISABLE.
 1.8 13-Mar-2000  uch sync with hpcfb.
 1.7 07-Jan-2000  uch 4bit greyscale mode currently disabled. (change to 2bit greyscale)
 1.6 06-Jan-2000  uch add debug draw routines.
 1.5 03-Jan-2000  uch clean up boot message.
 1.4 23-Dec-1999  uch branches: 1.4.2;
Off LCD power when serial console.
 1.3 12-Dec-1999  uch code clean up.
 1.2 29-Nov-1999  uch tx39.c (tx_cons_init): fb_cnattach moved to tx3912video.c (tx3912video_attach):
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.4.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.2.1 23-Dec-1999  wrstuden file tx3912video.c was added on branch wrstuden-devbsize on 1999-12-27 18:32:10 +0000
 1.15.4.1 30-Jun-2000  simonb Pull up mmap paddr_t/off_t changes from trunk.
 1.20.2.4 12-Mar-2001  bouyer Sync with HEAD.
 1.20.2.3 08-Dec-2000  bouyer Sync with HEAD.
 1.20.2.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.20.2.1 22-Oct-2000  bouyer file tx3912video.c was added on branch thorpej_scsipi on 2000-11-20 20:47:13 +0000
 1.22.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.23.8.6 18-Oct-2002  nathanw Catch up to -current.
 1.23.8.5 20-Jun-2002  nathanw Catch up to -current.
 1.23.8.4 17-Apr-2002  nathanw Catch up to -current.
 1.23.8.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.23.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.23.8.1 14-Jun-2001  nathanw file tx3912video.c was added on branch nathanw_sa on 2002-02-28 04:10:01 +0000
 1.23.2.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.23.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.23.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.23.2.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.28.2.1 14-Jul-2002  gehenna catch up with -current.
 1.33.6.5 24-Jan-2005  skrll Adapt to branch.
 1.33.6.4 18-Dec-2004  skrll Sync with HEAD.
 1.33.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.33.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.33.6.1 03-Aug-2004  skrll Sync with HEAD
 1.36.10.2 03-Sep-2007  yamt sync with head.
 1.36.10.1 21-Jun-2006  yamt sync with head.
 1.37.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.38.44.2 04-May-2009  yamt sync with head.
 1.38.44.1 16-May-2008  yamt sync with head.
 1.38.42.1 18-May-2008  yamt sync with head.
 1.38.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.39.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.39.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.40.16.1 18-Feb-2012  mrg merge to -current.
 1.40.12.2 30-Oct-2012  yamt sync with head
 1.40.12.1 17-Apr-2012  yamt sync with head
 1.41.6.3 03-Dec-2017  jdolecek update from HEAD
 1.41.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.41.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.42.10.1 10-Aug-2014  tls Rebase.
 1.43.4.2 05-Oct-2016  skrll Sync with HEAD
 1.43.4.1 09-Jul-2016  skrll Sync with HEAD
 1.45.32.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.46.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.48.10.1 02-Aug-2025  perseant Sync with HEAD
 1.6 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.5 14-Jun-2001  uch branches: 1.5.8; 1.5.126; 1.5.128; 1.5.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.4 12-May-2000  uch branches: 1.4.6; 1.4.8;
fix CLUT index bug.
 1.3 08-May-2000  uch implement 8bpp CLUT of Plum2, TX3912 video module.
 1.2 07-Jan-2000  uch 4bit greyscale mode currently disabled. (change to 2bit greyscale)
 1.1 20-Nov-1999  uch branches: 1.1.2;
Toshiba TX3912/3922 internal modules.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.8.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.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.4.6.1 12-May-2000  bouyer file tx3912videoreg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:13 +0000
 1.5.130.1 16-May-2008  yamt sync with head.
 1.5.128.1 18-May-2008  yamt sync with head.
 1.5.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.5.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.5.8.1 14-Jun-2001  uch file tx3912videoreg.h was added on branch nathanw_sa on 2001-06-14 11:09:56 +0000
 1.7 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.6 14-Jun-2001  uch branches: 1.6.8; 1.6.126; 1.6.128; 1.6.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.5 08-May-2000  uch branches: 1.5.6; 1.5.8;
implement 8bpp CLUT of Plum2, TX3912 video module.
 1.4 24-Apr-2000  uch code clean up.
 1.3 06-Jan-2000  uch add debug draw routines.
 1.2 12-Dec-1999  uch branches: 1.2.2;
code clean up.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.2.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.5.8.1 21-Jun-2001  nathanw Catch up to -current.
 1.5.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.5.6.1 08-May-2000  bouyer file tx3912videovar.h was added on branch thorpej_scsipi on 2000-11-20 20:47:14 +0000
 1.6.130.1 16-May-2008  yamt sync with head.
 1.6.128.1 18-May-2008  yamt sync with head.
 1.6.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.6.8.1 14-Jun-2001  uch file tx3912videovar.h was added on branch nathanw_sa on 2001-06-14 11:09:56 +0000
 1.18 10-Sep-2023  andvar rewrite old style tx39biu_dump function declaration
and constify char *rowsel[], char *colsel[].

fixes TX39BIU_DEBUG enabled build.
 1.17 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.16 24-Apr-2021  thorpej branches: 1.16.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.15 27-Oct-2012  chs branches: 1.15.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.14 14-Mar-2009  dsl branches: 1.14.12; 1.14.22;
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.13 28-Apr-2008  martin branches: 1.13.8; 1.13.14;
Remove clause 3 and 4 from TNF licenses
 1.12 24-Jan-2007  hubertf branches: 1.12.44; 1.12.46; 1.12.48;
Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
 1.11 07-Mar-2006  he branches: 1.11.10;
Remove unused ISSET macro.
 1.10 11-Dec-2005  christos branches: 1.10.4; 1.10.6; 1.10.8; 1.10.10;
merge ktrace-lwp.
 1.9 15-Jul-2003  lukem branches: 1.9.16;
__KERNEL_RCSID()
 1.8 02-Oct-2002  thorpej branches: 1.8.6;
Use CFATTACH_DECL().
 1.7 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.6 29-Jan-2002  uch clean up debug print and configuration.
 1.5 14-Jun-2001  uch branches: 1.5.2; 1.5.8;
ANSI KNF. and change my copyright to TNF copyright.
 1.4 22-Oct-2000  uch branches: 1.4.2; 1.4.4;
new I/O modules framework for TX based system.
 1.3 26-Dec-1999  uch branches: 1.3.2;
clean up.
 1.2 12-Dec-1999  uch update comment.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.3.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.2.1 26-Dec-1999  wrstuden file tx39biu.c was added on branch wrstuden-devbsize on 1999-12-27 18:32:11 +0000
 1.4.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.2.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.4.2.1 22-Oct-2000  bouyer file tx39biu.c was added on branch thorpej_scsipi on 2000-11-20 20:47:15 +0000
 1.5.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.5.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.5.8.1 14-Jun-2001  nathanw file tx39biu.c was added on branch nathanw_sa on 2002-02-28 04:10:01 +0000
 1.5.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.5.2.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.8.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.8.6.1 03-Aug-2004  skrll Sync with HEAD
 1.9.16.2 26-Feb-2007  yamt sync with head.
 1.9.16.1 21-Jun-2006  yamt sync with head.
 1.10.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.10.8.1 13-Mar-2006  yamt sync with head.
 1.10.6.1 22-Apr-2006  simonb Sync with head.
 1.10.4.1 09-Sep-2006  rpaulo sync with head
 1.11.10.1 01-Feb-2007  ad Sync with head.
 1.12.48.2 04-May-2009  yamt sync with head.
 1.12.48.1 16-May-2008  yamt sync with head.
 1.12.46.1 18-May-2008  yamt sync with head.
 1.12.44.1 02-Jun-2008  mjf Sync with HEAD.
 1.13.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.13.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.14.22.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.14.12.1 30-Oct-2012  yamt sync with head
 1.15.52.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.16.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.6 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.5 11-Dec-2005  christos branches: 1.5.74; 1.5.76; 1.5.78;
merge ktrace-lwp.
 1.4 30-Jul-2005  nakayama Add LCD and battery control support for Sharp Telios series.
 1.3 14-Jun-2001  uch branches: 1.3.8; 1.3.24; 1.3.38; 1.3.40;
ANSI KNF. and change my copyright to TNF copyright.
 1.2 31-Dec-1999  uch branches: 1.2.6; 1.2.8;
Fix MCS3 address.
 1.1 20-Nov-1999  uch branches: 1.1.2;
Toshiba TX3912/3922 internal modules.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.8.1 21-Jun-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 31-Dec-1999  bouyer file tx39biureg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:15 +0000
 1.3.40.1 21-Jun-2006  yamt sync with head.
 1.3.38.1 04-Aug-2005  tron Pull up revision 1.4 (requested by nakayama in ticket #637):
Add LCD and battery control support for Sharp Telios series.
 1.3.24.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.3.8.1 14-Jun-2001  uch file tx39biureg.h was added on branch nathanw_sa on 2001-06-14 11:09:56 +0000
 1.5.78.1 16-May-2008  yamt sync with head.
 1.5.76.1 18-May-2008  yamt sync with head.
 1.5.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 11-Dec-2005  christos branches: 1.4.74; 1.4.76; 1.4.78;
merge ktrace-lwp.
 1.3 30-Jul-2005  nakayama Add LCD and battery control support for Sharp Telios series.
 1.2 14-Jun-2001  uch branches: 1.2.8; 1.2.24; 1.2.38; 1.2.40;
ANSI KNF. and change my copyright to TNF copyright.
 1.1 20-Nov-1999  uch branches: 1.1.2; 1.1.8; 1.1.10;
Toshiba TX3912/3922 internal modules.
 1.1.10.1 21-Jun-2001  nathanw Catch up to -current.
 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 tx39biuvar.h was added on branch thorpej_scsipi on 2000-11-20 20:47:16 +0000
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.40.1 21-Jun-2006  yamt sync with head.
 1.2.38.1 04-Aug-2005  tron Pull up revision 1.3 (requested by nakayama in ticket #637):
Add LCD and battery control support for Sharp Telios series.
 1.2.24.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.2.8.1 14-Jun-2001  uch file tx39biuvar.h was added on branch nathanw_sa on 2001-06-14 11:09:56 +0000
 1.4.78.1 16-May-2008  yamt sync with head.
 1.4.76.1 18-May-2008  yamt sync with head.
 1.4.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.27 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.26 08-Aug-2011  matt branches: 1.26.2; 1.26.12;
Global inlines are not allowed.
 1.25 16-Mar-2011  tsutsui Fix device_t/softc confusion.
(currently harmless since they are not split yet)
 1.24 16-Mar-2011  tsutsui Some KNF.
 1.23 28-Apr-2008  martin branches: 1.23.22; 1.23.28;
Remove clause 3 and 4 from TNF licenses
 1.22 04-Jan-2008  ad branches: 1.22.6; 1.22.8; 1.22.10;
Need sys/device.h
 1.21 16-Sep-2006  gdamore branches: 1.21.30; 1.21.36; 1.21.44;
Convert hpcmips to TODR and timecounters. Ok jun@.
 1.20 16-Jun-2006  gdamore branches: 1.20.4;
Rename local variable "time" to "mytime" to avoid a conflict with a kernel
global. Makes it compile again. :-)
 1.19 24-Dec-2005  perry branches: 1.19.4; 1.19.8; 1.19.14; 1.19.16;
__asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
 1.18 11-Dec-2005  christos merge ktrace-lwp.
 1.17 07-Jun-2005  he branches: 1.17.2;
Rename cpuspeed to cpu_speed as parammeter in tx39clock_cpuspeed() to
avoid shadowing warning.
 1.16 30-Dec-2003  shin initialize sc_epoch and RTC properly when reboot/resume.
Addresses PR/20091.
 1.15 26-Sep-2003  simonb Avoid multi-line strings.
 1.14 15-Jul-2003  lukem __KERNEL_RCSID()
 1.13 02-Oct-2002  thorpej branches: 1.13.6;
Use CFATTACH_DECL().
 1.12 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.11 29-Jan-2002  uch branches: 1.11.10;
clean up debug print and configuration.
 1.10 18-Sep-2001  uch branches: 1.10.4;
remove dev/dec/clockvar.h from hpcmips source tree.
 1.9 14-Jun-2001  uch branches: 1.9.2; 1.9.4;
ANSI KNF. and change my copyright to TNF copyright.
 1.8 22-Oct-2000  uch branches: 1.8.2; 1.8.4;
new I/O modules framework for TX based system.
 1.7 01-Oct-2000  uch don't reset RTC in tx39clock_set()
 1.6 28-Sep-2000  uch fix tx39clock_alarm_refill bug.
 1.5 03-Jan-2000  uch Change tx_poll_establish implementation and interface.
 1.4 23-Dec-1999  uch branches: 1.4.2;
Fix tx39clock_get bug.
 1.3 22-Dec-1999  uch Implement TX3912/22 clock/timer module.
 1.2 07-Dec-1999  uch clean up boot message.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.4.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.2.1 23-Dec-1999  wrstuden file tx39clock.c was added on branch wrstuden-devbsize on 1999-12-27 18:32:11 +0000
 1.8.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.8.2.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.8.2.1 22-Oct-2000  bouyer file tx39clock.c was added on branch thorpej_scsipi on 2000-11-20 20:47:17 +0000
 1.9.4.1 01-Oct-2001  fvdl Catch up with -current.
 1.9.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.9.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.9.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.10.4.3 18-Oct-2002  nathanw Catch up to -current.
 1.10.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.10.4.1 18-Sep-2001  nathanw file tx39clock.c was added on branch nathanw_sa on 2002-02-28 04:10:01 +0000
 1.11.10.1 12-Mar-2004  jmc Pullup rev 1.16 (requested by shin in ticket #1588)

Initialize sc_epoch and RTC properly when reboot/resume.
 1.13.6.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.13.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.13.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.13.6.1 03-Aug-2004  skrll Sync with HEAD
 1.17.2.3 21-Jan-2008  yamt sync with head
 1.17.2.2 30-Dec-2006  yamt sync with head.
 1.17.2.1 21-Jun-2006  yamt sync with head.
 1.19.16.1 13-Jul-2006  gdamore Merge from HEAD.
 1.19.14.1 19-Jun-2006  chap Sync with head.
 1.19.8.1 26-Jun-2006  yamt sync with head.
 1.19.4.1 09-Sep-2006  rpaulo sync with head
 1.20.4.1 18-Nov-2006  ad Sync with head.
 1.21.44.1 08-Jan-2008  bouyer Sync with HEAD
 1.21.36.1 18-Feb-2008  mjf Sync with HEAD.
 1.21.30.1 09-Jan-2008  matt sync with HEAD
 1.22.10.1 16-May-2008  yamt sync with head.
 1.22.8.1 18-May-2008  yamt sync with head.
 1.22.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.23.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.23.22.1 21-Apr-2011  rmind sync with head
 1.26.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.26.2.1 30-Oct-2012  yamt sync with head
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 28-Sep-2000  uch branches: 1.2.2; 1.2.128; 1.2.130; 1.2.132;
fix tx39clock_alarm_refill bug.
 1.1 20-Nov-1999  uch branches: 1.1.2;
Toshiba TX3912/3922 internal modules.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.132.1 16-May-2008  yamt sync with head.
 1.2.130.1 18-May-2008  yamt sync with head.
 1.2.128.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.2.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.2.1 28-Sep-2000  bouyer file tx39clockreg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:18 +0000
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 28-Sep-2000  uch branches: 1.2.2; 1.2.128; 1.2.130; 1.2.132;
fix tx39clock_alarm_refill bug.
 1.1 03-Jan-2000  uch Change tx_poll_establish implementation and interface.
 1.2.132.1 16-May-2008  yamt sync with head.
 1.2.130.1 18-May-2008  yamt sync with head.
 1.2.128.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.2.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.2.1 28-Sep-2000  bouyer file tx39clockvar.h was added on branch thorpej_scsipi on 2000-11-20 20:47:18 +0000
 1.38 21-Jul-2022  andvar fix typos in comments and log messages, mainly s/intrrupt/interrupt/.
 1.37 21-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.36 10-Nov-2019  chs branches: 1.36.8;
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.35 11-Jul-2015  kamil branches: 1.35.18;
Improve spelling: regsiter -> register

This change is non-functional.

Approved by <riastradh>, <pgoyette>
 1.34 21-Sep-2014  christos branches: 1.34.2;
fix leak.
 1.33 26-Mar-2014  christos branches: 1.33.4;
- kill sprintf
- fix unused
 1.32 27-Oct-2012  chs branches: 1.32.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.31 18-Mar-2011  tsutsui branches: 1.31.4; 1.31.14;
Use vaddr_t for pc instead of uint32_t.
 1.30 26-Feb-2011  tsutsui Mechanically adapt to new interrupt/spl framework. Untested.
 1.29 26-Feb-2011  tsutsui Explicitly include <mips/locore.h> for softint_process().
 1.28 20-Feb-2011  matt Merge forward matt-nb5-mips64
Adapt to new interrupt/spl framework
(XXX don't know how to deal with use of spllower in sleep/pause code so
hpcmips kernel will fail to compile).
 1.27 20-Dec-2010  matt branches: 1.27.2; 1.27.4;
Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
 1.26 15-Nov-2010  uebayasi struct cpu_info * deref needs sys/cpu.h.
 1.25 28-Apr-2008  martin branches: 1.25.18; 1.25.22;
Remove clause 3 and 4 from TNF licenses
 1.24 04-Apr-2008  tsutsui branches: 1.24.2; 1.24.4;
Account ci_idepth in VR_INTR() and TX_INTR, rather than cpu_intr() in
hpcmips/interrupt.c. The latter one is used only on kernels configured for
multiple CPUs (i.e. kernels which have both options VR41XX and TX39XX).

Closes PR port-hpcmips/38139 from Risto Sainio.
 1.23 03-Dec-2007  ad branches: 1.23.14;
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.22 11-Dec-2005  christos branches: 1.22.30; 1.22.48; 1.22.50; 1.22.56;
merge ktrace-lwp.
 1.21 15-Jul-2003  lukem branches: 1.21.16;
__KERNEL_RCSID()
 1.20 02-Oct-2002  thorpej branches: 1.20.6;
Use CFATTACH_DECL().
 1.19 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.18 15-May-2002  uch obsolete intrcnt[].
 1.17 03-May-2002  takemura Fixed debug print.
 1.16 29-Jan-2002  uch clean up debug print and configuration.
 1.15 02-Jan-2002  uch VR41XX/TX3922 common kernel.
 1.14 23-Sep-2001  uch branches: 1.14.4;
improve interrupt response.
 1.13 18-Sep-2001  uch remove dev/dec/clockvar.h from hpcmips source tree.
 1.12 14-Jun-2001  uch branches: 1.12.2; 1.12.4;
ANSI KNF. and change my copyright to TNF copyright.
 1.11 09-May-2001  shin don't define TAILQ_EMPTY here. TAILQ_EMPTY is defined in <sys/queue.h>.
 1.10 22-Oct-2000  uch branches: 1.10.2; 1.10.4;
new I/O modules framework for TX based system.
 1.9 04-Oct-2000  uch experimental power management support for TX3912/TX3922 based model.
 1.8 20-Jul-2000  deberg don't define TAILQ_FOREACH, it's in sys/queue.h now.
 1.7 11-Apr-2000  uch branches: 1.7.4;
sync with new mips trap.c
 1.6 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.5 03-Jan-2000  uch Change tx_poll_establish implementation and interface.
 1.4 23-Dec-1999  uch branches: 1.4.2;
coding style clean up.
 1.3 22-Dec-1999  uch Implement TX3912/22 clock/timer module.
 1.2 07-Dec-1999  uch TX3922, tx39_poll_intr uses stop timer interrupt as sampling interrupt.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.4.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.2.1 23-Dec-1999  wrstuden file tx39icu.c was added on branch wrstuden-devbsize on 1999-12-27 18:32:11 +0000
 1.7.4.1 09-May-2001  he Pull up revisions 1.8, 1.11 (requested by shin):
Remove local queue macro definitions, they're in <sys/queue.h>
now.
 1.10.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.10.2.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.10.2.1 22-Oct-2000  bouyer file tx39icu.c was added on branch thorpej_scsipi on 2000-11-20 20:47:19 +0000
 1.12.4.1 01-Oct-2001  fvdl Catch up with -current.
 1.12.2.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.12.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.12.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.12.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.14.4.5 18-Oct-2002  nathanw Catch up to -current.
 1.14.4.4 20-Jun-2002  nathanw Catch up to -current.
 1.14.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.14.4.2 11-Jan-2002  nathanw More catchup.
 1.14.4.1 23-Sep-2001  nathanw file tx39icu.c was added on branch nathanw_sa on 2002-01-11 23:38:25 +0000
 1.20.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.20.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.20.6.1 03-Aug-2004  skrll Sync with HEAD
 1.21.16.1 07-Dec-2007  yamt sync with head
 1.22.56.1 08-Dec-2007  mjf Sync with HEAD.
 1.22.50.1 09-Jan-2008  matt sync with HEAD
 1.22.48.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.22.30.1 03-Dec-2007  ad Sync with HEAD.
 1.23.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.24.4.1 16-May-2008  yamt sync with head.
 1.24.2.1 18-May-2008  yamt sync with head.
 1.25.22.2 21-Apr-2011  rmind sync with head
 1.25.22.1 05-Mar-2011  rmind sync with head
 1.25.18.1 05-Feb-2010  matt Change to deal with new method of invoking softints. Remove mips/softintr.c
from config files. Fix SYMTAB_SPACE for WGT62V43
 1.27.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.27.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.31.14.3 03-Dec-2017  jdolecek update from HEAD
 1.31.14.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.31.14.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.31.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.31.4.1 30-Oct-2012  yamt sync with head
 1.32.2.1 18-May-2014  rmind sync with head
 1.33.4.1 10-Nov-2014  snj Pull up following revision(s) (requested by maxv in ticket #195):
sys/arch/arm/iomd/iomd_irqhandler.c: revision 1.21
sys/arch/arm/ofw/ofw_irqhandler.c: revision 1.21
sys/arch/atari/atari/intr.c: revision 1.24-1.25
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.14
sys/arch/hpcmips/tx/tx39icu.c: revision 1.34
sys/arch/shark/isa/isa_irqhandler.c: revision 1.27
sys/arch/sparc/sparc/machdep.c: revision 1.327
sys/arch/sparc64/dev/psycho.c: revision 1.119
sys/arch/sparc64/dev/schizo.c: revision 1.32
sys/arch/sparc64/sparc64/machdep.c: revision 1.279
sys/arch/sun68k/sun68k/bus.c: revision 1.22
sys/arch/x86/x86/ipmi.c: revision 1.58
sys/arch/xen/xen/privcmd.c: revision 1.46-1.49
Fix several memory leaks.
 1.34.2.1 22-Sep-2015  skrll Sync with HEAD
 1.35.18.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.36.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 14-Jun-2001  uch branches: 1.4.8; 1.4.126; 1.4.128; 1.4.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.3 04-Oct-2000  uch branches: 1.3.2; 1.3.4;
experimental power management support for TX3912/TX3922 based model.
 1.2 26-Dec-1999  uch branches: 1.2.2;
totaly rewritten.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.2.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.2.1 26-Dec-1999  wrstuden file tx39icureg.h was added on branch wrstuden-devbsize on 1999-12-27 18:32:12 +0000
 1.3.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.2.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.2.1 04-Oct-2000  bouyer file tx39icureg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:20 +0000
 1.4.130.1 16-May-2008  yamt sync with head.
 1.4.128.1 18-May-2008  yamt sync with head.
 1.4.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.4.8.1 14-Jun-2001  uch file tx39icureg.h was added on branch nathanw_sa on 2001-06-14 11:09:56 +0000
 1.24 10-Sep-2023  andvar nix whitespace before semicolon.
 1.23 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.22 06-Jun-2010  dholland branches: 1.22.8; 1.22.18;
Add missing backslash in macro definition in apparently-disused #if branch.
(has been this way since 2001)
From Henning Petersen in PR 42525.
 1.21 28-Apr-2008  martin branches: 1.21.20; 1.21.22;
Remove clause 3 and 4 from TNF licenses
 1.20 08-Mar-2006  christos branches: 1.20.64; 1.20.66; 1.20.68;
rename ISSET to ISBITSET.
 1.19 07-Mar-2006  he Conditionally undefine ISSET before defining it locally with
different expansion (tests a given bit number).
 1.18 11-Dec-2005  christos branches: 1.18.4; 1.18.6; 1.18.8; 1.18.10;
merge ktrace-lwp.
 1.17 01-Jul-2004  uch branches: 1.17.12;
<space>,<tab> clean up.
 1.16 15-Jul-2003  lukem __KERNEL_RCSID()
 1.15 02-Oct-2002  thorpej branches: 1.15.6;
Use CFATTACH_DECL().
 1.14 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.13 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.12 06-Mar-2002  uch make this compile with DIAGNOSTIC
 1.11 29-Jan-2002  uch clean up debug print and configuration.
 1.10 28-Jan-2002  uch make this compile without DIAGNOSTIC.
 1.9 14-Jun-2001  uch branches: 1.9.2; 1.9.8;
ANSI KNF. and change my copyright to TNF copyright.
 1.8 13-Jun-2001  uch (TX39) switch from TX local I/O manager to hpcio
 1.7 22-Oct-2000  uch branches: 1.7.2; 1.7.4;
new I/O modules framework for TX based system.
 1.6 04-Oct-2000  uch experimental power management support for TX3912/TX3922 based model.
 1.5 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.4 09-Jan-2000  uch fix TX39IO port debug routine bug. (TX3912)
 1.3 23-Dec-1999  uch branches: 1.3.2;
Add TX39IO_MFIOOUTPORT_OFF option (debugging use)
 1.2 07-Dec-1999  uch clean up boot message.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.3.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.2.1 23-Dec-1999  wrstuden file tx39io.c was added on branch wrstuden-devbsize on 1999-12-27 18:32:12 +0000
 1.7.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.7.2.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.7.2.1 22-Oct-2000  bouyer file tx39io.c was added on branch thorpej_scsipi on 2000-11-20 20:47:21 +0000
 1.9.8.4 18-Oct-2002  nathanw Catch up to -current.
 1.9.8.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.9.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.9.8.1 14-Jun-2001  nathanw file tx39io.c was added on branch nathanw_sa on 2002-02-28 04:10:02 +0000
 1.9.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.9.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.9.2.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.15.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.15.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.15.6.1 03-Aug-2004  skrll Sync with HEAD
 1.17.12.1 21-Jun-2006  yamt sync with head.
 1.18.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.18.8.1 13-Mar-2006  yamt sync with head.
 1.18.6.1 22-Apr-2006  simonb Sync with head.
 1.18.4.1 09-Sep-2006  rpaulo sync with head
 1.20.68.2 11-Aug-2010  yamt sync with head.
 1.20.68.1 16-May-2008  yamt sync with head.
 1.20.66.1 18-May-2008  yamt sync with head.
 1.20.64.1 02-Jun-2008  mjf Sync with HEAD.
 1.21.22.1 03-Jul-2010  rmind sync with head
 1.21.20.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.22.18.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.22.8.1 30-Oct-2012  yamt sync with head
 1.6 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.5 11-Dec-2005  christos branches: 1.5.74; 1.5.76; 1.5.78;
merge ktrace-lwp.
 1.4 07-Jun-2005  he Sprinkle some const around to make these files compile with -Wcast-qual.
 1.3 22-Oct-2000  uch branches: 1.3.2; 1.3.26;
new I/O modules framework for TX based system.
 1.2 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.1 20-Nov-1999  uch branches: 1.1.2;
Toshiba TX3912/3922 internal modules.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.26.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.2.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.2.1 22-Oct-2000  bouyer file tx39ioreg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:22 +0000
 1.5.78.1 16-May-2008  yamt sync with head.
 1.5.76.1 18-May-2008  yamt sync with head.
 1.5.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.5 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.4 28-Apr-2008  martin branches: 1.4.34; 1.4.44;
Remove clause 3 and 4 from TNF licenses
 1.3 13-Jun-2001  uch branches: 1.3.8; 1.3.126; 1.3.128; 1.3.130;
(TX39) switch from TX local I/O manager to hpcio
 1.2 22-Oct-2000  uch branches: 1.2.2; 1.2.4;
new I/O modules framework for TX based system.
 1.1 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.2.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.2.2.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.2.1 22-Oct-2000  bouyer file tx39iovar.h was added on branch thorpej_scsipi on 2000-11-20 20:47:23 +0000
 1.3.130.1 16-May-2008  yamt sync with head.
 1.3.128.1 18-May-2008  yamt sync with head.
 1.3.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.8.2 13-Jun-2001  uch (TX39) switch from TX local I/O manager to hpcio
 1.3.8.1 13-Jun-2001  uch file tx39iovar.h was added on branch nathanw_sa on 2001-06-13 19:09:09 +0000
 1.4.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.4.34.1 30-Oct-2012  yamt sync with head
 1.11 10-Sep-2023  andvar tx39ir(4): rewrite code to use DPRINTF definition from debug.h.
custom one had wrong vrpiu_debug variable in if block (likely copy pasta)
debug code also calls dbg_bitmask_print(), thus was failing to build.
remove unneeded #undef TX39IRDEBUG.

Fixes TX39IRDEBUG build (tested with hpcmips TX3912 kernel config).
 1.10 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.9 28-Apr-2008  martin branches: 1.9.34; 1.9.44;
Remove clause 3 and 4 from TNF licenses
 1.8 11-Dec-2005  christos branches: 1.8.74; 1.8.76; 1.8.78;
merge ktrace-lwp.
 1.7 15-Jul-2003  lukem __KERNEL_RCSID()
 1.6 02-Oct-2002  thorpej branches: 1.6.6;
Use CFATTACH_DECL().
 1.5 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4 29-Jan-2002  uch clean up debug print and configuration.
 1.3 02-Aug-2001  shin branches: 1.3.6;
make this file compilable without TX39IRDEBUG.
 1.2 14-Jun-2001  uch branches: 1.2.2;
ANSI KNF. and change my copyright to TNF copyright.
 1.1 13-Jan-2000  uch branches: 1.1.6; 1.1.8;
TX39 IR module (connected to TX39 UARTB module)
 1.1.8.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.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.1.6.1 13-Jan-2000  bouyer file tx39ir.c was added on branch thorpej_scsipi on 2000-11-20 20:47:24 +0000
 1.2.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.2.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.2.2.1 03-Aug-2001  lukem update to -current
 1.3.6.3 18-Oct-2002  nathanw Catch up to -current.
 1.3.6.2 28-Feb-2002  nathanw Catch up to -current.
 1.3.6.1 02-Aug-2001  nathanw file tx39ir.c was added on branch nathanw_sa on 2002-02-28 04:10:02 +0000
 1.6.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.6.1 03-Aug-2004  skrll Sync with HEAD
 1.8.78.1 16-May-2008  yamt sync with head.
 1.8.76.1 18-May-2008  yamt sync with head.
 1.8.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.9.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.9.34.1 30-Oct-2012  yamt sync with head
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 14-Jun-2001  uch branches: 1.2.8; 1.2.126; 1.2.128; 1.2.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.1 13-Jan-2000  uch branches: 1.1.6; 1.1.8;
TX39 IR module (connected to TX39 UARTB module)
 1.1.8.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.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.1.6.1 13-Jan-2000  bouyer file tx39irreg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:25 +0000
 1.2.130.1 16-May-2008  yamt sync with head.
 1.2.128.1 18-May-2008  yamt sync with head.
 1.2.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.2.8.1 14-Jun-2001  uch file tx39irreg.h was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000
 1.4 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.3 28-Apr-2008  martin branches: 1.3.34; 1.3.44;
Remove clause 3 and 4 from TNF licenses
 1.2 14-Jun-2001  uch branches: 1.2.8; 1.2.126; 1.2.128; 1.2.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.1 13-Jan-2000  uch branches: 1.1.6; 1.1.8;
TX39 IR module (connected to TX39 UARTB module)
 1.1.8.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.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.1.6.1 13-Jan-2000  bouyer file tx39irvar.h was added on branch thorpej_scsipi on 2000-11-20 20:47:25 +0000
 1.2.130.1 16-May-2008  yamt sync with head.
 1.2.128.1 18-May-2008  yamt sync with head.
 1.2.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.2.8.1 14-Jun-2001  uch file tx39irvar.h was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000
 1.3.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.3.34.1 30-Oct-2012  yamt sync with head
 1.21 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.20 12-Feb-2012  matt branches: 1.20.6;
Change old-style function defintions to C89 prototypes.

Approved by releng.
 1.19 28-Apr-2008  martin branches: 1.19.34; 1.19.38;
Remove clause 3 and 4 from TNF licenses
 1.18 26-Jan-2008  tsutsui branches: 1.18.6; 1.18.8; 1.18.10;
Make these TX39xx stuff compile without "-mips2" option.
TX39xx has a sync instruction, but it doesn't support all mips2 instructions.
 1.17 24-Mar-2006  tsutsui branches: 1.17.12; 1.17.28; 1.17.38; 1.17.44;
Remove unused #define TX39POWERDEBUG. Closes PR port-hpcmips/30039.
 1.16 07-Mar-2006  he branches: 1.16.2;
Remove local ISSET macro definition.
 1.15 24-Dec-2005  perry branches: 1.15.4; 1.15.6; 1.15.8; 1.15.10;
__asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
 1.14 11-Dec-2005  christos merge ktrace-lwp.
 1.13 15-Jul-2003  lukem branches: 1.13.16;
__KERNEL_RCSID()
 1.12 02-Oct-2002  thorpej branches: 1.12.6;
Use CFATTACH_DECL().
 1.11 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.10 29-Jan-2002  uch clean up debug print and configuration.
 1.9 14-Jun-2001  uch branches: 1.9.2; 1.9.8;
ANSI KNF. and change my copyright to TNF copyright.
 1.8 22-Oct-2000  uch branches: 1.8.2; 1.8.4;
new I/O modules framework for TX based system.
 1.7 04-Oct-2000  uch experimental power management support for TX3912/TX3922 based model.
 1.6 22-May-2000  uch debug frame buffer draw routines moved to video_subr.c.
plumvideo also use it.
 1.5 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.4 03-Jan-2000  uch Change tx_poll_establish implementation and interface.
 1.3 12-Dec-1999  uch branches: 1.3.2;
set stop timer interval.
 1.2 07-Dec-1999  uch TX3922, tx39_poll_intr uses stop timer interrupt as sampling interrupt.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.3.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.8.2.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.8.2.1 22-Oct-2000  bouyer file tx39power.c was added on branch thorpej_scsipi on 2000-11-20 20:47:26 +0000
 1.9.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.9.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.9.8.1 14-Jun-2001  nathanw file tx39power.c was added on branch nathanw_sa on 2002-02-28 04:10:02 +0000
 1.9.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.9.2.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.12.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.12.6.1 03-Aug-2004  skrll Sync with HEAD
 1.13.16.2 04-Feb-2008  yamt sync with head.
 1.13.16.1 21-Jun-2006  yamt sync with head.
 1.15.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.15.8.2 01-Apr-2006  yamt sync with head.
 1.15.8.1 13-Mar-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.2.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.17.44.1 18-Feb-2008  mjf Sync with HEAD.
 1.17.38.1 23-Mar-2008  matt sync with HEAD
 1.17.28.1 03-Jun-2008  skrll Sync with netbsd-4.
 1.17.12.1 22-Feb-2008  bouyer Pull up following revision(s) (requested by tsutsui in ticket #1065):
sys/arch/mips/mips/locore_mips1.S: revision 1.64
sys/arch/hpcmips/conf/TX3912: revision 1.68
sys/arch/hpcmips/conf/TX3922: revision 1.80
sys/arch/hpcmips/conf/GENERIC: revision 1.199
sys/arch/hpcmips/tx/tx39power.c: revision 1.18
sys/arch/mips/mips/cache_tx39.c: revision 1.6
Make these TX39xx stuff compile without "-mips2" option.
TX39xx has a sync instruction, but it doesn't support all mips2 instructions.
Add "-mdivide-breaks" to CPUFLAGS in GENERIC, and
use "-march=r3900" for CPUFLAGS in TX3912 and TX3922.
 1.18.10.1 16-May-2008  yamt sync with head.
 1.18.8.1 18-May-2008  yamt sync with head.
 1.18.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.19.38.1 18-Feb-2012  mrg merge to -current.
 1.19.34.2 30-Oct-2012  yamt sync with head
 1.19.34.1 17-Apr-2012  yamt sync with head
 1.20.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 14-Jun-2001  uch branches: 1.4.8; 1.4.126; 1.4.128; 1.4.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.3 22-Oct-2000  uch branches: 1.3.2; 1.3.4;
new I/O modules framework for TX based system.
 1.2 04-Oct-2000  uch experimental power management support for TX3912/TX3922 based model.
 1.1 20-Nov-1999  uch branches: 1.1.2;
Toshiba TX3912/3922 internal modules.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.2.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.2.1 22-Oct-2000  bouyer file tx39powerreg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:26 +0000
 1.4.130.1 16-May-2008  yamt sync with head.
 1.4.128.1 18-May-2008  yamt sync with head.
 1.4.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.4.8.1 14-Jun-2001  uch file tx39powerreg.h was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 14-Jun-2001  uch branches: 1.2.8; 1.2.126; 1.2.128; 1.2.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.1 20-Nov-1999  uch branches: 1.1.2; 1.1.8; 1.1.10;
Toshiba TX3912/3922 internal modules.
 1.1.10.1 21-Jun-2001  nathanw Catch up to -current.
 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 tx39reg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:26 +0000
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.130.1 16-May-2008  yamt sync with head.
 1.2.128.1 18-May-2008  yamt sync with head.
 1.2.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.2.8.1 14-Jun-2001  uch file tx39reg.h was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000
 1.24 10-Sep-2023  andvar rewrite tx39sib debug code to use debug.h DPRINTF definition.
also debug code uses dbg_bitmask_print(), thus build fails without the header.

fixes TX39SIBDEBUG enabled build.
 1.23 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.22 24-Apr-2021  thorpej branches: 1.22.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.21 27-Oct-2012  chs branches: 1.21.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.20 28-Apr-2008  martin branches: 1.20.34; 1.20.44;
Remove clause 3 and 4 from TNF licenses
 1.19 24-Dec-2005  perry branches: 1.19.74; 1.19.76; 1.19.78;
__asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
 1.18 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.17 11-Dec-2005  christos merge ktrace-lwp.
 1.16 26-Aug-2005  drochner s/locdesc_t/int/g
 1.15 30-Jun-2005  drochner branches: 1.15.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.14 15-Jul-2003  lukem __KERNEL_RCSID()
 1.13 01-Jan-2003  thorpej branches: 1.13.2;
Use aprint_normal() for cfprint routines.
 1.12 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.11 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.10 27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.9 29-Jan-2002  uch clean up debug print and configuration.
 1.8 14-Jun-2001  uch branches: 1.8.2; 1.8.8;
ANSI KNF. and change my copyright to TNF copyright.
 1.7 22-Oct-2000  uch branches: 1.7.2; 1.7.4;
new I/O modules framework for TX based system.
 1.6 12-Mar-2000  uch change debug message.
 1.5 04-Mar-2000  uch adjust SIBSCLK to 9.216MHz (TX3922)
 1.4 03-Mar-2000  uch add device file interface for UCB1200
 1.3 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.2 12-Jan-2000  uch add UCB1200 sound module ucbsnd (core implementation only)
UCB1200 touch panel module moved to ucbtp and sync with vrpiu.
 1.1 08-Jan-2000  uch TX3912 touch panel support
TX3912 SIB module + ADC part of UCB1200 (companion chip of TX3912)
 1.7.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.7.2.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.7.2.1 22-Oct-2000  bouyer file tx39sib.c was added on branch thorpej_scsipi on 2000-11-20 20:47:27 +0000
 1.8.8.4 03-Jan-2003  thorpej Sync with HEAD.
 1.8.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.8.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.8.8.1 14-Jun-2001  nathanw file tx39sib.c was added on branch nathanw_sa on 2002-02-28 04:10:02 +0000
 1.8.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.8.2.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.13.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.13.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.13.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.13.2.1 03-Aug-2004  skrll Sync with HEAD
 1.15.2.1 21-Jun-2006  yamt sync with head.
 1.19.78.1 16-May-2008  yamt sync with head.
 1.19.76.1 18-May-2008  yamt sync with head.
 1.19.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.20.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.20.34.1 30-Oct-2012  yamt sync with head
 1.21.52.6 05-Apr-2021  thorpej config_match() -> config_probe() for the straight-forward indirect config
cases. There are still a few odd balls using config_match() which should
be sorted out later.
 1.21.52.5 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.21.52.4 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.21.52.3 21-Mar-2021  thorpej CFARG_IATTR usage audit:

If a device carries only one interface attribute, there is no need
to specify it when calling config_search(); that specification is
meant only to disambiguate which interface attribute (which is a
proxy for "what kind of attach args are being used") is having
children attached. cfparent_match() will take care of ensuring that
any potential children can attach to one of the parent's iterface
attributes, and if the parent only carries one, no disambiguation is
necessary.
 1.21.52.2 20-Mar-2021  thorpej Don't pass the autoconfig print routine as the aux pointer to the
indirect search routine. That argument slot is meant for "attach
args" structures, not function pointers. Besides, no one actually
used it anyway.
 1.21.52.1 20-Mar-2021  thorpej The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
tag-value variadic arguments that can be passed to the various
config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
Noticed several incorrect usages along the way, which will be
audited in a future commit.
 1.22.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 14-Jun-2001  uch branches: 1.3.8; 1.3.126; 1.3.128; 1.3.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.2 03-Mar-2000  uch branches: 1.2.6; 1.2.8;
add device file interface for UCB1200
 1.1 08-Jan-2000  uch TX3912 touch panel support
TX3912 SIB module + ADC part of UCB1200 (companion chip of TX3912)
 1.2.8.1 21-Jun-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 03-Mar-2000  bouyer file tx39sibreg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:32 +0000
 1.3.130.1 16-May-2008  yamt sync with head.
 1.3.128.1 18-May-2008  yamt sync with head.
 1.3.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.3.8.1 14-Jun-2001  uch file tx39sibreg.h was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000
 1.5 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.4 28-Apr-2008  martin branches: 1.4.34; 1.4.44;
Remove clause 3 and 4 from TNF licenses
 1.3 14-Jun-2001  uch branches: 1.3.8; 1.3.126; 1.3.128; 1.3.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.2 12-Jan-2000  uch branches: 1.2.6; 1.2.8;
add UCB1200 sound module ucbsnd (core implementation only)
UCB1200 touch panel module moved to ucbtp and sync with vrpiu.
 1.1 08-Jan-2000  uch TX3912 touch panel support
TX3912 SIB module + ADC part of UCB1200 (companion chip of TX3912)
 1.2.8.1 21-Jun-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 12-Jan-2000  bouyer file tx39sibvar.h was added on branch thorpej_scsipi on 2000-11-20 20:47:33 +0000
 1.3.130.1 16-May-2008  yamt sync with head.
 1.3.128.1 18-May-2008  yamt sync with head.
 1.3.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.3.8.1 14-Jun-2001  uch file tx39sibvar.h was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000
 1.4.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.4.34.1 30-Oct-2012  yamt sync with head
 1.7 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.6 24-Apr-2021  thorpej branches: 1.6.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.5 27-Oct-2012  chs branches: 1.5.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.4 11-Dec-2005  christos branches: 1.4.112; 1.4.122;
merge ktrace-lwp.
 1.3 26-Aug-2005  drochner branches: 1.3.6;
s/locdesc_t/int/g
 1.2 30-Jun-2005  drochner branches: 1.2.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.1 04-May-2005  hamajima branches: 1.1.2; 1.1.4;
OptPoint on Telios HC-AJ2 (and maybe AJ1) support
 1.1.4.2 16-May-2005  riz Pull up revision 1.1 (requested by hamajima in ticket #1500):
OptPoint on Telios HC-AJ2 (and maybe AJ1) support
 1.1.4.1 04-May-2005  riz file tx39spi.c was added on branch netbsd-2 on 2005-05-16 21:05:26 +0000
 1.1.2.2 07-May-2005  tron Pull up revision 1.1 (requested by hamajima in ticket #247):
OptPoint on Telios HC-AJ2 (and maybe AJ1) support
 1.1.2.1 04-May-2005  tron file tx39spi.c was added on branch netbsd-3 on 2005-05-07 11:34:57 +0000
 1.2.2.1 21-Jun-2006  yamt sync with head.
 1.3.6.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.6.1 26-Aug-2005  skrll file tx39spi.c was added on branch ktrace-lwp on 2005-11-10 13:56:27 +0000
 1.4.122.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.4.112.1 30-Oct-2012  yamt sync with head
 1.5.52.6 05-Apr-2021  thorpej config_match() -> config_probe() for the straight-forward indirect config
cases. There are still a few odd balls using config_match() which should
be sorted out later.
 1.5.52.5 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.5.52.4 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.5.52.3 21-Mar-2021  thorpej CFARG_IATTR usage audit:

If a device carries only one interface attribute, there is no need
to specify it when calling config_search(); that specification is
meant only to disambiguate which interface attribute (which is a
proxy for "what kind of attach args are being used") is having
children attached. cfparent_match() will take care of ensuring that
any potential children can attach to one of the parent's iterface
attributes, and if the parent only carries one, no disambiguation is
necessary.
 1.5.52.2 20-Mar-2021  thorpej Don't pass the autoconfig print routine as the aux pointer to the
indirect search routine. That argument slot is meant for "attach
args" structures, not function pointers. Besides, no one actually
used it anyway.
 1.5.52.1 20-Mar-2021  thorpej The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
tag-value variadic arguments that can be passed to the various
config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
Noticed several incorrect usages along the way, which will be
audited in a future commit.
 1.6.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 14-Jun-2001  uch branches: 1.2.8; 1.2.126; 1.2.128; 1.2.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.1 20-Nov-1999  uch branches: 1.1.2; 1.1.8; 1.1.10;
Toshiba TX3912/3922 internal modules.
 1.1.10.1 21-Jun-2001  nathanw Catch up to -current.
 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 tx39spireg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:33 +0000
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.130.1 16-May-2008  yamt sync with head.
 1.2.128.1 18-May-2008  yamt sync with head.
 1.2.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.2.8.1 14-Jun-2001  uch file tx39spireg.h was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 04-May-2005  hamajima branches: 1.1.2; 1.1.4; 1.1.12;
OptPoint on Telios HC-AJ2 (and maybe AJ1) support
 1.1.12.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.12.1 04-May-2005  skrll file tx39spivar.h was added on branch ktrace-lwp on 2005-11-10 13:56:27 +0000
 1.1.4.2 16-May-2005  riz Pull up revision 1.1 (requested by hamajima in ticket #1500):
OptPoint on Telios HC-AJ2 (and maybe AJ1) support
 1.1.4.1 04-May-2005  riz file tx39spivar.h was added on branch netbsd-2 on 2005-05-16 21:05:26 +0000
 1.1.2.2 07-May-2005  tron Pull up revision 1.1 (requested by hamajima in ticket #247):
OptPoint on Telios HC-AJ2 (and maybe AJ1) support
 1.1.2.1 04-May-2005  tron file tx39spivar.h was added on branch netbsd-3 on 2005-05-07 11:34:57 +0000
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 28-Sep-2000  uch branches: 1.4.2; 1.4.128; 1.4.130; 1.4.132;
fix tx39clock_alarm_refill bug.
 1.3 03-Jan-2000  uch Change tx_poll_establish implementation and interface.
 1.2 22-Dec-1999  uch branches: 1.2.2;
Implement TX3912/22 clock/timer module.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.2.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.2.1 22-Dec-1999  wrstuden file tx39timerreg.h was added on branch wrstuden-devbsize on 1999-12-27 18:32:13 +0000
 1.4.132.1 16-May-2008  yamt sync with head.
 1.4.130.1 18-May-2008  yamt sync with head.
 1.4.128.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.2.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.4.2.1 28-Sep-2000  bouyer file tx39timerreg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:34 +0000
 1.17 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.16 24-Apr-2021  thorpej branches: 1.16.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.15 27-Oct-2012  chs branches: 1.15.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.14 28-Apr-2008  martin branches: 1.14.34; 1.14.44;
Remove clause 3 and 4 from TNF licenses
 1.13 11-Dec-2005  christos branches: 1.13.74; 1.13.76; 1.13.78;
merge ktrace-lwp.
 1.12 26-Aug-2005  drochner s/locdesc_t/int/g
 1.11 30-Jun-2005  drochner branches: 1.11.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.10 15-Jul-2003  lukem __KERNEL_RCSID()
 1.9 01-Jan-2003  thorpej branches: 1.9.2;
Use aprint_normal() for cfprint routines.
 1.8 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.7 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.6 27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.5 29-Jan-2002  uch clean up debug print and configuration.
 1.4 22-Oct-2000  uch branches: 1.4.2; 1.4.6; 1.4.10;
new I/O modules framework for TX based system.
 1.3 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.2 07-Dec-1999  uch branches: 1.2.2;
clean up boot message.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.2.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.10.3 03-Jan-2003  thorpej Sync with HEAD.
 1.4.10.2 18-Oct-2002  nathanw Catch up to -current.
 1.4.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.4.6.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.4.6.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.4.2.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.4.2.1 22-Oct-2000  bouyer file tx39uart.c was added on branch thorpej_scsipi on 2000-11-20 20:47:35 +0000
 1.9.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.9.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.9.2.1 03-Aug-2004  skrll Sync with HEAD
 1.11.2.1 21-Jun-2006  yamt sync with head.
 1.13.78.1 16-May-2008  yamt sync with head.
 1.13.76.1 18-May-2008  yamt sync with head.
 1.13.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.14.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.14.34.1 30-Oct-2012  yamt sync with head
 1.15.52.6 05-Apr-2021  thorpej config_match() -> config_probe() for the straight-forward indirect config
cases. There are still a few odd balls using config_match() which should
be sorted out later.
 1.15.52.5 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.15.52.4 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.15.52.3 21-Mar-2021  thorpej CFARG_IATTR usage audit:

If a device carries only one interface attribute, there is no need
to specify it when calling config_search(); that specification is
meant only to disambiguate which interface attribute (which is a
proxy for "what kind of attach args are being used") is having
children attached. cfparent_match() will take care of ensuring that
any potential children can attach to one of the parent's iterface
attributes, and if the parent only carries one, no disambiguation is
necessary.
 1.15.52.2 20-Mar-2021  thorpej Don't pass the autoconfig print routine as the aux pointer to the
indirect search routine. That argument slot is meant for "attach
args" structures, not function pointers. Besides, no one actually
used it anyway.
 1.15.52.1 20-Mar-2021  thorpej The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
tag-value variadic arguments that can be passed to the various
config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
Noticed several incorrect usages along the way, which will be
audited in a future commit.
 1.16.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 14-Jun-2001  uch branches: 1.2.8; 1.2.126; 1.2.128; 1.2.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.1 20-Nov-1999  uch branches: 1.1.2; 1.1.8; 1.1.10;
Toshiba TX3912/3922 internal modules.
 1.1.10.1 21-Jun-2001  nathanw Catch up to -current.
 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 tx39uartreg.h was added on branch thorpej_scsipi on 2000-11-20 20:47:36 +0000
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.130.1 16-May-2008  yamt sync with head.
 1.2.128.1 18-May-2008  yamt sync with head.
 1.2.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.2.8.1 14-Jun-2001  uch file tx39uartreg.h was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 14-Jun-2001  uch branches: 1.2.8; 1.2.126; 1.2.128; 1.2.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.1 20-Nov-1999  uch branches: 1.1.2; 1.1.8; 1.1.10;
Toshiba TX3912/3922 internal modules.
 1.1.10.1 21-Jun-2001  nathanw Catch up to -current.
 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 tx39uartvar.h was added on branch thorpej_scsipi on 2000-11-20 20:47:36 +0000
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.130.1 16-May-2008  yamt sync with head.
 1.2.128.1 18-May-2008  yamt sync with head.
 1.2.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.2.8.1 14-Jun-2001  uch file tx39uartvar.h was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000
 1.14 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.13 11-Dec-2005  christos branches: 1.13.74; 1.13.76; 1.13.78;
merge ktrace-lwp.
 1.12 12-Dec-2004  abs Fix comments regarding configration bounaries
 1.11 23-Jun-2003  martin branches: 1.11.2;
Make sure to include opt_foo.h if a defflag option FOO is used.
 1.10 29-Jan-2002  uch clean up debug print and configuration.
 1.9 13-Jun-2001  uch branches: 1.9.2; 1.9.8;
(TX39) switch from TX local I/O manager to hpcio
 1.8 22-Oct-2000  uch branches: 1.8.2; 1.8.4;
new I/O modules framework for TX based system.
 1.7 04-Oct-2000  uch experimental power management support for TX3912/TX3922 based model.
 1.6 22-May-2000  uch debug frame buffer draw routines moved to video_subr.c.
plumvideo also use it.
 1.5 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.4 12-Jan-2000  uch add UCB1200 sound module ucbsnd (core implementation only)
UCB1200 touch panel module moved to ucbtp and sync with vrpiu.
 1.3 03-Jan-2000  uch Change tx_poll_establish implementation and interface.
 1.2 22-Dec-1999  uch branches: 1.2.2;
Implement TX3912/22 clock/timer module.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.2.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.2.1 22-Dec-1999  wrstuden file tx39var.h was added on branch wrstuden-devbsize on 1999-12-27 18:32:13 +0000
 1.8.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.8.2.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.8.2.1 22-Oct-2000  bouyer file tx39var.h was added on branch thorpej_scsipi on 2000-11-20 20:47:37 +0000
 1.9.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.9.8.1 13-Jun-2001  nathanw file tx39var.h was added on branch nathanw_sa on 2002-02-28 04:10:02 +0000
 1.9.2.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.11.2.1 18-Dec-2004  skrll Sync with HEAD.
 1.13.78.1 16-May-2008  yamt sync with head.
 1.13.76.1 18-May-2008  yamt sync with head.
 1.13.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.53 23-Sep-2024  andvar s/dicipline/discipline/ in debug message.
 1.52 07-Aug-2021  thorpej branches: 1.52.12;
Merge thorpej-cfargs2.
 1.51 24-Apr-2021  thorpej branches: 1.51.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.50 21-Nov-2020  thorpej branches: 1.50.2;
malloc(9) -> kmem(9)
 1.49 15-Nov-2014  christos branches: 1.49.32;
centralize the call unit / dialout macros
 1.48 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.47 16-Mar-2014  dholland branches: 1.47.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.46 27-Oct-2012  chs branches: 1.46.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.45 24-Apr-2011  rmind branches: 1.45.4; 1.45.14;
Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency. Remove some unnecessary malloc.h inclusions as well.
 1.44 20-Jul-2010  tsutsui branches: 1.44.2;
Replace callout(9) with softint(9) which is more appropriate there.
Inspired by PR port-hpcmips/43472 and tested by Risto Sainio.
 1.43 16-Jul-2010  tsutsui Fix a wrong arg for callout_reset(9) in txcom_txintr(). PR port-hpcmips/43474
 1.42 16-Jul-2010  tsutsui Add missing callout_init(9) calls. PR port-hpcmips/43472
 1.41 14-Mar-2009  dsl branches: 1.41.2; 1.41.4;
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.40 12-Jun-2008  tsutsui branches: 1.40.4; 1.40.6; 1.40.10;
Use device_lookup_private() to get softc.
 1.39 28-Apr-2008  martin branches: 1.39.2; 1.39.4;
Remove clause 3 and 4 from TNF licenses
 1.38 19-Nov-2007  ad branches: 1.38.14; 1.38.16; 1.38.18;
- Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
 1.37 04-Mar-2007  christos branches: 1.37.2; 1.37.18; 1.37.20; 1.37.24; 1.37.26;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.36 22-Feb-2007  thorpej TRUE -> true, FALSE -> false
 1.35 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.34 01-Oct-2006  elad branches: 1.34.4;
More from Matt Fleming:

Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
 1.33 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.32 01-Oct-2006  elad Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks!
 1.31 23-Jul-2006  ad branches: 1.31.4; 1.31.6;
Use the LWP cached credentials where sane.
 1.30 14-May-2006  elad integrate kauth.
 1.29 28-Mar-2006  thorpej Use device_unit().
 1.28 07-Mar-2006  he branches: 1.28.2;
Remove another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
 1.27 24-Dec-2005  perry branches: 1.27.4; 1.27.6; 1.27.8; 1.27.10;
__asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
 1.26 11-Dec-2005  christos merge ktrace-lwp.
 1.25 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.24 12-Jun-2004  uch branches: 1.24.12;
When serial console boot, don't find power supply port from
config_hook. Windows CE already power on it, and config_hook is not
initialized yet.
 1.23 26-Dec-2003  shin initialize variable 'err' properly.
found by gcc -Wuninitialized.
 1.22 15-Jul-2003  lukem __KERNEL_RCSID()
 1.21 21-Mar-2003  nakayama branches: 1.21.2;
Follow a struct consdev changes.
Pointed out by Tsuyoshi AKIHO in the port-hpcmips-ja mailing list.
 1.20 23-Oct-2002  jdolecek 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.19 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.18 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.17 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.16 17-Mar-2002  atatat branches: 1.16.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.15 29-Jan-2002  uch clean up debug print and configuration.
 1.14 14-Jun-2001  uch branches: 1.14.2; 1.14.4; 1.14.8;
ANSI KNF. and change my copyright to TNF copyright.
 1.13 13-Jun-2001  uch (TX39) switch from TX local I/O manager to hpcio
 1.12 02-May-2001  scw Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.
 1.11 04-Jan-2001  sato branches: 1.11.2;
make compilable.
 1.10 02-Nov-2000  eeh branches: 1.10.2;
Adapt to the new line discipline scheme.
 1.9 22-Oct-2000  uch new I/O modules framework for TX based system.
 1.8 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.7 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.6 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.5 13-Jan-2000  uch TX39 IR module (connected to TX39 UARTB module)
 1.4 06-Jan-2000  uch change overrun interrupt treatment.
 1.3 26-Dec-1999  uch branches: 1.3.2;
totaly rewritten.
 1.2 23-Dec-1999  uch Detect overrun interrupt. and add spl.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.3.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.2.1 26-Dec-1999  wrstuden file txcom.c was added on branch wrstuden-devbsize on 1999-12-27 18:32:13 +0000
 1.10.2.4 05-Jan-2001  bouyer Sync with HEAD
 1.10.2.3 22-Nov-2000  bouyer Sync with HEAD.
 1.10.2.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.10.2.1 02-Nov-2000  bouyer file txcom.c was added on branch thorpej_scsipi on 2000-11-20 20:47:38 +0000
 1.11.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.14.8.6 11-Nov-2002  nathanw Catch up to -current
 1.14.8.5 18-Oct-2002  nathanw Catch up to -current.
 1.14.8.4 17-Sep-2002  nathanw Catch up to -current.
 1.14.8.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.14.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.14.8.1 14-Jun-2001  nathanw file txcom.c was added on branch nathanw_sa on 2002-02-28 04:10:02 +0000
 1.14.4.2 13-Oct-2001  fvdl Revert the t_dev -> t_devvp change in struct tty. The way that tty
structs are currently used (especially by console ttys) aren't
ready for it, and this will require quite a few changes.
 1.14.4.1 10-Oct-2001  fvdl Convert all remaining devices.
 1.14.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.14.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.14.2.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.16.4.1 19-May-2002  gehenna Add device switch.
Replace the access to devsw table and the hard-coded majors with devsw API.
 1.21.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.21.2.4 24-Jan-2005  skrll Adapt to branch.
 1.21.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.21.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.21.2.1 03-Aug-2004  skrll Sync with HEAD
 1.24.12.5 07-Dec-2007  yamt sync with head
 1.24.12.4 03-Sep-2007  yamt sync with head.
 1.24.12.3 26-Feb-2007  yamt sync with head.
 1.24.12.2 30-Dec-2006  yamt sync with head.
 1.24.12.1 21-Jun-2006  yamt sync with head.
 1.27.10.4 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.27.10.3 19-Apr-2006  elad sync with head - hopefully this will work
 1.27.10.2 10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.27.10.1 08-Mar-2006  elad Adapt to kernel authorization KPI.

I expect *some* lossage here...
 1.27.8.4 11-Aug-2006  yamt sync with head
 1.27.8.3 24-May-2006  yamt sync with head.
 1.27.8.2 01-Apr-2006  yamt sync with head.
 1.27.8.1 13-Mar-2006  yamt sync with head.
 1.27.6.2 01-Jun-2006  kardel Sync with head.
 1.27.6.1 22-Apr-2006  simonb Sync with head.
 1.27.4.1 09-Sep-2006  rpaulo sync with head
 1.28.2.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.28.2.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.31.6.1 22-Oct-2006  yamt sync with head
 1.31.4.1 18-Nov-2006  ad Sync with head.
 1.34.4.2 12-Mar-2007  rmind Sync with HEAD.
 1.34.4.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.37.26.1 08-Dec-2007  mjf Sync with HEAD.
 1.37.24.1 21-Nov-2007  bouyer Sync with HEAD
 1.37.20.1 09-Jan-2008  matt sync with HEAD
 1.37.18.1 21-Nov-2007  joerg Sync with HEAD.
 1.37.2.1 03-Dec-2007  ad Sync with HEAD.
 1.38.18.3 11-Aug-2010  yamt sync with head.
 1.38.18.2 04-May-2009  yamt sync with head.
 1.38.18.1 16-May-2008  yamt sync with head.
 1.38.16.2 17-Jun-2008  yamt sync with head.
 1.38.16.1 18-May-2008  yamt sync with head.
 1.38.14.2 29-Jun-2008  mjf Sync with HEAD.
 1.38.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.39.4.1 18-Jun-2008  simonb Sync with head.
 1.39.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.40.10.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.40.6.1 26-Nov-2010  riz Pull up following revision(s) (requested by tsutsui in ticket #1485):
sys/arch/hpcmips/tx/txcom.c: revision 1.42
sys/arch/hpcmips/tx/txcom.c: revision 1.43
Add missing callout_init(9) calls. PR port-hpcmips/43472
Fix a wrong arg for callout_reset(9) in txcom_txintr(). PR port-hpcmips/43474
 1.40.4.1 28-Apr-2009  skrll Sync with HEAD.
 1.41.4.2 31-May-2011  rmind sync with head
 1.41.4.1 05-Mar-2011  rmind sync with head
 1.41.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.44.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.45.14.3 03-Dec-2017  jdolecek update from HEAD
 1.45.14.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.45.14.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.45.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.45.4.1 30-Oct-2012  yamt sync with head
 1.46.2.1 18-May-2014  rmind sync with head
 1.47.2.1 10-Aug-2014  tls Rebase.
 1.49.32.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.50.2.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.51.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.52.12.1 02-Aug-2025  perseant Sync with HEAD
 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.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.21 28-Apr-2008  martin branches: 1.21.34; 1.21.44;
Remove clause 3 and 4 from TNF licenses
 1.20 11-Dec-2005  christos branches: 1.20.74; 1.20.76; 1.20.78;
merge ktrace-lwp.
 1.19 26-Aug-2005  drochner s/locdesc_t/int/g
 1.18 30-Jul-2005  nakayama Add LCD and battery control support for Sharp Telios series.
 1.17 30-Jun-2005  drochner branches: 1.17.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.16 07-Jun-2005  he Sprinkle some const around to make these files compile with -Wcast-qual.
 1.15 15-Jul-2003  lukem branches: 1.15.14;
__KERNEL_RCSID()
 1.14 01-Jan-2003  thorpej branches: 1.14.2;
Use aprint_normal() for cfprint routines.
 1.13 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.12 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.11 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.10 27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.9 27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.8 29-Jan-2002  uch clean up debug print and configuration.
 1.7 02-Dec-2001  uch make this compile again.
 1.6 18-Nov-2001  takemura Rewrite bus stuff with method table in the bus tags.
 1.5 14-Jun-2001  uch branches: 1.5.2; 1.5.8;
ANSI KNF. and change my copyright to TNF copyright.
 1.4 18-Aug-2000  sato branches: 1.4.2; 1.4.4;
- disable warning: add missing argument.
 1.3 07-Dec-1999  uch branches: 1.3.2;
clean up boot message.
 1.2 03-Dec-1999  uch CS:CARD1/CARD2 8bit port support.
 1.1 20-Nov-1999  uch Toshiba TX3912/3922 internal modules.
 1.3.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.2.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.4.2.1 18-Aug-2000  bouyer file txcsbus.c was added on branch thorpej_scsipi on 2000-11-20 20:47:39 +0000
 1.5.8.5 03-Jan-2003  thorpej Sync with HEAD.
 1.5.8.4 18-Oct-2002  nathanw Catch up to -current.
 1.5.8.3 28-Feb-2002  nathanw Catch up to -current.
 1.5.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.5.8.1 14-Jun-2001  nathanw file txcsbus.c was added on branch nathanw_sa on 2002-01-08 00:25:05 +0000
 1.5.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.5.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.5.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.14.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.14.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.14.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.14.2.1 03-Aug-2004  skrll Sync with HEAD
 1.15.14.1 04-Aug-2005  tron Pull up revision 1.18 via patch (requested by nakayama in ticket #637):
Add LCD and battery control support for Sharp Telios series.
 1.17.2.1 21-Jun-2006  yamt sync with head.
 1.20.78.1 16-May-2008  yamt sync with head.
 1.20.76.1 18-May-2008  yamt sync with head.
 1.20.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.21.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.21.34.1 30-Oct-2012  yamt sync with head
 1.22.52.7 05-Apr-2021  thorpej Decorate the problematic config_probe() calls (non-boolean return value)
with XXX.
 1.22.52.6 05-Apr-2021  thorpej config_match() -> config_probe() for the straight-forward indirect config
cases. There are still a few odd balls using config_match() which should
be sorted out later.
 1.22.52.5 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.22.52.4 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.22.52.3 21-Mar-2021  thorpej CFARG_IATTR usage audit:

If a device carries only one interface attribute, there is no need
to specify it when calling config_search(); that specification is
meant only to disambiguate which interface attribute (which is a
proxy for "what kind of attach args are being used") is having
children attached. cfparent_match() will take care of ensuring that
any potential children can attach to one of the parent's iterface
attributes, and if the parent only carries one, no disambiguation is
necessary.
 1.22.52.2 20-Mar-2021  thorpej Don't pass the autoconfig print routine as the aux pointer to the
indirect search routine. That argument slot is meant for "attach
args" structures, not function pointers. Besides, no one actually
used it anyway.
 1.22.52.1 20-Mar-2021  thorpej The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
tag-value variadic arguments that can be passed to the various
config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
Noticed several incorrect usages along the way, which will be
audited in a future commit.
 1.23.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 11-Dec-2005  christos branches: 1.4.74; 1.4.76; 1.4.78;
merge ktrace-lwp.
 1.3 07-Jun-2005  he Sprinkle some const around to make these files compile with -Wcast-qual.
 1.2 14-Jun-2001  uch branches: 1.2.8; 1.2.24;
ANSI KNF. and change my copyright to TNF copyright.
 1.1 20-Nov-1999  uch branches: 1.1.2; 1.1.8; 1.1.10;
Toshiba TX3912/3922 internal modules.
 1.1.10.1 21-Jun-2001  nathanw Catch up to -current.
 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 txcsbusvar.h was added on branch thorpej_scsipi on 2000-11-20 20:47:40 +0000
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.24.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.2.8.1 14-Jun-2001  uch file txcsbusvar.h was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000
 1.4.78.1 16-May-2008  yamt sync with head.
 1.4.76.1 18-May-2008  yamt sync with head.
 1.4.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.12 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.11 24-Apr-2021  thorpej branches: 1.11.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.10 06-Jun-2011  matt branches: 1.10.68;
CFATTACH_DECL(..., sizeof(struct device), -> CFATTACH_DECL_NEW(..., 0
struct device * -> device_t
struct cfdata * -> cfdata_t
use bool when appropriate
some constification
 1.9 28-Apr-2008  martin branches: 1.9.22; 1.9.32;
Remove clause 3 and 4 from TNF licenses
 1.8 11-Dec-2005  christos branches: 1.8.74; 1.8.76; 1.8.78;
merge ktrace-lwp.
 1.7 15-Jul-2003  lukem __KERNEL_RCSID()
 1.6 02-Oct-2002  thorpej branches: 1.6.6;
Use CFATTACH_DECL().
 1.5 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4 29-Jan-2002  uch clean up debug print and configuration.
 1.3 13-Jun-2001  uch branches: 1.3.2; 1.3.8;
(TX39) switch from TX local I/O manager to hpcio
 1.2 22-Oct-2000  uch branches: 1.2.2; 1.2.4;
new I/O modules framework for TX based system.
 1.1 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.2.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.2.2.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.2.1 22-Oct-2000  bouyer file txioman.c was added on branch thorpej_scsipi on 2000-11-20 20:47:40 +0000
 1.3.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.3.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.3.8.1 13-Jun-2001  nathanw file txioman.c was added on branch nathanw_sa on 2002-02-28 04:10:03 +0000
 1.3.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.3.2.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.6.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.6.1 03-Aug-2004  skrll Sync with HEAD
 1.8.78.1 16-May-2008  yamt sync with head.
 1.8.76.1 18-May-2008  yamt sync with head.
 1.8.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.9.32.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.9.22.1 12-Jun-2011  rmind sync with head
 1.10.68.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.11.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 13-Jun-2001  uch (TX39) switch from TX local I/O manager to hpcio
 1.1 22-Oct-2000  uch branches: 1.1.2;
new I/O modules framework for TX based system.
 1.1.2.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.2.1 22-Oct-2000  bouyer file txioman_in.c was added on branch thorpej_scsipi on 2000-11-20 20:47:41 +0000
 1.3 13-Jun-2001  uch (TX39) switch from TX local I/O manager to hpcio
 1.2 24-Apr-2001  uch delete noisy debug message.
 1.1 22-Oct-2000  uch branches: 1.1.2;
new I/O modules framework for TX based system.
 1.1.2.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.2.1 22-Oct-2000  bouyer file txioman_out.c was added on branch thorpej_scsipi on 2000-11-20 20:47:42 +0000
 1.3 13-Jun-2001  uch (TX39) switch from TX local I/O manager to hpcio
 1.2 22-Oct-2000  uch branches: 1.2.2;
new I/O modules framework for TX based system.
 1.1 16-Jan-2000  uch add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.2.2.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.2.1 22-Oct-2000  bouyer file txiomanvar.h was added on branch thorpej_scsipi on 2000-11-20 20:47:43 +0000
 1.19 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.18 24-Apr-2021  thorpej branches: 1.18.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.17 27-Oct-2012  chs branches: 1.17.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.16 28-Apr-2008  martin branches: 1.16.34; 1.16.44;
Remove clause 3 and 4 from TNF licenses
 1.15 11-Dec-2005  christos branches: 1.15.74; 1.15.76; 1.15.78;
merge ktrace-lwp.
 1.14 26-Aug-2005  drochner s/locdesc_t/int/g
 1.13 30-Jun-2005  drochner branches: 1.13.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.12 15-Jul-2003  lukem __KERNEL_RCSID()
 1.11 02-Oct-2002  thorpej branches: 1.11.6;
Use CFATTACH_DECL().
 1.10 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.9 27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.8 27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.7 29-Jan-2002  uch clean up debug print and configuration.
 1.6 02-Jan-2002  uch VR41XX/TX3922 common kernel.
 1.5 14-Jun-2001  uch branches: 1.5.2; 1.5.8;
ANSI KNF. and change my copyright to TNF copyright.
 1.4 18-Apr-2001  sato check platid if 'options VR41XX' and 'options TX39XX' are both defined.
XXX: currently this case is missconfiguration and not compilable.
XXX: because all codes are not supported this case yet.
 1.3 22-Oct-2000  uch branches: 1.3.2; 1.3.4;
new I/O modules framework for TX based system.
 1.2 12-Jan-2000  uch add UCB1200 sound module ucbsnd (core implementation only)
UCB1200 touch panel module moved to ucbtp and sync with vrpiu.
 1.1 20-Nov-1999  uch branches: 1.1.2;
Toshiba TX3912/3922 internal modules.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.2.3 21-Apr-2001  bouyer Sync with HEAD
 1.3.2.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.2.1 22-Oct-2000  bouyer file txsim.c was added on branch thorpej_scsipi on 2000-11-20 20:47:44 +0000
 1.5.8.4 18-Oct-2002  nathanw Catch up to -current.
 1.5.8.3 28-Feb-2002  nathanw Catch up to -current.
 1.5.8.2 11-Jan-2002  nathanw More catchup.
 1.5.8.1 14-Jun-2001  nathanw file txsim.c was added on branch nathanw_sa on 2002-01-11 23:38:25 +0000
 1.5.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.5.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.5.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.11.6.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.11.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.11.6.1 03-Aug-2004  skrll Sync with HEAD
 1.13.2.1 21-Jun-2006  yamt sync with head.
 1.15.78.1 16-May-2008  yamt sync with head.
 1.15.76.1 18-May-2008  yamt sync with head.
 1.15.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.16.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.16.34.1 30-Oct-2012  yamt sync with head
 1.17.52.7 05-Apr-2021  thorpej Decorate the problematic config_probe() calls (non-boolean return value)
with XXX.
 1.17.52.6 05-Apr-2021  thorpej config_match() -> config_probe() for the straight-forward indirect config
cases. There are still a few odd balls using config_match() which should
be sorted out later.
 1.17.52.5 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.17.52.4 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.17.52.3 21-Mar-2021  thorpej CFARG_IATTR usage audit:

If a device carries only one interface attribute, there is no need
to specify it when calling config_search(); that specification is
meant only to disambiguate which interface attribute (which is a
proxy for "what kind of attach args are being used") is having
children attached. cfparent_match() will take care of ensuring that
any potential children can attach to one of the parent's iterface
attributes, and if the parent only carries one, no disambiguation is
necessary.
 1.17.52.2 20-Mar-2021  thorpej Don't pass the autoconfig print routine as the aux pointer to the
indirect search routine. That argument slot is meant for "attach
args" structures, not function pointers. Besides, no one actually
used it anyway.
 1.17.52.1 20-Mar-2021  thorpej The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
tag-value variadic arguments that can be passed to the various
config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
Noticed several incorrect usages along the way, which will be
audited in a future commit.
 1.18.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.6 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.5 11-Dec-2005  christos branches: 1.5.74; 1.5.76; 1.5.78;
merge ktrace-lwp.
 1.4 15-Jul-2003  lukem __KERNEL_RCSID()
 1.3 14-Jun-2001  uch branches: 1.3.8; 1.3.24;
ANSI KNF. and change my copyright to TNF copyright.
 1.2 16-Jan-2000  uch branches: 1.2.6; 1.2.8;
add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.1 12-Jan-2000  uch add UCB1200 sound module ucbsnd (core implementation only)
UCB1200 touch panel module moved to ucbtp and sync with vrpiu.
 1.2.8.1 21-Jun-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 16-Jan-2000  bouyer file txsnd.c was added on branch thorpej_scsipi on 2000-11-20 20:47:45 +0000
 1.3.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.24.1 03-Aug-2004  skrll Sync with HEAD
 1.3.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.3.8.1 14-Jun-2001  uch file txsnd.c was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000
 1.5.78.1 16-May-2008  yamt sync with head.
 1.5.76.1 18-May-2008  yamt sync with head.
 1.5.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 14-Jun-2001  uch branches: 1.3.8; 1.3.126; 1.3.128; 1.3.130;
ANSI KNF. and change my copyright to TNF copyright.
 1.2 16-Jan-2000  uch branches: 1.2.6; 1.2.8;
add platform dependent TX39 UART module hook.
remove delay from tc5165buf interrupt handler.
backlight config_hook.
 1.1 12-Jan-2000  uch add UCB1200 sound module ucbsnd (core implementation only)
UCB1200 touch panel module moved to ucbtp and sync with vrpiu.
 1.2.8.1 21-Jun-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 16-Jan-2000  bouyer file txsnd.h was added on branch thorpej_scsipi on 2000-11-20 20:47:45 +0000
 1.3.130.1 16-May-2008  yamt sync with head.
 1.3.128.1 18-May-2008  yamt sync with head.
 1.3.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.8.2 14-Jun-2001  uch ANSI KNF. and change my copyright to TNF copyright.
 1.3.8.1 14-Jun-2001  uch file txsnd.h was added on branch nathanw_sa on 2001-06-14 11:09:57 +0000

RSS XML Feed