Home | History | Annotate | only in /src/sys/arch/vax/uba
History log of /src/sys/arch/vax/uba
RevisionDateAuthorComments
 1.14 20-Jun-1999  ragge Remove moved files.
 1.13 19-Jan-1999  ragge branches: 1.13.4;
Allocate (almost) all interrupt vectors dynamically. Simplifies much
work when adding support for new machines and devices.
 1.12 13-Apr-1998  ragge t_wopen fixes.
 1.11 24-Jan-1998  ragge Remove __BROKEN_INDIRECT_CONFIG and change all drivers to use
config_search instead.
 1.10 12-Jan-1998  thorpej Update for changes to config.
 1.9 11-Jan-1997  ragge Update due to changes to uba/mscp functions.
 1.8 13-Oct-1996  christos backout previous kprintf change
 1.7 11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.6 02-Sep-1996  mycroft tty stop functions really should return void, not int, and certainly not both.
 1.5 19-May-1996  ragge Update from Ken Wellsch.
 1.4 08-Apr-1996  ragge Added prototypes to everything. Made all files compile with -Wall.
 1.3 18-Mar-1996  ragge Ubareset are now possible, devices that wants it now set it up
during autoconfig. ifubareset (if_reset) no longer used, actually
it's just a normal ubareset and is now handled like that.
 1.2 17-Mar-1996  ragge Update from Ken Wellsch: The DHU driver can now handle DMA transfers.
 1.1 02-Mar-1996  ragge Unibus/Q22 bus device driver for DHU-11 serial card.
Written by Ken Wellsch. (kcwellsc@math.uwaterloo.ca)
 1.13.4.1 01-Jul-1999  thorpej Sync w/ -current.
 1.3 20-Jun-1999  ragge Remove moved files.
 1.2 17-Mar-1996  ragge branches: 1.2.26;
Update from Ken Wellsch: The DHU driver can now handle DMA transfers.
 1.1 02-Mar-1996  ragge Unibus/Q22 bus device driver for DHU-11 serial card.
Written by Ken Wellsch. (kcwellsc@math.uwaterloo.ca)
 1.2.26.1 01-Jul-1999  thorpej Sync w/ -current.
 1.7 20-Jun-1999  ragge Remove moved files.
 1.6 19-Jan-1999  ragge branches: 1.6.4;
Allocate (almost) all interrupt vectors dynamically. Simplifies much
work when adding support for new machines and devices.
 1.5 13-Apr-1998  ragge t_wopen fixes.
 1.4 24-Jan-1998  ragge Remove __BROKEN_INDIRECT_CONFIG and change all drivers to use
config_search instead.
 1.3 12-Jan-1998  thorpej Update for changes to config.
 1.2 05-Oct-1997  thorpej Copyright assigned to The NetBSD Foundation.
 1.1 04-Feb-1997  ragge branches: 1.1.8;
Support for DL11 (-compatible) async ctlr.
Written by Ben Harris (bjh@mail.dotcom.fr).
 1.1.8.1 14-Oct-1997  thorpej Update marc-pcmcia branch from trunk.
 1.6.4.1 01-Jul-1999  thorpej Sync w/ -current.
 1.2 20-Jun-1999  ragge Remove moved files.
 1.1 04-Feb-1997  ragge branches: 1.1.22;
Support for DL11 (-compatible) async ctlr.
Written by Ben Harris (bjh@mail.dotcom.fr).
 1.1.22.1 01-Jul-1999  thorpej Sync w/ -current.
 1.15 20-Jun-1999  ragge Remove moved files.
 1.14 13-Mar-1999  ragge branches: 1.14.4;
Change vsbus to take a locator for all devices.
Figure out interrupt vector/mask on vsbus by forcing all devices to
generate interrupts in the match routine, like on unibus.
 1.13 05-Nov-1998  ragge EGCS fixes.
 1.12 10-Aug-1998  ragge Kickoff xmit interrupts, needed on chip DC7201.
 1.11 04-Jul-1998  jonathan defopt DDB.
 1.10 14-Jun-1998  ragge Add catch function for keyboard.
 1.9 23-May-1998  ragge Fixed bug with lost characters in DDB output.
 1.8 21-May-1998  ragge Support for DDB on DZ console.
 1.7 17-May-1998  ragge Split the DZ11 driver into two parts; can now use the same driver on
both unibus/qbus devices and vaxstations.
 1.6 24-Jan-1998  ragge Remove __BROKEN_INDIRECT_CONFIG and change all drivers to use
config_search instead.
 1.5 12-Jan-1998  thorpej Update for changes to config.
 1.4 13-Oct-1996  christos backout previous kprintf change
 1.3 11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.2 02-Sep-1996  mycroft tty stop functions really should return void, not int, and certainly not both.
 1.1 08-Apr-1996  ragge Drivers for DZ11/DZV11/DZQ11 serial cards.
Written (mostly) by Ken Wellsch.
 1.14.4.1 01-Jul-1999  thorpej Sync w/ -current.
 1.4 20-Jun-1999  ragge Remove moved files.
 1.3 13-Mar-1999  ragge branches: 1.3.4;
Avoid warning if !QBA.
 1.2 19-Jan-1999  ragge Allocate (almost) all interrupt vectors dynamically. Simplifies much
work when adding support for new machines and devices.
 1.1 17-May-1998  ragge Split the DZ11 driver into two parts; can now use the same driver on
both unibus/qbus devices and vaxstations.
 1.3.4.1 01-Jul-1999  thorpej Sync w/ -current.
 1.3 20-Jun-1999  ragge Remove moved files.
 1.2 17-May-1998  ragge branches: 1.2.10;
Split the DZ11 driver into two parts; can now use the same driver on
both unibus/qbus devices and vaxstations.
 1.1 08-Apr-1996  ragge Drivers for DZ11/DZV11/DZQ11 serial cards.
Written (mostly) by Ken Wellsch.
 1.2.10.1 01-Jul-1999  thorpej Sync w/ -current.
 1.4 20-Jun-1999  ragge Remove moved files.
 1.3 13-Mar-1999  ragge branches: 1.3.4;
Change vsbus to take a locator for all devices.
Figure out interrupt vector/mask on vsbus by forcing all devices to
generate interrupts in the match routine, like on unibus.
 1.2 14-Jun-1998  ragge Add catch function for keyboard.
 1.1 17-May-1998  ragge Split the DZ11 driver into two parts; can now use the same driver on
both unibus/qbus devices and vaxstations.
 1.3.4.1 01-Jul-1999  thorpej Sync w/ -current.
 1.3 20-Aug-1996  ragge Use the same device driver for both uda and mtc. Actually, the only
difference is vcid. The unit names must differ, so that it is possible
to distinguish them at autoconf time.
 1.2 20-Jul-1996  ragge CPU determine code. ts driver converted to new config. May work, untested.
 1.1 10-Jul-1996  ragge Remove old (tape-only) tmscp driver. Add new uba/qba driver
for common MSCP routines.
 1.2 20-Aug-1996  ragge Use the same device driver for both uda and mtc. Actually, the only
difference is vcid. The unit names must differ, so that it is possible
to distinguish them at autoconf time.
 1.1 10-Jul-1996  ragge Remove old (tape-only) tmscp driver. Add new uba/qba driver
for common MSCP routines.
 1.16 04-Jun-2000  matt newer version exists in dev/qbus. nuke this one.
 1.15 27-May-2000  thorpej branches: 1.15.2;
sleep() -> tsleep()
 1.14 18-Jan-2000  thorpej iodone() -> biodone()
 1.13 17-Apr-1999  ragge branches: 1.13.2;
Only allocate QDSS memory if there is a QDSS as console.
QDSS should also work on KA650 now. (untested)
 1.12 19-Jan-1999  ragge branches: 1.12.4;
Allocate (almost) all interrupt vectors dynamically. Simplifies much
work when adding support for new machines and devices.
 1.11 01-Jan-1999  ragge Giant change: NBPG now set to 4k and CLSIZE == 1 for vax. This change
made a whole bunch of annoying bugs disappear; mostly depending on
bad use of NBPG in non-MD code. The VAX port was the only port that
used this historical "feature".

The CL* macros should probably go away totally, there is no reason
at all to keep them.
 1.10 29-Nov-1998  ragge the btoc/ctob/btop macros must use CLBYTES, not NBPG. How this should
work in the long run is an open issue; some parts must be reworked
in a MI way.
 1.9 05-Nov-1998  ragge EGCS fixes.
 1.8 04-Jul-1998  jonathan defopt DDB.
 1.7 20-Jun-1998  ragge Don't try to configure QDSS console on KA650 until it's fixed.
 1.6 13-Apr-1998  ragge Wall cleaning.
 1.5 21-Mar-1998  ragge Add support for QDSS graphic console. Code originated from 4.4BSD,
ported to NetBSD by Boris Gjenero <bgjenero@undergrad.math.uwaterloo.ca>
 1.4 13-Oct-1996  christos backout previous kprintf change
 1.3 11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.2 02-Sep-1996  mycroft tty stop functions really should return void, not int, and certainly not both.
 1.1 18-Aug-1996  jonathan Import framebuffer drivers from 4.4-Lite2 as the root for NetBSD drivers.
Only change from Lite (or lite2, qv.c and qd.c do not change) is adding
NetBSD RCS ids.
 1.12.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.13.2.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.15.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.3 04-Jun-2000  matt now in dev/qbus so nuke this version.
 1.2 13-Apr-1998  ragge branches: 1.2.14; 1.2.22;
Wall cleaning.
 1.1 21-Mar-1998  ragge Add support for QDSS graphic console. Code originated from 4.4BSD,
ported to NetBSD by Boris Gjenero <bgjenero@undergrad.math.uwaterloo.ca>
 1.2.22.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.2.14.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.38 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.37 24-Apr-2021  thorpej branches: 1.37.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.36 21-Nov-2020  thorpej branches: 1.36.2;
malloc(9) -> kmem(9)
 1.35 14-Jun-2020  chs branches: 1.35.2;
replace EX_NOWAIT with EX_WAITOK in device attach methods.
remove checks for failures that can no longer occur.
 1.34 14-Mar-2019  thorpej Use copyin(), not fusword().
 1.33 22-May-2017  ragge branches: 1.33.10;
Update copyright notice for Ludd (remove clause 3 & 4).
 1.32 07-Jul-2016  msaitoh KNF. Remove extra spaces. No functional change.
 1.31 05-Jul-2015  matt Revamped QVSS (VCB01) support. (from Charles Dickman)
 1.30 25-Jul-2014  dholland branches: 1.30.4;
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.29 16-Mar-2014  dholland branches: 1.29.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.28 30-Jun-2011  wiz branches: 1.28.2; 1.28.12; 1.28.16;
dependant -> dependent
 1.27 21-Nov-2009  rmind - Use lwp_getpcb() on VAX, clean from struct user usage.
- Include sys/user.h in MD proc.h .
 1.26 26-Oct-2009  cegger kill extra whitespaces
reviewed by tsutsui@
 1.25 18-Mar-2009  cegger bcopy -> memcpy
 1.24 18-Mar-2009  cegger bzero -> memset
 1.23 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.22 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.21 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.20 11-Mar-2008  matt branches: 1.20.4; 1.20.12; 1.20.18;
Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.19 01-Mar-2008  rmind Welcome to 4.99.55:

- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call. It will
indicate which event (POLL_IN, POLL_OUT, etc) happen. If unknown,
zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
 1.18 19-Nov-2007  ad branches: 1.18.10; 1.18.14;
- Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
 1.17 04-Mar-2007  christos branches: 1.17.2; 1.17.18; 1.17.20; 1.17.24; 1.17.26;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.16 26-Nov-2005  thorpej branches: 1.16.26;
Use t_linesw instead of (the non-existent) t_line.
 1.15 13-Feb-2004  wiz branches: 1.15.16; 1.15.24;
Uppercase CPU, plural is CPUs.
 1.14 04-Jan-2004  wiz Spell controller with two ls. Inspired by miod@openbsd.
 1.13 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.12 15-Jul-2003  lukem __KERNEL_RCSID()
 1.11 23-Oct-2002  jdolecek branches: 1.11.6;
merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
 1.10 25-Sep-2002  thorpej Don't include <sys/map.h>.
 1.9 19-Sep-2002  ragge Do not include <sys/clist.h>, it's not used in NetBSD at all.
 1.8 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.7 17-Mar-2002  atatat branches: 1.7.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.6 22-Jul-2001  wiz branches: 1.6.2; 1.6.6;
seperate -> separate
 1.5 02-May-2001  scw branches: 1.5.2;
Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.
 1.4 02-Nov-2000  eeh branches: 1.4.2;
Adapt to new line discipline scheme.
 1.3 01-Jan-1999  ragge branches: 1.3.8;
Giant change: NBPG now set to 4k and CLSIZE == 1 for vax. This change
made a whole bunch of annoying bugs disappear; mostly depending on
bad use of NBPG in non-MD code. The VAX port was the only port that
used this historical "feature".

The CL* macros should probably go away totally, there is no reason
at all to keep them.
 1.2 02-Sep-1996  mycroft tty stop functions really should return void, not int, and certainly not both.
 1.1 18-Aug-1996  jonathan Import framebuffer drivers from 4.4-Lite2 as the root for NetBSD drivers.
Only change from Lite (or lite2, qv.c and qd.c do not change) is adding
NetBSD RCS ids.
 1.3.8.1 22-Nov-2000  bouyer Sync with HEAD.
 1.4.2.1 21-Jun-2001  nathanw Catch up to -current.
 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 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.5.2.1 03-Aug-2001  lukem update to -current
 1.6.6.5 11-Nov-2002  nathanw Catch up to -current
 1.6.6.4 18-Oct-2002  nathanw Catch up to -current.
 1.6.6.3 17-Sep-2002  nathanw Catch up to -current.
 1.6.6.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.6.6.1 22-Jul-2001  nathanw file qv.c was added on branch nathanw_sa on 2002-04-01 07:43:30 +0000
 1.6.2.1 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.7.4.1 17-May-2002  gehenna Add device switch.
 1.11.6.4 11-Dec-2005  christos Sync with head.
 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.15.24.1 29-Nov-2005  yamt sync with head.
 1.15.16.4 17-Mar-2008  yamt sync with head.
 1.15.16.3 07-Dec-2007  yamt sync with head
 1.15.16.2 03-Sep-2007  yamt sync with head.
 1.15.16.1 21-Jun-2006  yamt sync with head.
 1.16.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.17.26.1 08-Dec-2007  mjf Sync with HEAD.
 1.17.24.1 21-Nov-2007  bouyer Sync with HEAD
 1.17.20.2 23-Mar-2008  matt sync with HEAD
 1.17.20.1 09-Jan-2008  matt sync with HEAD
 1.17.18.1 21-Nov-2007  joerg Sync with HEAD.
 1.17.2.1 03-Dec-2007  ad Sync with HEAD.
 1.18.14.1 03-Apr-2008  mjf Sync with HEAD.
 1.18.10.1 24-Mar-2008  keiichi sync with head.
 1.20.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.20.12.1 28-Apr-2009  skrll Sync with HEAD.
 1.20.4.2 11-Mar-2010  yamt sync with head
 1.20.4.1 04-May-2009  yamt sync with head.
 1.28.16.1 18-May-2014  rmind sync with head
 1.28.12.2 03-Dec-2017  jdolecek update from HEAD
 1.28.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.28.2.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.29.2.1 10-Aug-2014  tls Rebase.
 1.30.4.3 28-Aug-2017  skrll Sync with HEAD
 1.30.4.2 09-Jul-2016  skrll Sync with HEAD
 1.30.4.1 22-Sep-2015  skrll Sync with HEAD
 1.33.10.1 10-Jun-2019  christos Sync with HEAD
 1.35.2.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.36.2.2 02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.36.2.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.37.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.1 05-Jul-2015  matt branches: 1.1.2; 1.1.18;
Revamped QVSS (VCB01) support. (from Charles Dickman)
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 05-Jul-2015  jdolecek file qv_ic.h was added on branch tls-maxphys on 2017-12-03 11:36:48 +0000
 1.1.2.2 22-Sep-2015  skrll Sync with HEAD
 1.1.2.1 05-Jul-2015  skrll file qv_ic.h was added on branch nick-nhusb on 2015-09-22 12:05:53 +0000
 1.1 05-Jul-2015  matt branches: 1.1.2; 1.1.18;
Revamped QVSS (VCB01) support. (from Charles Dickman)
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 05-Jul-2015  jdolecek file qvareg.h was added on branch tls-maxphys on 2017-12-03 11:36:48 +0000
 1.1.2.2 22-Sep-2015  skrll Sync with HEAD
 1.1.2.1 05-Jul-2015  skrll file qvareg.h was added on branch nick-nhusb on 2015-09-22 12:05:53 +0000
 1.5 27-Oct-2022  riastradh vax/qvaux(4): Convert to ttylock/ttyunlock.
 1.4 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.3 24-Apr-2021  thorpej branches: 1.3.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.2 07-Jul-2016  msaitoh branches: 1.2.16; 1.2.34;
KNF. Remove extra spaces. No functional change.
 1.1 05-Jul-2015  matt branches: 1.1.2;
Revamped QVSS (VCB01) support. (from Charles Dickman)
 1.1.2.3 09-Jul-2016  skrll Sync with HEAD
 1.1.2.2 22-Sep-2015  skrll Sync with HEAD
 1.1.2.1 05-Jul-2015  skrll file qvaux.c was added on branch nick-nhusb on 2015-09-22 12:05:53 +0000
 1.2.34.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.2.16.2 03-Dec-2017  jdolecek update from HEAD
 1.2.16.1 07-Jul-2016  jdolecek file qvaux.c was added on branch tls-maxphys on 2017-12-03 11:36:48 +0000
 1.3.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 27-Dec-2019  msaitoh s/recevive/receive/ in comment.
 1.1 05-Jul-2015  matt branches: 1.1.2; 1.1.18; 1.1.22;
Revamped QVSS (VCB01) support. (from Charles Dickman)
 1.1.22.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 05-Jul-2015  jdolecek file qvavar.h was added on branch tls-maxphys on 2017-12-03 11:36:48 +0000
 1.1.2.2 22-Sep-2015  skrll Sync with HEAD
 1.1.2.1 05-Jul-2015  skrll file qvavar.h was added on branch nick-nhusb on 2015-09-22 12:05:53 +0000
 1.6 12-Feb-2022  riastradh sys: Omit vestigial struct devices in softcs after device_t split.
 1.5 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.4 24-Apr-2021  thorpej branches: 1.4.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.3 21-Nov-2020  thorpej branches: 1.3.2;
malloc(9) -> kmem(9)
 1.2 10-Nov-2019  chs branches: 1.2.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.1 05-Jul-2015  matt branches: 1.1.2; 1.1.18; 1.1.22;
Revamped QVSS (VCB01) support. (from Charles Dickman)
 1.1.22.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 05-Jul-2015  jdolecek file qvkbd.c was added on branch tls-maxphys on 2017-12-03 11:36:48 +0000
 1.1.2.2 22-Sep-2015  skrll Sync with HEAD
 1.1.2.1 05-Jul-2015  skrll file qvkbd.c was added on branch nick-nhusb on 2015-09-22 12:05:53 +0000
 1.2.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.3.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.4.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.1 05-Jul-2015  matt branches: 1.1.2; 1.1.18;
Revamped QVSS (VCB01) support. (from Charles Dickman)
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 05-Jul-2015  jdolecek file qvkbdvar.h was added on branch tls-maxphys on 2017-12-03 11:36:48 +0000
 1.1.2.2 22-Sep-2015  skrll Sync with HEAD
 1.1.2.1 05-Jul-2015  skrll file qvkbdvar.h was added on branch nick-nhusb on 2015-09-22 12:05:53 +0000
 1.3 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.2 24-Apr-2021  thorpej branches: 1.2.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.1 05-Jul-2015  matt branches: 1.1.2; 1.1.18; 1.1.36;
Revamped QVSS (VCB01) support. (from Charles Dickman)
 1.1.36.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.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 05-Jul-2015  jdolecek file qvms.c was added on branch tls-maxphys on 2017-12-03 11:36:48 +0000
 1.1.2.2 22-Sep-2015  skrll Sync with HEAD
 1.1.2.1 05-Jul-2015  skrll file qvms.c was added on branch nick-nhusb on 2015-09-22 12:05:53 +0000
 1.2.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.13 10-Jul-1996  ragge Remove old (tape-only) tmscp driver. Add new uba/qba driver
for common MSCP routines.
 1.12 08-Apr-1996  ragge Added prototypes to everything. Made all files compile with -Wall.
 1.11 17-Mar-1996  ragge Convert all devices according to the changes to config.
 1.10 02-Mar-1996  ragge Fix some too long delays. Set some structs volatile that otherwise
caused hangs during autoconfig.
 1.9 02-Feb-1996  mycroft Fix #includes.
 1.8 02-Feb-1996  mycroft Fix #includes.
 1.7 13-Dec-1995  ragge MicroVAX III support added.
Dummy match/attach routines for tmscp.
Conversion of uda.c towards new config.
 1.6 30-Nov-1995  jtc merge in changes from 1.1 release branch
 1.5 10-Nov-1995  ragge Dynamic allocate uba_softc and interrupt vectors.
Allow for more that one uba.
 1.4 05-Jul-1995  ragge branches: 1.4.2;
uda/tmscp read/write added.
 1.3 16-Jun-1995  ragge DELAY() moved to common place.
 1.2 30-Mar-1995  ragge Bug fixes of interrupt handlers.
 1.1 23-Feb-1995  ragge Support for uVAXII, new tmscp driver added.
 1.4.2.1 15-Oct-1995  ragge tmscpstrategy() should be of type void.
 1.2 10-Jul-1996  ragge Remove old (tape-only) tmscp driver. Add new uba/qba driver
for common MSCP routines.
 1.1 23-Feb-1995  ragge Support for uVAXII, new tmscp driver added.
 1.37 11-Mar-2008  matt Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.36 15-Feb-2008  ad branches: 1.36.2; 1.36.6;
Give bbusy() an interlock argument. If the we need to wait for the buffer,
the interlock is dropped and reacquired when awoken. This allows for
busying buffers attached to a list that is not locked by bufcache_lock.
 1.35 02-Jan-2008  ad Merge vmlocking2 to head.
 1.34 17-Oct-2007  garbled branches: 1.34.2; 1.34.4; 1.34.8;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.33 29-Jul-2007  ad branches: 1.33.6;
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
 1.32 04-Mar-2007  christos branches: 1.32.2; 1.32.10; 1.32.12; 1.32.14;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.31 28-Mar-2006  thorpej branches: 1.31.14;
Use device_unit().
 1.30 23-Feb-2006  thorpej branches: 1.30.2; 1.30.4; 1.30.6;
Use device_parent().
 1.29 11-Dec-2005  christos branches: 1.29.2; 1.29.4; 1.29.6;
merge ktrace-lwp.
 1.28 17-Nov-2003  wiz branches: 1.28.16;
Various typo fixes from Jonathon Gray via jmc@openbsd.
 1.27 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.26 15-Jul-2003  lukem __KERNEL_RCSID()
 1.25 20-Jan-2003  simonb branches: 1.25.2;
The Double-Semi-Colon Police.
 1.24 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.23 02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.22 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.21 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.20 25-Sep-2002  thorpej Don't include <sys/map.h>.
 1.19 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.18 16-May-2001  matt branches: 1.18.2; 1.18.4; 1.18.8; 1.18.16;
Add a VAXANY type. Eventually to used in INSTALL / GENERIC to easily
include support for all VAX platforms
 1.17 04-Jun-2000  matt branches: 1.17.4;
More event counter stuff. Plus a little cruft cleanup while doing it.
 1.16 27-May-2000  thorpej branches: 1.16.2;
sleep() -> tsleep()
 1.15 18-Jan-2000  thorpej iodone() -> biodone(), iowait() -> biowait()
 1.14 17-Jan-2000  matt defopt VAXnnn so the make depend does the right thing.
 1.13 12-Apr-1999  pk branches: 1.13.2;
Ungarble the copyright notice.
 1.12 12-Jan-1998  thorpej branches: 1.12.8;
Update for changes to config.
 1.11 11-Jan-1997  ragge Update due to changes to uba/mscp functions.
 1.10 15-Nov-1996  thorpej Use bitmask_snprintf().
 1.9 13-Oct-1996  christos backout previous kprintf change
 1.8 11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.7 20-Jul-1996  ragge CPU determine code. ts driver converted to new config. May work, untested.
 1.6 08-Apr-1996  ragge Added prototypes to everything. Made all files compile with -Wall.
 1.5 17-Mar-1996  ragge Convert all devices according to the changes to config.
 1.4 02-Mar-1996  ragge Fix some too long delays. Set some structs volatile that otherwise
caused hangs during autoconfig.
 1.3 02-Feb-1996  mycroft Fix #includes.
 1.2 02-Feb-1996  mycroft Fix #includes.
 1.1 06-Jan-1996  ragge Device driver for TS11/TSV05 tape devices.
Written by Bertram Barth, based on TMSCP device driver.
 1.12.8.1 12-Apr-1999  pk branches: 1.12.8.1.2;
Pullup copyright text corrections.
 1.12.8.1.2.1 21-Jun-1999  thorpej Sync w/ -current.
 1.13.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.16.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.17.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.18.16.1 17-May-2002  gehenna Add device switch.
 1.18.8.4 11-Nov-2002  nathanw Catch up to -current
 1.18.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.18.8.2 17-Sep-2002  nathanw Catch up to -current.
 1.18.8.1 16-May-2001  nathanw file ts.c was added on branch nathanw_sa on 2002-09-17 21:18:30 +0000
 1.18.4.1 10-Oct-2001  fvdl Convert all remaining devices.
 1.18.2.1 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.25.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.25.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.25.2.1 03-Aug-2004  skrll Sync with HEAD
 1.28.16.5 17-Mar-2008  yamt sync with head.
 1.28.16.4 27-Feb-2008  yamt sync with head.
 1.28.16.3 21-Jan-2008  yamt sync with head
 1.28.16.2 03-Sep-2007  yamt sync with head.
 1.28.16.1 21-Jun-2006  yamt sync with head.
 1.29.6.1 22-Apr-2006  simonb Sync with head.
 1.29.4.1 09-Sep-2006  rpaulo sync with head
 1.29.2.1 01-Mar-2006  yamt sync with head.
 1.30.6.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.30.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.30.2.1 01-Apr-2006  yamt sync with head.
 1.31.14.1 12-Mar-2007  rmind Sync with HEAD.
 1.32.14.1 15-Aug-2007  skrll Sync with HEAD.
 1.32.12.1 07-Aug-2007  matt Sync with HEAD.
 1.32.10.1 03-Oct-2007  garbled Sync with HEAD
 1.32.2.1 19-Aug-2007  ad - Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).
 1.33.6.3 23-Mar-2008  matt sync with HEAD
 1.33.6.2 09-Jan-2008  matt sync with HEAD
 1.33.6.1 06-Nov-2007  matt sync with HEAD
 1.34.8.1 02-Jan-2008  bouyer Sync with HEAD
 1.34.4.1 31-Dec-2007  ad Catch up with buffer cache changes.
 1.34.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.36.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.36.2.1 24-Mar-2008  keiichi sync with head.
 1.2 11-Mar-2008  matt Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.1 06-Jan-1996  ragge branches: 1.1.80; 1.1.142; 1.1.162; 1.1.166;
Device driver for TS11/TSV05 tape devices.
Written by Bertram Barth, based on TMSCP device driver.
 1.1.166.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.162.1 24-Mar-2008  keiichi sync with head.
 1.1.142.1 23-Mar-2008  matt sync with HEAD
 1.1.80.1 17-Mar-2008  yamt sync with head.
 1.52 28-Jan-2001  ragge These are not used anymore.
 1.51 09-Aug-2000  tv %b -> bitmask_snprintf()
 1.50 29-Jun-2000  mrg remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.49 26-Jun-2000  mrg remove/move more mach vm header files:

<vm/pglist.h> -> <uvm/uvm_pglist.h>
<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
<vm/vm_object.h> -> nothing
<vm/vm_pager.h> -> into <uvm/uvm_pager.h>

also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.
 1.48 05-Jun-2000  matt Adjust to new evcnt stuff.
 1.47 04-Jun-2000  matt more cleanup. use __builtin_frame_address(0) instead of our funky
FRAMEOFFSET macro. define an interrupt call frame and use that directly
instead of some magic offsets. Make boot autoconf.o use the current
reality.
 1.46 04-Jun-2000  matt More event counter stuff. Plus a little cruft cleanup while doing it.
 1.45 27-May-2000  thorpej branches: 1.45.2;
sleep() -> tsleep()
 1.44 19-May-2000  thorpej A foolish consistency; most parts of the kernel use bp->b_data, so
change these from bp->b_un.b_addr to bp->b_data, as well. This also
allows us more flexibility to experiment with other data buffer types
hung off of struct buf.
 1.43 24-Jan-2000  matt Revamp the VAX interrupt handling code. Make it compatible with all the
other ports. Clean up some things.
 1.42 02-Feb-1999  ragge branches: 1.42.8;
Another giant change: Allocate register space dynamic instead of compiled-in.
This is done on a physical page size basis, instead of virtual (as the
(on vax yet non-existing) bus_* routines does). This is similar to the
way uba allocation is done.
 1.41 19-Jan-1999  ragge Fix some void pointers.
 1.40 19-Jan-1999  ragge Allocate (almost) all interrupt vectors dynamically. Simplifies much
work when adding support for new machines and devices.
 1.39 01-Jan-1999  ragge Giant change: NBPG now set to 4k and CLSIZE == 1 for vax. This change
made a whole bunch of annoying bugs disappear; mostly depending on
bad use of NBPG in non-MD code. The VAX port was the only port that
used this historical "feature".

The CL* macros should probably go away totally, there is no reason
at all to keep them.
 1.38 29-Nov-1998  ragge the btoc/ctob/btop macros must use CLBYTES, not NBPG. How this should
work in the long run is an open issue; some parts must be reworked
in a MI way.
 1.37 05-Nov-1998  ragge EGCS fixes.
 1.36 18-Oct-1998  ragge Support for DWBUA (BI to Unibus adapter) and KLESI-B (TMSCP tape ctlr) added.
 1.35 06-Oct-1998  matt Change backplace0 to mainbus0 (for consistency with other ports).
Remove unused function protocols from ka410.h and ka43.h
Fix some ka46 missing references
 1.34 21-Mar-1998  ragge ubasetup() must be non-static. (used by QDSS)
 1.33 02-Mar-1998  ragge Support for UVM on VAXen.
 1.32 24-Jan-1998  ragge Remove __BROKEN_INDIRECT_CONFIG and change all drivers to use
config_search instead.
 1.31 18-Jan-1998  ragge Make kernel compile & run again after latest config changes.
 1.30 12-Jan-1998  thorpej Update for changes to config.
 1.29 13-Oct-1996  christos backout previous kprintf change
 1.28 11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.27 27-Aug-1996  cgd change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).
 1.26 20-Aug-1996  ragge Modified to get cleaner match/attach code for different parent buses.
Fix so that resource wait queueing works.
Changed all functions to take a pointer to uba_softc instead of unit
number, except for ubareset(). This must be done later.
 1.25 20-Jul-1996  ragge CPU determine code. ts driver converted to new config. May work, untested.
 1.24 11-Jul-1996  ragge Automatic changing of root device after boot now works.
 1.23 01-Jul-1996  ragge Remove code that took care of old config devices. Don't support
old config anymore, all devices should use new config by now.
Add structures to handle DMA devices using new config.
Fixed bug that caused unwanted ubareset's on 11/780.
 1.22 08-Apr-1996  ragge Added prototypes to everything. Made all files compile with -Wall.
 1.21 18-Mar-1996  ragge Ubareset are now possible, devices that wants it now set it up
during autoconfig. ifubareset (if_reset) no longer used, actually
it's just a normal ubareset and is now handled like that.
 1.20 17-Mar-1996  ragge Convert all devices according to the changes to config.
 1.19 09-Mar-1996  ragge Check on which SBI we are frobbing, not always 0.
 1.18 07-Mar-1996  ragge Support for VAX 8600/8650 added. Works with lots of Unibus adapters,
and will probably work with Massbus adapters as well. (Not tested,
but it's the same code as for 11/780). Ubareset's may cause crashes
on 8600 also like 11/780, but they are more uncommon. No support
for console RL02 yet, but it's likely to come.
 1.17 02-Mar-1996  ragge Add support for DW780. Note that ubareset's don't work properly.
This is not a problem on other Unibus adapters, but DW780's do
ubareset's more often. This needs to be fixed by someone someday.
 1.16 11-Feb-1996  ragge Remove csralloc(), not usable anymore.
Add ubasetvec() to steal interrupt vectors for device drivers that
need more than one vector. Add prototype for it.
 1.15 02-Feb-1996  mycroft Fix type errors.
 1.14 02-Feb-1996  mycroft Fix #includes.
 1.13 02-Feb-1996  mycroft Fix #includes.
 1.12 28-Dec-1995  thorpej Move the old-style disk instrumentation "structures" to a central location
(sys/kern/subr_disk.c) and note that they should/will be deperecated.
 1.11 13-Dec-1995  ragge MicroVAX III support added.
Dummy match/attach routines for tmscp.
Conversion of uda.c towards new config.
 1.10 01-Dec-1995  ragge UBA converted to new config. (uba's now can be *'ed). Bug causing
DMA writes to nonexistent memory pages fixed. Code for old config
of non-mass-storage devices removed. (they now must use new config).
 1.9 10-Nov-1995  ragge Dynamic allocate uba_softc and interrupt vectors.
Allow for more that one uba.
 1.8 16-Jun-1995  ragge d_reset reference removed. Calling of ubareset must be solved.
 1.7 30-Mar-1995  ragge Bug fixes of interrupt handlers.
 1.6 23-Feb-1995  ragge Support for uVAXII, new tmscp driver added.
 1.5 13-Feb-1995  ragge Fixes for new config.
 1.4 25-Nov-1994  ragge New handling of pte:s for physio.
 1.3 26-Oct-1994  cgd new RCS ID format.
 1.2 08-Oct-1994  ragge Fixed bugs according to old memory system.
 1.1 02-Aug-1994  ragge branches: 1.1.2;
Initial VAX port merging.
 1.1.2.2 02-Aug-1994  ragge Initial VAX port merging.
 1.1.2.1 02-Aug-1994  ragge file uba.c was added on branch netbsd-1-0 on 1994-08-02 20:21:23 +0000
 1.42.8.2 11-Feb-2001  bouyer Sync with HEAD.
 1.42.8.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.45.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.16 22-May-2017  ragge Update copyright notice for Ludd (remove clause 3 & 4).
 1.15 14-Dec-2010  matt branches: 1.15.18; 1.15.36;
Cleanup includes. Change <machine/XXX.h> to <sys/XXX.h> for bus, cpu, intr.
Remove unneeded includes.
 1.14 11-Mar-2008  matt branches: 1.14.26;
Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.13 11-Dec-2005  christos branches: 1.13.50; 1.13.70; 1.13.74;
merge ktrace-lwp.
 1.12 07-Aug-2003  agc branches: 1.12.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.11 15-Jul-2003  lukem __KERNEL_RCSID()
 1.10 02-Oct-2002  thorpej branches: 1.10.6;
Add trailing ; to CFATTACH_DECL.
 1.9 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.8 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.7 24-Aug-2002  ragge Must set correct HW unibus number so that disk autodetection on other
Unibuses than the first work.
 1.6 13-May-2001  ragge branches: 1.6.2; 1.6.8; 1.6.16;
Add bus type.
 1.5 04-Jun-2000  ragge branches: 1.5.4;
Changes of sbi_attach_args. (and cleanup)
 1.4 04-Jun-2000  matt More event counter stuff. Plus a little cruft cleanup while doing it.
 1.3 27-May-2000  ragge Only map in map registers and the I/O page if they are not mapped in already.
 1.2 14-Aug-1999  ragge branches: 1.2.2; 1.2.10;
Fix UBA IO space scan addresses; was searching at the wrong place.
 1.1 21-Jun-1999  ragge branches: 1.1.2;
Add DW750 and DW780 UBA support. Still no BDP's.
 1.1.2.2 01-Jul-1999  thorpej Sync w/ -current.
 1.1.2.1 21-Jun-1999  thorpej file uba_cmi.c was added on branch chs-ubc2 on 1999-07-01 23:27:18 +0000
 1.2.10.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.2.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.6.16.1 31-Aug-2002  gehenna catch up with -current.
 1.6.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.6.8.2 27-Aug-2002  nathanw Catch up to -current.
 1.6.8.1 13-May-2001  nathanw file uba_cmi.c was added on branch nathanw_sa on 2002-08-27 23:46:02 +0000
 1.6.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.6.2.1 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.10.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.10.6.1 03-Aug-2004  skrll Sync with HEAD
 1.12.16.1 17-Mar-2008  yamt sync with head.
 1.13.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.13.70.1 24-Mar-2008  keiichi sync with head.
 1.13.50.1 23-Mar-2008  matt sync with HEAD
 1.14.26.1 05-Mar-2011  rmind sync with head
 1.15.36.1 28-Aug-2017  skrll Sync with HEAD
 1.15.18.1 03-Dec-2017  jdolecek update from HEAD
 1.6 19-Nov-2008  hans uba device registers should be volatile. OK by ragge.
 1.5 11-Mar-2008  matt branches: 1.5.4; 1.5.10; 1.5.12; 1.5.14;
Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.4 11-Dec-2005  christos branches: 1.4.50; 1.4.70; 1.4.74;
merge ktrace-lwp.
 1.3 07-Aug-2003  agc branches: 1.3.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.2 21-Jun-1999  ragge branches: 1.2.36;
Add DW750 and DW780 UBA support. Still no BDP's.
 1.1 06-Jun-1999  ragge branches: 1.1.2;
Ops, forgot this file.
 1.1.2.2 01-Jul-1999  thorpej Sync w/ -current.
 1.1.2.1 21-Jun-1999  thorpej Sync w/ -current.
 1.2.36.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.36.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.36.1 03-Aug-2004  skrll Sync with HEAD
 1.3.16.1 17-Mar-2008  yamt sync with head.
 1.4.74.2 17-Jan-2009  mjf Sync with HEAD.
 1.4.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.4.70.1 24-Mar-2008  keiichi sync with head.
 1.4.50.1 23-Mar-2008  matt sync with HEAD
 1.5.14.1 22-Nov-2008  snj Pull up following revision(s) (requested by hans in ticket #101):
sys/arch/vax/uba/uba_common.h: revision 1.6
uba device registers should be volatile. OK by ragge.
 1.5.12.1 19-Jan-2009  skrll Sync with HEAD.
 1.5.10.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.5.4.1 04-May-2009  yamt sync with head.
 1.11 14-Dec-2010  matt Cleanup includes. Change <machine/XXX.h> to <sys/XXX.h> for bus, cpu, intr.
Remove unneeded includes.
 1.10 28-Apr-2008  martin branches: 1.10.22;
Remove clause 3 and 4 from TNF licenses
 1.9 11-Mar-2008  matt branches: 1.9.2; 1.9.4;
Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.8 11-Dec-2005  christos branches: 1.8.50; 1.8.70; 1.8.74;
merge ktrace-lwp.
 1.7 15-Jul-2003  lukem branches: 1.7.16;
__KERNEL_RCSID()
 1.6 27-Jul-2001  ragge branches: 1.6.6; 1.6.22;
Calculation of unibus map register size was wrong.
 1.5 29-Jun-2000  mrg branches: 1.5.4;
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.4 27-May-2000  ragge Only map in map registers and the I/O page if they are not mapped in already.
 1.3 29-Feb-2000  matt branches: 1.3.2;
fix a too agressive s/CIA/UBA/ (e.g change SPEUBAL back to SPECIAL) in the
header.
 1.2 20-Jun-1999  ragge branches: 1.2.2; 1.2.4;
Fix of bug causing allocations of physical pages to get wrong address.
 1.1 06-Jun-1999  ragge Added support for Qbus DMA.
 1.2.4.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.2.2 21-Jun-1999  thorpej Sync w/ -current.
 1.2.2.1 20-Jun-1999  thorpej file uba_dma.c was added on branch chs-ubc2 on 1999-06-21 01:03:44 +0000
 1.3.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.5.4.1 03-Aug-2001  lukem update to -current
 1.6.22.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.22.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.22.1 03-Aug-2004  skrll Sync with HEAD
 1.6.6.2 27-Jul-2001  ragge Calculation of unibus map register size was wrong.
 1.6.6.1 27-Jul-2001  ragge file uba_dma.c was added on branch nathanw_sa on 2001-07-27 12:57:21 +0000
 1.7.16.1 17-Mar-2008  yamt sync with head.
 1.8.74.2 02-Jun-2008  mjf Sync with HEAD.
 1.8.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.8.70.1 24-Mar-2008  keiichi sync with head.
 1.8.50.1 23-Mar-2008  matt sync with HEAD
 1.9.4.1 16-May-2008  yamt sync with head.
 1.9.2.1 18-May-2008  yamt sync with head.
 1.10.22.1 05-Mar-2011  rmind sync with head
 1.11 11-Mar-2008  matt Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.10 11-Dec-2005  christos branches: 1.10.50; 1.10.70; 1.10.74;
merge ktrace-lwp.
 1.9 07-Aug-2003  agc branches: 1.9.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.8 15-Jul-2003  lukem __KERNEL_RCSID()
 1.7 02-Oct-2002  thorpej branches: 1.7.6;
Add trailing ; to CFATTACH_DECL.
 1.6 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.5 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4 16-May-2001  matt branches: 1.4.2; 1.4.8;
Add a VAXANY type. Eventually to used in INSTALL / GENERIC to easily
include support for all VAX platforms
 1.3 13-May-2001  ragge Add bus type.
 1.2 01-May-2001  ragge Use linear memory mapping for MV1. No map registers.
 1.1 07-Aug-1999  ragge branches: 1.1.14;
Clean up all bus handling stuff, it has become a mess the latest years.
Add a new bus; "ibus" that is the internal MicroVAX bus.
 1.1.14.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.8.2 18-Oct-2002  nathanw Catch up to -current.
 1.4.8.1 16-May-2001  nathanw file uba_ibus.c was added on branch nathanw_sa on 2002-10-18 02:40:33 +0000
 1.4.2.1 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.7.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.7.6.1 03-Aug-2004  skrll Sync with HEAD
 1.9.16.1 17-Mar-2008  yamt sync with head.
 1.10.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.10.70.1 24-Mar-2008  keiichi sync with head.
 1.10.50.1 23-Mar-2008  matt sync with HEAD
 1.15 14-Jul-2025  hans vax/uba: fix detection of CMD CQD-22x MSCP controllers

Certain models of CMD MSCP controllers fail to be detected by uda(4) if
they have been booted from. This failure mode has been introduced in
revision 1.11 of uba_mainbus.c, when scanning for Qbus/Unibus memories
was added. They are deteced fine when NetBSD is booted from any other
device such as over the network.

When NetBSD is booted from a MSCP controller, the boot loader sets up
the Qbus map to provide the controller with a small command/response
ring in memory to be used for I/O. Once the kernel is loaded and uba(4)
is attaching, the Qbus map is cleared while scanning for memories. It
appears that sudden loss of access to the command/response ring causes
the firmware of these CMD controllers to drop dead.

As a result, these controllers don't react in a reasonable time (100ms
by the spec) when their IP register is written to re-initialze the
controller. Even though uda(4)'s udamatch() waits up to 10s for a sign
of life from the controller, that's usually not enough for it to wake
up and it is assumed to be absent. Which, of course, causes the kernel
to fail booting as the boot device can't be found.

This needs to be addressed both in the kernel and the bootloader.

We can work around this issue in the kernel by restoring the Qbus map
registers to their original values after we've used them for detecting
Qbus memories. The code to do that is already there but commented out,
it just needs uncommenting.
 1.14 22-May-2017  ragge branches: 1.14.46;
Update copyright notice for Ludd (remove clause 3 & 4).
 1.13 22-Apr-2016  christos Use the right variable (Felix Deichmann)
 1.12 05-Jul-2015  matt Typo fxi.
 1.11 05-Jul-2015  matt Add code to probe the Q-bus/Unibus for memory. (From Charles Dickman)
 1.10 14-Dec-2010  matt branches: 1.10.18; 1.10.36;
Cleanup includes. Change <machine/XXX.h> to <sys/XXX.h> for bus, cpu, intr.
Remove unneeded includes.
 1.9 11-Mar-2008  matt branches: 1.9.26;
Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.8 11-Dec-2005  christos branches: 1.8.50; 1.8.70; 1.8.74;
merge ktrace-lwp.
 1.7 07-Aug-2003  agc branches: 1.7.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.6 15-Jul-2003  lukem __KERNEL_RCSID()
 1.5 02-Oct-2002  thorpej branches: 1.5.6;
Add trailing ; to CFATTACH_DECL.
 1.4 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.3 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.2 06-Jun-1999  ragge branches: 1.2.2; 1.2.18; 1.2.22;
Added support for Qbus DMA.
 1.1 24-May-1999  ragge bus.h'ify more of the vax code.
 1.2.22.1 18-Oct-2002  nathanw Catch up to -current.
 1.2.18.1 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.1 21-Jun-1999  thorpej Sync w/ -current.
 1.5.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.6.1 03-Aug-2004  skrll Sync with HEAD
 1.7.16.1 17-Mar-2008  yamt sync with head.
 1.8.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.8.70.1 24-Mar-2008  keiichi sync with head.
 1.8.50.1 23-Mar-2008  matt sync with HEAD
 1.9.26.1 05-Mar-2011  rmind sync with head
 1.10.36.3 28-Aug-2017  skrll Sync with HEAD
 1.10.36.2 29-May-2016  skrll Sync with HEAD
 1.10.36.1 22-Sep-2015  skrll Sync with HEAD
 1.10.18.1 03-Dec-2017  jdolecek update from HEAD
 1.14.46.1 02-Aug-2025  perseant Sync with HEAD
 1.31 09-Oct-2025  rillig vax/uba: fix details in message about UBA error

In NetBSD 10, the snprintb call had resulted in an empty string.
 1.30 22-May-2017  ragge Update copyright notice for Ludd (remove clause 3 & 4).
 1.29 14-Dec-2010  matt branches: 1.29.18; 1.29.36;
Cleanup includes. Change <machine/XXX.h> to <sys/XXX.h> for bus, cpu, intr.
Remove unneeded includes.
 1.28 01-Jul-2010  ragge A big bunch of bugfixes from Johnny Billquist. Highlights:
- Makes the VAX8600 work as expected (500kg of hardware :-)
- Fix a hard-tracked bug causing VAXen to hang at splhigh.
 1.27 14-Mar-2009  dsl branches: 1.27.2; 1.27.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.26 16-Dec-2008  christos branches: 1.26.2;
replace bitmask_snprintf(9) with snprintb(3)
 1.25 20-Nov-2008  hans Fix unibus interrupts on SBI machines. OK by matt.
 1.24 11-Mar-2008  matt branches: 1.24.4; 1.24.10; 1.24.12; 1.24.14;
Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf
code. Move to prototype definitions. staticfy, constify, avoid casting.
Use device_* accessors.
 1.23 04-Jan-2008  joerg branches: 1.23.2; 1.23.6;
time.tv_sec -> time_second
 1.22 11-Dec-2005  christos branches: 1.22.50; 1.22.56; 1.22.64;
merge ktrace-lwp.
 1.21 07-Aug-2003  agc branches: 1.21.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.20 15-Jul-2003  lukem __KERNEL_RCSID()
 1.19 02-Oct-2002  thorpej branches: 1.19.6;
Add trailing ; to CFATTACH_DECL.
 1.18 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.17 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.16 24-Aug-2002  ragge Must set correct HW unibus number so that disk autodetection on other
Unibuses than the first work.
 1.15 25-Jul-2002  ragge Count adapter, stray and device interrupts separately.
From Johnny Billquist.
 1.14 06-Jun-2002  ragge Just return if a zero uba vector is handled. It's OK to get them on Unibus
machines.
 1.13 04-Jun-2002  ragge Repair VAX8600 support, which had bit-rotten, probably not used since -98.
 1.12 13-May-2001  ragge branches: 1.12.2; 1.12.8; 1.12.16; 1.12.18;
Add bus type.
 1.11 12-Apr-2001  thorpej splimp -> spluba
 1.10 24-Aug-2000  ragge branches: 1.10.2;
Fix after %b fixes.
 1.9 09-Aug-2000  tv %b -> bitmask_snprintf()
 1.8 10-Jul-2000  ragge Nexus vector number is 0x14-0x17, not 14-17! Fortunately, 3 wrong did
one right. Pointed out by Kenn Humborg (kenn@linux.ie).
 1.7 05-Jun-2000  matt Adjust to new evcnt stuff.
 1.6 04-Jun-2000  ragge Changes of sbi_attach_args. (and cleanup)
 1.5 04-Jun-2000  matt More event counter stuff. Plus a little cruft cleanup while doing it.
 1.4 27-May-2000  ragge Only map in map registers and the I/O page if they are not mapped in already.
 1.3 30-Apr-2000  ragge branches: 1.3.2;
Ubareset() changed.
 1.2 24-Jan-2000  matt Revamp the VAX interrupt handling code. Make it compatible with all the
other ports. Clean up some things.
 1.1 21-Jun-1999  ragge branches: 1.1.2; 1.1.4;
Add DW750 and DW780 UBA support. Still no BDP's.
 1.1.4.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.4.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.2.2 01-Jul-1999  thorpej Sync w/ -current.
 1.1.2.1 21-Jun-1999  thorpej file uba_sbi.c was added on branch chs-ubc2 on 1999-07-01 23:27:18 +0000
 1.3.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.10.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.12.18.3 10-Nov-2002  he Pull up revision 1.15 (requested by ragge in ticket #546):
Count adapter, stray and device interrupts separately.
 1.12.18.2 07-Jun-2002  thorpej pullup-1-6 ticket #196:

syssrc/sys/arch/vax/uba/uba_sbi.c 1.14

Original log message:

Just return if a zero uba vector is handled. It's OK to get them on Unibus
machines.
 1.12.18.1 05-Jun-2002  lukem Pull up revision 1.13 (requested by ragge in ticket #157):
Repair VAX8600 support, which had bit-rotten, probably not used since -98.
 1.12.16.2 31-Aug-2002  gehenna catch up with -current.
 1.12.16.1 15-Jul-2002  gehenna catch up with -current.
 1.12.8.5 18-Oct-2002  nathanw Catch up to -current.
 1.12.8.4 27-Aug-2002  nathanw Catch up to -current.
 1.12.8.3 01-Aug-2002  nathanw Catch up to -current.
 1.12.8.2 20-Jun-2002  nathanw Catch up to -current.
 1.12.8.1 13-May-2001  nathanw file uba_sbi.c was added on branch nathanw_sa on 2002-06-20 03:42:17 +0000
 1.12.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.12.2.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.12.2.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.19.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.19.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.19.6.1 03-Aug-2004  skrll Sync with HEAD
 1.21.16.2 17-Mar-2008  yamt sync with head.
 1.21.16.1 21-Jan-2008  yamt sync with head
 1.22.64.1 08-Jan-2008  bouyer Sync with HEAD
 1.22.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.22.50.2 23-Mar-2008  matt sync with HEAD
 1.22.50.1 09-Jan-2008  matt sync with HEAD
 1.23.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.23.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.23.2.1 24-Mar-2008  keiichi sync with head.
 1.24.14.1 22-Nov-2008  snj Pull up following revision(s) (requested by hans in ticket #101):
sys/arch/vax/uba/uba_sbi.c: revision 1.25
Fix unibus interrupts on SBI machines. OK by matt.
 1.24.12.2 28-Apr-2009  skrll Sync with HEAD.
 1.24.12.1 19-Jan-2009  skrll Sync with HEAD.
 1.24.10.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.24.4.2 11-Aug-2010  yamt sync with head.
 1.24.4.1 04-May-2009  yamt sync with head.
 1.26.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.27.4.2 05-Mar-2011  rmind sync with head
 1.27.4.1 03-Jul-2010  rmind sync with head
 1.27.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.29.36.1 28-Aug-2017  skrll Sync with HEAD
 1.29.18.1 03-Dec-2017  jdolecek update from HEAD
 1.4 22-May-2017  ragge Update copyright notice for Ludd (remove clause 3 & 4).
 1.3 05-Jun-2011  matt branches: 1.3.12; 1.3.30;
device_t, cfdata_t, etc.
CFATTACH_DECL -> CFATTACH_DECL_NEW for sizeof(struct device).
 1.2 14-Dec-2010  matt branches: 1.2.2; 1.2.6;
Cleanup includes. Change <machine/XXX.h> to <sys/XXX.h> for bus, cpu, intr.
Remove unneeded includes.
 1.1 22-Jan-2009  christos branches: 1.1.4; 1.1.6; 1.1.10;
Patches from Brad Parker to support vax730.
 1.1.10.2 12-Jun-2011  rmind sync with head
 1.1.10.1 05-Mar-2011  rmind sync with head
 1.1.6.2 04-May-2009  yamt sync with head.
 1.1.6.1 22-Jan-2009  yamt file uba_ubi.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:04 +0000
 1.1.4.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.4.1 22-Jan-2009  skrll file uba_ubi.c was added on branch nick-hppapmap on 2009-03-03 18:29:35 +0000
 1.2.6.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.2.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.3.30.1 28-Aug-2017  skrll Sync with HEAD
 1.3.12.1 03-Dec-2017  jdolecek update from HEAD
 1.12 28-Jan-2001  ragge These are not used anymore.
 1.11 24-Jan-2000  matt Revamp the VAX interrupt handling code. Make it compatible with all the
other ports. Clean up some things.
 1.10 18-Oct-1998  ragge branches: 1.10.12;
Support for DWBUA (BI to Unibus adapter) and KLESI-B (TMSCP tape ctlr) added.
 1.9 20-Aug-1996  ragge Modified to get cleaner match/attach code for different parent buses.
Fix so that resource wait queueing works.
Changed all functions to take a pointer to uba_softc instead of unit
number, except for ubareset(). This must be done later.
 1.8 20-Jul-1996  ragge CPU determine code. ts driver converted to new config. May work, untested.
 1.7 08-Apr-1996  ragge Added prototypes to everything. Made all files compile with -Wall.
 1.6 09-Mar-1996  ragge Check on which SBI we are frobbing, not always 0.
 1.5 01-Feb-1996  mycroft LOCORE -> _LOCORE
 1.4 10-Nov-1995  ragge Dynamic allocate uba_softc and interrupt vectors.
Allow for more that one uba.
 1.3 13-Feb-1995  ragge Fixes for new config.
 1.2 26-Oct-1994  cgd new RCS ID format.
 1.1 02-Aug-1994  ragge branches: 1.1.2;
Initial VAX port merging.
 1.1.2.2 02-Aug-1994  ragge Initial VAX port merging.
 1.1.2.1 02-Aug-1994  ragge file ubareg.h was added on branch netbsd-1-0 on 1994-08-02 20:21:28 +0000
 1.10.12.2 11-Feb-2001  bouyer Sync with HEAD.
 1.10.12.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.22 04-Jun-2000  matt Nuke it. It's in dev/qbus now...
 1.21 19-Jan-1999  ragge branches: 1.21.8; 1.21.16;
Allocate (almost) all interrupt vectors dynamically. Simplifies much
work when adding support for new machines and devices.
 1.20 18-Oct-1998  ragge Support for DWBUA (BI to Unibus adapter) and KLESI-B (TMSCP tape ctlr) added.
 1.19 12-Jan-1998  thorpej Update for changes to config.
 1.18 20-Aug-1996  ragge Modified to get cleaner match/attach code for different parent buses.
Fix so that resource wait queueing works.
Changed all functions to take a pointer to uba_softc instead of unit
number, except for ubareset(). This must be done later.
 1.17 11-Jul-1996  ragge Automatic changing of root device after boot now works.
 1.16 01-Jul-1996  ragge Changed data structures due to removal of old config system.
 1.15 08-Apr-1996  ragge Added prototypes to everything. Made all files compile with -Wall.
 1.14 18-Mar-1996  ragge Ubareset are now possible, devices that wants it now set it up
during autoconfig. ifubareset (if_reset) no longer used, actually
it's just a normal ubareset and is now handled like that.
 1.13 17-Mar-1996  ragge Convert all devices according to the changes to config.
 1.12 02-Mar-1996  ragge Add support for DW780. Note that ubareset's don't work properly.
This is not a problem on other Unibus adapters, but DW780's do
ubareset's more often. This needs to be fixed by someone someday.
 1.11 11-Feb-1996  ragge Remove csralloc(), not usable anymore.
Add ubasetvec() to steal interrupt vectors for device drivers that
need more than one vector. Add prototype for it.
 1.10 02-Feb-1996  mycroft Fix #includes.
 1.9 01-Feb-1996  mycroft LOCORE -> _LOCORE
 1.8 01-Dec-1995  ragge UBA converted to new config. (uba's now can be *'ed). Bug causing
DMA writes to nonexistent memory pages fixed. Code for old config
of non-mass-storage devices removed. (they now must use new config).
 1.7 10-Nov-1995  ragge Dynamic allocate uba_softc and interrupt vectors.
Allow for more that one uba.
 1.6 11-May-1995  jtc KERNEL -> _KERNEL
 1.5 30-Mar-1995  ragge Bug fixes of interrupt handlers.
 1.4 28-Mar-1995  jtc KERNEL -> _KERNEL
 1.3 13-Feb-1995  ragge Fixes for new config.
 1.2 26-Oct-1994  cgd new RCS ID format.
 1.1 02-Aug-1994  ragge branches: 1.1.2;
Initial VAX port merging.
 1.1.2.2 02-Aug-1994  ragge Initial VAX port merging.
 1.1.2.1 02-Aug-1994  ragge file ubavar.h was added on branch netbsd-1-0 on 1994-08-02 20:21:29 +0000
 1.21.16.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.21.8.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.3 12-Nov-1995  ragge No longer needed; interrupt vectors now dynamic allocated.
 1.2 23-Feb-1995  ragge Support for uVAXII, new tmscp driver added.
 1.1 13-Feb-1995  ragge Fixes for new config.
 1.29 20-Jun-1999  ragge Remove moved files.
 1.28 24-Jan-1998  ragge branches: 1.28.10;
Remove __BROKEN_INDIRECT_CONFIG and change all drivers to use
config_search instead.
 1.27 12-Jan-1998  thorpej Update for changes to config.
 1.26 02-Nov-1997  ragge #include files must be in the correct order.
 1.25 04-Jul-1997  ragge Fix bug causing all uda's to be recognized as ctlr 1 from boot.
 1.24 12-Mar-1997  ragge Fast and dirty fix to avoid panics during autoconf of KFQSA DSSI disks.
Controller errors showing up can't be handled anyway.
 1.23 13-Oct-1996  christos backout previous kprintf change
 1.22 11-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.21 27-Aug-1996  cgd change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).
 1.20 20-Aug-1996  ragge Use the same device driver for both uda and mtc. Actually, the only
difference is vcid. The unit names must differ, so that it is possible
to distinguish them at autoconf time.
 1.19 20-Jul-1996  ragge CPU determine code. ts driver converted to new config. May work, untested.
 1.18 11-Jul-1996  ragge Automatic changing of root device after boot now works.
 1.17 01-Jul-1996  ragge Change to new config and to support new MSCP system.
 1.16 19-May-1996  ragge Fixed all (proto)type errors. Fixes PR 2377.
 1.15 17-Mar-1996  ragge Convert all devices according to the changes to config.
 1.14 07-Mar-1996  ragge Support for VAX 8600/8650 added. Works with lots of Unibus adapters,
and will probably work with Massbus adapters as well. (Not tested,
but it's the same code as for 11/780). Ubareset's may cause crashes
on 8600 also like 11/780, but they are more uncommon. No support
for console RL02 yet, but it's likely to come.
 1.13 02-Mar-1996  ragge Fix some too long delays. Set some structs volatile that otherwise
caused hangs during autoconfig.
 1.12 11-Feb-1996  ragge register -> volatile in some places, to make it work OK with -O2.
 1.11 02-Feb-1996  mycroft Fix #includes.
 1.10 13-Dec-1995  ragge MicroVAX III support added.
Dummy match/attach routines for tmscp.
Conversion of uda.c towards new config.
 1.9 10-Nov-1995  ragge Dynamic allocate uba_softc and interrupt vectors.
Allow for more that one uba.
 1.8 31-Aug-1995  ragge Patches from Ken Wellsch/Ken Lalonde to support some Dilog MSCP cards
(DQ256 SMD card, SQ706A and SU726A SCSI card).
 1.7 05-Jul-1995  ragge uda/tmscp read/write added.
 1.6 30-Mar-1995  ragge Bug fixes of interrupt handlers.
 1.5 23-Feb-1995  ragge Support for uVAXII, new tmscp driver added.
 1.4 13-Feb-1995  ragge Fixes for new config.
 1.3 26-Oct-1994  cgd new RCS ID format.
 1.2 08-Oct-1994  ragge Fixed bugs according to old memory system.
 1.1 02-Aug-1994  ragge branches: 1.1.2;
Initial VAX port merging.
 1.1.2.2 02-Aug-1994  ragge Initial VAX port merging.
 1.1.2.1 02-Aug-1994  ragge file uda.c was added on branch netbsd-1-0 on 1994-08-02 20:21:31 +0000
 1.28.10.1 01-Jul-1999  thorpej Sync w/ -current.
 1.4 20-Jun-1999  ragge Remove moved files.
 1.3 01-Jul-1996  ragge branches: 1.3.24;
Change to new config and to support new MSCP system.
 1.2 26-Oct-1994  cgd new RCS ID format.
 1.1 02-Aug-1994  ragge branches: 1.1.2;
Initial VAX port merging.
 1.1.2.2 02-Aug-1994  ragge Initial VAX port merging.
 1.1.2.1 02-Aug-1994  ragge file udareg.h was added on branch netbsd-1-0 on 1994-08-02 20:21:32 +0000
 1.3.24.1 01-Jul-1999  thorpej Sync w/ -current.

RSS XML Feed