Home | History | Annotate | only in /src/sys/arch/news68k/dev
History log of /src/sys/arch/news68k/dev
RevisionDateAuthorComments
 1.8 07-Jul-2001  tsutsui Split clock device attachment into interval timer and todclock
since they are actually independent devices.
 1.7 05-Oct-2000  tsutsui branches: 1.7.2;
Make leds_intr() __inline.
 1.6 04-Oct-2000  tsutsui Switch to MI mk48txx driver.

XXX All config files should be updated since now clock address does not
XXX contain clock register offset in NVRAM.
 1.5 03-Oct-2000  tsutsui Reorganize news68k clock device configuration and
prepare to switch to MI mk48txx driver.

XXX news68k does not have bus_space(9) support yet.
 1.4 29-Jun-2000  mrg remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.3 07-Apr-2000  tsutsui Use proper virtual address for some devices.
The transparent translation register is no longer required.
 1.2 08-Feb-2000  tsutsui Add news1200 support.
Based on a patch from Koichi NISHIWAKI <k-nis@ba2.so-net.ne.jp>
 1.1 09-Dec-1999  tsutsui branches: 1.1.2;
Initial import of news68k port.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -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 05-Oct-2000  bouyer file clock_hb.c was added on branch thorpej_scsipi on 2000-11-20 20:16:09 +0000
 1.6 14-May-2008  tsutsui Normalize my licenses.
 1.5 07-May-2008  tsutsui branches: 1.5.2;
Tweak a structure definition for DMA registers.
 1.4 24-Dec-2005  perry branches: 1.4.74; 1.4.76; 1.4.78;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 11-Dec-2004  tsutsui branches: 1.2.10;
u_intXX_t -> uintXX_t
 1.1 09-Dec-1999  tsutsui branches: 1.1.2; 1.1.8; 1.1.32;
Initial import of news68k port.
 1.1.32.1 18-Dec-2004  skrll Sync with HEAD.
 1.1.8.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.8.1 09-Dec-1999  bouyer file dmac_0266.h was added on branch thorpej_scsipi on 2000-11-20 20:16:09 +0000
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.10.1 21-Jun-2006  yamt sync with head.
 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.5.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.21 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.20 24-Apr-2021  thorpej branches: 1.20.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.19 14-May-2008  tsutsui branches: 1.19.100;
Normalize my licenses.
 1.18 28-Mar-2008  tsutsui branches: 1.18.2; 1.18.4; 1.18.6;
Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*().
 1.17 11-Dec-2005  christos branches: 1.17.74;
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 04-Sep-2004  tsutsui - Use ANSI function declarations and make some functions static.
- Some KNF
 1.13 04-Sep-2004  tsutsui Include ioconf.h to declare struct cfdriver.
 1.12 15-Jul-2003  lukem __KERNEL_RCSID()
 1.11 01-Jan-2003  thorpej branches: 1.11.2;
Use aprint_normal() for cfprint routines.
 1.10 20-Dec-2002  tsutsui Remove __P().
 1.9 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.8 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.7 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.6 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.5 07-Jul-2001  tsutsui branches: 1.5.2; 1.5.8;
bzero() -> memset()
 1.4 04-Oct-2000  tsutsui branches: 1.4.2;
Initial bus_space(9) support for news68k. From hp300.
 1.3 08-Feb-2000  tsutsui Add news1200 support.
Based on a patch from Koichi NISHIWAKI <k-nis@ba2.so-net.ne.jp>
 1.2 21-Dec-1999  tsutsui branches: 1.2.2;
Typo.
 1.1 09-Dec-1999  tsutsui Initial import of news68k port.
 1.2.2.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.2.1 21-Dec-1999  wrstuden file hb.c was added on branch wrstuden-devbsize on 1999-12-27 18:32:56 +0000
 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 04-Oct-2000  bouyer file hb.c was added on branch thorpej_scsipi on 2000-11-20 20:16:09 +0000
 1.5.8.4 03-Jan-2003  thorpej Sync with HEAD.
 1.5.8.3 29-Dec-2002  thorpej Sync with HEAD.
 1.5.8.2 18-Oct-2002  nathanw Catch up to -current.
 1.5.8.1 07-Jul-2001  nathanw file hb.c was added on branch nathanw_sa on 2002-10-18 02:39:06 +0000
 1.5.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.11.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.11.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.11.2.1 03-Aug-2004  skrll Sync with HEAD
 1.15.2.1 21-Jun-2006  yamt sync with head.
 1.17.74.2 02-Jun-2008  mjf Sync with HEAD.
 1.17.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.18.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.18.4.1 16-May-2008  yamt sync with head.
 1.18.2.1 18-May-2008  yamt sync with head.
 1.19.100.6 05-Apr-2021  thorpej Treat config_probe() as if it were a boolean function; don't compare
return value > 0... except for the odd balls, which are now really easy
to spot.
 1.19.100.5 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.19.100.4 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.19.100.3 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.19.100.2 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.19.100.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.20.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.6 14-May-2008  tsutsui Normalize my licenses.
 1.5 20-Dec-2002  tsutsui branches: 1.5.104; 1.5.106; 1.5.108; 1.5.110;
Remove __P().
 1.4 02-Oct-2002  jdolecek make ha_name const
 1.3 04-Oct-2000  tsutsui branches: 1.3.2; 1.3.6; 1.3.10;
Initial bus_space(9) support for news68k. From hp300.
 1.2 08-Feb-2000  tsutsui Add news1200 support.
Based on a patch from Koichi NISHIWAKI <k-nis@ba2.so-net.ne.jp>
 1.1 09-Dec-1999  tsutsui branches: 1.1.2;
Initial import of news68k port.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.10.2 29-Dec-2002  thorpej Sync with HEAD.
 1.3.10.1 18-Oct-2002  nathanw Catch up to -current.
 1.3.6.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.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 hbvar.h was added on branch thorpej_scsipi on 2000-11-20 20:16:10 +0000
 1.5.110.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.5.108.1 16-May-2008  yamt sync with head.
 1.5.106.1 18-May-2008  yamt sync with head.
 1.5.104.1 02-Jun-2008  mjf Sync with HEAD.
 1.19 20-Nov-2011  tsutsui Add preliminary PROM internal function based framebuffer console support,
which was demonstrated at Open Source Conference 2011 Kansai @ Kyoto
back in July:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-Kansai

- map 0xc0000000-0xffffffff PA region (which is mirror of PA 0x0-0x3fffffff)
to the same VA via %tt0 and %tt1 registers and move KVA space accordingly
(like luna68k does for its devices)
- save trap #0 vector for PROM function calls in early bootstrap
and register it to trap #14 to call it from kernel for console output
- add dumb romcall based tty attachment taken from src/sys/dev/ofw/ofcons.c
- add rom function call stubs from news68k/stand/common/romcalls.S
- remove IIOV() macro for device registers where now mapped PA==VA via %tt1

XXX: romcons is not enabled yet because there is no generic interface
XXX: to attach wskbd(4) to non wsdisplay(4) devices like this romcons.
 1.18 19-Jan-2010  pooka branches: 1.18.12;
Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.

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

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
 1.17 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.16 04-Apr-2008  tsutsui branches: 1.16.2; 1.16.4;
Split device_t/softc for le(4) and variants and misc cosmetic changes.
 1.15 24-Dec-2005  perry branches: 1.15.74;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.14 11-Dec-2005  christos merge ktrace-lwp.
 1.13 02-Jun-2005  tsutsui branches: 1.13.2;
- add const
- u_char -> uint8_t
- sccport0a is not used as pointer, so make it uint32_t address
- idrom is stored in ROM, so make it const rather than volatile
 1.12 27-Feb-2005  tsutsui LANCE chip actually requires PA of shared mem rather than VA.

Fortunately, lower bytes of PA and VA for intio devices were identical
on -current pmap, but the problem appears on new yamt-km which has differnt
address layout. Ummmmm.
 1.11 11-Dec-2004  tsutsui branches: 1.11.2; 1.11.4;
u_intXX_t -> uintXX_t
 1.10 04-Sep-2004  tsutsui - Use ANSI function declarations and make some functions static.
- Some KNF
 1.9 04-Sep-2004  tsutsui Include ioconf.h to declare struct cfdriver.
 1.8 15-Jul-2003  lukem __KERNEL_RCSID()
 1.7 18-Jan-2003  tsutsui branches: 1.7.2;
TAB/space cleanup.
 1.6 20-Dec-2002  tsutsui Remove __P().
 1.5 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.4 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.3 30-May-2001  mrg branches: 1.3.2; 1.3.8;
use _KERNEL_OPT
 1.2 08-Feb-2000  tsutsui branches: 1.2.6; 1.2.8;
Add news1200 support.
Based on a patch from Koichi NISHIWAKI <k-nis@ba2.so-net.ne.jp>
 1.1 09-Dec-1999  tsutsui branches: 1.1.2;
Initial import of news68k port.
 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 08-Feb-2000  bouyer file if_le.c was added on branch thorpej_scsipi on 2000-11-20 20:16:10 +0000
 1.3.8.3 29-Dec-2002  thorpej Sync with HEAD.
 1.3.8.2 18-Oct-2002  nathanw Catch up to -current.
 1.3.8.1 30-May-2001  nathanw file if_le.c was added on branch nathanw_sa on 2002-10-18 02:39:06 +0000
 1.3.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.2.6 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.7.2.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.7.2.4 18-Dec-2004  skrll Sync with HEAD.
 1.7.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.7.2.1 03-Aug-2004  skrll Sync with HEAD
 1.11.4.1 27-Feb-2005  tsutsui Sync with HEAD:
> LANCE chip actually requires PA of shared mem rather than VA.
>
> Fortunately, lower bytes of PA and VA for intio devices were identical
> on -current pmap, but the problem appears on new yamt-km which has differnt
> address layout. Ummmmm.

Now a yamt-km kernel for news68k goes to multi user.
(sorry for ugly MD sources)
 1.11.2.1 29-Apr-2005  kent sync with -current
 1.13.2.1 21-Jun-2006  yamt sync with head.
 1.15.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.16.4.2 11-Mar-2010  yamt sync with head
 1.16.4.1 16-May-2008  yamt sync with head.
 1.16.2.1 18-May-2008  yamt sync with head.
 1.18.12.1 17-Apr-2012  yamt sync with head
 1.9 14-May-2008  tsutsui Normalize my licenses.
 1.8 04-Mar-2007  christos branches: 1.8.40; 1.8.42; 1.8.44; 1.8.46;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.7 11-Dec-2005  christos branches: 1.7.26;
merge ktrace-lwp.
 1.6 04-Sep-2004  tsutsui branches: 1.6.12;
- Use ANSI function declarations and make some functions static.
- Some KNF
 1.5 15-Jul-2003  lukem __KERNEL_RCSID()
 1.4 18-Jan-2003  tsutsui branches: 1.4.2;
TAB/space cleanup.
 1.3 11-Jan-2003  tsutsui Fix -Wsign-compare warnings.
 1.2 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.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.6; 1.1.10;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.10.2 15-Jan-2003  thorpej Sync with HEAD.
 1.1.10.1 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file kb.c was added on branch thorpej_scsipi on 2001-02-11 19:11:14 +0000
 1.4.2.4 27-Jan-2005  skrll Adapt to branch.
 1.4.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.2.1 03-Aug-2004  skrll Sync with HEAD
 1.6.12.2 03-Sep-2007  yamt sync with head.
 1.6.12.1 21-Jun-2006  yamt sync with head.
 1.7.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.8.46.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.8.44.1 16-May-2008  yamt sync with head.
 1.8.42.1 18-May-2008  yamt sync with head.
 1.8.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.15 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.14 24-Apr-2021  thorpej branches: 1.14.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.13 20-Nov-2011  tsutsui branches: 1.13.64;
Add preliminary PROM internal function based framebuffer console support,
which was demonstrated at Open Source Conference 2011 Kansai @ Kyoto
back in July:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-Kansai

- map 0xc0000000-0xffffffff PA region (which is mirror of PA 0x0-0x3fffffff)
to the same VA via %tt0 and %tt1 registers and move KVA space accordingly
(like luna68k does for its devices)
- save trap #0 vector for PROM function calls in early bootstrap
and register it to trap #14 to call it from kernel for console output
- add dumb romcall based tty attachment taken from src/sys/dev/ofw/ofcons.c
- add rom function call stubs from news68k/stand/common/romcalls.S
- remove IIOV() macro for device registers where now mapped PA==VA via %tt1

XXX: romcons is not enabled yet because there is no generic interface
XXX: to attach wskbd(4) to non wsdisplay(4) devices like this romcons.
 1.12 14-May-2008  tsutsui branches: 1.12.32;
Normalize my licenses.
 1.11 29-Mar-2008  tsutsui branches: 1.11.2; 1.11.4; 1.11.6;
Don't forget to set sc_dev.
 1.10 28-Mar-2008  tsutsui Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*().
 1.9 16-Feb-2007  tsutsui branches: 1.9.44;
Remove autovectored ISR priorities and use now properly defined
IPL_* values for isrlink_autovec().
 1.8 11-Dec-2005  christos merge ktrace-lwp.
 1.7 04-Sep-2004  tsutsui branches: 1.7.12;
- Use ANSI function declarations and make some functions static.
- Some KNF
 1.6 04-Sep-2004  tsutsui Include ioconf.h to declare struct cfdriver.
 1.5 15-Jul-2003  lukem __KERNEL_RCSID()
 1.4 11-Jan-2003  tsutsui branches: 1.4.2;
Fix -Wsign-compare warnings.
 1.3 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.6; 1.1.10;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.10.2 15-Jan-2003  thorpej Sync with HEAD.
 1.1.10.1 18-Oct-2002  nathanw Catch up to -current.
 1.1.6.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.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file kb_hb.c was added on branch thorpej_scsipi on 2001-02-11 19:11:15 +0000
 1.4.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.2.1 03-Aug-2004  skrll Sync with HEAD
 1.7.12.1 26-Feb-2007  yamt sync with head.
 1.9.44.2 02-Jun-2008  mjf Sync with HEAD.
 1.9.44.1 03-Apr-2008  mjf Sync with HEAD.
 1.11.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.11.4.1 16-May-2008  yamt sync with head.
 1.11.2.1 18-May-2008  yamt sync with head.
 1.12.32.1 17-Apr-2012  yamt sync with head
 1.13.64.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.14.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 31-Oct-2022  andvar s/interrut/interrupt/ and s/accelelerator/accelerator/ in comments.
 1.2 14-May-2008  tsutsui Normalize my licenses.
 1.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.128; 1.1.130; 1.1.132; 1.1.134;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.134.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.1.132.1 16-May-2008  yamt sync with head.
 1.1.130.1 18-May-2008  yamt sync with head.
 1.1.128.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file kb_hbreg.h was added on branch thorpej_scsipi on 2001-02-11 19:11:15 +0000
 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 14-May-2008  tsutsui branches: 1.10.100;
Normalize my licenses.
 1.9 29-Mar-2008  tsutsui branches: 1.9.2; 1.9.4; 1.9.6;
Don't forget to set sc_dev.
 1.8 28-Mar-2008  tsutsui Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*().
 1.7 16-Feb-2007  tsutsui branches: 1.7.44;
Remove autovectored ISR priorities and use now properly defined
IPL_* values for isrlink_autovec().
 1.6 11-Dec-2005  christos merge ktrace-lwp.
 1.5 04-Sep-2004  tsutsui branches: 1.5.12;
- Use ANSI function declarations and make some functions static.
- Some KNF
 1.4 15-Jul-2003  lukem __KERNEL_RCSID()
 1.3 02-Oct-2002  thorpej branches: 1.3.6;
Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.6; 1.1.10;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.10.1 18-Oct-2002  nathanw Catch up to -current.
 1.1.6.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.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file kb_kbc.c was added on branch thorpej_scsipi on 2001-02-11 19:11:16 +0000
 1.3.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.6.1 03-Aug-2004  skrll Sync with HEAD
 1.5.12.1 26-Feb-2007  yamt sync with head.
 1.7.44.2 02-Jun-2008  mjf Sync with HEAD.
 1.7.44.1 03-Apr-2008  mjf Sync with HEAD.
 1.9.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.9.4.1 16-May-2008  yamt sync with head.
 1.9.2.1 18-May-2008  yamt sync with head.
 1.10.100.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.15 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.14 24-Apr-2021  thorpej branches: 1.14.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.13 22-Nov-2011  tsutsui branches: 1.13.64;
Remove more now unnecessary IIOV() conversion.
XXX: we should have proper PA to VA macro for TT mappings for readability
 1.12 14-May-2008  tsutsui branches: 1.12.32;
Normalize my licenses.
 1.11 28-Mar-2008  tsutsui branches: 1.11.2; 1.11.4; 1.11.6;
Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*().
 1.10 11-Dec-2005  christos branches: 1.10.74;
merge ktrace-lwp.
 1.9 04-Sep-2004  tsutsui - Use ANSI function declarations and make some functions static.
- Some KNF
 1.8 04-Sep-2004  tsutsui Include ioconf.h to declare struct cfdriver.
 1.7 15-Jul-2003  lukem __KERNEL_RCSID()
 1.6 11-Jan-2003  tsutsui branches: 1.6.2;
Fix -Wsign-compare warnings.
 1.5 01-Jan-2003  thorpej Use aprint_normal() for cfprint routines.
 1.4 20-Dec-2002  tsutsui Remove __P().
 1.3 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.6; 1.1.10;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.10.4 15-Jan-2003  thorpej Sync with HEAD.
 1.1.10.3 03-Jan-2003  thorpej Sync with HEAD.
 1.1.10.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.10.1 18-Oct-2002  nathanw Catch up to -current.
 1.1.6.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.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file kbc.c was added on branch thorpej_scsipi on 2001-02-11 19:11:16 +0000
 1.6.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.2.1 03-Aug-2004  skrll Sync with HEAD
 1.10.74.2 02-Jun-2008  mjf Sync with HEAD.
 1.10.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.11.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.11.4.1 16-May-2008  yamt sync with head.
 1.11.2.1 18-May-2008  yamt sync with head.
 1.12.32.1 17-Apr-2012  yamt sync with head
 1.13.64.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.14.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 31-Oct-2022  andvar s/interrut/interrupt/ and s/accelelerator/accelerator/ in comments.
 1.2 14-May-2008  tsutsui Normalize my licenses.
 1.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.128; 1.1.130; 1.1.132; 1.1.134;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.134.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.1.132.1 16-May-2008  yamt sync with head.
 1.1.130.1 18-May-2008  yamt sync with head.
 1.1.128.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file kbcreg.h was added on branch thorpej_scsipi on 2001-02-11 19:11:16 +0000
 1.3 14-May-2008  tsutsui Normalize my licenses.
 1.2 02-Oct-2002  jdolecek branches: 1.2.108; 1.2.110; 1.2.112; 1.2.114;
make ka_name const
 1.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.6; 1.1.10;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.10.1 18-Oct-2002  nathanw Catch up to -current.
 1.1.6.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.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file kbcvar.h was added on branch thorpej_scsipi on 2001-02-11 19:11:16 +0000
 1.2.114.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.2.112.1 16-May-2008  yamt sync with head.
 1.2.110.1 18-May-2008  yamt sync with head.
 1.2.108.1 02-Jun-2008  mjf Sync with HEAD.
 1.3 14-May-2008  tsutsui Normalize my licenses.
 1.2 28-Mar-2008  tsutsui branches: 1.2.2; 1.2.4; 1.2.6;
Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*().
 1.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.128;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.128.2 02-Jun-2008  mjf Sync with HEAD.
 1.1.128.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file kbvar.h was added on branch thorpej_scsipi on 2001-02-11 19:11:17 +0000
 1.2.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.2.4.1 16-May-2008  yamt sync with head.
 1.2.2.1 18-May-2008  yamt sync with head.
 1.2 02-Oct-2000  tsutsui Switch to MI md_root.c.
 1.1 09-Dec-1999  tsutsui branches: 1.1.2;
Initial import of news68k port.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.15 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.14 29-Mar-2008  tsutsui branches: 1.14.2; 1.14.4;
Don't forget to initialize sc_dev.
 1.13 28-Mar-2008  tsutsui Split device_t and softc for MI mk48txx(4) and intersil7170(4) clocks,
and other related misc cosmetics.
 1.12 10-Jan-2008  tsutsui branches: 1.12.6;
- move todr_attach(9) calls from each MD attachment to MI mk48txx_attach()
- don't clear todr_setwen in mk48txx_attach() since it might be set by
MD attachments
 1.11 11-Dec-2005  christos branches: 1.11.50; 1.11.56; 1.11.64;
merge ktrace-lwp.
 1.10 04-Sep-2004  tsutsui branches: 1.10.12;
- Use ANSI function declarations and make some functions static.
- Some KNF
 1.9 04-Sep-2004  tsutsui Include ioconf.h to declare struct cfdriver.
 1.8 01-Nov-2003  tsutsui Adapt MI mk48txx(4) changes. Tested on NWS-1750.
 1.7 19-Jul-2003  tsutsui Rename todclock_config() to todr_attach().
 1.6 15-Jul-2003  lukem __KERNEL_RCSID()
 1.5 20-Dec-2002  tsutsui branches: 1.5.2;
Remove __P().
 1.4 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.3 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.2 23-Feb-2002  scw Allow MD code to provide functions for reading/writing NVRAM/RTC
locations. If passed NULL, the old behaviour using bus_space_{read,write}_1()
is used. Otherwise, all access to the chip goes via the MD functions.

This is necessary for mvmeppc boards where the mk48txx NVRAM/RTC is not
directly addressable.
 1.1 07-Jul-2001  tsutsui branches: 1.1.2; 1.1.8;
Split clock device attachment into interval timer and todclock
since they are actually independent devices.
 1.1.8.4 29-Dec-2002  thorpej Sync with HEAD.
 1.1.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.8.1 07-Jul-2001  nathanw file mkclock_hb.c was added on branch nathanw_sa on 2002-02-28 04:11:14 +0000
 1.1.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.1.2.1 16-Mar-2002  jdolecek Catch up with -current.
 1.5.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.2.1 03-Aug-2004  skrll Sync with HEAD
 1.10.12.1 21-Jan-2008  yamt sync with head
 1.11.64.1 10-Jan-2008  bouyer Sync with HEAD
 1.11.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.11.50.1 23-Mar-2008  matt sync with HEAD
 1.12.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.12.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.14.4.1 16-May-2008  yamt sync with head.
 1.14.2.1 18-May-2008  yamt sync with head.
 1.6 14-May-2008  tsutsui Normalize my licenses.
 1.5 12-Nov-2006  plunky branches: 1.5.52; 1.5.54; 1.5.56; 1.5.58;
Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
 1.4 11-Dec-2005  christos branches: 1.4.20; 1.4.22;
merge ktrace-lwp.
 1.3 04-Sep-2004  tsutsui branches: 1.3.12;
- Use ANSI function declarations and make some functions static.
- Some KNF
 1.2 15-Jul-2003  lukem __KERNEL_RCSID()
 1.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.26;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.26.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.26.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.26.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file ms.c was added on branch thorpej_scsipi on 2001-02-11 19:11:17 +0000
 1.3.12.1 30-Dec-2006  yamt sync with head.
 1.4.22.1 10-Dec-2006  yamt sync with head.
 1.4.20.1 18-Nov-2006  ad Sync with head.
 1.5.58.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.5.56.1 16-May-2008  yamt sync with head.
 1.5.54.1 18-May-2008  yamt sync with head.
 1.5.52.1 02-Jun-2008  mjf Sync with HEAD.
 1.16 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.15 24-Apr-2021  thorpej branches: 1.15.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.14 22-Nov-2011  tsutsui branches: 1.14.64;
Remove more now unnecessary IIOV() conversion.
XXX: we should have proper PA to VA macro for TT mappings for readability
 1.13 14-May-2008  tsutsui branches: 1.13.32;
Normalize my licenses.
 1.12 29-Mar-2008  tsutsui branches: 1.12.2; 1.12.4; 1.12.6;
Don't forget to set sc_dev.
 1.11 28-Mar-2008  tsutsui Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*().
 1.10 04-Mar-2007  christos branches: 1.10.40;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.9 16-Feb-2007  tsutsui branches: 1.9.2;
Remove autovectored ISR priorities and use now properly defined
IPL_* values for isrlink_autovec().
 1.8 11-Dec-2005  christos merge ktrace-lwp.
 1.7 04-Sep-2004  tsutsui branches: 1.7.12;
- Use ANSI function declarations and make some functions static.
- Some KNF
 1.6 15-Jul-2003  lukem __KERNEL_RCSID()
 1.5 11-Jan-2003  tsutsui branches: 1.5.2;
Fix -Wsign-compare warnings.
 1.4 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.3 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.2 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.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.6; 1.1.10;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.10.3 15-Jan-2003  thorpej Sync with HEAD.
 1.1.10.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.10.1 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.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.1.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file ms_hb.c was added on branch thorpej_scsipi on 2001-02-11 19:11:17 +0000
 1.5.2.4 27-Jan-2005  skrll Adapt to branch.
 1.5.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.2.1 03-Aug-2004  skrll Sync with HEAD
 1.7.12.3 03-Sep-2007  yamt sync with head.
 1.7.12.2 26-Feb-2007  yamt sync with head.
 1.7.12.1 21-Jun-2006  yamt sync with head.
 1.9.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.10.40.2 02-Jun-2008  mjf Sync with HEAD.
 1.10.40.1 03-Apr-2008  mjf Sync with HEAD.
 1.12.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.12.4.1 16-May-2008  yamt sync with head.
 1.12.2.1 18-May-2008  yamt sync with head.
 1.13.32.1 17-Apr-2012  yamt sync with head
 1.14.64.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.15.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 31-Oct-2022  andvar s/interrut/interrupt/ and s/accelelerator/accelerator/ in comments.
 1.2 14-May-2008  tsutsui Normalize my licenses.
 1.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.128; 1.1.130; 1.1.132; 1.1.134;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.134.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.1.132.1 16-May-2008  yamt sync with head.
 1.1.130.1 18-May-2008  yamt sync with head.
 1.1.128.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file ms_hbreg.h was added on branch thorpej_scsipi on 2001-02-11 19:11:17 +0000
 1.14 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.13 24-Apr-2021  thorpej branches: 1.13.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.12 14-May-2008  tsutsui branches: 1.12.100;
Normalize my licenses.
 1.11 29-Mar-2008  tsutsui branches: 1.11.2; 1.11.4; 1.11.6;
Don't forget to set sc_dev.
 1.10 28-Mar-2008  tsutsui Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*().
 1.9 04-Mar-2007  christos branches: 1.9.40;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.8 16-Feb-2007  tsutsui branches: 1.8.2;
Remove autovectored ISR priorities and use now properly defined
IPL_* values for isrlink_autovec().
 1.7 11-Dec-2005  christos merge ktrace-lwp.
 1.6 04-Sep-2004  tsutsui branches: 1.6.12;
- Use ANSI function declarations and make some functions static.
- Some KNF
 1.5 15-Jul-2003  lukem __KERNEL_RCSID()
 1.4 02-Oct-2002  thorpej branches: 1.4.6;
Use CFATTACH_DECL().
 1.3 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.2 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.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.6; 1.1.10;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.10.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.10.1 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.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.1.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file ms_kbc.c was added on branch thorpej_scsipi on 2001-02-11 19:11:17 +0000
 1.4.6.4 27-Jan-2005  skrll Adapt to branch.
 1.4.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.6.1 03-Aug-2004  skrll Sync with HEAD
 1.6.12.3 03-Sep-2007  yamt sync with head.
 1.6.12.2 26-Feb-2007  yamt sync with head.
 1.6.12.1 21-Jun-2006  yamt sync with head.
 1.8.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.9.40.2 02-Jun-2008  mjf Sync with HEAD.
 1.9.40.1 03-Apr-2008  mjf Sync with HEAD.
 1.11.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.11.4.1 16-May-2008  yamt sync with head.
 1.11.2.1 18-May-2008  yamt sync with head.
 1.12.100.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.13.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 28-Mar-2008  tsutsui Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*().
 1.1 25-Jan-2001  tsutsui branches: 1.1.2; 1.1.128;
Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
 1.1.128.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 25-Jan-2001  bouyer file msvar.h was added on branch thorpej_scsipi on 2001-02-11 19:11:18 +0000
 1.4 25-Mar-2000  tsutsui Add a "sc_rev" member to ncr5380_softc and handle CXD1180 quirk
in MI ncr5380sbc.
 1.3 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.2 19-Mar-2000  tsutsui Sync with MI ncr5380sbc changes.

XXX CXD1180 quirk code should be merged into the MI ncr5380sbc driver...
 1.1 09-Dec-1999  tsutsui branches: 1.1.2;
Initial import of news68k port.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.26 20-Nov-2011  tsutsui Add preliminary PROM internal function based framebuffer console support,
which was demonstrated at Open Source Conference 2011 Kansai @ Kyoto
back in July:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-Kansai

- map 0xc0000000-0xffffffff PA region (which is mirror of PA 0x0-0x3fffffff)
to the same VA via %tt0 and %tt1 registers and move KVA space accordingly
(like luna68k does for its devices)
- save trap #0 vector for PROM function calls in early bootstrap
and register it to trap #14 to call it from kernel for console output
- add dumb romcall based tty attachment taken from src/sys/dev/ofw/ofcons.c
- add rom function call stubs from news68k/stand/common/romcalls.S
- remove IIOV() macro for device registers where now mapped PA==VA via %tt1

XXX: romcons is not enabled yet because there is no generic interface
XXX: to attach wskbd(4) to non wsdisplay(4) devices like this romcons.
 1.25 17-Jun-2008  tsutsui branches: 1.25.30;
No need to terminate DMA in si_dma_poll().
 1.24 17-Jun-2008  tsutsui Implement si_dma_poll() properly so that crashdump works with DMA xfer.
 1.23 07-May-2008  tsutsui branches: 1.23.2; 1.23.4;
Tweak a structure definition for DMA registers.
 1.22 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.21 04-Apr-2008  tsutsui branches: 1.21.2; 1.21.4;
Split devict_t/softc for ncr5380sbc SCSI, and misc cosmetic changes.
 1.20 04-Mar-2007  christos branches: 1.20.40;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.19 17-Feb-2007  tsutsui branches: 1.19.2;
Make disconnect/reselect work on news68k si(4) with DMA and
enable it by default.
 1.18 29-Mar-2006  thorpej branches: 1.18.12;
Use device_cfdata().
 1.17 11-Dec-2005  christos branches: 1.17.4; 1.17.6; 1.17.8; 1.17.10; 1.17.12;
merge ktrace-lwp.
 1.16 04-Sep-2004  tsutsui branches: 1.16.12;
- Use ANSI function declarations and make some functions static.
- Some KNF
 1.15 04-Sep-2004  tsutsui Include ioconf.h to declare struct cfdriver.
 1.14 13-Aug-2004  tsutsui Adapt to NCR5380_USE_BUS_SPACE.
 1.13 15-Jul-2003  lukem __KERNEL_RCSID()
 1.12 19-Apr-2003  tsutsui branches: 1.12.2;
Fix typo, and TAB/space cosmetics.
 1.11 20-Dec-2002  tsutsui Remove __P().
 1.10 20-Oct-2002  chs merge the 12 copies of vm_machdep.c on the m68k platforms.
clean up some other stuff along the way, including:
- use m68k/cacheops.*, remove duplicates from cpu.h.
- centralize a few declarations in (all the copies of) cpu.h.
- define M68K_VAC on platforms which have a VAC.
- switch the sun platforms to the (now common) proc_trampoline().
- do the phys_map thang on the sun platforms too, no reason not to.
 1.9 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.8 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.7 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.6 25-Apr-2001  bouyer branches: 1.6.2; 1.6.8;
Pull up the thorpej_scsipi branch to main branch.
This is a completely rewritten scsipi_xfer execution engine, and the
associated changes to HBA drivers. Overview of changes & features:
- All xfers are queued in the mid-layer, rather than doing so in an
ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
(no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
the need to use buggy tag ID allocation schemes in many adapter drivers).
- support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command
will be requeued, or a REQUEST SENSE will be sent as appropriate.

Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge
 1.5 25-Mar-2000  tsutsui branches: 1.5.6; 1.5.8;
Add a "sc_rev" member to ncr5380_softc and handle CXD1180 quirk
in MI ncr5380sbc.
 1.4 19-Mar-2000  tsutsui Sync with MI ncr5380sbc changes.

XXX CXD1180 quirk code should be merged into the MI ncr5380sbc driver...
 1.3 08-Feb-2000  tsutsui Add news1200 support.
Based on a patch from Koichi NISHIWAKI <k-nis@ba2.so-net.ne.jp>
 1.2 19-Jan-2000  tsutsui Add #include <machine/cpu.h>
 1.1 09-Dec-1999  tsutsui branches: 1.1.2;
Initial import of news68k port.
 1.1.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.4 29-Mar-2001  bouyer Pass compile-test on i386.
 1.5.6.3 22-Jan-2001  bouyer first cut at converting to thorpej_scsipi
 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 25-Mar-2000  bouyer file si.c was added on branch thorpej_scsipi on 2000-11-20 20:16:10 +0000
 1.6.8.4 29-Dec-2002  thorpej Sync with HEAD.
 1.6.8.3 11-Nov-2002  nathanw Catch up to -current
 1.6.8.2 18-Oct-2002  nathanw Catch up to -current.
 1.6.8.1 25-Apr-2001  nathanw file si.c was added on branch nathanw_sa on 2002-10-18 02:39:07 +0000
 1.6.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.12.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.12.2.2 25-Aug-2004  skrll Sync with HEAD.
 1.12.2.1 03-Aug-2004  skrll Sync with HEAD
 1.16.12.3 03-Sep-2007  yamt sync with head.
 1.16.12.2 26-Feb-2007  yamt sync with head.
 1.16.12.1 21-Jun-2006  yamt sync with head.
 1.17.12.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.17.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.17.8.1 01-Apr-2006  yamt sync with head.
 1.17.6.1 22-Apr-2006  simonb Sync with head.
 1.17.4.1 09-Sep-2006  rpaulo sync with head
 1.18.12.1 24-Feb-2007  bouyer Pull up following revision(s) (requested by tsutsui in ticket #464):
sys/arch/news68k/conf/INSTALL: revision 1.41
sys/arch/news68k/conf/GENERIC_TINY: revision 1.56
sys/arch/news68k/conf/GENERIC: revision 1.87
sys/arch/news68k/conf/LIBERO: revision 1.44
sys/arch/news68k/dev/si.c: revision 1.19
Make disconnect/reselect work on news68k si(4) with DMA and
enable it by default.
 1.19.2.2 12-Mar-2007  rmind Sync with HEAD.
 1.19.2.1 17-Feb-2007  rmind file si.c was added on branch yamt-idlelwp on 2007-03-12 05:49:38 +0000
 1.20.40.2 29-Jun-2008  mjf Sync with HEAD.
 1.20.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.21.4.2 04-May-2009  yamt sync with head.
 1.21.4.1 16-May-2008  yamt sync with head.
 1.21.2.1 18-May-2008  yamt sync with head.
 1.23.4.1 18-Jun-2008  simonb Sync with head.
 1.23.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.25.30.1 17-Apr-2012  yamt sync with head
 1.21 15-Jan-2024  thorpej G/C __HAVE_LEGACY_INTRCNT from news68k.
 1.20 15-Jan-2024  thorpej Switch news68k over to the common interrupt dispatch code.
 1.19 22-Nov-2011  tsutsui Remove more now unnecessary IIOV() conversion.
XXX: we should have proper PA to VA macro for TT mappings for readability
 1.18 20-Dec-2010  matt branches: 1.18.8;
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.17 28-Jan-2010  mbalmer branches: 1.17.4;
Fix language.
 1.16 10-Dec-2008  tsutsui Account idepth in functions in locore.s that are registered in the
interrupt vector table so that we don't have to track all interrupt paths.
 1.15 28-Apr-2008  martin branches: 1.15.6; 1.15.8;
Remove clause 3 and 4 from TNF licenses
 1.14 28-Mar-2008  tsutsui branches: 1.14.2; 1.14.4;
Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*().
 1.13 28-Jan-2008  tsutsui branches: 1.13.6;
- account idepth in all interrupt handlers
- use idepth for CLKF_INTR()
 1.12 24-Dec-2005  perry branches: 1.12.50; 1.12.56;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.11 11-Dec-2005  christos merge ktrace-lwp.
 1.10 02-Jun-2005  tsutsui branches: 1.10.2;
Fix a shasow warning.
 1.9 11-Dec-2004  tsutsui u_intXX_t -> uintXX_t
 1.8 04-Sep-2004  tsutsui - Use ANSI function declarations and make some functions static.
- Some KNF
 1.7 04-Sep-2004  tsutsui Include ioconf.h to declare struct cfdriver.
 1.6 15-Jul-2003  lukem __KERNEL_RCSID()
 1.5 18-Jan-2003  tsutsui branches: 1.5.2;
TAB/space cleanup.
 1.4 20-Dec-2002  tsutsui Remove __P().
 1.3 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 07-Jul-2001  tsutsui branches: 1.1.2; 1.1.8;
Split clock device attachment into interval timer and todclock
since they are actually independent devices.
 1.1.8.3 29-Dec-2002  thorpej Sync with HEAD.
 1.1.8.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.8.1 07-Jul-2001  nathanw file timer_hb.c was added on branch nathanw_sa on 2002-10-18 02:39:07 +0000
 1.1.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.5.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.2.4 18-Dec-2004  skrll Sync with HEAD.
 1.5.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.2.1 03-Aug-2004  skrll Sync with HEAD
 1.10.2.2 04-Feb-2008  yamt sync with head.
 1.10.2.1 21-Jun-2006  yamt sync with head.
 1.12.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.12.50.1 23-Mar-2008  matt sync with HEAD
 1.13.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.13.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.13.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.14.4.3 11-Mar-2010  yamt sync with head
 1.14.4.2 04-May-2009  yamt sync with head.
 1.14.4.1 16-May-2008  yamt sync with head.
 1.14.2.1 18-May-2008  yamt sync with head.
 1.15.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.15.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.17.4.1 05-Mar-2011  rmind sync with head
 1.18.8.1 17-Apr-2012  yamt sync with head
 1.34 11-Sep-2021  andvar Add missing double p and d for stopped and overriden accordingly.
Fix few more typos along the way, mainly in copy-pasted comments.
 1.33 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.32 24-Apr-2021  thorpej branches: 1.32.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.31 20-Nov-2011  tsutsui branches: 1.31.64;
Add preliminary PROM internal function based framebuffer console support,
which was demonstrated at Open Source Conference 2011 Kansai @ Kyoto
back in July:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-Kansai

- map 0xc0000000-0xffffffff PA region (which is mirror of PA 0x0-0x3fffffff)
to the same VA via %tt0 and %tt1 registers and move KVA space accordingly
(like luna68k does for its devices)
- save trap #0 vector for PROM function calls in early bootstrap
and register it to trap #14 to call it from kernel for console output
- add dumb romcall based tty attachment taken from src/sys/dev/ofw/ofcons.c
- add rom function call stubs from news68k/stand/common/romcalls.S
- remove IIOV() macro for device registers where now mapped PA==VA via %tt1

XXX: romcons is not enabled yet because there is no generic interface
XXX: to attach wskbd(4) to non wsdisplay(4) devices like this romcons.
 1.30 28-Apr-2008  martin branches: 1.30.34;
Remove clause 3 and 4 from TNF licenses
 1.29 29-Mar-2008  tsutsui branches: 1.29.2; 1.29.4;
Split softc and device_t for zsc(4) and its children.

XXX we should restructure MI APIs and make it really machine independent.
 1.28 03-Dec-2007  ad branches: 1.28.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.27 09-Nov-2007  ad Call zs_lock_init() to set up the chanstate's lock.
 1.26 17-Oct-2007  garbled branches: 1.26.2;
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.25 20-May-2007  tsutsui branches: 1.25.8; 1.25.10; 1.25.14;
Call simple_lock_init(9) with proper zs_chanstate otherwise
LOCKDEBUG kernel fails during console zstty attachment.
 1.24 10-Feb-2007  tsutsui branches: 1.24.6; 1.24.8; 1.24.14;
Implement generic softintr(9) support for news68k.
Mostly taken from mvme68k.
 1.23 29-Mar-2006  thorpej Use device_cfdata().
 1.22 11-Dec-2005  christos branches: 1.22.4; 1.22.6; 1.22.8; 1.22.10; 1.22.12;
merge ktrace-lwp.
 1.21 02-Jun-2005  tsutsui branches: 1.21.2;
- add const
- u_char -> uint8_t
- sccport0a is not used as pointer, so make it uint32_t address
- idrom is stored in ROM, so make it const rather than volatile
 1.20 04-Sep-2004  tsutsui - Use ANSI function declarations and make some functions static.
- Some KNF
 1.19 04-Sep-2004  tsutsui Include ioconf.h to declare struct cfdriver.
 1.18 15-Jul-2003  lukem __KERNEL_RCSID()
 1.17 01-May-2003  tsutsui branches: 1.17.2;
Initialize struct consdev more properly.
 1.16 01-May-2003  tsutsui KNF
 1.15 11-Feb-2003  tsutsui Backout previous. <sys/lock.h> is pulled from <sys/tty.h>.
 1.14 10-Feb-2003  tsutsui MI z8530sc driver now requires <sys/lock.h>.
 1.13 28-Jan-2003  pk Provide locking required by the interrupt handlers running at IPL_SERIAL.
 1.12 11-Jan-2003  tsutsui Fix -Wsign-compare warnings.
 1.11 01-Jan-2003  thorpej Use aprint_normal() for cfprint routines.
 1.10 20-Dec-2002  tsutsui Remove __P().
 1.9 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.8 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.7 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.6 07-Jul-2001  tsutsui branches: 1.6.2; 1.6.8; 1.6.16;
bcopy() -> memcpy() (I guess there is no overlap here)
 1.5 14-Oct-2000  tsutsui branches: 1.5.2;
- Initialize zs chip in zscninit() so that kernel can use
serial console even if the PROM uses bitmap console.
- Remove zs_hwflags since news68k does not have keyboard nor mouse at zs;
check zschan address set in zscninit() to detect console device.
- Use BPS_TO_TCONST() to set baudrate in zs_init_reg[].
- Remove zs_get_chan_addr(), which is not needed anymore.
 1.4 06-Mar-2000  thorpej branches: 1.4.4;
- Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
 1.3 08-Feb-2000  tsutsui Add news1200 support.
Based on a patch from Koichi NISHIWAKI <k-nis@ba2.so-net.ne.jp>
 1.2 29-Dec-1999  tsutsui Modify software interrupt handling a bit.
 1.1 09-Dec-1999  tsutsui branches: 1.1.2;
Initial import of news68k port.
 1.1.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.4.1 15-Dec-2000  he Pull up revision 1.5 (requested by tsutsui):
Initialize zs chip in zscninit() so that the kernel can use serial
console even if the PROM uses bitmap console. Remove some dead
code. Use BPS_TO_TCONST() to initialize baudrate.
 1.5.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.5.2.1 14-Oct-2000  bouyer file zs.c was added on branch thorpej_scsipi on 2000-11-20 20:16:10 +0000
 1.6.16.1 19-May-2002  gehenna Replace the access to devsw table and the hard-coded majors with devsw API.
 1.6.8.6 15-Jan-2003  thorpej Sync with HEAD.
 1.6.8.5 03-Jan-2003  thorpej Sync with HEAD.
 1.6.8.4 29-Dec-2002  thorpej Sync with HEAD.
 1.6.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.6.8.2 17-Sep-2002  nathanw Catch up to -current.
 1.6.8.1 07-Jul-2001  nathanw file zs.c was added on branch nathanw_sa on 2002-09-17 21:16:12 +0000
 1.6.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.17.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.17.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.17.2.1 03-Aug-2004  skrll Sync with HEAD
 1.21.2.5 07-Dec-2007  yamt sync with head
 1.21.2.4 15-Nov-2007  yamt sync with head.
 1.21.2.3 03-Sep-2007  yamt sync with head.
 1.21.2.2 26-Feb-2007  yamt sync with head.
 1.21.2.1 21-Jun-2006  yamt sync with head.
 1.22.12.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.22.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.22.8.1 01-Apr-2006  yamt sync with head.
 1.22.6.1 22-Apr-2006  simonb Sync with head.
 1.22.4.1 09-Sep-2006  rpaulo sync with head
 1.24.14.1 22-May-2007  matt Update to HEAD.
 1.24.8.1 11-Jul-2007  mjf Sync with head.
 1.24.6.2 03-Dec-2007  ad Sync with HEAD.
 1.24.6.1 27-May-2007  ad Sync with head.
 1.25.14.1 13-Nov-2007  bouyer Sync with HEAD
 1.25.10.2 09-Jan-2008  matt sync with HEAD
 1.25.10.1 06-Nov-2007  matt sync with HEAD
 1.25.8.2 09-Dec-2007  jmcneill Sync with HEAD.
 1.25.8.1 11-Nov-2007  joerg Sync with HEAD.
 1.26.2.2 08-Dec-2007  mjf Sync with HEAD.
 1.26.2.1 19-Nov-2007  mjf Sync with HEAD.
 1.28.14.2 02-Jun-2008  mjf Sync with HEAD.
 1.28.14.1 03-Apr-2008  mjf Sync with HEAD.
 1.29.4.1 16-May-2008  yamt sync with head.
 1.29.2.1 18-May-2008  yamt sync with head.
 1.30.34.1 17-Apr-2012  yamt sync with head
 1.31.64.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.32.8.1 04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed