Home | History | Annotate | only in /src/sys/arch/acorn32
History log of /src/sys/arch/acorn32
RevisionDateAuthorComments
 1.5 25-Oct-2008  apb Use ${TOOL_SED} instead if plain sed in Makefiles.
 1.4 11-Dec-2005  christos branches: 1.4.76; 1.4.80; 1.4.86;
merge ktrace-lwp.
 1.3 02-Aug-2003  bjh21 Descend into stand so boot32 gets built.
 1.2 06-Jan-2003  lukem branches: 1.2.2;
Rework how KERNOBJDIR functions; now it's always determined with
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
This is far simpler than the previous system, and more robust with
objdirs built via BSDOBJDIR.

The previous method of finding KERNOBJDIR when using BSDOBJDIR by
referencing _SRC_TOP_OBJ_ from another directory was extremely
fragile due to the depth first tree walk by <bsd.subdir.mk>, and
the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be
empty on the *first* pass to create fresh objdirs.

This change requires adding sys/arch/*/compile/Makefile to create
the objdir in that directory, and descending into arch/*/compile
from arch/*/Makefile. Remove the now-unnecessary .keep_me files
whilst here.

Per lengthy discussion with Andrew Brown.
 1.1 06-Oct-2001  bjh21 branches: 1.1.4; 1.1.6;
Basic acorn32 makefile -- the arm32 one with the obvioud transformations
applied. This is necessary to get kernel headers installed properly.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 06-Oct-2001  thorpej file Makefile was added on branch kqueue on 2002-01-10 19:35:59 +0000
 1.1.4.2 07-Jan-2003  thorpej Sync with HEAD.
 1.1.4.1 06-Oct-2001  thorpej file Makefile was added on branch nathanw_sa on 2003-01-07 20:46:46 +0000
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.4.86.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.4.80.1 04-May-2009  yamt sync with head.
 1.4.76.1 17-Jan-2009  mjf Sync with HEAD.
 1.20 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.19 16-Jun-2017  jdolecek dumpconf(void) long doesn't exist, remove the prototype

PR kern/39714 by Henning Petersen
 1.18 29-Jul-2012  mlelstv branches: 1.18.2; 1.18.16;
Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.

No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().

Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().

Make cpu_rootconf(9) describe the calling order.
 1.17 03-Jun-2011  matt branches: 1.17.2; 1.17.8;
device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.16 12-May-2009  cegger branches: 1.16.4; 1.16.6; 1.16.10;
use device_xname()
 1.15 15-Mar-2009  cegger ansify function definitions
 1.14 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.13 14-Feb-2008  joerg branches: 1.13.10; 1.13.18; 1.13.24;
Fix syntax.
 1.12 12-Feb-2008  joerg Introduce device_find_by_xname and device_find_by_driver_unit to replace
alldevs iterations all over src.

Patch discussed with and improved on suggestioned from cube@.
 1.11 05-Dec-2007  tsutsui Use TAILQ_FIRST(3) and TAILQ_NEXT(3) macro.
 1.10 17-Oct-2007  garbled branches: 1.10.2; 1.10.4;
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.9 30-Jul-2007  jmmv branches: 1.9.2; 1.9.4; 1.9.6; 1.9.8;
Print some debugging information when DEBUG is set, not when TERSE is
unset. The latter is not a "standard" definition, and was used in very
few places anyway.
 1.8 11-Dec-2005  christos branches: 1.8.24; 1.8.30; 1.8.38; 1.8.40; 1.8.42; 1.8.44;
merge ktrace-lwp.
 1.7 23-Oct-2004  thorpej branches: 1.7.12;
Centralize the declaration of booted_device and booted_partition.
 1.6 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.5 16-Jun-2003  thorpej branches: 1.5.2;
Rename IPL_IMP -> IPL_VM.
 1.4 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.3 10-Feb-2002  reinoud branches: 1.3.4; 1.3.8;
Use `booted_kernel' instead of the `boot_file' variable.
 1.2 27-Nov-2001  thorpej branches: 1.2.2;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.4 17-Sep-2002  nathanw Catch up to -current.
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file autoconf.c was added on branch nathanw_sa on 2002-01-08 00:22:43 +0000
 1.2.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 27-Nov-2001  thorpej file autoconf.c was added on branch kqueue on 2002-01-10 19:36:00 +0000
 1.3.8.1 16-May-2002  gehenna Use devsw API instead of search the old name <-> block conversion table.
 1.3.4.1 17-Mar-2002  thorpej IPL_IMP -> IPL_VM
 1.5.2.4 02-Nov-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.7.12.3 27-Feb-2008  yamt sync with head.
 1.7.12.2 07-Dec-2007  yamt sync with head
 1.7.12.1 03-Sep-2007  yamt sync with head.
 1.8.44.1 15-Aug-2007  skrll Sync with HEAD.
 1.8.42.1 07-Aug-2007  matt Sync with HEAD.
 1.8.40.1 06-Jan-2008  wrstuden Catch up to netbsd-4.0 release.
 1.8.38.1 03-Oct-2007  garbled Sync with HEAD
 1.8.30.1 20-Aug-2007  ad Sync with HEAD.
 1.8.24.1 24-Oct-2007  xtraeme Pull up following revision(s) (requested by jmmv in ticket #941):
sys/arch/acorn32/acorn32/autoconf.c: revision 1.9
sys/arch/netwinder/netwinder/autoconf.c: revision 1.8
sys/arch/shark/shark/autoconf.c: revision 1.9
sys/arch/cats/cats/autoconf.c: revision 1.11
Print some debugging information when DEBUG is set, not when TERSE is
unset. The latter is not a "standard" definition, and was used in very
few places anyway.
 1.9.8.3 23-Mar-2008  matt sync with HEAD
 1.9.8.2 09-Jan-2008  matt sync with HEAD
 1.9.8.1 06-Nov-2007  matt sync with HEAD
 1.9.6.3 21-Mar-2008  chris Sync with head.
 1.9.6.2 09-Feb-2008  chris Add initial reworking of acorn32 to use new interrupt code.

Note that cats probably won't work currently as acorn32 changed the way
that the pic is registered, it has to provide the irq lines as on acorn32
we attach the iomd after we need to register irqs for the pioc. So we
setup the irqs for iomd before malloc etc are available. This needs
to be fixed.

More work is still needed to update most of the podulebus drivers.
First I need to add podulebus wrapper for interrupts that handles the
maskaddr and maskbits. Exposing them to the common irq code is wrong.
 1.9.6.1 01-Jan-2008  chris Sync with HEAD.
 1.9.4.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.9.2.1 28-Feb-2008  rjs Sync with HEAD.
 1.10.4.1 08-Dec-2007  ad Sync with head.
 1.10.2.2 18-Feb-2008  mjf Sync with HEAD.
 1.10.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.13.24.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.13.18.1 28-Apr-2009  skrll Sync with HEAD.
 1.13.10.2 16-May-2009  yamt sync with head
 1.13.10.1 04-May-2009  yamt sync with head.
 1.16.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.16.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.16.4.1 12-Jun-2011  rmind sync with head
 1.17.8.1 08-Aug-2012  martin Pull up following revision(s) (requested by mlelstv in ticket #466):
sys/arch/amiga/amiga/autoconf.c: revision 1.113
sys/arch/rs6000/rs6000/autoconf.c: revision 1.4
sys/arch/emips/emips/autoconf.c: revision 1.6
sys/arch/sandpoint/sandpoint/autoconf.c: revision 1.27
sys/arch/evbmips/alchemy/autoconf.c: revision 1.18
sys/arch/sgimips/sgimips/autoconf.c: revision 1.43
sys/arch/atari/atari/autoconf.c: revision 1.63
sys/arch/powerpc/oea/ofw_autoconf.c: revision 1.17
sys/arch/mmeye/mmeye/autoconf.c: revision 1.9
distrib/sets/lists/comp/mi: revision 1.1771
sys/arch/mipsco/mipsco/autoconf.c: revision 1.25
sys/arch/iyonix/iyonix/autoconf.c: revision 1.14
sys/arch/hp300/hp300/autoconf.c: revision 1.100
sys/kern/init_main.c: revision 1.445
sys/arch/pmax/pmax/autoconf.c: revision 1.79
sys/arch/netwinder/netwinder/autoconf.c: revision 1.11
sys/arch/dreamcast/dreamcast/autoconf.c: revision 1.10
sys/arch/ibmnws/ibmnws/autoconf.c: revision 1.12
sys/arch/evbppc/ev64260/autoconf.c: revision 1.17
sys/arch/evbmips/gdium/autoconf.c: revision 1.5
sys/arch/algor/algor/autoconf.c: revision 1.21
share/man/man9/Makefile: revision 1.367
sys/arch/ews4800mips/ews4800mips/autoconf.c: revision 1.9
sys/arch/amigappc/amigappc/autoconf.c: revision 1.5
sys/arch/x86/x86/x86_autoconf.c: revision 1.65
sys/arch/acorn26/acorn26/autoconf.c: revision 1.9
sys/arch/mvmeppc/mvmeppc/autoconf.c: revision 1.13
sys/arch/vax/vax/autoconf.c: revision 1.94
sys/arch/usermode/dev/cpu.c: revision 1.72
sys/arch/evbppc/virtex/autoconf.c: revision 1.5
sys/arch/next68k/next68k/autoconf.c: revision 1.26
sys/arch/mac68k/mac68k/autoconf.c: revision 1.73
sys/arch/ia64/ia64/autoconf.c: revision 1.6
sys/arch/evbppc/obs405/obs405_autoconf.c: revision 1.6
share/man/man9/cpu_rootconf.9: revision 1.7
sys/arch/landisk/landisk/autoconf.c: revision 1.6
sys/arch/evbmips/malta/autoconf.c: revision 1.16
sys/arch/sun3/sun3/autoconf.c: revision 1.76
sys/arch/evbppc/explora/autoconf.c: revision 1.13
sys/arch/sun3/sun3/autoconf.c: revision 1.77
sys/arch/evbmips/loongson/autoconf.c: revision 1.3
sys/arch/evbmips/atheros/autoconf.c: revision 1.11
sys/arch/sparc64/sparc64/autoconf.c: revision 1.188
sys/arch/acorn32/acorn32/autoconf.c: revision 1.18
sys/arch/evbarm/evbarm/autoconf.c: revision 1.13
sys/arch/cobalt/cobalt/autoconf.c: revision 1.30
sys/arch/mvme68k/mvme68k/autoconf.c: revision 1.46
sys/arch/hp700/hp700/autoconf.c: revision 1.48
sys/arch/evbmips/adm5120/autoconf.c: revision 1.5
sys/arch/hpcmips/hpcmips/autoconf.c: revision 1.25
sys/arch/alpha/alpha/autoconf.c: revision 1.52
sys/arch/sparc/sparc/autoconf.c: revision 1.244
sys/arch/evbppc/pmppc/autoconf.c: revision 1.7
sys/arch/bebox/bebox/autoconf.c: revision 1.25
sys/arch/luna68k/luna68k/autoconf.c: revision 1.13
sys/arch/hpcarm/hpcarm/autoconf.c: revision 1.20
sys/arch/evbppc/walnut/autoconf.c: revision 1.21
sys/arch/cesfic/cesfic/autoconf.c: revision 1.26
sys/arch/cats/cats/autoconf.c: revision 1.17
sys/arch/x68k/x68k/autoconf.c: revision 1.67
sys/arch/news68k/news68k/autoconf.c: revision 1.21
sys/arch/arc/arc/autoconf.c: revision 1.34
sys/arch/evbsh3/evbsh3/autoconf.c: revision 1.11
sys/sys/conf.h: revision 1.143
sys/arch/evbmips/rasoc/autoconf.c: revision 1.3
sys/arch/hpcsh/hpcsh/autoconf.c: revision 1.26
sys/arch/sun68k/sun68k/autoconf.c: revision 1.29
sys/arch/evbmips/rmixl/autoconf.c: revision 1.6
sys/arch/zaurus/zaurus/autoconf.c: revision 1.12
sys/arch/xen/x86/autoconf.c: revision 1.15
sys/arch/evbppc/mpc85xx/autoconf.c: revision 1.6
sys/arch/shark/shark/autoconf.c: revision 1.18
sys/arch/prep/prep/autoconf.c: revision 1.25
sys/arch/newsmips/newsmips/autoconf.c: revision 1.36
sys/arch/sbmips/sbmips/autoconf.c: revision 1.8
Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.
No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().
Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().
Make cpu_rootconf(9) describe the calling order.
add rootconf(9) as a link to cpu_rootconf(9)
make this compile again
 1.17.2.1 30-Oct-2012  yamt sync with head
 1.18.16.1 28-Aug-2017  skrll Sync with HEAD
 1.18.2.1 03-Dec-2017  jdolecek update from HEAD
 1.12 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.11 11-Dec-2005  christos branches: 1.11.4; 1.11.8;
merge ktrace-lwp.
 1.10 14-Jul-2003  lukem branches: 1.10.16;
use __KERNEL_RCSID() in a consistent manner
 1.9 26-Oct-2002  jdolecek branches: 1.9.6;
now that mem_no is emitted by config(8), there is no reason to keep
copy of more or less identical iskmemdev() for every arch; move the function
to spec_vnop.c, and g/c machine-dependant copies
 1.8 06-Sep-2002  gehenna branches: 1.8.2;
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 19-Jul-2002  thorpej Rename cdev_systrace_init() to cdev_clonemisc_init(), so it can
be properly used by any misc. cloning device. While here, correct
a comment to indicate that "open" is the only entry point and that
everything else is handled with fileops.
 1.6 17-Jun-2002  christos MD systrace gluons.
 1.5 19-Apr-2002  wiz branches: 1.5.2;
Complete renaming of opms to opms (was partly named pms, externally and
internally). Move arm/iomd/pms* to arm/iomd/opms*. Mechanical change,
tested by cross-compiling a kernel from i386.

Approved by christos.

XXX: What are arm/arm32/conf.c and arm/include/conf.h good for?
 1.4 16-Mar-2002  martin Rename ISDN devices, per discussion on tech-kern. The network devices
become ippp (ISDN ppp) and irip (ISDN raw IP). The character device now
are called: /dev/isdn (isdnd <-> kernel communication), /dev/isdnctl (dialing
and other control), /dev/isdntrc* (tracing), /dev/isdnbchan* (raw B channel
access, i.e. for user land PPP) and /dev/isdntel* (telephone devices, i.e.
for answering machines).
 1.3 12-Jan-2002  manu updated chrtoblktbl[]
 1.2 12-Jan-2002  manu Added clockctl
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.6 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.5 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file conf.c was added on branch kqueue on 2002-01-10 19:36:00 +0000
 1.1.4.7 11-Nov-2002  nathanw Catch up to -current
 1.1.4.6 17-Sep-2002  nathanw Catch up to -current.
 1.1.4.5 01-Aug-2002  nathanw Catch up to -current.
 1.1.4.4 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file conf.c was added on branch nathanw_sa on 2002-02-28 04:05:50 +0000
 1.5.2.3 21-Jul-2002  gehenna catch up with -current.
 1.5.2.2 09-Jul-2002  gehenna catch up with -current.
 1.5.2.1 16-May-2002  gehenna Bye block/character device swicth tables.
 1.8.2.1 09-Nov-2002  bjh21 Catch up with -current.
 1.9.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.9.6.1 03-Aug-2004  skrll Sync with HEAD
 1.10.16.1 30-Dec-2006  yamt sync with head.
 1.11.8.1 03-Sep-2006  yamt sync with head.
 1.11.4.1 09-Sep-2006  rpaulo sync with head
 1.6 17-Jan-2009  bjh21 Clear out the vestigial support for the Simtec Hydra board. Now that we're
getting support for proper SMP ARMs, keeping non-functional support for
a seriously crippled not-really-SMP system is likely to cause more problems
than it's worth, even if it was fun for a while.
 1.5 20-Sep-2008  tsutsui branches: 1.5.2;
Remove advertising clause for UCB in various genassym.cf files,
which were derived from genassym.c in 4.4BSD-Lite2 (or 386BSD).
Closes PR misc/39573. Approved by martin@.
 1.4 29-Apr-2008  matt branches: 1.4.2; 1.4.6;
Change IPL_LEVELS to NIPL.
current_spl_level is dead.
 1.3 05-Oct-2002  bjh21 branches: 1.3.86; 1.3.88; 1.3.112; 1.3.114; 1.3.116;
Second phase of Hydra attachment: All CPUs are now set up sufficiently that
they can call printf(), which they do before halting.
 1.2 20-Dec-2001  thorpej branches: 1.2.2; 1.2.4;
* Share a common vector page between arm26 and arm32.
* Use a common set of exception handlers for all arm32 platforms.
* New FIQ framework based on discussions with Ben Harris, shared
between arm26 and arm32.
 1.1 27-Nov-2001  thorpej Move interrupt-related stuff out of the generic 32-bit ARM genassym.cf
and into platform-specific genassym.cf files.
 1.2.4.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.1 20-Dec-2001  thorpej file genassym.cf was added on branch kqueue on 2002-01-10 19:36:00 +0000
 1.2.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.2.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.2.2.1 20-Dec-2001  nathanw file genassym.cf was added on branch nathanw_sa on 2002-01-08 00:22:43 +0000
 1.3.116.2 04-May-2009  yamt sync with head.
 1.3.116.1 16-May-2008  yamt sync with head.
 1.3.114.1 18-May-2008  yamt sync with head.
 1.3.112.2 28-Sep-2008  mjf Sync with HEAD.
 1.3.112.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.88.1 28-Jan-2008  matt Given the that there are only 4 IPLs (ignoring soft IPLs), a number of
cleanups can be done:
Remove _SPL_* aliases.
Don't store irqmasks in ci_cpl, just make it an ipl level.
Add fast softint switching support.
 1.3.86.1 09-Feb-2008  chris Add initial reworking of acorn32 to use new interrupt code.

Note that cats probably won't work currently as acorn32 changed the way
that the pic is registered, it has to provide the irq lines as on acorn32
we attach the iomd after we need to register irqs for the pioc. So we
setup the irqs for iomd before malloc etc are available. This needs
to be fixed.

More work is still needed to update most of the podulebus drivers.
First I need to add podulebus wrapper for interrupts that handles the
maskaddr and maskbits. Exposing them to the common irq code is wrong.
 1.4.6.1 19-Oct-2008  haad Sync with HEAD.
 1.4.2.1 10-Oct-2008  skrll Sync with HEAD.
 1.5.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.27 17-Jan-2009  bjh21 Clear out the vestigial support for the Simtec Hydra board. Now that we're
getting support for proper SMP ARMs, keeping non-functional support for
a seriously crippled not-really-SMP system is likely to cause more problems
than it's worth, even if it was fun for a while.
 1.26 17-Oct-2007  garbled branches: 1.26.20; 1.26.28;
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 09-Jul-2007  ad branches: 1.25.10; 1.25.12;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.24 17-May-2007  yamt merge yamt-idlelwp branch. asked by core@. some ports still needs work.

from doc/BRANCHES:

idle lwp, and some changes depending on it.

1. separate context switching and thread scheduling.
(cf. gmcgarry_ctxsw)
2. implement idle lwp.
3. clean up related MD/MI interfaces.
4. make scheduler(s) modular.
 1.23 04-Mar-2007  christos branches: 1.23.2; 1.23.4; 1.23.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.22 05-Aug-2006  bjh21 branches: 1.22.10;
The Hydra code should probably be removed, but until it is, it may as well
not generate spurious diffs in my tree, so bring it up to my working version.
 1.21 26-May-2006  blymn Clean up bogus whitespace
 1.20 08-Dec-2005  yamt branches: 1.20.4; 1.20.6; 1.20.8; 1.20.14;
use VM_PAGE_TO_PHYS macro.
 1.19 26-Aug-2005  drochner s/locdesc_t/int/g
 1.18 28-Jun-2005  drochner branches: 1.18.2;
convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)
 1.17 01-Apr-2005  yamt merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
save some resources like pv_entry. also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
 1.16 23-Jun-2003  martin branches: 1.16.2; 1.16.10; 1.16.12;
Make sure to include opt_foo.h if a defflag option FOO is used.
 1.15 23-Feb-2003  thorpej Change pcb32_pagedir to a paddr_t (after all, it's used as a paddr_t
everywhere in the code).
 1.14 01-Jan-2003  thorpej Use aprint_normal() for cfprint routines.
 1.13 13-Oct-2002  bjh21 branches: 1.13.2; 1.13.4;
It appears that MI code requires ci_cpuid to be the CPU number of the CPU
in question, whereas the ARM code was using it to hold the model
identification. To fix this, rename:

ci_cpuid -> ci_arm_cpuid
ci_cputype -> ci_arm_cputype (for consistency)
ci_cpurev -> ci_arm_cpurev (ditto)
ci_cpunum -> ci_cpuid

This makes top(1) give correct CPU numbers in its "STATE" column (all 0 for
now).
 1.12 12-Oct-2002  bjh21 Remember the location of each CPU's idle PCB in struct cpu_info.
Move allocation of the idle PCB from hydra.c to cpu.c and add some
extra initialisation from cpu_fork().
 1.11 06-Oct-2002  bjh21 branches: 1.11.2;
Turn curcpu() into a macro.
Rename cpu_info_array to cpu_info and make it public.
Add CPU_FOREACH() and friends.
 1.10 06-Oct-2002  bjh21 Call cpu_setup() and cpu_attach() from cpu_hydra_hatch().
Also simplify cpu_hydra_attach() somewhat.
 1.9 06-Oct-2002  bjh21 Give each CPU a struct cpu_info, and have curcpu() return the right one.
Also have cpu_boot_secondary_processors() un-halt all the slave CPUs, and
have them do something visible when that happens.
 1.8 06-Oct-2002  bjh21 Make cpu_number() work.
 1.7 05-Oct-2002  bjh21 Second phase of Hydra attachment: All CPUs are now set up sufficiently that
they can call printf(), which they do before halting.
 1.6 05-Oct-2002  bjh21 Minimal changes to allow a kernel with "options MULTIPROCESSOR" to compile
and boot multi-user on a single-processor machine. Many of these changes
are wildly inappropriate for actual multi-processor operation, and correcting
this will be my next task.
 1.5 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.4 01-Oct-2002  bjh21 Report the hardware version in case anyone's interested (I was).
 1.3 01-Oct-2002  bjh21 Use CFATTACH_DECL().
 1.2 01-Oct-2002  bjh21 Add a shutdown hook which puts the Hydra back into its post-reset state,
largely to ensure that we don't leave the slave CPUs running when we go
back to RISC OS.
 1.1 30-Sep-2002  bjh21 Beginnings of support for the Simtec Hydra multiprocessor board.
So far, the Hydra is detected and initialised, and each slave CPU is
spun up briefly to check that it works.
 1.11.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.11.2.1 06-Oct-2002  jdolecek file hydra.c was added on branch kqueue on 2002-10-10 18:30:19 +0000
 1.13.4.2 24-Oct-2002  bjh21 Dropping new CPUs into cpu_switch() now causes horrible crashes (they try
to actually do something -- disgraceful!), so don't let them go in there.
 1.13.4.1 19-Oct-2002  bjh21 Actually throw newly-booted CPUs into cpu_switch() to see if they can do
anything. They don't seem to (well, one ends up running the pagedaemon,
allegedly), but I don't get a crash.
 1.13.2.3 03-Jan-2003  thorpej Sync with HEAD.
 1.13.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.13.2.1 13-Oct-2002  nathanw file hydra.c was added on branch nathanw_sa on 2002-10-18 02:33:32 +0000
 1.16.12.1 28-Jan-2005  yamt convert arch/acorn{26,32} to new apis.
 1.16.10.1 29-Apr-2005  kent sync with -current
 1.16.2.3 11-Dec-2005  christos Sync with head.
 1.16.2.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.16.2.1 01-Apr-2005  skrll Sync with HEAD.
 1.18.2.3 03-Sep-2007  yamt sync with head.
 1.18.2.2 30-Dec-2006  yamt sync with head.
 1.18.2.1 21-Jun-2006  yamt sync with head.
 1.20.14.1 19-Jun-2006  chap Sync with head.
 1.20.8.2 11-Aug-2006  yamt sync with head
 1.20.8.1 26-Jun-2006  yamt sync with head.
 1.20.6.1 01-Jun-2006  kardel Sync with head.
 1.20.4.1 09-Sep-2006  rpaulo sync with head
 1.22.10.2 29-Mar-2007  skrll Adapt arm32. Thanks to scw for helping out.

Tested on my cats (SA1)

XXX hydra should die. i've made some changes, but no guarantees.
 1.22.10.1 12-Mar-2007  rmind Sync with HEAD.
 1.23.10.2 03-Oct-2007  garbled Sync with HEAD
 1.23.10.1 22-May-2007  matt Update to HEAD.
 1.23.4.1 11-Jul-2007  mjf Sync with head.
 1.23.2.2 15-Jul-2007  ad Sync with head.
 1.23.2.1 27-May-2007  ad Sync with head.
 1.25.12.1 06-Nov-2007  matt sync with HEAD
 1.25.10.1 01-Jan-2008  chris Sync with HEAD.
 1.26.28.1 03-Mar-2009  skrll Sync with HEAD.
 1.26.20.1 04-May-2009  yamt sync with head.
 1.4 17-Jan-2009  bjh21 Clear out the vestigial support for the Simtec Hydra board. Now that we're
getting support for proper SMP ARMs, keeping non-functional support for
a seriously crippled not-really-SMP system is likely to cause more problems
than it's worth, even if it was fun for a while.
 1.3 06-Oct-2002  bjh21 branches: 1.3.2; 1.3.4; 1.3.120; 1.3.128;
Use HYDRA_ID_SLAVE_MASK rather than 3.
No need for an infinite loop after we jump out of hydra_hatchcode.
 1.2 05-Oct-2002  bjh21 Second phase of Hydra attachment: All CPUs are now set up sufficiently that
they can call printf(), which they do before halting.
 1.1 30-Sep-2002  bjh21 Beginnings of support for the Simtec Hydra multiprocessor board.
So far, the Hydra is detected and initialised, and each slave CPU is
spun up briefly to check that it works.
 1.3.128.1 03-Mar-2009  skrll Sync with HEAD.
 1.3.120.1 04-May-2009  yamt sync with head.
 1.3.4.2 18-Oct-2002  nathanw Catch up to -current.
 1.3.4.1 06-Oct-2002  nathanw file hydra_boot.S was added on branch nathanw_sa on 2002-10-18 02:33:32 +0000
 1.3.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.3.2.1 06-Oct-2002  jdolecek file hydra_boot.S was added on branch kqueue on 2002-10-10 18:30:19 +0000
 1.4 17-Jan-2009  bjh21 Clear out the vestigial support for the Simtec Hydra board. Now that we're
getting support for proper SMP ARMs, keeping non-functional support for
a seriously crippled not-really-SMP system is likely to cause more problems
than it's worth, even if it was fun for a while.
 1.3 05-Aug-2006  bjh21 branches: 1.3.64; 1.3.72;
The Hydra code should probably be removed, but until it is, it may as well
not generate spurious diffs in my tree, so bring it up to my working version.
 1.2 05-Oct-2002  bjh21 branches: 1.2.2; 1.2.4; 1.2.6; 1.2.28; 1.2.42; 1.2.46;
Remove spurious comment.
 1.1 30-Sep-2002  bjh21 Beginnings of support for the Simtec Hydra multiprocessor board.
So far, the Hydra is detected and initialised, and each slave CPU is
spun up briefly to check that it works.
 1.2.46.1 11-Aug-2006  yamt sync with head
 1.2.42.1 09-Sep-2006  rpaulo sync with head
 1.2.28.1 30-Dec-2006  yamt sync with head.
 1.2.6.1 26-Oct-2002  bjh21 Add a little comment indicating where to get the Hydra documentation.
 1.2.4.2 18-Oct-2002  nathanw Catch up to -current.
 1.2.4.1 05-Oct-2002  nathanw file hydrareg.h was added on branch nathanw_sa on 2002-10-18 02:33:33 +0000
 1.2.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.2.2.1 05-Oct-2002  jdolecek file hydrareg.h was added on branch kqueue on 2002-10-10 18:30:20 +0000
 1.3.72.1 03-Mar-2009  skrll Sync with HEAD.
 1.3.64.1 04-May-2009  yamt sync with head.
 1.3 17-Jan-2009  bjh21 Clear out the vestigial support for the Simtec Hydra board. Now that we're
getting support for proper SMP ARMs, keeping non-functional support for
a seriously crippled not-really-SMP system is likely to cause more problems
than it's worth, even if it was fun for a while.
 1.2 05-Aug-2006  bjh21 branches: 1.2.64; 1.2.72;
The Hydra code should probably be removed, but until it is, it may as well
not generate spurious diffs in my tree, so bring it up to my working version.
 1.1 05-Oct-2002  bjh21 branches: 1.1.2; 1.1.26; 1.1.40; 1.1.44;
Second phase of Hydra attachment: All CPUs are now set up sufficiently that
they can call printf(), which they do before halting.
 1.1.44.1 11-Aug-2006  yamt sync with head
 1.1.40.1 09-Sep-2006  rpaulo sync with head
 1.1.26.1 30-Dec-2006  yamt sync with head.
 1.1.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.1 05-Oct-2002  nathanw file hydravar.h was added on branch nathanw_sa on 2002-10-18 02:33:33 +0000
 1.2.72.1 03-Mar-2009  skrll Sync with HEAD.
 1.2.64.1 04-May-2009  yamt sync with head.
 1.1 24-Sep-2018  pgoyette branches: 1.1.2;
file netbsd32_machdep.c was initially added on branch pgoyette-compat.
 1.1.2.2 27-Sep-2018  pgoyette (Try to) move the arm-specific compat_netbsd32_machdep stuff to the
arm directory, not in acorn32!

XXX We still need to come back and hook up the _13 and _16 code!
 1.1.2.1 24-Sep-2018  pgoyette Work in progress
 1.1 22-Sep-2018  pgoyette branches: 1.1.2;
file netbsd32_machdep_16.c was initially added on branch pgoyette-compat.
 1.1.2.3 27-Sep-2018  pgoyette (Try to) move the arm-specific compat_netbsd32_machdep stuff to the
arm directory, not in acorn32!

XXX We still need to come back and hook up the _13 and _16 code!
 1.1.2.2 23-Sep-2018  pgoyette Include header to get prototypes for the empty xxx_init() and xxx_fini()
 1.1.2.1 22-Sep-2018  pgoyette Add dummy file since the compat_16 code assumes that there might be
some MD code here.
 1.4 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.3 11-Dec-2005  christos branches: 1.3.4; 1.3.8;
merge ktrace-lwp.
 1.2 14-Jul-2003  lukem branches: 1.2.16;
use __KERNEL_RCSID() in a consistent manner
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file rpc_kbd_map.c was added on branch kqueue on 2002-01-10 19:36:00 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file rpc_kbd_map.c was added on branch nathanw_sa on 2001-10-05 22:27:47 +0000
 1.2.16.1 30-Dec-2006  yamt sync with head.
 1.3.8.1 03-Sep-2006  yamt sync with head.
 1.3.4.1 09-Sep-2006  rpaulo sync with head
 1.101 15-May-2022  andvar s/wich/which in comments.
 1.100 16-Sep-2021  andvar fix various typos, mainly in comments.
 1.99 17-Aug-2021  andvar fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.
 1.98 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.97 18-Apr-2020  skrll Trailing whitespace
 1.96 04-Oct-2019  christos branches: 1.96.6;
undo previous, requested by uwe
 1.95 04-Oct-2019  christos change 0x% -> %x
 1.94 03-Oct-2019  msaitoh s/0x0x/0x/
 1.93 16-Jul-2019  skrll Consistently use vaddr_t as initarm and friends return type.

Makes no difference to binaries except for aarch64 where it's required
 1.92 28-Oct-2018  skrll Fix a commit
 1.91 22-Dec-2016  cherry branches: 1.91.14; 1.91.16;
switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.
 1.90 25-Oct-2014  skrll branches: 1.90.2; 1.90.4;
Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.89 13-Sep-2014  matt vm_size_t -> vsize_t
 1.88 22-Feb-2014  matt Deal with non-4KB page sizes
 1.87 18-Aug-2013  matt Fix more <arm/locore.h> lossage
 1.86 22-Sep-2012  matt branches: 1.86.2;
Don't use an asm in pmap_activate to update the TTBR, use cpu_setttb instead
but add a second argument to it to indicate whether the TLB/caches need to be
flushed. Default cortex to pmap_needs_fixup = 1. But check the MMFR3 field
to see if the fixed can be skipped.
Use a cf_flag bit 0 to indicate whether the A9 L2 cache should disable (bit 0 = 1)
or enabeld (bit = 0).

With these changes, the A9 MMU can use traverse caches to do MMU tablewalks
Also, make sure all memory has the shareable bit for the A9.
 1.85 16-Aug-2012  matt branches: 1.85.2;
Move the standard definitions of the {UND,IRQ,FIQ,ABT}_STACK_SIZE to
<arm32/machdep.h>
Move the extern for cpu_reset_address to the same file.
Add cpu_reset_address_paddr.
Kill cpu_reset_v4_MMU_disable.
if cpu_reset_address is NULL, then the MMU will be disabled.
 1.84 29-Jul-2012  matt Fix more -fno-common fallout.
Move more variables to common locations.
 1.83 10-May-2012  skrll _int*_t -> uint*_t

Same code before and after.
 1.82 19-Jul-2011  dyoung branches: 1.82.2; 1.82.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.81 30-Jun-2011  wiz dependant -> dependent
 1.80 28-Dec-2009  uebayasi More setttb() -> cpu_setttb() for readability & consistency. Missing instances
pointed out by tsutsui@ & nonaka@, thanks.
 1.79 27-Nov-2009  rmind - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.78 26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.77 16-Aug-2009  cegger buildfix: #include <sys/exec_aout.h>
 1.76 11-Aug-2009  matt Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
 1.75 13-Feb-2009  apb Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
 1.74 30-Nov-2008  martin branches: 1.74.4;
As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
 1.73 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.72 11-Nov-2008  dyoung It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled. So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks(). Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown(). No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown(). I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that. Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
 1.71 27-Apr-2008  matt branches: 1.71.6; 1.71.8;
Merge kernel changes in matt-armv6 to HEAD.
 1.70 09-Feb-2008  chris branches: 1.70.6; 1.70.8; 1.70.10;
Further tweaks to Kinetic support. All memory in ths sytem is now used.
Non-Kinetic memory is placed into a seperate freelist so preference is
given to the kinetic memory.
 1.69 26-Jan-2008  chris Add support to support code for Kinetic card. The kernel is loaded into
the Processor local memory, so that should provide a speed up.

Currently DMA won't work, as we only tell the kernel about the kinetic
memory, and exclude the motherboard memory. I'll look at fixing this over
the weekend.

Add support for kernels > 4MiB. The -current INSTALL kernel has now hit
25KiB over 4MiB and we were only adding L1 mappings for 4MiB.

Also added lots of tracing which I used to work out what boot32 was doing,
and so what the kernel was meant to be doing. This is disabled by default.

Out of paranoia also become a client of all domains before setting the ttb,
just in case RISC-OS ever decides to use domains.

All of this has been tested on my Kinetic Risc-PC. I've carried out a full
install onto it, and hope to use it for testing out the interrupt work I've
been doing.
 1.68 19-Jan-2008  chris Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.67 17-Oct-2007  garbled branches: 1.67.2; 1.67.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.66 13-Aug-2007  tsutsui branches: 1.66.2; 1.66.4;
Remove all references to spl_mask. Now it isn't used by any sources.
Discussed on port-arm.
 1.65 24-Oct-2006  bjh21 branches: 1.65.8; 1.65.16; 1.65.22; 1.65.24; 1.65.26;
parse_mi_bootargs() is declared in <arm/arm32/machdep.h>, so there's no need
to declare it here too.
 1.64 16-Aug-2006  bjh21 branches: 1.64.2; 1.64.4;
Clean out some cruft left behind by the old console code.
 1.63 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.62 25-Jun-2006  christos GCC4 fixes from Mike Pumford
 1.61 11-Dec-2005  christos branches: 1.61.4; 1.61.8; 1.61.16;
merge ktrace-lwp.
 1.60 12-Dec-2004  abs branches: 1.60.10;
Fix comments slighly
 1.59 31-Dec-2003  bjh21 Add a little comment explaining how to convert between RISC OS and hardware
CMOS addresses, since the old one's been lost.
 1.58 30-Sep-2003  thorpej New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
 1.57 16-Jun-2003  thorpej branches: 1.57.2;
Rename IPL_IMP -> IPL_VM.
 1.56 22-May-2003  thorpej Move KERNEL_VM_SIZE into the C files where its used.
 1.55 21-May-2003  thorpej Move KERNEL_VM_BASE inside where it is used (it won't be there for long).
 1.54 21-May-2003  thorpej Fully switch acorn32 to the new pmap; it has been confirmed to work.
 1.53 03-May-2003  thorpej Don't expose KERNEL_TEXT_BASE outside of board-specific code. This gives
individual board start-up code more flexibility about where the kernel
starts in the kernel address space.
 1.52 03-May-2003  thorpej Reduce differences between ARM32_NEW_VM_LAYOUT and not; always pass
the start and end of the kernel managed virtual address space to
pmap_bootstrap() in the new pmap.
 1.51 02-May-2003  thorpej Eliminate PTE_BASE and the PT-PT completely in the ARM32_PMAP_NEW case.
Also in the ARM32_PMAP_NEW case, reclaim the USPACE-bytes of wasted space
at the top of the user address that hasn't been needed for a very very
long time.
 1.50 26-Apr-2003  chris Add support for ARM32_PMAP_NEW. Note that due to changes to how the l1
table is handled the podulebus mappings are now done at initarm, rather
than in the podulebus code. While I'm not happy with this it does work,
perhaps there's a better way to do it?

Not enableing by default I've not got enough cards to check the podulebus
change hasn't broken something (works with my rapide and with my network
podule)
 1.49 26-Apr-2003  ragge Call ksyms_init() instead of ddb_init() in case of
NKSYMS || defined(DDB) || defined(LKM)
 1.48 01-Apr-2003  thorpej Use PAGE_SIZE rather than NBPG.
 1.47 17-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.46 29-Dec-2002  reinoud Typo and comments
 1.45 29-Dec-2002  reinoud Update the NetBSD part for the bootloader change. Mostly the changes in
bootconfig.h needs reflection
 1.44 15-Oct-2002  bjh21 ANSIfy. Un-__P().
 1.43 15-Oct-2002  bjh21 KNF -- this file was making my eyes hurt.

No functional change.
 1.42 03-Sep-2002  chris Found the issue with the kinetic bootloader.

Seems that we assume that the dram blocks are sorted, and that the first/lowest address is also where the kernel is.

If the above is not true, then we're on a kinetic (probably should make a better way to indicate this) So search for all dram blocks < with starting addr lower than the first block and remove them.

Currently there's minimal performance gain (which is odd as the SDRAM is meant to be faster, I'm wondering if we need to prod some hidden registers to set timing information.

Note that I still get 16MB/s compared with 7MB/s on RiscStation and 93MB/s on my cats. I'm thinking that something else is seriously nasty on acorn32.
 1.41 24-Aug-2002  thorpej Enable caching on kernel and user page tables. This saves having
to do uncached memory access during VM operations (which can be
quite expensive on some CPUs).

We currently write-back PTEs as soon as they're modified; there is
some room for optimization (to write them back in larger chunks).
For PTEs in the APTE space (i.e. PTEs for pmaps that describe another
process's address space), PTEs must also be evicted from the cache
complete (PTEs in PTE space will be evicted durint a context switch).
 1.40 22-Aug-2002  thorpej * Add PTE_SYNC() and PTE_SYNC_RANGE() macros. These don't actually do
anything yet.
* Use PTE_SYNC() and PTE_SYNC_RANGE() in some obvious places, i.e.
where vtopte() is used.
 1.39 21-Aug-2002  thorpej Do cached memory access to L1 tables, making sure to write-back the
cache after any L1 table modifications.
 1.38 31-Jul-2002  thorpej Move the calls to uvm_page_physload() out of pmap_bootstrap() and
into platform-specific initialization code, giving platform-specific
code control over which free list a given chunk of memory gets put
onto.

Changes are essentially mechanical. Test compiled for all ARM
platforms, test booted on Intel IQ80321 and Shark.

Discussed some time ago on port-arm.
 1.37 30-Jul-2002  thorpej Move the uvm_setpagesize() call to platform-dependent code in preparation
for other changes to pmap_bootstrap().
 1.36 03-May-2002  rjs branches: 1.36.2; 1.36.4;
Use processor specific versions of ARM cache control functions for SA1100
and SA1110 instead of using SA110 ones.

Rename common StrongARM functions from sa110_* to sa1_*.

Reviewed by Jason Thorpe.
 1.35 12-Apr-2002  thorpej Centralize ARM CPU configuration information by adding a new header
file, <arm/cpuconf.h>, which pulls in "opt_cputypes.h" and then defines
the following:
* CPU_NTYPES -- now many CPU types are configured into the kernel. What
you really want to know is "== 1" or "> 1".
* Defines ARM_ARCH_2, ARM_ARCH_3, ARM_ARCH_4, ARM_ARCH_5, depending
on which ARM architecture versions are configured (based on CPU_*
options). Also defines ARM_NARCH to determins how many architecture
versions are configured.
* Defines ARM_MMU_MEMC, ARM_MMU_GENERIC, ARM_MMU_XSCALE depending on
which classes of ARM MMUs are configured into the kernel, and ARM_NMMUS
to determine how many MMU classes are configured.

Remove the needless inclusion of "opt_cputypes.h" in several places.
Convert remaining users to <arm/cpuconf.h>.
 1.34 10-Apr-2002  thorpej vm_offset_t -> vaddr_t,paddr_t
 1.33 09-Apr-2002  thorpej * Split pte_cache_mode into pte_l1_s_cache_mode, pte_l2_l_cache_mode,
and pte_l2_s_cache_mode. The cache-meaningful bits are different
for these descriptor types on some processor models.
* Add pte_*_cache_mask, corresponding to each above, which has a mask
of the cache-meangful bits, and define those for generic and XScale
MMU classes. Note, the L2_S_CACHE_MASK_xscale definition requires
use of the Extended Small Page L2 descriptor (the "X" bit overlaps
with AP bits otherwise).
 1.32 09-Apr-2002  thorpej Use abstract names for the protection and PTE type bits in
L1 and L2 descriptors. This will allow us to support different
PTE layouts that enable the use of extensions on different
processor models.
 1.31 05-Apr-2002  thorpej * Rewrite the 32-bit ARM pte.h based on the ARM architecture manual.
Significant cleanup, here, including better PTE bit names.
* Add XScale PTE extensions (ECC enable, write-allocate cache mode).
* Mechanical changes everywhere else to update for new pte.h. While
doing this, two bugs (as a result of typos) were fixed in

arm/arm32/bus_dma.c
evbarm/integrator/int_bus_dma.c
 1.30 03-Apr-2002  thorpej Clean up handling of the vector page on 32-bit ARM systems:
* Don't refer to VA 0, instead refer to a new variable: vector_page
* Delete the old zero_page_*() functions, replacing them with a new
one: vector_page_setprot().
* When manipulating vector page mappings in user pmaps, only do so if
the vector page is below KERNEL_BASE (if it's above KERNEL_BASE, the
vector page is mapped by the kernel pmap).
* Add a new function, arm32_vector_init(), which takes the virtual
address of the vector page (which MUST be valid when the function
is called) and a bitmask of vectors the kernel is going to take
over, and performs all vector page initialization, including setting
the V bit in the CPU Control register ("relocate vectors to high
address"), if necessary.
 1.29 25-Mar-2002  thorpej * Fix use of pmap_curmaxkvaddr.
* Use the PTP hint in the pmap.
 1.28 24-Mar-2002  thorpej Use vtopte() instead of pmap_pte().
 1.27 23-Mar-2002  thorpej * Rename PROCESS_PAGE_TBLS_BASE -> PTE_BASE
* Rename ALT_PAGE_TBLS_BASE -> APTE_BASE
* Garbage-collect PAGE_TABLE_SPACE_START
 1.26 10-Mar-2002  bjh21 __RCSID -> __KERNEL_RCSID
 1.25 03-Mar-2002  chris branches: 1.25.2;
Implement pmap_growkernel for arm32 based ports.
Note that this has been compiled on some systems, cats, IQ80310, IPAQ, netwinder and shark (note that shark's build is currently broken due to other reasons), but only actually run on cats.
Shark doesn't make use of the functionality as I believe there has to be a correlation between OFW and the kernel tables so that calls into OFW work.
 1.24 22-Feb-2002  thorpej Fix the "va" argument to pmap_map_entry() when mapping kernel_ptpt.
 1.23 22-Feb-2002  thorpej Change pmap_map_entry() to work like pmap_map_chunk(): take a pointer
to the L1 table and a virtual address, and no pointer to the L2 table.
The L2 table will be looked up by pmap_map_entry(), which will panic
if the there is no L2 table for the requested VA.

NOTE: IT IS EXTREMELY IMPORTANT THAT THE CORRECT VIRTUAL ADDRESS
BE PROVIDED TO pmap_map_entry()! Notably, the code that mapped
the kernel L2 tables into the kernel PT mapping L2 table were not
passing actual virtual addresses, but rather offsets into the range
mapped by the L2 table. I have fixed up all of these call sites,
and tested the resulting kernel on both an IQ80310 and a Shark.
Other portmasters should examine their pmap_map_entry() calls if
their new kernels fail.
 1.22 21-Feb-2002  thorpej Keep track of which kernel PTs are available during bootstrap,
and let pmap_map_chunk() lookup the correct one to use for the
current VA. Eliminate the "l2table" argument to pmap_map_chunk().

Add a second L2 table for mapping kernel text/data/bss on the
IQ80310 (fixes booting kernels with ramdisks).
 1.21 21-Feb-2002  thorpej Always pass the L1 table to pmap_map_chunk(). This allows pmap_map_chunk()
to perform some error checking.
 1.20 21-Feb-2002  thorpej map_chunk() -> pmap_map_chunk(), and move it to pmap.c
 1.19 20-Feb-2002  thorpej map_pagetable() -> pmap_link_l2pt(), and move it to pmap.c
 1.18 20-Feb-2002  thorpej Collapse map_entry{,ro,nc}() into a single pmap_map_entry() that
takes a prot and a "cacheable" indicator.
 1.17 20-Feb-2002  thorpej Rename map_section() to pmap_map_section(), move it to pmap.c, and give it
an extra argument (prot - specifies protection of the mapping).
 1.16 18-Feb-2002  bjh21 Pull in <arm/arm32/machdep.h> for initarm() prototype.
Change signature of initarm() to match the prototype.
Add prototype for canonicalose_bootconfig().
__RCSID() while I'm here.
 1.15 12-Feb-2002  reinoud Forgot to remove the include file for the COMPAT_OLD_BOOTLOADER option i
removed.
 1.14 11-Feb-2002  reinoud _important_ : the old BtRiscBSD compatibility has been put to rest... this
means that kernels from now on are not bootable by !BtRiscBSD but only with
!BtNetBSD.

Big initial commit for a new cleaned up and extended bootblock style. This
patch also allows ELF symbol tables to be read when the patches on the
bootloader are commit but will work fine with the older bootloader.

An extra option `oldkernel' will be provided in the newer bootloader to
pass out old style bootconfig's thus enabling old style kernels to load and
function.

Tested on a.out and ELF (preliminary) kernels with both older and new style
bootconfig blocks.
 1.13 11-Feb-2002  skrll We're not arm32 we're acorn32.
 1.12 31-Jan-2002  reinoud Oeps... boot_file was needed after all ... weird
 1.11 31-Jan-2002  reinoud Initial `machdep.booted_kernel' support as a string flag on the boot
arguments since otherwise RiscOS file names must be parsed.
 1.10 25-Jan-2002  thorpej Overhaul of the ARM cache code. This is mostly a simplification
pass. Rather than providing a whole slew of cache operations that
aren't ever used, distill them down to some useful primitives:

icache_sync_all Synchronize I-cache
icache_sync_range Synchronize I-cache range

dcache_wbinv_all Write-back and Invalidate D-cache
dcache_wbinv_range Write-back and Invalidate D-cache range
dcache_inv_range Invalidate D-cache range
dcache_wb_range Write-back D-cache range

idcache_wbinv_all Write-back and Invalidate D-cache,
Invalidate I-cache
idcache_wbinv_range Write-back and Invalidate D-cache,
Invalidate I-cache range

Note: This does not yet include an overhaul of the actual asm files
that implement the primitives. Instead, we've provided a safe default
for each CPU type, and the individual CPU types can now be optimized
one at a time.
 1.9 07-Jan-2002  bjh21 branches: 1.9.2;
Don't print arm700bugcount at shutdown. I'm planning to make it into
an evcnt, so users can get at it using vmstat if they care.
 1.8 27-Nov-2001  thorpej Use <machine/intr.h>, not <machine/irqhandler.h>
 1.7 23-Nov-2001  thorpej Use <arm/undefined.h> instead of <machine/undefined.h>.
 1.6 23-Nov-2001  thorpej No need to pull in <machine/pte.h> directly.
 1.5 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.4 09-Nov-2001  thorpej branches: 1.4.2;
Add some rudimentary support for ELF symbols in DDB on the ARM ports.
On platforms which load the kernel sans symbols directly from firmware
(possibly in e.g. S-Record format), call ddb_init() with empty arguments,
so that it will search any compiled in SYMTAB_SPACE. On all other platforms,
if __ELF__, also call ddb_init() with empty arguments until ELF bootloaders
which pass symbol information are ready.
 1.3 09-Nov-2001  thorpej Remove unneeded declarations of the db_machine_init() function. The
ARM ports are the only ones that actually have one, and it is about
to change.
 1.2 09-Nov-2001  thorpej Remove unnecessary prototypes for zero_page_read{only,write}().
 1.1 05-Oct-2001  reinoud branches: 1.1.2;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.2.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.4.2.14 03-Jan-2003  thorpej Sync with HEAD.
 1.4.2.13 29-Dec-2002  thorpej Sync with HEAD.
 1.4.2.12 18-Oct-2002  nathanw Catch up to -current.
 1.4.2.11 17-Sep-2002  nathanw Catch up to -current.
 1.4.2.10 27-Aug-2002  thorpej Sync with -current.
 1.4.2.9 01-Aug-2002  nathanw Catch up to -current.
 1.4.2.8 24-Jun-2002  nathanw Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).
 1.4.2.7 20-Jun-2002  nathanw Catch up to -current.
 1.4.2.6 17-Apr-2002  nathanw Catch up to -current.
 1.4.2.5 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.4.2.4 28-Feb-2002  nathanw Catch up to -current.
 1.4.2.3 11-Jan-2002  nathanw More catchup.
 1.4.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.4.2.1 09-Nov-2001  nathanw file rpc_machdep.c was added on branch nathanw_sa on 2002-01-08 00:22:43 +0000
 1.9.2.7 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.9.2.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.9.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.9.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.9.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.9.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.9.2.1 07-Jan-2002  thorpej file rpc_machdep.c was added on branch kqueue on 2002-01-10 19:36:01 +0000
 1.25.2.1 17-Mar-2002  thorpej IPL_IMP -> IPL_VM
 1.36.4.2 14-Feb-2003  he Revert pull-up of revision 1.39 (requested by rearnsha in ticket #1170):
Revert cached memory access to L1 tables, this causes instability
on the release branch.
 1.36.4.1 21-Nov-2002  he Pull up revision 1.39 (requested by thorpej in ticket #712):
Do cached memory access to L1 tables, making sure to
write-back the cache after any L1 table modifications.
 1.36.2.1 30-Aug-2002  gehenna catch up with -current.
 1.57.2.4 18-Dec-2004  skrll Sync with HEAD.
 1.57.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.57.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.57.2.1 03-Aug-2004  skrll Sync with HEAD
 1.60.10.5 11-Feb-2008  yamt sync with head.
 1.60.10.4 04-Feb-2008  yamt sync with head.
 1.60.10.3 21-Jan-2008  yamt sync with head
 1.60.10.2 03-Sep-2007  yamt sync with head.
 1.60.10.1 30-Dec-2006  yamt sync with head.
 1.61.16.1 13-Jul-2006  gdamore Merge from HEAD.
 1.61.8.2 03-Sep-2006  yamt sync with head.
 1.61.8.1 26-Jun-2006  yamt sync with head.
 1.61.4.1 09-Sep-2006  rpaulo sync with head
 1.64.4.1 10-Dec-2006  yamt sync with head.
 1.64.2.1 18-Nov-2006  ad Sync with head.
 1.65.26.1 16-Aug-2007  jmcneill Sync with HEAD.
 1.65.24.1 28-Feb-2008  rjs Sync with HEAD.
 1.65.22.1 15-Aug-2007  skrll Sync with HEAD.
 1.65.16.1 03-Oct-2007  garbled Sync with HEAD
 1.65.8.1 20-Aug-2007  ad Sync with HEAD.
 1.66.4.3 23-Mar-2008  matt sync with HEAD
 1.66.4.2 28-Jan-2008  matt Adapt to new pmap_bootstrap signature.
 1.66.4.1 06-Nov-2007  matt sync with HEAD
 1.66.2.8 09-Feb-2008  chris Fix acorn32 to boot. Also fix cpu.h, a change sneaked in that isn't
currently being used.
 1.66.2.7 09-Feb-2008  chris Sync to HEAD.
 1.66.2.6 09-Feb-2008  chris Revert rpc_machdep.c to last version. The changes in it for kinetic should
be in HEAD and then pulled up, by reverting the changes from the branch it
should make the pull up simpler.
 1.66.2.5 09-Feb-2008  chris Add initial reworking of acorn32 to use new interrupt code.

Note that cats probably won't work currently as acorn32 changed the way
that the pic is registered, it has to provide the irq lines as on acorn32
we attach the iomd after we need to register irqs for the pioc. So we
setup the irqs for iomd before malloc etc are available. This needs
to be fixed.

More work is still needed to update most of the podulebus drivers.
First I need to add podulebus wrapper for interrupts that handles the
maskaddr and maskbits. Exposing them to the common irq code is wrong.
 1.66.2.4 27-Jan-2008  chris Sync to HEAD.
 1.66.2.3 20-Jan-2008  chris Sync to HEAD.
 1.66.2.2 01-Jan-2008  chris Sync with HEAD.
 1.66.2.1 13-Aug-2007  chris file rpc_machdep.c was added on branch chris-arm-intr-rework on 2008-01-01 15:39:50 +0000
 1.67.8.1 20-Jan-2008  bouyer Sync with HEAD
 1.67.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.70.10.4 11-Mar-2010  yamt sync with head
 1.70.10.3 19-Aug-2009  yamt sync with head.
 1.70.10.2 04-May-2009  yamt sync with head.
 1.70.10.1 16-May-2008  yamt sync with head.
 1.70.8.1 18-May-2008  yamt sync with head.
 1.70.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.70.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.71.8.2 03-Mar-2009  skrll Sync with HEAD.
 1.71.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.71.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.74.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.82.6.1 02-Jun-2012  mrg sync to latest -current.
 1.82.2.3 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.82.2.2 30-Oct-2012  yamt sync with head
 1.82.2.1 23-May-2012  yamt sync with head.
 1.85.2.3 03-Dec-2017  jdolecek update from HEAD
 1.85.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.85.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.86.2.2 18-May-2014  rmind sync with head
 1.86.2.1 28-Aug-2013  rmind sync with head
 1.90.4.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.90.2.1 05-Feb-2017  skrll Sync with HEAD
 1.91.16.3 21-Apr-2020  martin Sync with HEAD
 1.91.16.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.91.16.1 10-Jun-2019  christos Sync with HEAD
 1.91.14.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.96.6.1 20-Apr-2020  bouyer Sync with HEAD
 1.2 06-Jan-2003  lukem Rework how KERNOBJDIR functions; now it's always determined with
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
This is far simpler than the previous system, and more robust with
objdirs built via BSDOBJDIR.

The previous method of finding KERNOBJDIR when using BSDOBJDIR by
referencing _SRC_TOP_OBJ_ from another directory was extremely
fragile due to the depth first tree walk by <bsd.subdir.mk>, and
the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be
empty on the *first* pass to create fresh objdirs.

This change requires adding sys/arch/*/compile/Makefile to create
the objdir in that directory, and descending into arch/*/compile
from arch/*/Makefile. Remove the now-unnecessary .keep_me files
whilst here.

Per lengthy discussion with Andrew Brown.
 1.1 07-Oct-2001  bjh21 branches: 1.1.4; 1.1.6;
Ensure that arch/acorn32/compile gets created.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 07-Oct-2001  thorpej file .keep_me was added on branch kqueue on 2002-01-10 19:36:01 +0000
 1.1.4.2 07-Jan-2003  thorpej Sync with HEAD.
 1.1.4.1 07-Oct-2001  thorpej file .keep_me was added on branch nathanw_sa on 2003-01-07 20:46:47 +0000
 1.1 06-Jan-2003  lukem branches: 1.1.2;
Rework how KERNOBJDIR functions; now it's always determined with
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
This is far simpler than the previous system, and more robust with
objdirs built via BSDOBJDIR.

The previous method of finding KERNOBJDIR when using BSDOBJDIR by
referencing _SRC_TOP_OBJ_ from another directory was extremely
fragile due to the depth first tree walk by <bsd.subdir.mk>, and
the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be
empty on the *first* pass to create fresh objdirs.

This change requires adding sys/arch/*/compile/Makefile to create
the objdir in that directory, and descending into arch/*/compile
from arch/*/Makefile. Remove the now-unnecessary .keep_me files
whilst here.

Per lengthy discussion with Andrew Brown.
 1.1.2.2 07-Jan-2003  thorpej Sync with HEAD.
 1.1.2.1 06-Jan-2003  thorpej file Makefile was added on branch nathanw_sa on 2003-01-07 20:46:48 +0000
 1.4 25-Jan-2002  reinoud Cleanup kernel configuration file and add a generic INSTALL kernel. The
A7000 kernels are obsolete now the ARM7500 detection is integrated. The
NC's however are not completely supported and should in the near future be
bootable with GENERIC/INSTALL too.
 1.3 22-Dec-2001  cjep branches: 1.3.2;
Pull out csc Cumana SCSI II driver and note that it is not currently
working properly. This seems to have been the case for some time
(cf. PR #8924).
 1.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file A7000 was added on branch nathanw_sa on 2002-01-08 00:22:44 +0000
 1.3.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 22-Dec-2001  thorpej file A7000 was added on branch kqueue on 2002-01-10 19:36:02 +0000
 1.4 25-Jan-2002  reinoud Cleanup kernel configuration file and add a generic INSTALL kernel. The
A7000 kernels are obsolete now the ARM7500 detection is integrated. The
NC's however are not completely supported and should in the near future be
bootable with GENERIC/INSTALL too.
 1.3 22-Dec-2001  cjep branches: 1.3.2;
Pull out csc Cumana SCSI II driver and note that it is not currently
working properly. This seems to have been the case for some time
(cf. PR #8924).
 1.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file A7INST was added on branch nathanw_sa on 2002-01-08 00:22:44 +0000
 1.3.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 22-Dec-2001  thorpej file A7INST was added on branch kqueue on 2002-01-10 19:36:02 +0000
 1.73 27-Sep-2020  roy vether: Add to kernel configurations

It's only enabled if the kernel enabled bridge AND tap.
Otherwise it's commented out.
 1.72 01-Aug-2020  maxv Remove references to BRIDGE_IPF, it is now compiled in by default.
 1.71 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.70 18-Apr-2020  skrll Trailing whitespace
 1.69 19-Jan-2020  thorpej branches: 1.69.4;
Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.68 13-Apr-2019  isaki branches: 1.68.6;
Add drvctl to kernel which has audio device.
audiocfg(1) requires drvctl(4).
 1.67 01-Aug-2018  maxv Unreference IPF/PF from all the config files, and enable NPF instead when
wanted. This also fixes some inconsistencies I saw in several files (eg
IPF options while IPF was not compiled, IPF+PF enabled by default, etc).
 1.66 07-Jun-2018  thorpej branches: 1.66.2;
Revert changes that pinned-down i2c parent specs. The i2c subsystem
has been enhanced to make this unnecessary.
 1.65 14-May-2018  thorpej Fully specifiy the location of indirectly-configured I2C devices. In
particular, the parent spec must not be wild-carded, as doing so doesn't
work well on systems where more than one I2C bus is present.
 1.64 23-Jan-2018  sevan branches: 1.64.2;
Alternate buffer queue strategies no longer considered experimental, update
description.

Discussed on tech-kern
http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html
 1.63 14-Sep-2017  mrg clean up COMPAT_* options for native netbsd code:
- new series of files that are useful for saying "i want everything
since netbsd 1.4", etc.
- use the fact COMPAT_* options have future dependancies to remove
many redundant options.

removes about 3000 lines total across kernel configuration files.
tested about 30 random kernels in the changed list.
 1.62 28-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 1.
 1.61 13-Dec-2016  christos branches: 1.61.8;
wildcard speaker attachments, now that we can handle many of them.
 1.60 10-Dec-2016  christos remove VAUDIOSPEAKER for now, will be done differently.
 1.59 08-Dec-2016  nat Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
 1.58 12-Aug-2015  maxv branches: 1.58.2;
Remove KMEMSTATS.
 1.57 23-Aug-2014  dholland branches: 1.57.2;
Systematize (and in many cases, fix) the comments on options COMPAT_NN.

There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
 1.56 17-Aug-2014  joerg Reorganize symbol table embedding. The existing option SYMTAB_SPACE is
replaced by the make option COPY_SYMTAB set to any value. The copy of
the symbol table is no longer put into a buffer in kern_ksyms.o, but a
small helper object. This object is build first with a dummy size, then
the kernel is linked to compute the real dimension of the symbol table
buffer. After that, the helper object is rebuild and the kernel linked
again.
 1.55 30-Jun-2013  rmind G/C PFIL_HOOKS from the kernel configs.
 1.54 05-Jun-2013  christos branches: 1.54.2;
remove obsolete networking options
 1.53 27-Apr-2013  christos the bogus number police
 1.52 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.51 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.50 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.49 06-Dec-2012  msaitoh Remove "#options ARMFPE"
 1.48 17-Aug-2012  abs branches: 1.48.2;
Update all kernel configs mentioning WSEMUL_* but not already including
WSDISPLAY_COMPAT_USL using the following rules:
- If WSEMUL_ is commented out, add commented out out WSDISPLAY_COMPAT_USL
- If INSTALL or obviously memory constrained, add WSDISPLAY_DEFAULTSCREENS=1
and commented out WSDISPLAY_COMPAT_USL
- Otherwise add WSDISPLAY_COMPAT_USL

Some of the INSTALL configs for larger memory machines are probably suitable
for adding WSDISPLAY_COMPAT_USL.

Now wsconscfg(8) should be able to switch VTs when expected.

Implemented after no objection from tech-kern to the following:

On 5 June 2012 09:47, David Brownlee <abs@absd.org> wrote:
> wsconscfg(8) requires WSDISPLAY_COMPAT_USL in order to switch virtual
> terminals.
>
> Except when in an exceptionally memory or space constrained
> environment (INSTALL being the obvious case), is there any reason why
> all GENERIC and GENERIC-like kernels which have wscons enabled
> shouldn't also have WSDISPLAY_COMPAT_USL?
 1.47 10-Mar-2012  joerg P1003_1B_SEMAPHORE is no longer optional.
 1.46 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.45 22-Nov-2011  tls branches: 1.45.2;

The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself. Move it to std. This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports. Thanks to Havard Eidnes for
pointing them out.
 1.44 30-Jun-2011  wiz branches: 1.44.2;
dependant -> dependent
 1.43 03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.42 06-Mar-2011  bouyer branches: 1.42.2;
merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.41 23-Nov-2010  hannken branches: 1.41.2; 1.41.4;
Remove unused count from pseudo-device md.
 1.40 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.39 05-Dec-2009  pooka branches: 1.39.2; 1.39.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.38 22-Sep-2009  tsutsui Bump SYMTAB_SPACE.
 1.37 19-Apr-2009  tsutsui Remove number parameters from pseudo-device loop and ipfilter.
 1.36 06-Mar-2009  joerg Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
 1.35 24-Nov-2008  ad branches: 1.35.4;
Remove softdep, pass 1. We are focused on improving journalling.

Proposed on tech-kern@.
 1.34 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.33 31-Jul-2008  simonb branches: 1.33.2;
Add "options WAPBL" to standard GENERIC/INSTALL type configs.
 1.32 30-May-2008  tsutsui branches: 1.32.4;
Add options COMPAT_40 to files which have options COMPAT_30.
 1.31 19-Jan-2008  chris branches: 1.31.6; 1.31.8; 1.31.10; 1.31.12;
Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.30 31-Dec-2007  ad Remove systrace. Ok core@.
 1.29 26-Aug-2006  christos branches: 1.29.28; 1.29.32; 1.29.34; 1.29.40; 1.29.48;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.28 19-Aug-2006  bjh21 Now that boot32 can pass in a useful frame rate, it's reasonable to use the
standard video mode list in our example kernels, rather that a somewhat
random subset. So do that.
 1.27 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.26 12-Aug-2006  christos Disable SYSTRACE by default on all kernels (discussed with core)
 1.25 28-Mar-2006  pavel branches: 1.25.6;
Add stf to all kernel configs which have INET6 and gif, except the INSTALL
ones and those for specific machines of developers. PR 32304.

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
 1.24 05-Feb-2006  cube branches: 1.24.2; 1.24.4; 1.24.6;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.23 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.22 20-Dec-2005  thorpej branches: 1.22.2; 1.22.4; 1.22.6;
Remove the tablet line discipline.
 1.21 07-Dec-2005  tsutsui Adjust comments for options FFS_NO_SNAPSHOT.

XXX: This option should be mentioned in options(4).
 1.20 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.19 19-Aug-2005  christos 64 bit inode changes.
 1.18 31-Jul-2005  yamt revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
 1.17 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.16 07-Jul-2005  tron Add (commented out) IPSEC_NAT_T option.
 1.15 09-Jun-2005  tsutsui branches: 1.15.2;
- Rename options NEW_BUFQ_STRATEGY -> options BUFQ_READPRIO.
(still commented out)
- Add (also commented out) options BUFQ_PRIOCSCAN.

Suggested by perry and soda on tech-kern.
Please refer options(4) for details for these options.
 1.14 11-Mar-2005  matt branches: 1.14.2;
rside is really a wdc. So make it a wdc.
XXX rside should be renamed to wdc_rsbus
 1.13 18-Feb-2005  dsl Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.12 11-Feb-2005  dsl Add 'option FFS_SNAPSHOT' to most of the config files.
Commented out for kernels that appear to hace space constraints.
 1.11 31-Jan-2005  hannken Add file system snapshots to kernel configs.

- Ffs internal snapshots get compiled in unconditionally.

- File system snapshot device fss(4) added to all kernel configs that
have a disk. Device is commented out on all non-GENERIC kernels.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>
 1.10 17-Jan-2005  cube branches: 1.10.2;
Add tap(4) support to a random^Wcarefully chosen set of kernel configs.
All those kernels have a line for both tun and bridge, and if either is
commented out, tap is commented out also. With the exception of i386's
GENERIC_TINY.

XXX: we _need_ some way of making this more simple.
 1.9 08-Dec-2004  reinoud branches: 1.9.2;
Add IPv6 support like all other architectures do and add NetBSD 2.0
binary compatibility
 1.8 10-Nov-2004  christos Add COMPAT_BSDPTY to the rest of the config files.
 1.7 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.6 15-Jul-2004  atatat branches: 1.6.2;
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.5 04-Jul-2004  chris Update to match pseudo devices and other options in the GENERIC kernel.
 1.4 13-Mar-2004  bjh21 branches: 1.4.2;
Rename wsqms(4) to qms(4), since the "ws" is redundant now. While I'm here,
bundle it all into a single file, qms.c, replacing wsqms.c, wsqms_iomd.c,
and wsqmsvar.h.
 1.3 13-Mar-2004  bjh21 Remove all use of busmouse(4), instead using wsmouse everywhere, even in
kernels that don't use wscons otherwise. The X server released with 1.6
should be able to cope with this.
 1.2 25-Jan-2004  bjh21 Remove the "beep" driver. Its function is largely subsumed by a
combination of audio(4), wskbd(4) and audiobell(). Proposed a week
ago on port-acorn32 with no reaction whatever.
 1.1 03-Jan-2004  chris Add a kernel for eb7500atx board.
 1.4.2.1 15-Jul-2004  he Pull up revision 1.6 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.6.2.13 11-Dec-2005  christos Sync with head.
 1.6.2.12 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.6.2.11 01-Apr-2005  skrll Sync with HEAD.
 1.6.2.10 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.6.2.9 15-Feb-2005  skrll Sync with HEAD.
 1.6.2.8 04-Feb-2005  skrll Sync with HEAD.
 1.6.2.7 24-Jan-2005  skrll Sync with HEAD.
 1.6.2.6 18-Dec-2004  skrll Sync with HEAD.
 1.6.2.5 14-Nov-2004  skrll Sync with HEAD.
 1.6.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.6.2.2 03-Aug-2004  skrll Sync with HEAD
 1.6.2.1 15-Jul-2004  skrll file EB7500ATX was added on branch ktrace-lwp on 2004-08-03 10:30:48 +0000
 1.9.2.1 29-Apr-2005  kent sync with -current
 1.10.2.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.10.2.1 12-Feb-2005  yamt sync with head.
 1.14.2.1 18-Jul-2005  riz Pull up revision 1.16 (requested by tron in ticket #566):
Add (commented out) IPSEC_NAT_T option.
 1.15.2.3 21-Jan-2008  yamt sync with head
 1.15.2.2 30-Dec-2006  yamt sync with head.
 1.15.2.1 21-Jun-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.22.2.1 18-Feb-2006  yamt sync with head.
 1.24.6.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.24.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.24.2.2 03-Sep-2006  yamt sync with head.
 1.24.2.1 01-Apr-2006  yamt sync with head.
 1.25.6.1 14-Aug-2006  tron Pull up following revision(s) (requested by elad in ticket #17):
sys/arch/sparc/conf/KRUPS: revision 1.38
sys/arch/i386/conf/XEN2_DOMU: revision 1.2
sys/arch/i386/conf/GENERIC_LAPTOP: revision 1.197
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.53
sys/arch/evbsh5/conf/SIMULATOR: revision 1.12
sys/arch/sparc/conf/MRCOFFEE: revision 1.17
sys/arch/next68k/conf/GENERIC: revision 1.104
sys/arch/i386/conf/VIRTUALPC: revision 1.44
sys/arch/ews4800mips/conf/GENERIC: revision 1.11
sys/arch/evbsh5/conf/CAYMAN: revision 1.23
sys/arch/arc/conf/GENERIC: revision 1.141
sys/arch/amd64/conf/GENERIC: revision 1.103
sys/arch/sun3/conf/GENERIC3X: revision 1.90
sys/arch/evbarm/conf/HDL_G: revision 1.3
sys/arch/sun2/conf/GENERIC: revision 1.57
sys/arch/news68k/conf/GENERIC_TINY: revision 1.51
sys/arch/evbppc/conf/EXPLORA451: revision 1.27
sys/arch/amiga/conf/GENERIC.in: revision 1.54
sys/arch/mac68k/conf/GENERIC: revision 1.174
sys/arch/acorn26/conf/GENERIC: revision 1.45
sys/arch/shark/conf/GENERIC: revision 1.64
sys/arch/cesfic/conf/GENERIC: revision 1.44
sys/arch/mvme68k/conf/GENERIC: revision 1.68
sys/arch/i386/conf/XEN2_DOM0: revision 1.4
sys/arch/atari/conf/GENERIC.in: revision 1.63
sys/arch/amiga/conf/GENERIC: revision 1.240
sys/arch/i386/conf/LAMB: revision 1.65
sys/arch/i386/conf/GENERIC: revision 1.773
sys/arch/acorn32/conf/EB7500ATX: revision 1.26
sys/arch/x68k/conf/GENERIC: revision 1.128
sys/arch/vax/conf/GENERIC: revision 1.153
sys/arch/atari/conf/ATARITT: revision 1.81
sys/arch/mipsco/conf/GENERIC: revision 1.60
sys/arch/cobalt/conf/GENERIC: revision 1.101
sys/arch/evbarm/conf/ARMADILLO9: revision 1.13
sys/arch/ofppc/conf/GENERIC: revision 1.93
sys/arch/atari/conf/MILAN-PCIIDE: revision 1.51
sys/arch/arc/conf/RPC44: revision 1.26
sys/arch/sparc64/conf/GENERIC: revision 1.59
sys/arch/i386/conf/XEN3_DOMU: revision 1.2
sys/arch/hp700/conf/GENERIC: revision 1.68
sys/arch/atari/conf/MILAN-ISAIDE: revision 1.47
sys/arch/macppc/conf/GENERIC: revision 1.231
sys/arch/dreamcast/conf/GENERIC: revision 1.72
sys/arch/news68k/conf/GENERIC: revision 1.80
sys/arch/hp300/conf/GENERIC: revision 1.133
sys/arch/mmeye/conf/GENERIC: revision 1.82
sys/arch/macppc/conf/MAMBO: revision 1.2
sys/arch/cats/conf/GENERIC: revision 1.107
sys/arch/atari/conf/FALCON: revision 1.79
sys/arch/acorn32/conf/GENERIC: revision 1.71
sys/arch/sparc/conf/GENERIC: revision 1.190
sys/arch/news68k/conf/LIBERO: revision 1.40
sys/arch/amiga/conf/DRACO: revision 1.114
sys/arch/cobalt/conf/INSTALL: revision 1.23
sys/arch/luna68k/conf/GENERIC: revision 1.73
sys/arch/bebox/conf/GENERIC: revision 1.100
sys/arch/pmax/conf/GENERIC: revision 1.147
sys/arch/amiga/conf/WSCONS: revision 1.52
sys/arch/macppc/conf/POWERMAC_G5: revision 1.2
sys/arch/alpha/conf/ALPHA: revision 1.218
sys/arch/sun3/conf/GENERIC: revision 1.133
sys/arch/prep/conf/GENERIC: revision 1.124
sys/arch/alpha/conf/GENERIC: revision 1.291
sys/arch/atari/conf/HADES: revision 1.71
sys/arch/newsmips/conf/GENERIC: revision 1.93
sys/arch/netwinder/conf/GENERIC: revision 1.82
sys/arch/hpcmips/conf/GENERIC: revision 1.190
sys/arch/amiga/conf/AMIGA: revision 1.98
sys/arch/sbmips/conf/GENERIC: revision 1.54
sys/arch/pc532/conf/GENERIC: revision 1.64
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.53
Disable SYSTRACE by default on all kernels (discussed with core)
 1.29.48.2 20-Jan-2008  bouyer Sync with HEAD
 1.29.48.1 02-Jan-2008  bouyer Sync with HEAD
 1.29.40.1 18-Feb-2008  mjf Sync with HEAD.
 1.29.34.2 23-Mar-2008  matt sync with HEAD
 1.29.34.1 09-Jan-2008  matt sync with HEAD
 1.29.32.2 20-Jan-2008  chris Sync to HEAD.
 1.29.32.1 01-Jan-2008  chris Sync with HEAD.
 1.29.28.1 28-Feb-2008  rjs Sync with HEAD.
 1.31.12.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.31.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.31.10.3 11-Aug-2010  yamt sync with head.
 1.31.10.2 11-Mar-2010  yamt sync with head
 1.31.10.1 04-May-2009  yamt sync with head.
 1.31.8.1 04-Jun-2008  yamt sync with head
 1.31.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.31.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.31.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.32.4.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.32.4.1 19-Oct-2008  haad Sync with HEAD.
 1.33.2.2 28-Apr-2009  skrll Sync with HEAD.
 1.33.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.35.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.39.4.4 12-Jun-2011  rmind sync with head
 1.39.4.3 21-Apr-2011  rmind sync with head
 1.39.4.2 05-Mar-2011  rmind sync with head
 1.39.4.1 30-May-2010  rmind sync with head
 1.39.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.41.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.41.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.42.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.44.2.4 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.44.2.3 16-Jan-2013  yamt sync with (a bit old) head
 1.44.2.2 30-Oct-2012  yamt sync with head
 1.44.2.1 17-Apr-2012  yamt sync with head
 1.45.2.2 11-Mar-2012  mrg sync to latest -current
 1.45.2.1 18-Feb-2012  mrg merge to -current.
 1.48.2.4 03-Dec-2017  jdolecek update from HEAD
 1.48.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.48.2.2 23-Jun-2013  tls resync from head
 1.48.2.1 25-Feb-2013  tls resync with head
 1.54.2.1 28-Aug-2013  rmind sync with head
 1.57.2.3 28-Aug-2017  skrll Sync with HEAD
 1.57.2.2 05-Feb-2017  skrll Sync with HEAD
 1.57.2.1 22-Sep-2015  skrll Sync with HEAD
 1.58.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.61.8.1 26-Jan-2018  martin Pull up following revision(s) (requested by sevan in ticket #510):
sys/arch/sun3/conf/GENERIC3X: revision 1.130
sys/arch/sparc64/conf/GENERIC: revision 1.203
sys/arch/news68k/conf/LIBERO: revision 1.66
sys/arch/amiga/conf/DRACO: revision 1.185
sys/arch/evbarm/conf/MV2120: revision 1.35
sys/arch/x68k/conf/GENERIC: revision 1.187
sys/arch/rs6000/conf/GENERIC: revision 1.39
sys/arch/news68k/conf/GENERIC_TINY: revision 1.86
sys/arch/i386/conf/XEN3_DOMU: revision 1.88
sys/arch/iyonix/conf/GENERIC: revision 1.97
sys/arch/evbarm64/conf/A64EMUL: revision 1.11
sys/arch/mvme68k/conf/GENERIC: revision 1.98
sys/arch/acorn32/conf/GENERIC: revision 1.124
sys/arch/i386/conf/XEN3_DOM0: revision 1.125
sys/arch/cobalt/conf/INSTALL: revision 1.65
sys/arch/macppc/conf/GENERIC_601: revision 1.16
sys/arch/hppa/conf/GENERIC: revision 1.17
sys/arch/amiga/conf/GENERIC.in: revision 1.137
sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.33
sys/arch/netwinder/conf/GENERIC: revision 1.134
sys/arch/amd64/conf/XEN3_DOMU: revision 1.83
sys/arch/mac68k/conf/GENERIC: revision 1.225
sys/arch/arc/conf/RPC44: revision 1.54
sys/arch/mipsco/conf/GENERIC: revision 1.92
sys/arch/cats/conf/GENERIC: revision 1.166
sys/arch/amd64/conf/XEN3_DOM0: revision 1.145
sys/arch/amigappc/conf/GENERIC: revision 1.33
sys/arch/sun3/conf/GENERIC: revision 1.176
sys/arch/news68k/conf/GENERIC: revision 1.130
sys/arch/hpcsh/conf/GENERIC: revision 1.110
sys/arch/hp300/conf/GENERIC: revision 1.198
sys/arch/atari/conf/GENERIC.in: revision 1.115
sys/arch/sparc/conf/MRCOFFEE: revision 1.54
sys/arch/evbppc/conf/EXPLORA451: revision 1.62
sys/arch/cesfic/conf/GENERIC: revision 1.69
sys/arch/vax/conf/GENERIC: revision 1.204
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.115
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.112
sys/arch/sparc/conf/GENERIC: revision 1.258
sys/arch/next68k/conf/GENERIC: revision 1.145
sys/arch/evbarm/conf/MMNET_GENERIC: revision 1.34
sys/arch/prep/conf/GENERIC: revision 1.185
sys/arch/amiga/conf/INSTALL: revision 1.129
sys/arch/newsmips/conf/GENERIC: revision 1.133
sys/arch/cobalt/conf/GENERIC: revision 1.156
sys/arch/sun2/conf/GENERIC: revision 1.99
sys/arch/luna68k/conf/INSTALL: revision 1.25
sys/arch/amigappc/conf/NULL: revision 1.53
sys/arch/acorn26/conf/GENERIC: revision 1.85
sys/arch/vax/conf/VAX780: revision 1.25
sys/arch/luna68k/conf/GENERIC: revision 1.125
sys/arch/ews4800mips/conf/GENERIC: revision 1.56
sys/arch/macppc/conf/POWERMAC_G5: revision 1.29
sys/arch/arc/conf/GENERIC: revision 1.189
sys/arch/macppc/conf/MAMBO: revision 1.27
sys/arch/acorn32/conf/EB7500ATX: revision 1.64
sys/arch/pmax/conf/GENERIC: revision 1.196
sys/arch/pmax/conf/GENERIC64: revision 1.28
sys/arch/amiga/conf/GENERIC: revision 1.319
sys/arch/evbarm/conf/MPCSA_GENERIC: revision 1.55
sys/arch/macppc/conf/GENERIC: revision 1.339
sys/arch/emips/conf/GENERIC: revision 1.21
sys/arch/sandpoint/conf/GENERIC: revision 1.97
sys/arch/landisk/conf/GENERIC: revision 1.58
sys/arch/bebox/conf/GENERIC: revision 1.157
sys/arch/alpha/conf/GENERIC: revision 1.379
Alternate buffer queue strategies no longer considered experimental, update
description.
Discussed on tech-kern
http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html
 1.64.2.3 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.64.2.2 25-Jun-2018  pgoyette Sync with HEAD
 1.64.2.1 21-May-2018  pgoyette Sync with HEAD
 1.66.2.3 21-Apr-2020  martin Sync with HEAD
 1.66.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.66.2.1 10-Jun-2019  christos Sync with HEAD
 1.68.6.1 25-Jan-2020  ad Sync with head.
 1.69.4.1 20-Apr-2020  bouyer Sync with HEAD
 1.137 12-Feb-2023  abs Add optoion GENERIC.local include to the end of ~all GENERIC configs

This excludes atari, sgimips, evbmips, evbppc, evbsh3, and hpcarm
all of which have somewhat specific kernel config file layouts
 1.136 29-Sep-2022  riastradh swwdog(4): Add to GENERIC kernels.

Plus a handful of others that I'm familiar with. Lots of special-
purpose kernels should probably have this too but I'm not going
through all the arm, mips, and ppc evaluation board kernels to see
which ones are relevant.

Omitted from systems I know to be very small:
- sun2/GENERIC
- dreamcast/GENERIC
Feel free to remove it from others that need to be kept smaller.

Compile-tested a few of these just in case:
- alpha/GENERIC
- amd64/GENERIC
- evbmips/OCTEON
- i386/GENERIC
- riscv/GENERIC

PR kern/29702
 1.135 07-Aug-2022  simonb UFS/LFS dirhash:
- Enable UFS_DIRHASH if the architecture or kernel model specific config
file can use 128MB of RAM or more.
- Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel
and by a number of NetBSD developers for years.
- Add LFS_DIRHASH if LFS was enabled.
- Be somewhat consistent with FS options order.
 1.134 27-Sep-2020  roy vether: Add to kernel configurations

It's only enabled if the kernel enabled bridge AND tap.
Otherwise it's commented out.
 1.133 07-Sep-2020  mrg -march=armv3m option is obsolete. remove it from commented kernel
configurations (we haven't supported those machines lately anyway),
and, for GCC >= 9, from the one caller.
 1.132 01-Aug-2020  maxv Remove references to BRIDGE_IPF, it is now compiled in by default.
 1.131 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.130 19-Jan-2020  thorpej branches: 1.130.4;
Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.129 26-Apr-2019  sevan branches: 1.129.4;
Enable BUFQ_PRIOCSCAN, CARP, Veriexec by default in GENERIC kernel configs.
On ports without a GENERIC kernel config enable in individul files, e.g evbmips.
Omit on:
atari, dreamcast, emips, epoc32, evbppc/VIRTEX*, ia64, luna68x, mvme68k,
mvmeppc, playstation2, riscv, sun2, sun3, x68k, zaurus due to resource
constraints or port infancy.
 1.128 13-Apr-2019  isaki Add drvctl to kernel which has audio device.
audiocfg(1) requires drvctl(4).
 1.127 01-Aug-2018  maxv Unreference IPF/PF from all the config files, and enable NPF instead when
wanted. This also fixes some inconsistencies I saw in several files (eg
IPF options while IPF was not compiled, IPF+PF enabled by default, etc).
 1.126 07-Jun-2018  thorpej branches: 1.126.2;
Revert changes that pinned-down i2c parent specs. The i2c subsystem
has been enhanced to make this unnecessary.
 1.125 14-May-2018  thorpej Fully specifiy the location of indirectly-configured I2C devices. In
particular, the parent spec must not be wild-carded, as doing so doesn't
work well on systems where more than one I2C bus is present.
 1.124 23-Jan-2018  sevan branches: 1.124.2;
Alternate buffer queue strategies no longer considered experimental, update
description.

Discussed on tech-kern
http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html
 1.123 14-Sep-2017  mrg clean up COMPAT_* options for native netbsd code:
- new series of files that are useful for saying "i want everything
since netbsd 1.4", etc.
- use the fact COMPAT_* options have future dependancies to remove
many redundant options.

removes about 3000 lines total across kernel configuration files.
tested about 30 random kernels in the changed list.
 1.122 13-Sep-2017  sevan Remove support for VERIFIED_EXEC_FP_RMD160, VERIFIED_EXEC_FP_SHA1, and VERIFIED_EXEC_FP_MD5 options.
These algorithms are either broken or on their way to being broken.

Discussed on tech-security
http://mail-index.netbsd.org/tech-security/2017/08/21/msg000936.html

ok riastradh
 1.121 28-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 1.
 1.120 13-Dec-2016  christos branches: 1.120.8;
wildcard speaker attachments, now that we can handle many of them.
 1.119 10-Dec-2016  christos remove VAUDIOSPEAKER for now, will be done differently.
 1.118 08-Dec-2016  nat Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
 1.117 12-Aug-2015  maxv branches: 1.117.2;
Remove KMEMSTATS.
 1.116 16-Nov-2014  manu branches: 1.116.2;
Remove unused extended attributes kernel options

As Masao Uebayashi pointed to me, UFS_EXTATTR_AUTOSTART, LFS_EXTATTR_AUTOSTART
and UFS_EXTATTR_AUTOCREATE are not used anywhere in the code. Remove them
as they have been obsolete for a long time:
UFS_EXTATTR_AUTOSTART was replaced by mount -o extattr
LFS_EXTATTR_AUTOSTART was created to match obsolete UFS_EXTATTR_AUTOSTART
UFS_EXTATTR_AUTOCREATE was replaced by sysctl vfs.ffs.extattr_autocreate
 1.115 12-Nov-2014  manu Support for UFS1 extended attributes in GENERIC and GENERIC-like kernels

This change just brings UFS1 extended attribute *support* in the kernel,
extended attributes are not enabled unless three conditions are met:
1) filesystem is UFS1 (newfs -O1)
2) .attribute/system and .attribute/user directories are created at fs root
3) filesystem is mounted with -o extattr

Some GENERIC kernels are obviously memory constrained, the extended
attributes options were not enabled for them, but just added commented out.
(kernel were considered memory constrained if QUOTA option was disabled)
 1.114 23-Aug-2014  dholland Systematize (and in many cases, fix) the comments on options COMPAT_NN.

There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
 1.113 16-Aug-2014  apb Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
 1.112 03-Aug-2014  martin branches: 1.112.2;
Add COMPAT_NETBSD32, following the switch to eabi by default.
 1.111 30-Jun-2013  rmind branches: 1.111.4;
G/C PFIL_HOOKS from the kernel configs.
 1.110 05-Jun-2013  christos branches: 1.110.2;
remove obsolete networking options
 1.109 27-Apr-2013  christos the bogus number police
 1.108 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.107 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.106 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.105 06-Dec-2012  msaitoh Remove "#options ARMFPE"
 1.104 17-Oct-2012  apb Add "options COMPAT_60" to all kernel configuration files
that already had "options COMPAT_50".
 1.103 17-Aug-2012  abs branches: 1.103.2;
Ensure all WSDISPLAY_COMPAT_USL entries have same comment
 1.102 10-Mar-2012  joerg P1003_1B_SEMAPHORE is no longer optional.
 1.101 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.100 22-Nov-2011  tls branches: 1.100.2;

The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself. Move it to std. This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports. Thanks to Havard Eidnes for
pointing them out.
 1.99 30-Jun-2011  wiz branches: 1.99.2;
dependant -> dependent
 1.98 06-Mar-2011  bouyer merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.97 23-Nov-2010  hannken branches: 1.97.2; 1.97.4;
Remove unused count from pseudo-device md.
 1.96 29-Apr-2010  chs enable TMPFS in all GENERICs that have MFS enabled.
 1.95 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.94 05-Dec-2009  pooka branches: 1.94.2; 1.94.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.93 19-Apr-2009  tsutsui Remove number parameters from pseudo-device loop and ipfilter.
 1.92 06-Mar-2009  joerg Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
 1.91 24-Jan-2009  mrg branches: 1.91.2;
add COMPAT_50 to all the configs with COMPAT_40.
 1.90 24-Nov-2008  ad Remove softdep, pass 1. We are focused on improving journalling.

Proposed on tech-kern@.
 1.89 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.88 10-Aug-2008  tls branches: 1.88.2;
Add accept filters to GENERIC kernels where they exist.
 1.87 31-Jul-2008  simonb Add "options WAPBL" to standard GENERIC/INSTALL type configs.
 1.86 30-May-2008  tsutsui branches: 1.86.4;
Add options COMPAT_40 to files which have options COMPAT_30.
 1.85 29-Feb-2008  chris branches: 1.85.2; 1.85.4; 1.85.6;
Misc updates to hopefully improve vidcvideo console usability:
* add virtual consoles by using wsdisplay_vcons
* make use of generic scrollback support for consoles
* enable colour support for vidcvideo consoles
* use the default NetBSD font, rather than picking a sony one
* make kernel output green, so it's obvious.

This was tested at 800x600 in 8bpp on an A7000+ and 2MB VRAM RiscPC.

To actually benefit from these changes wscons=YES needs to be added to
your rc.conf
 1.84 19-Jan-2008  chris branches: 1.84.2; 1.84.6;
Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.83 31-Dec-2007  ad Remove systrace. Ok core@.
 1.82 04-Nov-2007  xtraeme branches: 1.82.2; 1.82.8;
Remove System V semaphores and share memory options to set the limits:
SEMMNI, SEMMNS, SEMUME and SHMMAXPGS.

They can be tweaked via sysctl now. Ports that were setting values on
them weren't touched, I only removed the ones that were commented out.
 1.81 17-Oct-2007  garbled 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.80 06-Aug-2007  adrianp branches: 1.80.2; 1.80.4; 1.80.8;
Remove iso(4) from GENERIC kernels, as discussed on tech-net@
Ok'ed by core@
 1.79 04-Jun-2007  martin branches: 1.79.2; 1.79.4; 1.79.6; 1.79.8;
Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
 1.78 11-Nov-2006  jmmv branches: 1.78.2; 1.78.8; 1.78.10; 1.78.16; 1.78.18;
Remove tmpfs's experimental status. OK'ed by core@.
 1.77 22-Oct-2006  bjh21 The sec(4) and ei(4) drivers appear to work on acorn32. Use them in preference
to the MD asc(4) and ie(4) drivers.
 1.76 26-Aug-2006  christos branches: 1.76.2; 1.76.4;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.75 26-Aug-2006  tsutsui Remove obsolete #options VERIFIED_EXEC, found by grep(1).
 1.74 19-Aug-2006  bjh21 Now that boot32 can pass in a useful frame rate, it's reasonable to use the
standard video mode list in our example kernels, rather that a somewhat
random subset. So do that.
 1.73 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.72 14-Aug-2006  skrll s/adpater/adapter/

Prompted by PR/34195
 1.71 12-Aug-2006  christos Disable SYSTRACE by default on all kernels (discussed with core)
 1.70 28-Jun-2006  liamjfoy branches: 1.70.2;
Add CARP to GENERIC kernel configs. CARP is not enabled by default.

ok: christos
 1.69 28-Mar-2006  pavel branches: 1.69.4;
Add stf to all kernel configs which have INET6 and gif, except the INSTALL
ones and those for specific machines of developers. PR 32304.

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
 1.68 05-Feb-2006  cube branches: 1.68.2; 1.68.4; 1.68.6;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.67 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.66 02-Feb-2006  reinoud branches: 1.66.2;
Add commented out UDF file-system entry in all GENERIC configurations.
 1.65 20-Dec-2005  thorpej branches: 1.65.2; 1.65.4;
Remove the tablet line discipline.
 1.64 09-Dec-2005  elad Add (commented out) Veriexec options and pseudo-device to GENERIC kernels,
and remove the i386 GENERIC_VERIEXEC config.
 1.63 07-Dec-2005  tsutsui Adjust comments for options FFS_NO_SNAPSHOT.

XXX: This option should be mentioned in options(4).
 1.62 03-Nov-2005  chs turn off DEBUG and DIAGNOSTIC in GENERIC kernels so that they
are compatible with the LKMs that are part of the release.
 1.61 10-Sep-2005  jmmv Initial addition of tmpfs, an efficient memory file-system. This project
was developed as part of Google's Summer of Code 2005 program. This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.

The file-system is still *experimental*. Therefore, it is disabled by
default in all kernels. However, as typically done, a commented-out
entry is added in them to ease its setup.

Note that I haven't commited the required mountd(8) changes to be able
to export tmpfs file-systems because NFS support is still very unstable
and because, before enabling it, I'd like to do some other changes.

OK'ed by my project mentor, William Studenmund (wrstuden@).
 1.60 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.59 19-Aug-2005  christos 64 bit inode changes.
 1.58 31-Jul-2005  yamt revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
 1.57 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.56 17-Jul-2005  hubertf Add support for reading cloop2 compressed filesystem image,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
 1.55 07-Jul-2005  tron Add (commented out) IPSEC_NAT_T option.
 1.54 25-Jun-2005  rpaulo branches: 1.54.2;
Add file-system PTYFS (commented out) so that people know its existence.

Ok'ed by Christos Zoulas and Hubert Feyrer.
 1.53 09-Jun-2005  tsutsui - Rename options NEW_BUFQ_STRATEGY -> options BUFQ_READPRIO.
(still commented out)
- Add (also commented out) options BUFQ_PRIOCSCAN.

Suggested by perry and soda on tech-kern.
Please refer options(4) for details for these options.
 1.52 18-Feb-2005  dsl branches: 1.52.4;
Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.51 11-Feb-2005  dsl Add 'option FFS_SNAPSHOT' to most of the config files.
Commented out for kernels that appear to hace space constraints.
 1.50 09-Feb-2005  cube Fix typo reported by Patrick Welche on current-users.
 1.49 31-Jan-2005  hannken Add file system snapshots to kernel configs.

- Ffs internal snapshots get compiled in unconditionally.

- File system snapshot device fss(4) added to all kernel configs that
have a disk. Device is commented out on all non-GENERIC kernels.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>
 1.48 28-Jan-2005  rumble Sprinkle options UFS_DIRHASH on GENERIC kernels. It's presently
commented out and labeled experimental pending further review and
testing.
 1.47 17-Jan-2005  cube branches: 1.47.2;
Add tap(4) support to a random^Wcarefully chosen set of kernel configs.
All those kernels have a line for both tun and bridge, and if either is
commented out, tap is commented out also. With the exception of i386's
GENERIC_TINY.

XXX: we _need_ some way of making this more simple.
 1.46 08-Dec-2004  reinoud branches: 1.46.2;
Add IPv6 support like all other architectures do and add NetBSD 2.0
binary compatibility
 1.45 10-Nov-2004  christos Add COMPAT_BSDPTY to the rest of the config files.
 1.44 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.43 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.42 28-Jun-2004  bouyer Add options P1003_1B_SEMAPHORE
to all GENERIC-like kernel config files where SYSV* options were already
present (commented out if the SYSV* options are commented out).
Fix lib/25897 and lib/25898.
 1.41 26-Jun-2004  abs Add (commented out) ALTQ options to all GENERIC-like files
 1.40 22-Jun-2004  itojun have pf and pflog pseudo-device (commented out).
reviewed by matt, perry, christos
 1.39 18-Jun-2004  christos ptm is now mandatory, depends on pty, and can be disabled with -DNO_DEV_PTM
 1.38 16-Jun-2004  christos Add pseudo-device ptm on all the generic flavored kernels.
 1.37 13-Mar-2004  bjh21 branches: 1.37.2;
Rename wsqms(4) to qms(4), since the "ws" is redundant now. While I'm here,
bundle it all into a single file, qms.c, replacing wsqms.c, wsqms_iomd.c,
and wsqmsvar.h.
 1.36 13-Mar-2004  bjh21 Remove all use of busmouse(4), instead using wsmouse everywhere, even in
kernels that don't use wscons otherwise. The X server released with 1.6
should be able to cope with this.
 1.35 13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.34 25-Jan-2004  bjh21 Remove the "beep" driver. Its function is largely subsumed by a
combination of audio(4), wskbd(4) and audiobell(). Proposed a week
ago on port-acorn32 with no reaction whatever.
 1.33 22-Jan-2004  bjh21 Add commented-out entries to attach atppc and friends at pioc.
While I'm here, remove entries for pioc children that never exist.
 1.32 17-Jan-2004  bjh21 Use audiobell for system beeps on acorn32 when vidcaudio(4) is compiled in.
Remove the vestigal sysbeep device and replace it with the same kind of
mechanism that pckbd(4) uses to find the bell, which is just as ugly, but
more standard. Adapt beep(4) to the new world (though I'm not sure it
deserves to live).
 1.31 18-Oct-2003  lukem Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
 1.30 11-Oct-2003  christos fix syntax errors (hi manuel)
 1.29 08-Oct-2003  bouyer Add atabus
 1.28 30-Sep-2003  thorpej New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
 1.27 13-Sep-2003  chris Add COMPAT_16 to most arm based kernels. Mainly in preperation for doing
SA_SIGINFO work.
 1.26 26-Apr-2003  ragge branches: 1.26.2;
Add pseudo-device ksyms.
 1.25 27-Feb-2003  perseant Make BRIDGE_IPF an option, and document it. Add it (commented) to GENERIC.
Let brconfig tell whether the bridge is using the ipfilter hook, or not.
 1.24 22-Nov-2002  wiz Fix typo (responsiness -> responsiveness).
 1.23 19-Oct-2002  junyoung branches: 1.23.2;
Move NEW_BUFQ_STRATEGY to misc options section.
 1.22 18-Oct-2002  junyoung Add NEW_BUFQ_STRATEGY (disabled by default).
 1.21 14-Oct-2002  elric Added commented out cgd(4)s to GENERIC configs.
 1.20 06-Oct-2002  provos add SYSTRACE; approved perry.
 1.19 18-Sep-2002  lukem enable USERCONF by default; it's small and extremely useful to have available.
 1.18 05-Aug-2002  bjh21 Enable csc(4), since it's reported as working.
 1.17 17-Jun-2002  lukem Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.16 25-Apr-2002  atatat branches: 1.16.2; 1.16.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.15 12-Apr-2002  gmcgarry Add commented-out USERCONF option. Mainly useful for install media
and can be optionally enabled based on miniroot and ramdisk size
requirements.
 1.14 10-Apr-2002  thorpej Remove "options RISCPC"; nothing tests for it anymore.
 1.13 02-Apr-2002  lukem Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
 1.12 10-Mar-2002  lukem * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
 1.11 11-Feb-2002  reinoud The COMPAT_OLD_BOOTLOADER flag can go now since BtRiscBSD is no longer
suported due to ELF transition.
 1.10 30-Jan-2002  reinoud Update and clean the config files to look more equal ... some non standard
configutations were not updated during time.
 1.9 27-Jan-2002  jdolecek add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
 1.8 25-Jan-2002  reinoud Cleanup kernel configuration file and add a generic INSTALL kernel. The
A7000 kernels are obsolete now the ARM7500 detection is integrated. The
NC's however are not completely supported and should in the near future be
bootable with GENERIC/INSTALL too.
 1.7 19-Jan-2002  oster Add new RF_* options for RAIDframe bits that are no longer built by default.

While we're here, enable RAIDframe (and RAID_AUTOCONFIG) by default for
architectures that I'm comfortable can deal with it being on by default.

Also: bump the number of 'raid' devices from 4 to 8, since 4 seems to
be insufficient in practise.
 1.6 28-Dec-2001  martin branches: 1.6.2;
Add PPPoE to all generic kernels that should be able to use it.
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
 1.5 22-Dec-2001  cjep Pull out csc Cumana SCSI II driver and note that it is not currently
working properly. This seems to have been the case for some time
(cf. PR #8924).
 1.4 14-Dec-2001  gmcgarry Add a blurb to the top of all GENERIC files. This serves three purposes:
- to clarify some terminology
- to clarify the intention of the GENERIC file
- to cross-reference some useful man pages
 1.3 23-Nov-2001  atatat The bridge(4) pseudo-device no longer requires the port to
__HAVE_GENERIC_SOFT_INTERRUPTS, so add it back to all GENERIC configs.
 1.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.10 11-Dec-2002  thorpej Sync with HEAD.
 1.1.4.9 11-Nov-2002  nathanw Catch up to -current
 1.1.4.8 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.7 13-Aug-2002  nathanw Catch up to -current.
 1.1.4.6 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.5 17-Apr-2002  nathanw Catch up to -current.
 1.1.4.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file GENERIC was added on branch nathanw_sa on 2002-01-08 00:22:44 +0000
 1.6.2.7 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.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.6.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.6.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.6.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.1 28-Dec-2001  thorpej file GENERIC was added on branch kqueue on 2002-01-10 19:36:02 +0000
 1.16.4.2 07-Aug-2002  lukem Pull up revision 1.18 (requested by bjh21 in ticket #641):
Enable csc(4), since it's reported as working.
 1.16.4.1 01-Aug-2002  lukem Pull up revision 1.17 (requested by lukem in ticket #312):
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.16.2.2 30-Aug-2002  gehenna catch up with -current.
 1.16.2.1 09-Jul-2002  gehenna catch up with -current.
 1.23.2.2 19-Oct-2002  junyoung Move NEW_BUFQ_STRATEGY to misc options section.
 1.23.2.1 19-Oct-2002  junyoung file GENERIC was added on branch bjh21-hydra on 2002-10-19 05:55:11 +0000
 1.26.2.11 11-Dec-2005  christos Sync with head.
 1.26.2.10 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.26.2.9 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.26.2.8 15-Feb-2005  skrll Sync with HEAD.
 1.26.2.7 04-Feb-2005  skrll Sync with HEAD.
 1.26.2.6 24-Jan-2005  skrll Sync with HEAD.
 1.26.2.5 18-Dec-2004  skrll Sync with HEAD.
 1.26.2.4 14-Nov-2004  skrll Sync with HEAD.
 1.26.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.26.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.26.2.1 03-Aug-2004  skrll Sync with HEAD
 1.37.2.4 11-Aug-2007  bouyer Pull up following revision(s) (requested by adrianp in ticket #11356):
sys/arch/acorn32/conf/GENERIC 1.80 via patch
sys/arch/amd64/conf/GENERIC 1.154 via patch
sys/arch/amiga/conf/GENERIC.in 1.61 via patch
sys/arch/arc/conf/GENERIC 1.148 via patch
sys/arch/atari/conf/GENERIC.in 1.68 via patch
sys/arch/cats/conf/GENERIC 1.116 via patch
sys/arch/hp300/conf/GENERIC 1.141 via patch
sys/arch/hp700/conf/GENERIC patch
sys/arch/i386/conf/GENERIC 1.840 via patch
sys/arch/i386/conf/GENERIC_LAPTOP 1.239 via patch
sys/arch/i386/conf/GENERIC.MPACPI patch
sys/arch/mac68k/conf/GENERIC 1.182 via patch
sys/arch/sgimips/conf/GENERIC32_IP2x 1.68 via patch
sys/arch/sgimips/conf/GENERIC32_IP3x 1.66 via patch
sys/arch/sparc/conf/GENERIC 1.200 via patch
sys/arch/sparc64/conf/GENERIC32 patch
sys/arch/xen/conf/GENERIC patch
Remove iso(4) from GENERIC kernels, as discussed on tech-net@
Ok'ed by core@
 1.37.2.3 15-Jul-2004  he branches: 1.37.2.3.2; 1.37.2.3.4;
Pull up revision 1.43 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.37.2.2 02-Jul-2004  he Pull up revision 1.42 (requested by bouyer in ticket #573):
Add options P1003_1B_SEMAPHORE to all GENERIC-like kernel
config files where SYSV* options were already present
(commented out if the SYSV* options are commented out).
Fixes PR#25897 and PR#25898.
 1.37.2.1 30-Jun-2004  jdc Pull up revision 1.41 (requested by abs in ticket #567).

Add (commented out) ALTQ options to all GENERIC-like files
 1.37.2.3.4.1 11-Aug-2007  bouyer Pull up following revision(s) (requested by adrianp in ticket #11356):
sys/arch/acorn32/conf/GENERIC 1.80 via patch
sys/arch/amd64/conf/GENERIC 1.154 via patch
sys/arch/amiga/conf/GENERIC.in 1.61 via patch
sys/arch/arc/conf/GENERIC 1.148 via patch
sys/arch/atari/conf/GENERIC.in 1.68 via patch
sys/arch/cats/conf/GENERIC 1.116 via patch
sys/arch/hp300/conf/GENERIC 1.141 via patch
sys/arch/hp700/conf/GENERIC patch
sys/arch/i386/conf/GENERIC 1.840 via patch
sys/arch/i386/conf/GENERIC_LAPTOP 1.239 via patch
sys/arch/i386/conf/GENERIC.MPACPI patch
sys/arch/mac68k/conf/GENERIC 1.182 via patch
sys/arch/sgimips/conf/GENERIC32_IP2x 1.68 via patch
sys/arch/sgimips/conf/GENERIC32_IP3x 1.66 via patch
sys/arch/sparc/conf/GENERIC 1.200 via patch
sys/arch/sparc64/conf/GENERIC32 patch
sys/arch/xen/conf/GENERIC patch
Remove iso(4) from GENERIC kernels, as discussed on tech-net@
Ok'ed by core@
 1.37.2.3.2.1 11-Aug-2007  bouyer Pull up following revision(s) (requested by adrianp in ticket #11356):
sys/arch/acorn32/conf/GENERIC 1.80 via patch
sys/arch/amd64/conf/GENERIC 1.154 via patch
sys/arch/amiga/conf/GENERIC.in 1.61 via patch
sys/arch/arc/conf/GENERIC 1.148 via patch
sys/arch/atari/conf/GENERIC.in 1.68 via patch
sys/arch/cats/conf/GENERIC 1.116 via patch
sys/arch/hp300/conf/GENERIC 1.141 via patch
sys/arch/hp700/conf/GENERIC patch
sys/arch/i386/conf/GENERIC 1.840 via patch
sys/arch/i386/conf/GENERIC_LAPTOP 1.239 via patch
sys/arch/i386/conf/GENERIC.MPACPI patch
sys/arch/mac68k/conf/GENERIC 1.182 via patch
sys/arch/sgimips/conf/GENERIC32_IP2x 1.68 via patch
sys/arch/sgimips/conf/GENERIC32_IP3x 1.66 via patch
sys/arch/sparc/conf/GENERIC 1.200 via patch
sys/arch/sparc64/conf/GENERIC32 patch
sys/arch/xen/conf/GENERIC patch
Remove iso(4) from GENERIC kernels, as discussed on tech-net@
Ok'ed by core@
 1.46.2.1 29-Apr-2005  kent sync with -current
 1.47.2.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.47.2.1 12-Feb-2005  yamt sync with head.
 1.52.4.4 28-Aug-2007  ghen Pull up following revision(s) (requested by adrianp in ticket #1826):
sys/arch/hp300/conf/GENERIC: revision 1.141 via patch
sys/arch/amd64/conf/GENERIC: revision 1.154 via patch
sys/arch/cats/conf/GENERIC: revision 1.116 via patch
sys/arch/arc/conf/GENERIC: revision 1.148 via patch
sys/arch/acorn32/conf/GENERIC: revision 1.80 via patch
sys/arch/sparc/conf/GENERIC: revision 1.200 via patch
sys/arch/sparc64/conf/GENERIC: revision 1.88 via patch
sys/arch/atari/conf/GENERIC.in: revision 1.68 via patch
sys/arch/amiga/conf/GENERIC: revision 1.248 via patch
sys/arch/i386/conf/GENERIC.MPACPI: patch
sys/arch/i386/conf/GENERIC_LAPTOP: revision 1.239 via patch
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.66 via patch
sys/arch/i386/conf/GENERIC: revision 1.840 via patch
sys/arch/amiga/conf/GENERIC.in: revision 1.61 via patch
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.68 via patch
sys/arch/mac68k/conf/GENERIC: revision 1.182 via patch
Remove iso(4) from GENERIC kernels, as discussed on tech-net&#64;
Ok'ed by core&#64;
 1.52.4.3 05-Nov-2005  tron branches: 1.52.4.3.2; 1.52.4.3.4;
Pull up following revision(s) (requested by chs in ticket #929):
sys/arch/hp300/conf/GENERIC: revision 1.124
sys/arch/acorn32/conf/GENERIC: revision 1.62
sys/arch/pdp10/conf/GENERIC: revision 1.19
sys/arch/mvme68k/conf/GENERIC: revision 1.61
sys/arch/netwinder/conf/GENERIC: revision 1.70
sys/arch/sbmips/conf/GENERIC: revision 1.46
sys/arch/macppc/conf/GENERIC: revision 1.214
sys/arch/bebox/conf/GENERIC: revision 1.89
sys/arch/cobalt/conf/GENERIC: revision 1.83
sys/arch/cats/conf/GENERIC: revision 1.92
sys/arch/shark/conf/GENERIC: revision 1.53
sys/arch/amiga/conf/GENERIC.in: revision 1.45
sys/arch/acorn26/conf/GENERIC: revision 1.37
sys/arch/cesfic/conf/GENERIC: revision 1.38
sys/arch/iyonix/conf/GENERIC: revision 1.21
sys/arch/alpha/conf/GENERIC: revision 1.277
sys/arch/vax/conf/GENERIC: revision 1.143
sys/arch/atari/conf/GENERIC.in: revision 1.56
sys/arch/mipsco/conf/GENERIC: revision 1.53
sys/arch/ofppc/conf/GENERIC: revision 1.85
sys/arch/next68k/conf/GENERIC: revision 1.96
sys/arch/arc/conf/GENERIC: revision 1.125
sys/arch/dreamcast/conf/GENERIC: revision 1.62
turn off DEBUG and DIAGNOSTIC in GENERIC kernels so that they
are compatible with the LKMs that are part of the release.
 1.52.4.2 14-Aug-2005  riz Pull up revision 1.56 (requested by hubertf in ticket #625):
Add support for reading cloop2 compressed filesystem images,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
 1.52.4.1 18-Jul-2005  riz Pull up revision 1.55 (requested by tron in ticket #566):
Add (commented out) IPSEC_NAT_T option.
 1.52.4.3.4.1 28-Aug-2007  ghen Pull up following revision(s) (requested by adrianp in ticket #1826):
sys/arch/hp300/conf/GENERIC: revision 1.141 via patch
sys/arch/amd64/conf/GENERIC: revision 1.154 via patch
sys/arch/cats/conf/GENERIC: revision 1.116 via patch
sys/arch/arc/conf/GENERIC: revision 1.148 via patch
sys/arch/acorn32/conf/GENERIC: revision 1.80 via patch
sys/arch/sparc/conf/GENERIC: revision 1.200 via patch
sys/arch/sparc64/conf/GENERIC: revision 1.88 via patch
sys/arch/atari/conf/GENERIC.in: revision 1.68 via patch
sys/arch/amiga/conf/GENERIC: revision 1.248 via patch
sys/arch/i386/conf/GENERIC.MPACPI: patch
sys/arch/i386/conf/GENERIC_LAPTOP: revision 1.239 via patch
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.66 via patch
sys/arch/i386/conf/GENERIC: revision 1.840 via patch
sys/arch/amiga/conf/GENERIC.in: revision 1.61 via patch
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.68 via patch
sys/arch/mac68k/conf/GENERIC: revision 1.182 via patch
Remove iso(4) from GENERIC kernels, as discussed on tech-net@
Ok'ed by core@
 1.52.4.3.2.1 28-Aug-2007  ghen Pull up following revision(s) (requested by adrianp in ticket #1826):
sys/arch/hp300/conf/GENERIC: revision 1.141 via patch
sys/arch/amd64/conf/GENERIC: revision 1.154 via patch
sys/arch/cats/conf/GENERIC: revision 1.116 via patch
sys/arch/arc/conf/GENERIC: revision 1.148 via patch
sys/arch/acorn32/conf/GENERIC: revision 1.80 via patch
sys/arch/sparc/conf/GENERIC: revision 1.200 via patch
sys/arch/sparc64/conf/GENERIC: revision 1.88 via patch
sys/arch/atari/conf/GENERIC.in: revision 1.68 via patch
sys/arch/amiga/conf/GENERIC: revision 1.248 via patch
sys/arch/i386/conf/GENERIC.MPACPI: patch
sys/arch/i386/conf/GENERIC_LAPTOP: revision 1.239 via patch
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.66 via patch
sys/arch/i386/conf/GENERIC: revision 1.840 via patch
sys/arch/amiga/conf/GENERIC.in: revision 1.61 via patch
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.68 via patch
sys/arch/mac68k/conf/GENERIC: revision 1.182 via patch
Remove iso(4) from GENERIC kernels, as discussed on tech-net@
Ok'ed by core@
 1.54.2.6 17-Mar-2008  yamt sync with head.
 1.54.2.5 21-Jan-2008  yamt sync with head
 1.54.2.4 15-Nov-2007  yamt sync with head.
 1.54.2.3 03-Sep-2007  yamt sync with head.
 1.54.2.2 30-Dec-2006  yamt sync with head.
 1.54.2.1 21-Jun-2006  yamt sync with head.
 1.65.4.1 09-Sep-2006  rpaulo sync with head
 1.65.2.1 18-Feb-2006  yamt sync with head.
 1.66.2.1 22-Apr-2006  simonb Sync with head.
 1.68.6.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.68.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.68.2.3 03-Sep-2006  yamt sync with head.
 1.68.2.2 11-Aug-2006  yamt sync with head
 1.68.2.1 01-Apr-2006  yamt sync with head.
 1.69.4.1 13-Jul-2006  gdamore Merge from HEAD.
 1.70.2.2 22-Sep-2006  riz Pull up following revision(s) (requested by tsutsui in ticket #170):
sys/arch/sparc64/conf/GENERIC: revision 1.63
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.55
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.54
sys/arch/next68k/conf/GENERIC: revision 1.105
sys/arch/ews4800mips/conf/GENERIC: revision 1.12
sys/arch/arc/conf/GENERIC: revision 1.142
sys/arch/sun3/conf/GENERIC3X: revision 1.91
sys/arch/amd64/conf/GENERIC: revision 1.105
sys/arch/sun2/conf/GENERIC: revision 1.58
sys/arch/amiga/conf/GENERIC.in: revision 1.55
sys/arch/mac68k/conf/GENERIC: revision 1.175
sys/arch/acorn26/conf/GENERIC: revision 1.46
sys/arch/shark/conf/GENERIC: revision 1.65
sys/arch/cesfic/conf/GENERIC: revision 1.45
sys/arch/sandpoint/conf/GENERIC: revision 1.36
sys/arch/iyonix/conf/GENERIC: revision 1.32
sys/arch/mvme68k/conf/GENERIC: revision 1.69
sys/arch/evbarm/conf/ARMADILLO210: revision 1.3
sys/arch/vax/conf/GENERIC: revision 1.154
sys/arch/mipsco/conf/GENERIC: revision 1.61
sys/arch/evbarm/conf/ARMADILLO9: revision 1.14
sys/arch/cobalt/conf/GENERIC: revision 1.103
sys/arch/ofppc/conf/GENERIC: revision 1.94
sys/arch/hp700/conf/GENERIC: revision 1.69
sys/arch/playstation2/conf/GENERIC: revision 1.8
sys/arch/dreamcast/conf/GENERIC: revision 1.73
sys/arch/news68k/conf/GENERIC: revision 1.81
sys/arch/macppc/conf/GENERIC: revision 1.234
sys/arch/hp300/conf/GENERIC: revision 1.134
sys/arch/mmeye/conf/GENERIC: revision 1.83
sys/arch/ibmnws/conf/GENERIC: revision 1.26
sys/arch/cats/conf/GENERIC: revision 1.109
sys/arch/sparc/conf/GENERIC: revision 1.191
sys/arch/pdp10/conf/GENERIC: revision 1.27
sys/arch/acorn32/conf/GENERIC: revision 1.75
sys/arch/luna68k/conf/GENERIC: revision 1.74
sys/arch/bebox/conf/GENERIC: revision 1.101
sys/arch/pmax/conf/GENERIC: revision 1.148
sys/arch/x68k/conf/GENERIC: revision 1.130
sys/arch/sun3/conf/GENERIC: revision 1.134
sys/arch/prep/conf/GENERIC: revision 1.126
sys/arch/alpha/conf/GENERIC: revision 1.293
sys/arch/newsmips/conf/GENERIC: revision 1.94
sys/arch/netwinder/conf/GENERIC: revision 1.83
sys/arch/hpcsh/conf/GENERIC: revision 1.69
sys/arch/sbmips/conf/GENERIC: revision 1.55
sys/arch/pc532/conf/GENERIC: revision 1.65
sys/arch/hpcmips/conf/GENERIC: revision 1.192
Remove obsolete #options VERIFIED_EXEC, found by grep(1).
 1.70.2.1 14-Aug-2006  tron Pull up following revision(s) (requested by elad in ticket #17):
sys/arch/sparc/conf/KRUPS: revision 1.38
sys/arch/i386/conf/XEN2_DOMU: revision 1.2
sys/arch/i386/conf/GENERIC_LAPTOP: revision 1.197
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.53
sys/arch/evbsh5/conf/SIMULATOR: revision 1.12
sys/arch/sparc/conf/MRCOFFEE: revision 1.17
sys/arch/next68k/conf/GENERIC: revision 1.104
sys/arch/i386/conf/VIRTUALPC: revision 1.44
sys/arch/ews4800mips/conf/GENERIC: revision 1.11
sys/arch/evbsh5/conf/CAYMAN: revision 1.23
sys/arch/arc/conf/GENERIC: revision 1.141
sys/arch/amd64/conf/GENERIC: revision 1.103
sys/arch/sun3/conf/GENERIC3X: revision 1.90
sys/arch/evbarm/conf/HDL_G: revision 1.3
sys/arch/sun2/conf/GENERIC: revision 1.57
sys/arch/news68k/conf/GENERIC_TINY: revision 1.51
sys/arch/evbppc/conf/EXPLORA451: revision 1.27
sys/arch/amiga/conf/GENERIC.in: revision 1.54
sys/arch/mac68k/conf/GENERIC: revision 1.174
sys/arch/acorn26/conf/GENERIC: revision 1.45
sys/arch/shark/conf/GENERIC: revision 1.64
sys/arch/cesfic/conf/GENERIC: revision 1.44
sys/arch/mvme68k/conf/GENERIC: revision 1.68
sys/arch/i386/conf/XEN2_DOM0: revision 1.4
sys/arch/atari/conf/GENERIC.in: revision 1.63
sys/arch/amiga/conf/GENERIC: revision 1.240
sys/arch/i386/conf/LAMB: revision 1.65
sys/arch/i386/conf/GENERIC: revision 1.773
sys/arch/acorn32/conf/EB7500ATX: revision 1.26
sys/arch/x68k/conf/GENERIC: revision 1.128
sys/arch/vax/conf/GENERIC: revision 1.153
sys/arch/atari/conf/ATARITT: revision 1.81
sys/arch/mipsco/conf/GENERIC: revision 1.60
sys/arch/cobalt/conf/GENERIC: revision 1.101
sys/arch/evbarm/conf/ARMADILLO9: revision 1.13
sys/arch/ofppc/conf/GENERIC: revision 1.93
sys/arch/atari/conf/MILAN-PCIIDE: revision 1.51
sys/arch/arc/conf/RPC44: revision 1.26
sys/arch/sparc64/conf/GENERIC: revision 1.59
sys/arch/i386/conf/XEN3_DOMU: revision 1.2
sys/arch/hp700/conf/GENERIC: revision 1.68
sys/arch/atari/conf/MILAN-ISAIDE: revision 1.47
sys/arch/macppc/conf/GENERIC: revision 1.231
sys/arch/dreamcast/conf/GENERIC: revision 1.72
sys/arch/news68k/conf/GENERIC: revision 1.80
sys/arch/hp300/conf/GENERIC: revision 1.133
sys/arch/mmeye/conf/GENERIC: revision 1.82
sys/arch/macppc/conf/MAMBO: revision 1.2
sys/arch/cats/conf/GENERIC: revision 1.107
sys/arch/atari/conf/FALCON: revision 1.79
sys/arch/acorn32/conf/GENERIC: revision 1.71
sys/arch/sparc/conf/GENERIC: revision 1.190
sys/arch/news68k/conf/LIBERO: revision 1.40
sys/arch/amiga/conf/DRACO: revision 1.114
sys/arch/cobalt/conf/INSTALL: revision 1.23
sys/arch/luna68k/conf/GENERIC: revision 1.73
sys/arch/bebox/conf/GENERIC: revision 1.100
sys/arch/pmax/conf/GENERIC: revision 1.147
sys/arch/amiga/conf/WSCONS: revision 1.52
sys/arch/macppc/conf/POWERMAC_G5: revision 1.2
sys/arch/alpha/conf/ALPHA: revision 1.218
sys/arch/sun3/conf/GENERIC: revision 1.133
sys/arch/prep/conf/GENERIC: revision 1.124
sys/arch/alpha/conf/GENERIC: revision 1.291
sys/arch/atari/conf/HADES: revision 1.71
sys/arch/newsmips/conf/GENERIC: revision 1.93
sys/arch/netwinder/conf/GENERIC: revision 1.82
sys/arch/hpcmips/conf/GENERIC: revision 1.190
sys/arch/amiga/conf/AMIGA: revision 1.98
sys/arch/sbmips/conf/GENERIC: revision 1.54
sys/arch/pc532/conf/GENERIC: revision 1.64
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.53
Disable SYSTRACE by default on all kernels (discussed with core)
 1.76.4.1 10-Dec-2006  yamt sync with head.
 1.76.2.1 18-Nov-2006  ad Sync with head.
 1.78.18.1 03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.78.16.2 03-Oct-2007  garbled Sync with HEAD
 1.78.16.1 26-Jun-2007  garbled Sync with HEAD.
 1.78.10.1 11-Jul-2007  mjf Sync with head.
 1.78.8.3 03-Dec-2007  ad Sync with HEAD.
 1.78.8.2 20-Aug-2007  ad Sync with HEAD.
 1.78.8.1 09-Jun-2007  ad Sync with head.
 1.78.2.2 25-Aug-2007  liamjfoy Pull up following revision(s) (requested by adrianp in ticket #820):
sys/arch/hp300/conf/GENERIC: revision 1.141
sys/arch/alpha/conf/GENERIC: revision 1.315
sys/arch/amd64/conf/GENERIC: revision 1.154
sys/arch/cats/conf/GENERIC: revision 1.116
sys/arch/arc/conf/GENERIC: revision 1.148
sys/arch/acorn32/conf/GENERIC: revision 1.80
sys/arch/sparc/conf/GENERIC: revision 1.200
sys/arch/sparc64/conf/GENERIC: revision 1.88
sys/arch/atari/conf/GENERIC.in: revision 1.68
sys/arch/amiga/conf/GENERIC: revision 1.248
sys/arch/i386/conf/GENERIC_LAPTOP: revision 1.239
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.66
sys/arch/i386/conf/GENERIC: revision 1.840
sys/arch/amiga/conf/GENERIC.in: revision 1.61
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.68
sys/arch/mac68k/conf/GENERIC: revision 1.182
Remove iso(4) from GENERIC kernels, as discussed on tech-net@
Ok'ed by core@
 1.78.2.1 05-Jun-2007  bouyer Pull up following revision(s) (requested by martin in ticket #699):
sys/arch/hpcmips/conf/GENERIC: revision 1.196
sys/arch/hp700/conf/GENERIC: revision 1.74
sys/arch/i386/conf/GENERIC: revision 1.831
sys/arch/next68k/conf/GENERIC: revision 1.108
sys/arch/alpha/conf/GENERIC: revision 1.313
sys/arch/arc/conf/GENERIC: revision 1.146
sys/arch/cats/conf/GENERIC: revision 1.115
sys/arch/ews4800mips/conf/GENERIC: revision 1.18
sys/arch/landisk/conf/GENERIC: revision 1.8 via patch
sys/arch/sparc64/conf/GENERIC: revision 1.85
sys/arch/pmax/conf/GENERIC: revision 1.152
sys/arch/iyonix/conf/GENERIC: revision 1.38 via patch
sys/arch/amiga/conf/GENERIC: revision 1.245
sys/arch/vax/conf/GENERIC: revision 1.157
sys/arch/prep/conf/GENERIC: revision 1.135
sys/arch/pc532/conf/GENERIC: revision 1.70
sys/arch/sbmips/conf/GENERIC: revision 1.61
sys/arch/mipsco/conf/GENERIC: revision 1.65
sys/arch/cobalt/conf/GENERIC: revision 1.108
sys/arch/ofppc/conf/GENERIC: revision 1.98
sys/arch/amd64/conf/GENERIC: revision 1.148
sys/arch/acorn26/conf/GENERIC: revision 1.50
sys/arch/dreamcast/conf/GENERIC: revision 1.78
sys/arch/mac68k/conf/GENERIC: revision 1.181
sys/arch/hp300/conf/GENERIC: revision 1.139
sys/arch/mmeye/conf/GENERIC: revision 1.88
sys/arch/news68k/conf/GENERIC: revision 1.88
sys/arch/mvme68k/conf/GENERIC: revision 1.71
sys/arch/acorn32/conf/GENERIC: revision 1.79
sys/arch/sparc/conf/GENERIC: revision 1.199
sys/arch/luna68k/conf/GENERIC: revision 1.78
sys/arch/bebox/conf/GENERIC: revision 1.105
sys/arch/macppc/conf/GENERIC: revision 1.256 via patch
sys/arch/x68k/conf/GENERIC: revision 1.134
sys/arch/sun3/conf/GENERIC: revision 1.138
sys/arch/newsmips/conf/GENERIC: revision 1.98
Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
 1.79.8.2 04-Nov-2007  jmcneill Sync with HEAD.
 1.79.8.1 09-Aug-2007  jmcneill Sync with HEAD.
 1.79.6.1 28-Feb-2008  rjs Sync with HEAD.
 1.79.4.1 15-Aug-2007  skrll Sync with HEAD.
 1.79.2.1 07-Aug-2007  matt Sync with HEAD.
 1.80.8.1 13-Nov-2007  bouyer Sync with HEAD
 1.80.4.3 23-Mar-2008  matt sync with HEAD
 1.80.4.2 09-Jan-2008  matt sync with HEAD
 1.80.4.1 06-Nov-2007  matt sync with HEAD
 1.80.2.3 21-Mar-2008  chris Sync with head.
 1.80.2.2 20-Jan-2008  chris Sync to HEAD.
 1.80.2.1 01-Jan-2008  chris Sync with HEAD.
 1.82.8.2 20-Jan-2008  bouyer Sync with HEAD
 1.82.8.1 02-Jan-2008  bouyer Sync with HEAD
 1.82.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.84.6.4 17-Jan-2009  mjf Sync with HEAD.
 1.84.6.3 28-Sep-2008  mjf Sync with HEAD.
 1.84.6.2 02-Jun-2008  mjf Sync with HEAD.
 1.84.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.84.2.1 24-Mar-2008  keiichi sync with head.
 1.85.6.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.85.6.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.85.4.3 11-Aug-2010  yamt sync with head.
 1.85.4.2 11-Mar-2010  yamt sync with head
 1.85.4.1 04-May-2009  yamt sync with head.
 1.85.2.1 04-Jun-2008  yamt sync with head
 1.86.4.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.86.4.1 19-Oct-2008  haad Sync with HEAD.
 1.88.2.3 28-Apr-2009  skrll Sync with HEAD.
 1.88.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.88.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.91.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.94.4.3 21-Apr-2011  rmind sync with head
 1.94.4.2 05-Mar-2011  rmind sync with head
 1.94.4.1 30-May-2010  rmind sync with head
 1.94.2.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.94.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.97.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.97.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.99.2.4 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.99.2.3 16-Jan-2013  yamt sync with (a bit old) head
 1.99.2.2 30-Oct-2012  yamt sync with head
 1.99.2.1 17-Apr-2012  yamt sync with head
 1.100.2.2 11-Mar-2012  mrg sync to latest -current
 1.100.2.1 18-Feb-2012  mrg merge to -current.
 1.103.2.5 03-Dec-2017  jdolecek update from HEAD
 1.103.2.4 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.103.2.3 23-Jun-2013  tls resync from head
 1.103.2.2 25-Feb-2013  tls resync with head
 1.103.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.110.2.1 28-Aug-2013  rmind sync with head
 1.111.4.1 10-Aug-2014  tls Rebase.
 1.112.2.2 18-Nov-2014  snj Pull up following revision(s) (requested by manu in ticket #251):
sys/arch/acorn26/conf/GENERIC: revision 1.81
sys/arch/acorn32/conf/GENERIC: revision 1.116
sys/arch/alpha/conf/GENERIC: revision 1.362
sys/arch/amd64/conf/ALL: revision 1.23
sys/arch/amd64/conf/GENERIC: revision 1.404
sys/arch/amd64/conf/XEN3_DOM0: revision 1.112
sys/arch/amd64/conf/XEN3_DOMU: revision 1.60
sys/arch/amiga/conf/GENERIC.in: revision 1.129
sys/arch/amiga/conf/GENERIC: revision 1.311
sys/arch/amigappc/conf/GENERIC: revision 1.24
sys/arch/arc/conf/GENERIC: revision 1.184
sys/arch/bebox/conf/GENERIC: revision 1.145
sys/arch/cats/conf/GENERIC: revision 1.155
sys/arch/cesfic/conf/GENERIC: revision 1.65
sys/arch/cobalt/conf/GENERIC: revision 1.147
sys/arch/dreamcast/conf/GENERIC: revision 1.121
sys/arch/emips/conf/GENERIC: revision 1.15
sys/arch/epoc32/conf/GENERIC: revision 1.8
sys/arch/ews4800mips/conf/GENERIC: revision 1.51
sys/arch/hp300/conf/GENERIC: revision 1.190
sys/arch/hpcmips/conf/GENERIC: revision 1.229
sys/arch/hpcsh/conf/GENERIC: revision 1.106
sys/arch/hppa/conf/GENERIC: revision 1.6
sys/arch/i386/conf/ALL: revision 1.389
sys/arch/i386/conf/GENERIC: revision 1.1118
sys/arch/i386/conf/XEN3_DOM0: revision 1.93
sys/arch/i386/conf/XEN3_DOMU: revision 1.65
sys/arch/ibmnws/conf/GENERIC: revision 1.46
sys/arch/iyonix/conf/GENERIC: revision 1.88
sys/arch/landisk/conf/GENERIC: revision 1.45
sys/arch/luna68k/conf/GENERIC: revision 1.119
sys/arch/mac68k/conf/GENERIC: revision 1.220
sys/arch/macppc/conf/GENERIC: revision 1.320
sys/arch/macppc/conf/MAMBO: revision 1.24
sys/arch/macppc/conf/POWERMAC_G5: revision 1.25
sys/arch/mipsco/conf/GENERIC: revision 1.88
sys/arch/mmeye/conf/GENERIC: revision 1.120
sys/arch/mvme68k/conf/GENERIC: revision 1.94
sys/arch/mvmeppc/conf/GENERIC: revision 1.24
sys/arch/netwinder/conf/GENERIC: revision 1.126
sys/arch/news68k/conf/GENERIC: revision 1.125
sys/arch/newsmips/conf/GENERIC: revision 1.129
sys/arch/next68k/conf/GENERIC: revision 1.139
sys/arch/ofppc/conf/GENERIC: revision 1.157
sys/arch/pmax/conf/GENERIC64: revision 1.21
sys/arch/pmax/conf/GENERIC: revision 1.185
sys/arch/prep/conf/GENERIC: revision 1.174
sys/arch/rs6000/conf/GENERIC: revision 1.33
sys/arch/sandpoint/conf/GENERIC: revision 1.88
sys/arch/sbmips/conf/GENERIC: revision 1.101
sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.28
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.104
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.106
sys/arch/shark/conf/GENERIC: revision 1.121
sys/arch/sparc/conf/GENERIC: revision 1.248
sys/arch/sparc/conf/TADPOLE3GX: revision 1.65
sys/arch/sparc64/conf/GENERIC: revision 1.177
sys/arch/sparc64/conf/NONPLUS64: revision 1.44
sys/arch/sun2/conf/GENERIC: revision 1.94
sys/arch/sun3/conf/GENERIC: revision 1.171
sys/arch/vax/conf/GENERIC: revision 1.193
sys/arch/vax/conf/VAX780: revision 1.19
sys/arch/x68k/conf/GENERIC: revision 1.179
sys/arch/zaurus/conf/GENERIC: revision 1.65
sys/ufs/files.ufs: revision 1.38
Remove unused extended attributes kernel options

As Masao Uebayashi pointed to me, UFS_EXTATTR_AUTOSTART, LFS_EXTATTR_AUTOSTART
and UFS_EXTATTR_AUTOCREATE are not used anywhere in the code. Remove them
as they have been obsolete for a long time:
UFS_EXTATTR_AUTOSTART was replaced by mount -o extattr
LFS_EXTATTR_AUTOSTART was created to match obsolete UFS_EXTATTR_AUTOSTART
UFS_EXTATTR_AUTOCREATE was replaced by sysctl vfs.ffs.extattr_autocreate
 1.112.2.1 14-Nov-2014  martin Pull up following revision(s) (requested by manu in ticket #232):
sys/arch/next68k/conf/GENERIC: revision 1.138
sys/arch/cobalt/conf/GENERIC: revision 1.146
sys/arch/mvme68k/conf/GENERIC: revision 1.93
sys/arch/vax/conf/VAX780: revision 1.18
sys/arch/newsmips/conf/GENERIC: revision 1.128
sys/arch/luna68k/conf/GENERIC: revision 1.118
sys/arch/sbmips/conf/GENERIC: revision 1.100
sys/arch/pmax/conf/GENERIC: revision 1.184
sys/arch/alpha/conf/GENERIC: revision 1.361
sys/arch/sparc64/conf/GENERIC: revision 1.176
sys/arch/sun3/conf/GENERIC: revision 1.170
sys/arch/shark/conf/GENERIC: revision 1.120
sys/arch/landisk/conf/GENERIC: revision 1.44
sys/arch/bebox/conf/GENERIC: revision 1.144
sys/arch/sparc64/conf/NONPLUS64: revision 1.43
sys/arch/sandpoint/conf/GENERIC: revision 1.87
sys/arch/emips/conf/GENERIC: revision 1.14
sys/arch/amd64/conf/XEN3_DOM0: revision 1.111
sys/arch/dreamcast/conf/GENERIC: revision 1.120
sys/arch/cesfic/conf/GENERIC: revision 1.64
sys/arch/mmeye/conf/GENERIC: revision 1.119
sys/arch/epoc32/conf/GENERIC: revision 1.7
sys/arch/x68k/conf/GENERIC: revision 1.178
sys/arch/iyonix/conf/GENERIC: revision 1.87
sys/arch/sun2/conf/GENERIC: revision 1.93
sys/arch/ews4800mips/conf/GENERIC: revision 1.50
sys/arch/amd64/conf/XEN3_DOMU: revision 1.59
sys/arch/acorn26/conf/GENERIC: revision 1.80
sys/arch/acorn32/conf/GENERIC: revision 1.115
sys/arch/macppc/conf/POWERMAC_G5: revision 1.24
sys/arch/i386/conf/GENERIC: revision 1.1117
sys/arch/arc/conf/GENERIC: revision 1.183
sys/arch/cats/conf/GENERIC: revision 1.154
sys/arch/amiga/conf/GENERIC.in: revision 1.128
sys/arch/zaurus/conf/GENERIC: revision 1.64
sys/arch/netwinder/conf/GENERIC: revision 1.125
sys/arch/hppa/conf/GENERIC: revision 1.5
sys/arch/mvmeppc/conf/GENERIC: revision 1.23
sys/arch/macppc/conf/GENERIC: revision 1.319
sys/arch/amiga/conf/GENERIC: revision 1.310
sys/arch/pmax/conf/GENERIC64: revision 1.20
sys/arch/macppc/conf/MAMBO: revision 1.23
sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.27
sys/arch/amigappc/conf/GENERIC: revision 1.23
sys/arch/amd64/conf/GENERIC: revision 1.403
sys/arch/ofppc/conf/GENERIC: revision 1.156
sys/arch/mac68k/conf/GENERIC: revision 1.219
sys/arch/i386/conf/XEN3_DOMU: revision 1.64
sys/arch/mipsco/conf/GENERIC: revision 1.87
sys/arch/hp300/conf/GENERIC: revision 1.189
sys/arch/vax/conf/GENERIC: revision 1.192
sys/arch/news68k/conf/GENERIC: revision 1.124
sys/arch/ibmnws/conf/GENERIC: revision 1.45
sys/arch/hpcsh/conf/GENERIC: revision 1.105
sys/arch/sparc/conf/TADPOLE3GX: revision 1.64
sys/arch/i386/conf/XEN3_DOM0: revision 1.92
sys/arch/sparc/conf/GENERIC: revision 1.247
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.105
sys/arch/prep/conf/GENERIC: revision 1.173
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.103
sys/arch/rs6000/conf/GENERIC: revision 1.32
sys/arch/hpcmips/conf/GENERIC: revision 1.228
Support for UFS1 extended attributes in GENERIC and GENERIC-like kernels
This change just brings UFS1 extended attribute *support* in the kernel,
extended attributes are not enabled unless three conditions are met:
1) filesystem is UFS1 (newfs -O1)
2) .attribute/system and .attribute/user directories are created at fs root
3) filesystem is mounted with -o extattr
Some GENERIC kernels are obviously memory constrained, the extended
attributes options were not enabled for them, but just added commented out.
(kernel were considered memory constrained if QUOTA option was disabled)
 1.116.2.3 28-Aug-2017  skrll Sync with HEAD
 1.116.2.2 05-Feb-2017  skrll Sync with HEAD
 1.116.2.1 22-Sep-2015  skrll Sync with HEAD
 1.117.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.120.8.1 26-Jan-2018  martin Pull up following revision(s) (requested by sevan in ticket #510):
sys/arch/sun3/conf/GENERIC3X: revision 1.130
sys/arch/sparc64/conf/GENERIC: revision 1.203
sys/arch/news68k/conf/LIBERO: revision 1.66
sys/arch/amiga/conf/DRACO: revision 1.185
sys/arch/evbarm/conf/MV2120: revision 1.35
sys/arch/x68k/conf/GENERIC: revision 1.187
sys/arch/rs6000/conf/GENERIC: revision 1.39
sys/arch/news68k/conf/GENERIC_TINY: revision 1.86
sys/arch/i386/conf/XEN3_DOMU: revision 1.88
sys/arch/iyonix/conf/GENERIC: revision 1.97
sys/arch/evbarm64/conf/A64EMUL: revision 1.11
sys/arch/mvme68k/conf/GENERIC: revision 1.98
sys/arch/acorn32/conf/GENERIC: revision 1.124
sys/arch/i386/conf/XEN3_DOM0: revision 1.125
sys/arch/cobalt/conf/INSTALL: revision 1.65
sys/arch/macppc/conf/GENERIC_601: revision 1.16
sys/arch/hppa/conf/GENERIC: revision 1.17
sys/arch/amiga/conf/GENERIC.in: revision 1.137
sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.33
sys/arch/netwinder/conf/GENERIC: revision 1.134
sys/arch/amd64/conf/XEN3_DOMU: revision 1.83
sys/arch/mac68k/conf/GENERIC: revision 1.225
sys/arch/arc/conf/RPC44: revision 1.54
sys/arch/mipsco/conf/GENERIC: revision 1.92
sys/arch/cats/conf/GENERIC: revision 1.166
sys/arch/amd64/conf/XEN3_DOM0: revision 1.145
sys/arch/amigappc/conf/GENERIC: revision 1.33
sys/arch/sun3/conf/GENERIC: revision 1.176
sys/arch/news68k/conf/GENERIC: revision 1.130
sys/arch/hpcsh/conf/GENERIC: revision 1.110
sys/arch/hp300/conf/GENERIC: revision 1.198
sys/arch/atari/conf/GENERIC.in: revision 1.115
sys/arch/sparc/conf/MRCOFFEE: revision 1.54
sys/arch/evbppc/conf/EXPLORA451: revision 1.62
sys/arch/cesfic/conf/GENERIC: revision 1.69
sys/arch/vax/conf/GENERIC: revision 1.204
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.115
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.112
sys/arch/sparc/conf/GENERIC: revision 1.258
sys/arch/next68k/conf/GENERIC: revision 1.145
sys/arch/evbarm/conf/MMNET_GENERIC: revision 1.34
sys/arch/prep/conf/GENERIC: revision 1.185
sys/arch/amiga/conf/INSTALL: revision 1.129
sys/arch/newsmips/conf/GENERIC: revision 1.133
sys/arch/cobalt/conf/GENERIC: revision 1.156
sys/arch/sun2/conf/GENERIC: revision 1.99
sys/arch/luna68k/conf/INSTALL: revision 1.25
sys/arch/amigappc/conf/NULL: revision 1.53
sys/arch/acorn26/conf/GENERIC: revision 1.85
sys/arch/vax/conf/VAX780: revision 1.25
sys/arch/luna68k/conf/GENERIC: revision 1.125
sys/arch/ews4800mips/conf/GENERIC: revision 1.56
sys/arch/macppc/conf/POWERMAC_G5: revision 1.29
sys/arch/arc/conf/GENERIC: revision 1.189
sys/arch/macppc/conf/MAMBO: revision 1.27
sys/arch/acorn32/conf/EB7500ATX: revision 1.64
sys/arch/pmax/conf/GENERIC: revision 1.196
sys/arch/pmax/conf/GENERIC64: revision 1.28
sys/arch/amiga/conf/GENERIC: revision 1.319
sys/arch/evbarm/conf/MPCSA_GENERIC: revision 1.55
sys/arch/macppc/conf/GENERIC: revision 1.339
sys/arch/emips/conf/GENERIC: revision 1.21
sys/arch/sandpoint/conf/GENERIC: revision 1.97
sys/arch/landisk/conf/GENERIC: revision 1.58
sys/arch/bebox/conf/GENERIC: revision 1.157
sys/arch/alpha/conf/GENERIC: revision 1.379
Alternate buffer queue strategies no longer considered experimental, update
description.
Discussed on tech-kern
http://mail-index.netbsd.org/tech-kern/2018/01/21/msg023002.html
 1.124.2.3 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.124.2.2 25-Jun-2018  pgoyette Sync with HEAD
 1.124.2.1 21-May-2018  pgoyette Sync with HEAD
 1.126.2.3 21-Apr-2020  martin Sync with HEAD
 1.126.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.126.2.1 10-Jun-2019  christos Sync with HEAD
 1.129.4.1 25-Jan-2020  ad Sync with head.
 1.130.4.1 20-Apr-2020  bouyer Sync with HEAD
 1.87 27-Sep-2020  roy vether: Add to kernel configurations

It's only enabled if the kernel enabled bridge AND tap.
Otherwise it's commented out.
 1.86 07-Sep-2020  mrg -march=armv3m option is obsolete. remove it from commented kernel
configurations (we haven't supported those machines lately anyway),
and, for GCC >= 9, from the one caller.
 1.85 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.84 19-Jan-2020  thorpej branches: 1.84.4;
Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.83 31-Mar-2019  christos branches: 1.83.6;
bump size
 1.82 07-Feb-2019  mrg bump ramdisk sizes by 100kb for GCC 7 bloaty.
 1.81 01-Aug-2018  maxv Unreference IPF/PF from all the config files, and enable NPF instead when
wanted. This also fixes some inconsistencies I saw in several files (eg
IPF options while IPF was not compiled, IPF+PF enabled by default, etc).
 1.80 07-Jun-2018  thorpej branches: 1.80.2;
Revert changes that pinned-down i2c parent specs. The i2c subsystem
has been enhanced to make this unnecessary.
 1.79 14-May-2018  thorpej Fully specifiy the location of indirectly-configured I2C devices. In
particular, the parent spec must not be wild-carded, as doing so doesn't
work well on systems where more than one I2C bus is present.
 1.78 14-Sep-2017  mrg branches: 1.78.2;
clean up COMPAT_* options for native netbsd code:
- new series of files that are useful for saying "i want everything
since netbsd 1.4", etc.
- use the fact COMPAT_* options have future dependancies to remove
many redundant options.

removes about 3000 lines total across kernel configuration files.
tested about 30 random kernels in the changed list.
 1.77 28-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 1.
 1.76 13-Dec-2016  christos wildcard speaker attachments, now that we can handle many of them.
 1.75 10-Dec-2016  christos remove VAUDIOSPEAKER for now, will be done differently.
 1.74 08-Dec-2016  nat Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
 1.73 21-Aug-2015  uebayasi branches: 1.73.2;
Add `pseudo-device ksyms' where `options DDB' is used, because
config(1)/config(5) can't handle module dependency correctly at this
moment.

(This is another proof that shared file definition (`file xxx.c a|b')
is a bad idea.)
 1.72 12-Aug-2015  maxv Remove KMEMSTATS.
 1.71 23-Aug-2014  dholland branches: 1.71.2;
Systematize (and in many cases, fix) the comments on options COMPAT_NN.

There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
 1.70 30-Jun-2013  rmind G/C PFIL_HOOKS from the kernel configs.
 1.69 05-Jun-2013  christos branches: 1.69.2;
remove obsolete networking options
 1.68 27-Apr-2013  christos the bogus number police
 1.67 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.66 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.65 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.64 06-Dec-2012  msaitoh Remove "#options ARMFPE"
 1.63 17-Aug-2012  abs branches: 1.63.2;
Update all kernel configs mentioning WSEMUL_* but not already including
WSDISPLAY_COMPAT_USL using the following rules:
- If WSEMUL_ is commented out, add commented out out WSDISPLAY_COMPAT_USL
- If INSTALL or obviously memory constrained, add WSDISPLAY_DEFAULTSCREENS=1
and commented out WSDISPLAY_COMPAT_USL
- Otherwise add WSDISPLAY_COMPAT_USL

Some of the INSTALL configs for larger memory machines are probably suitable
for adding WSDISPLAY_COMPAT_USL.

Now wsconscfg(8) should be able to switch VTs when expected.

Implemented after no objection from tech-kern to the following:

On 5 June 2012 09:47, David Brownlee <abs@absd.org> wrote:
> wsconscfg(8) requires WSDISPLAY_COMPAT_USL in order to switch virtual
> terminals.
>
> Except when in an exceptionally memory or space constrained
> environment (INSTALL being the obvious case), is there any reason why
> all GENERIC and GENERIC-like kernels which have wscons enabled
> shouldn't also have WSDISPLAY_COMPAT_USL?
 1.62 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.61 22-Nov-2011  tls branches: 1.61.2;

The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself. Move it to std. This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports. Thanks to Havard Eidnes for
pointing them out.
 1.60 30-Jun-2011  wiz branches: 1.60.2;
dependant -> dependent
 1.59 06-Mar-2011  bouyer merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.58 23-Nov-2010  hannken branches: 1.58.2; 1.58.4;
Remove unused count from pseudo-device md.
 1.57 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.56 13-Jan-2010  he branches: 1.56.2; 1.56.4;
Bump the ramdisk size so that the contents fits again.
OK'ed by reinoud@
 1.55 05-Dec-2009  pooka Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.54 19-Apr-2009  tsutsui Remove number parameters from pseudo-device loop and ipfilter.
 1.53 06-Mar-2009  joerg Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
 1.52 06-Feb-2009  jym branches: 1.52.2;
Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

See also http://mail-index.netbsd.org/tech-kern/2008/12/25/msg003924.html

Reviewed by abs@ in private mail.
 1.51 24-Nov-2008  ad Remove softdep, pass 1. We are focused on improving journalling.

Proposed on tech-kern@.
 1.50 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.49 31-Jul-2008  simonb branches: 1.49.2;
Add "options WAPBL" to standard GENERIC/INSTALL type configs.
 1.48 30-May-2008  tsutsui branches: 1.48.4;
Add options COMPAT_40 to files which have options COMPAT_30.
 1.47 19-Jan-2008  chris branches: 1.47.6; 1.47.8; 1.47.10; 1.47.12;
Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.46 22-Oct-2006  bjh21 branches: 1.46.24; 1.46.28; 1.46.30; 1.46.36; 1.46.44;
The sec(4) and ei(4) drivers appear to work on acorn32. Use them in preference
to the MD asc(4) and ie(4) drivers.
 1.45 02-Oct-2006  chs remove MALLOC_NOINLINE, it doesn't do anything anymore.
 1.44 26-Aug-2006  christos branches: 1.44.2; 1.44.4;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.43 19-Aug-2006  bjh21 Now that boot32 can pass in a useful frame rate, it's reasonable to use the
standard video mode list in our example kernels, rather that a somewhat
random subset. So do that.
 1.42 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.41 14-Aug-2006  skrll s/adpater/adapter/

Prompted by PR/34195
 1.40 05-Aug-2006  bjh21 Xarm32VIDC has supported pckbd(4) for several releases now, so it's probably
safe to stop using rpckbd(4) in wscons configurations.
 1.39 05-Feb-2006  cube branches: 1.39.2;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.38 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.37 20-Dec-2005  thorpej branches: 1.37.2; 1.37.4; 1.37.6;
Remove the tablet line discipline.
 1.36 07-Dec-2005  tsutsui Remove obsolete options VNODE_OP_NOINLINE.
 1.35 07-Dec-2005  tsutsui Adjust comments for options FFS_NO_SNAPSHOT.

XXX: This option should be mentioned in options(4).
 1.34 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.33 19-Aug-2005  christos 64 bit inode changes.
 1.32 07-Jul-2005  tron Add (commented out) IPSEC_NAT_T option.
 1.31 18-Feb-2005  dsl branches: 1.31.4; 1.31.6;
Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.30 11-Feb-2005  dsl Add 'option FFS_SNAPSHOT' to most of the config files.
Commented out for kernels that appear to hace space constraints.
 1.29 31-Jan-2005  hannken Add file system snapshots to kernel configs.

- Ffs internal snapshots get compiled in unconditionally.

- File system snapshot device fss(4) added to all kernel configs that
have a disk. Device is commented out on all non-GENERIC kernels.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>
 1.28 17-Jan-2005  cube branches: 1.28.2;
Add tap(4) support to a random^Wcarefully chosen set of kernel configs.
All those kernels have a line for both tun and bridge, and if either is
commented out, tap is commented out also. With the exception of i386's
GENERIC_TINY.

XXX: we _need_ some way of making this more simple.
 1.27 08-Dec-2004  reinoud branches: 1.27.2;
Add IPv6 support like all other architectures do and add NetBSD 2.0
binary compatibility
 1.26 10-Nov-2004  christos Add COMPAT_BSDPTY to the rest of the config files.
 1.25 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.24 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.23 08-Jul-2004  chris Remove duplicate vidcvideo0 and wsdisplay lines
 1.22 13-Mar-2004  bjh21 branches: 1.22.2;
Rename wsqms(4) to qms(4), since the "ws" is redundant now. While I'm here,
bundle it all into a single file, qms.c, replacing wsqms.c, wsqms_iomd.c,
and wsqmsvar.h.
 1.21 13-Mar-2004  bjh21 Remove all use of busmouse(4), instead using wsmouse everywhere, even in
kernels that don't use wscons otherwise. The X server released with 1.6
should be able to cope with this.
 1.20 13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.19 25-Jan-2004  bjh21 Remove the "beep" driver. Its function is largely subsumed by a
combination of audio(4), wskbd(4) and audiobell(). Proposed a week
ago on port-acorn32 with no reaction whatever.
 1.18 17-Jan-2004  bjh21 Remove sysbeep device.
 1.17 18-Oct-2003  lukem Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
 1.16 08-Oct-2003  bouyer Add atabus
 1.15 30-Sep-2003  thorpej New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
 1.14 13-Sep-2003  chris Add COMPAT_16 to most arm based kernels. Mainly in preperation for doing
SA_SIGINFO work.
 1.13 18-Sep-2002  lukem branches: 1.13.8;
enable USERCONF by default; it's small and extremely useful to have available.
 1.12 07-Aug-2002  bjh21 Enable csc(4), since it seems to be working now.
 1.11 05-Jul-2002  abs Ensure all INSTALL config files consistantly include PIPE_SOCKETPAIR,
MALLOC_NOINLINE, and VNODE_OP_NOINLINE. The exceptions are when they
include another config files that already defines the options, or if
they are for an embedded board, just define a few extra options, and
do not already define PIPE_SOCKETPAIR.
 1.10 25-Apr-2002  atatat branches: 1.10.2; 1.10.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.9 12-Apr-2002  gmcgarry Add commented-out USERCONF option. Mainly useful for install media
and can be optionally enabled based on miniroot and ramdisk size
requirements.
 1.8 10-Apr-2002  thorpej Remove "options RISCPC"; nothing tests for it anymore.
 1.7 02-Apr-2002  lukem Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
 1.6 12-Mar-2002  reinoud Remove the in practice unused font stuff to save space
 1.5 10-Mar-2002  lukem * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
 1.4 11-Feb-2002  reinoud branches: 1.4.2;
The COMPAT_OLD_BOOTLOADER flag can go now since BtRiscBSD is no longer
suported due to ELF transition.
 1.3 30-Jan-2002  reinoud branches: 1.3.2;
Update and clean the config files to look more equal ... some non standard
configutations were not updated during time.
 1.2 27-Jan-2002  jdolecek add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
 1.1 25-Jan-2002  reinoud Cleanup kernel configuration file and add a generic INSTALL kernel. The
A7000 kernels are obsolete now the ARM7500 detection is integrated. The
NC's however are not completely supported and should in the near future be
bootable with GENERIC/INSTALL too.
 1.3.2.6 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.5 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.3.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.1 30-Jan-2002  jdolecek file INSTALL was added on branch kqueue on 2002-02-11 20:06:37 +0000
 1.4.2.8 18-Oct-2002  nathanw Catch up to -current.
 1.4.2.7 13-Aug-2002  nathanw Catch up to -current.
 1.4.2.6 01-Aug-2002  nathanw Catch up to -current.
 1.4.2.5 20-Jun-2002  nathanw Catch up to -current.
 1.4.2.4 17-Apr-2002  nathanw Catch up to -current.
 1.4.2.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.4.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.4.2.1 11-Feb-2002  nathanw file INSTALL was added on branch nathanw_sa on 2002-02-28 04:05:52 +0000
 1.10.4.1 07-Aug-2002  lukem Pull up revision 1.12 (requested by bjh21 in ticket #642):
Enable csc(4), since it seems to be working now.
 1.10.2.2 30-Aug-2002  gehenna catch up with -current.
 1.10.2.1 16-Jul-2002  gehenna catch up with -current.
 1.13.8.11 11-Dec-2005  christos Sync with head.
 1.13.8.10 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.13.8.9 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.13.8.8 15-Feb-2005  skrll Sync with HEAD.
 1.13.8.7 04-Feb-2005  skrll Sync with HEAD.
 1.13.8.6 24-Jan-2005  skrll Sync with HEAD.
 1.13.8.5 18-Dec-2004  skrll Sync with HEAD.
 1.13.8.4 14-Nov-2004  skrll Sync with HEAD.
 1.13.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.13.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.13.8.1 03-Aug-2004  skrll Sync with HEAD
 1.22.2.1 15-Jul-2004  he Pull up revision 1.24 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.27.2.1 29-Apr-2005  kent sync with -current
 1.28.2.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.28.2.1 12-Feb-2005  yamt sync with head.
 1.31.6.3 21-Jan-2008  yamt sync with head
 1.31.6.2 30-Dec-2006  yamt sync with head.
 1.31.6.1 21-Jun-2006  yamt sync with head.
 1.31.4.1 18-Jul-2005  riz Pull up revision 1.32 (requested by tron in ticket #566):
Add (commented out) IPSEC_NAT_T option.
 1.37.6.1 22-Apr-2006  simonb Sync with head.
 1.37.4.1 09-Sep-2006  rpaulo sync with head
 1.37.2.1 18-Feb-2006  yamt sync with head.
 1.39.2.2 03-Sep-2006  yamt sync with head.
 1.39.2.1 11-Aug-2006  yamt sync with head
 1.44.4.2 10-Dec-2006  yamt sync with head.
 1.44.4.1 22-Oct-2006  yamt sync with head
 1.44.2.1 18-Nov-2006  ad Sync with head.
 1.46.44.1 20-Jan-2008  bouyer Sync with HEAD
 1.46.36.1 18-Feb-2008  mjf Sync with HEAD.
 1.46.30.1 23-Mar-2008  matt sync with HEAD
 1.46.28.1 20-Jan-2008  chris Sync to HEAD.
 1.46.24.1 28-Feb-2008  rjs Sync with HEAD.
 1.47.12.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.47.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.47.10.3 11-Aug-2010  yamt sync with head.
 1.47.10.2 11-Mar-2010  yamt sync with head
 1.47.10.1 04-May-2009  yamt sync with head.
 1.47.8.1 04-Jun-2008  yamt sync with head
 1.47.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.47.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.47.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.48.4.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.48.4.1 19-Oct-2008  haad Sync with HEAD.
 1.49.2.3 28-Apr-2009  skrll Sync with HEAD.
 1.49.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.49.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.52.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.56.4.3 21-Apr-2011  rmind sync with head
 1.56.4.2 05-Mar-2011  rmind sync with head
 1.56.4.1 30-May-2010  rmind sync with head
 1.56.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.58.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.58.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.60.2.4 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.60.2.3 16-Jan-2013  yamt sync with (a bit old) head
 1.60.2.2 30-Oct-2012  yamt sync with head
 1.60.2.1 17-Apr-2012  yamt sync with head
 1.61.2.1 18-Feb-2012  mrg merge to -current.
 1.63.2.4 03-Dec-2017  jdolecek update from HEAD
 1.63.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.63.2.2 23-Jun-2013  tls resync from head
 1.63.2.1 25-Feb-2013  tls resync with head
 1.69.2.1 28-Aug-2013  rmind sync with head
 1.71.2.3 28-Aug-2017  skrll Sync with HEAD
 1.71.2.2 05-Feb-2017  skrll Sync with HEAD
 1.71.2.1 22-Sep-2015  skrll Sync with HEAD
 1.73.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.78.2.3 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.78.2.2 25-Jun-2018  pgoyette Sync with HEAD
 1.78.2.1 21-May-2018  pgoyette Sync with HEAD
 1.80.2.3 21-Apr-2020  martin Sync with HEAD
 1.80.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.80.2.1 10-Jun-2019  christos Sync with HEAD
 1.83.6.1 25-Jan-2020  ad Sync with head.
 1.84.4.1 20-Apr-2020  bouyer Sync with HEAD
 1.78 07-Sep-2020  mrg -march=armv3m option is obsolete. remove it from commented kernel
configurations (we haven't supported those machines lately anyway),
and, for GCC >= 9, from the one caller.
 1.77 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.76 19-Jan-2020  thorpej branches: 1.76.4;
Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.75 01-Aug-2018  maxv branches: 1.75.6;
Unreference IPF/PF from all the config files, and enable NPF instead when
wanted. This also fixes some inconsistencies I saw in several files (eg
IPF options while IPF was not compiled, IPF+PF enabled by default, etc).
 1.74 07-Jun-2018  thorpej branches: 1.74.2;
Revert changes that pinned-down i2c parent specs. The i2c subsystem
has been enhanced to make this unnecessary.
 1.73 14-May-2018  thorpej Fully specifiy the location of indirectly-configured I2C devices. In
particular, the parent spec must not be wild-carded, as doing so doesn't
work well on systems where more than one I2C bus is present.
 1.72 14-Sep-2017  mrg branches: 1.72.2;
clean up COMPAT_* options for native netbsd code:
- new series of files that are useful for saying "i want everything
since netbsd 1.4", etc.
- use the fact COMPAT_* options have future dependancies to remove
many redundant options.

removes about 3000 lines total across kernel configuration files.
tested about 30 random kernels in the changed list.
 1.71 28-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 1.
 1.70 13-Dec-2016  christos wildcard speaker attachments, now that we can handle many of them.
 1.69 10-Dec-2016  christos remove VAUDIOSPEAKER for now, will be done differently.
 1.68 08-Dec-2016  nat Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
 1.67 12-Aug-2015  maxv branches: 1.67.2;
Remove KMEMSTATS.
 1.66 23-Aug-2014  dholland branches: 1.66.2;
Systematize (and in many cases, fix) the comments on options COMPAT_NN.

There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
 1.65 27-Jul-2014  dholland "internally consistency checks" -> "internal consistency checks"
 1.64 30-Jun-2013  rmind branches: 1.64.4;
G/C PFIL_HOOKS from the kernel configs.
 1.63 05-Jun-2013  christos branches: 1.63.2;
remove obsolete networking options
 1.62 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.61 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.60 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.59 06-Dec-2012  msaitoh Remove "#options ARMFPE"
 1.58 17-Aug-2012  abs branches: 1.58.2;
Update all kernel configs mentioning WSEMUL_* but not already including
WSDISPLAY_COMPAT_USL using the following rules:
- If WSEMUL_ is commented out, add commented out out WSDISPLAY_COMPAT_USL
- If INSTALL or obviously memory constrained, add WSDISPLAY_DEFAULTSCREENS=1
and commented out WSDISPLAY_COMPAT_USL
- Otherwise add WSDISPLAY_COMPAT_USL

Some of the INSTALL configs for larger memory machines are probably suitable
for adding WSDISPLAY_COMPAT_USL.

Now wsconscfg(8) should be able to switch VTs when expected.

Implemented after no objection from tech-kern to the following:

On 5 June 2012 09:47, David Brownlee <abs@absd.org> wrote:
> wsconscfg(8) requires WSDISPLAY_COMPAT_USL in order to switch virtual
> terminals.
>
> Except when in an exceptionally memory or space constrained
> environment (INSTALL being the obvious case), is there any reason why
> all GENERIC and GENERIC-like kernels which have wscons enabled
> shouldn't also have WSDISPLAY_COMPAT_USL?
 1.57 22-Nov-2011  tls The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself. Move it to std. This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports. Thanks to Havard Eidnes for
pointing them out.
 1.56 06-Mar-2011  bouyer branches: 1.56.4;
merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.55 23-Nov-2010  hannken branches: 1.55.2; 1.55.4;
Remove unused count from pseudo-device md.
 1.54 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.53 05-Dec-2009  pooka branches: 1.53.2; 1.53.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.52 19-Apr-2009  tsutsui Remove number parameters from pseudo-device loop and ipfilter.
 1.51 06-Mar-2009  joerg Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
 1.50 12-Nov-2008  ad branches: 1.50.4;
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.49 30-May-2008  tsutsui branches: 1.49.4; 1.49.6;
Add options COMPAT_40 to files which have options COMPAT_30.
 1.48 19-Jan-2008  chris branches: 1.48.6; 1.48.8; 1.48.10; 1.48.12;
Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.47 22-Oct-2006  bjh21 branches: 1.47.24; 1.47.28; 1.47.30; 1.47.36; 1.47.44;
The sec(4) and ei(4) drivers appear to work on acorn32. Use them in preference
to the MD asc(4) and ie(4) drivers.
 1.46 27-Sep-2006  manu - Document COMPAT_15 as doing nothing
- Add COMPAT_15 to all the kernel that had COMPAT_14, for the sake of coherency
- Remove the only occurences of #ifdef COMPAT_15 in the tree: for the ARM
ports, COMPAT_15 was always used in conjunction with EXEC_AOUT. Only EXEC_AOUT
matters here.

This address kern/18407
 1.45 26-Aug-2006  christos branches: 1.45.2; 1.45.4;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.44 19-Aug-2006  bjh21 Now that boot32 can pass in a useful frame rate, it's reasonable to use the
standard video mode list in our example kernels, rather that a somewhat
random subset. So do that.
 1.43 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.42 14-Aug-2006  skrll s/adpater/adapter/

Prompted by PR/34195
 1.41 05-Aug-2006  bjh21 Xarm32VIDC has supported pckbd(4) for several releases now, so it's probably
safe to stop using rpckbd(4) in wscons configurations.
 1.40 05-Feb-2006  cube branches: 1.40.2;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.39 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.38 20-Dec-2005  thorpej branches: 1.38.2; 1.38.4; 1.38.6;
Remove the tablet line discipline.
 1.37 07-Dec-2005  tsutsui Adjust comments for options FFS_NO_SNAPSHOT.

XXX: This option should be mentioned in options(4).
 1.36 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.35 19-Aug-2005  christos 64 bit inode changes.
 1.34 31-Jul-2005  yamt revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
 1.33 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.32 07-Jul-2005  tron Add (commented out) IPSEC_NAT_T option.
 1.31 25-Feb-2005  simonb branches: 1.31.2; 1.31.4;
Add COMPAT_20 (and COMPAT_16 in some cases) to kernel config files
that didn't have those options but had other earlier compat options.
 1.30 18-Feb-2005  dsl Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.29 11-Feb-2005  dsl Add 'option FFS_SNAPSHOT' to most of the config files.
Commented out for kernels that appear to hace space constraints.
 1.28 31-Jan-2005  hannken Add file system snapshots to kernel configs.

- Ffs internal snapshots get compiled in unconditionally.

- File system snapshot device fss(4) added to all kernel configs that
have a disk. Device is commented out on all non-GENERIC kernels.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>
 1.27 10-Nov-2004  christos branches: 1.27.4; 1.27.6;
Add COMPAT_BSDPTY to the rest of the config files.
 1.26 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.25 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.24 13-Mar-2004  bjh21 branches: 1.24.2;
Rename wsqms(4) to qms(4), since the "ws" is redundant now. While I'm here,
bundle it all into a single file, qms.c, replacing wsqms.c, wsqms_iomd.c,
and wsqmsvar.h.
 1.23 13-Mar-2004  bjh21 Remove all use of busmouse(4), instead using wsmouse everywhere, even in
kernels that don't use wscons otherwise. The X server released with 1.6
should be able to cope with this.
 1.22 13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.21 25-Jan-2004  bjh21 Remove the "beep" driver. Its function is largely subsumed by a
combination of audio(4), wskbd(4) and audiobell(). Proposed a week
ago on port-acorn32 with no reaction whatever.
 1.20 17-Jan-2004  bjh21 Use audiobell for system beeps on acorn32 when vidcaudio(4) is compiled in.
Remove the vestigal sysbeep device and replace it with the same kind of
mechanism that pckbd(4) uses to find the bell, which is just as ugly, but
more standard. Adapt beep(4) to the new world (though I'm not sure it
deserves to live).
 1.19 18-Oct-2003  lukem Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
 1.18 08-Oct-2003  bouyer Add atabus
 1.17 30-Sep-2003  thorpej New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
 1.16 13-Sep-2003  chris Add COMPAT_16 to most arm based kernels. Mainly in preperation for doing
SA_SIGINFO work.
 1.15 18-Sep-2002  lukem branches: 1.15.8;
enable USERCONF by default; it's small and extremely useful to have available.
 1.14 07-Aug-2002  bjh21 Remove comment claiming that csc(4) doesn't work.
 1.13 17-Jun-2002  lukem Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.12 25-Apr-2002  atatat branches: 1.12.2; 1.12.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.11 12-Apr-2002  gmcgarry Add commented-out USERCONF option. Mainly useful for install media
and can be optionally enabled based on miniroot and ramdisk size
requirements.
 1.10 10-Apr-2002  thorpej Remove "options RISCPC"; nothing tests for it anymore.
 1.9 02-Apr-2002  lukem Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
 1.8 10-Mar-2002  lukem * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
 1.7 11-Feb-2002  reinoud The COMPAT_OLD_BOOTLOADER flag can go now since BtRiscBSD is no longer
suported due to ELF transition.
 1.6 27-Jan-2002  jdolecek add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
 1.5 25-Jan-2002  reinoud Cleanup kernel configuration file and add a generic INSTALL kernel. The
A7000 kernels are obsolete now the ARM7500 detection is integrated. The
NC's however are not completely supported and should in the near future be
bootable with GENERIC/INSTALL too.
 1.4 22-Dec-2001  cjep branches: 1.4.2;
Pull out csc Cumana SCSI II driver and note that it is not currently
working properly. This seems to have been the case for some time
(cf. PR #8924).
 1.3 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.2 13-Nov-2001  augustss branches: 1.2.2;
The wsmux pseudo device does not need a count anymore.
 1.1 23-Oct-2001  reinoud Add a pretty lame LOWMEM configuration ... it has the basic interfaces in it
but lacks the podulebus completely; this might be a good starting point for
small memory machines.

Most stuff is disabled but commenting it for easy adding.
 1.2.2.8 18-Oct-2002  nathanw Catch up to -current.
 1.2.2.7 13-Aug-2002  nathanw Catch up to -current.
 1.2.2.6 20-Jun-2002  nathanw Catch up to -current.
 1.2.2.5 17-Apr-2002  nathanw Catch up to -current.
 1.2.2.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.2.3 28-Feb-2002  nathanw Catch up to -current.
 1.2.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.2.2.1 13-Nov-2001  nathanw file LOWMEM_WSCONS was added on branch nathanw_sa on 2002-01-08 00:22:44 +0000
 1.4.2.7 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.4.2.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.4.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.4.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.4.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.1 22-Dec-2001  thorpej file LOWMEM_WSCONS was added on branch kqueue on 2002-01-10 19:36:02 +0000
 1.12.4.1 01-Aug-2002  lukem Pull up revision 1.13 (requested by lukem in ticket #312):
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.12.2.2 30-Aug-2002  gehenna catch up with -current.
 1.12.2.1 09-Jul-2002  gehenna catch up with -current.
 1.15.8.9 11-Dec-2005  christos Sync with head.
 1.15.8.8 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.15.8.7 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.15.8.6 15-Feb-2005  skrll Sync with HEAD.
 1.15.8.5 04-Feb-2005  skrll Sync with HEAD.
 1.15.8.4 14-Nov-2004  skrll Sync with HEAD.
 1.15.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.15.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.15.8.1 03-Aug-2004  skrll Sync with HEAD
 1.24.2.1 15-Jul-2004  he Pull up revision 1.25 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.27.6.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.27.6.1 12-Feb-2005  yamt sync with head.
 1.27.4.1 29-Apr-2005  kent sync with -current
 1.31.4.3 21-Jan-2008  yamt sync with head
 1.31.4.2 30-Dec-2006  yamt sync with head.
 1.31.4.1 21-Jun-2006  yamt sync with head.
 1.31.2.1 18-Jul-2005  riz Pull up revision 1.32 (requested by tron in ticket #566):
Add (commented out) IPSEC_NAT_T option.
 1.38.6.1 22-Apr-2006  simonb Sync with head.
 1.38.4.1 09-Sep-2006  rpaulo sync with head
 1.38.2.1 18-Feb-2006  yamt sync with head.
 1.40.2.2 03-Sep-2006  yamt sync with head.
 1.40.2.1 11-Aug-2006  yamt sync with head
 1.45.4.2 10-Dec-2006  yamt sync with head.
 1.45.4.1 22-Oct-2006  yamt sync with head
 1.45.2.1 18-Nov-2006  ad Sync with head.
 1.47.44.1 20-Jan-2008  bouyer Sync with HEAD
 1.47.36.1 18-Feb-2008  mjf Sync with HEAD.
 1.47.30.1 23-Mar-2008  matt sync with HEAD
 1.47.28.1 20-Jan-2008  chris Sync to HEAD.
 1.47.24.1 28-Feb-2008  rjs Sync with HEAD.
 1.48.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.48.10.3 11-Aug-2010  yamt sync with head.
 1.48.10.2 11-Mar-2010  yamt sync with head
 1.48.10.1 04-May-2009  yamt sync with head.
 1.48.8.1 04-Jun-2008  yamt sync with head
 1.48.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.48.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.49.6.2 28-Apr-2009  skrll Sync with HEAD.
 1.49.6.1 19-Jan-2009  skrll Sync with HEAD.
 1.49.4.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.50.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.53.4.3 21-Apr-2011  rmind sync with head
 1.53.4.2 05-Mar-2011  rmind sync with head
 1.53.4.1 30-May-2010  rmind sync with head
 1.53.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.55.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.55.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.56.4.4 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.56.4.3 16-Jan-2013  yamt sync with (a bit old) head
 1.56.4.2 30-Oct-2012  yamt sync with head
 1.56.4.1 17-Apr-2012  yamt sync with head
 1.58.2.4 03-Dec-2017  jdolecek update from HEAD
 1.58.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.58.2.2 23-Jun-2013  tls resync from head
 1.58.2.1 25-Feb-2013  tls resync with head
 1.63.2.1 28-Aug-2013  rmind sync with head
 1.64.4.1 10-Aug-2014  tls Rebase.
 1.66.2.3 28-Aug-2017  skrll Sync with HEAD
 1.66.2.2 05-Feb-2017  skrll Sync with HEAD
 1.66.2.1 22-Sep-2015  skrll Sync with HEAD
 1.67.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.72.2.3 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.72.2.2 25-Jun-2018  pgoyette Sync with HEAD
 1.72.2.1 21-May-2018  pgoyette Sync with HEAD
 1.74.2.3 21-Apr-2020  martin Sync with HEAD
 1.74.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.74.2.1 10-Jun-2019  christos Sync with HEAD
 1.75.6.1 25-Jan-2020  ad Sync with head.
 1.76.4.1 20-Apr-2020  bouyer Sync with HEAD
 1.25 08-Nov-2021  rin For DDB, generate APCS stack frame so that db_stack_trace_print() works.

XXX
Copy-paste from arm/conf/Makefile.arm.
Convert to ${MACHINE}/conf/Makefile.${MACHINE}.inc.
 1.24 22-Sep-2018  rin - Determine KERN_AS automatically depending on whether OPT_MODULAR is
set or not, in the same way as libcompat.

- Specify OPT_MODULAR in the port Makefile instead of KERN_AS.

Now, KERN_AS=library is used for kernels without module(7) for all ports.

OK christos
 1.23 19-Oct-2008  apb branches: 1.23.80; 1.23.82;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
 1.22 14-Feb-2008  joerg branches: 1.22.6; 1.22.10; 1.22.16;
Missing assym.h dependencies.
 1.21 25-Jan-2008  joerg Fix dependencies on assym.h.
 1.20 09-Dec-2006  chs branches: 1.20.20; 1.20.24; 1.20.26; 1.20.32;
feed /dev/null to awk for building modedef.c (for building on solaris).
 1.19 19-Aug-2006  bjh21 branches: 1.19.2; 1.19.4; 1.19.6;
Arrange things so that if MONITOR isn't defined in the kernel configration,
we use the standard mode list from videomode.c rather than one generated
by makemodes.awk. This is less useful than it might be since without a useful
frame rate from the bootloader we're likely to end up choosing a screen mode
that's either flickery or too fast for the monitor (or DRAM bandwidth).
 1.18 11-Dec-2005  christos branches: 1.18.4; 1.18.8;
merge ktrace-lwp.
 1.17 31-May-2005  christos branches: 1.17.2;
s/GENASSYM/GENASSYM_CONF/ so we can use "GENASSYM" as the program name.
 1.16 04-Jun-2004  thorpej Add the %MAKEOPTIONSAPPEND token at the end of the file, after the
common Makefile.kern.inc has been included.
 1.15 05-Oct-2002  chs branches: 1.15.8; 1.15.12;
add missing protos, clean up includes.
 1.14 01-Jun-2002  bjh21 Using -N (OMAGIC) when linking the kernel seems to avoid BtNetBSD's doing
stupid things when loading it on an NC, so do that. Fixing (or replacing)
BtNetBSD would be better, of course.
 1.13 18-Feb-2002  bjh21 branches: 1.13.8; 1.13.10;
Revert my last change: GENERIC has more bogons than I'd hoped.
 1.12 18-Feb-2002  bjh21 My acorn32 kernels now compile successfully without LOOSE_PROTOTYPES.
 1.11 25-Jan-2002  thorpej Don't explicitly assign MACHINE_ARCH.
 1.10 09-Jan-2002  reinoud branches: 1.10.2;
Make the MACHINE_ARCH overrideable by build.sh
 1.9 09-Dec-2001  atatat Roll the rest of the ports over to the new MI kernel build machinery.
Any problems reported by testers have been fixed, and massive
cross-compiling of kernels has shown that any problems that remain
with actually building kernels are not related to this.
 1.8 27-Nov-2001  thorpej Move interrupt-related stuff out of the generic 32-bit ARM genassym.cf
and into platform-specific genassym.cf files.
 1.7 26-Nov-2001  thorpej Pasto in last.
 1.6 26-Nov-2001  thorpej Allow port-specific Makefile fragments to specify a list of additional
genassym.cf fragments, if desired.
 1.5 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.4 26-Oct-2001  jmc branches: 1.4.2;
Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.
 1.3 23-Oct-2001  thorpej branches: 1.3.2;
Set MACHINE_ARCH explicitly in Makefiles for which it is constant.
Also, since config(8) now explcitly sets MACHINE, there is no need
to do it here in the Makefile.
 1.2 23-Oct-2001  thorpej Pull in <bsd.own.mk> to get the correct toolchain definitions for
the USE_NEW_TOOLCHAIN case.
 1.1 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.3.2.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.4.2.6 18-Oct-2002  nathanw Catch up to -current.
 1.4.2.5 20-Jun-2002  nathanw Catch up to -current.
 1.4.2.4 28-Feb-2002  nathanw Catch up to -current.
 1.4.2.3 11-Jan-2002  nathanw More catchup.
 1.4.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.4.2.1 26-Oct-2001  nathanw file Makefile.acorn32 was added on branch nathanw_sa on 2002-01-08 00:22:44 +0000
 1.10.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.10.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.10.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.10.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.10.2.1 09-Jan-2002  thorpej file Makefile.acorn32 was added on branch kqueue on 2002-01-10 19:36:03 +0000
 1.13.10.1 04-Jun-2002  lukem Pull up revision 1.14 (requested by bjh21 in ticket #137):
Using -N (OMAGIC) when linking the kernel seems to avoid BtNetBSD's doing
stupid things when loading it on an NC, so do that. Fixing (or replacing)
BtNetBSD would be better, of course.
 1.13.8.1 09-Jul-2002  gehenna catch up with -current.
 1.15.12.1 06-Feb-2005  jmc Pull up patch (requested by martti in ticket #1086)
Move ipf to sys/dist/ipf and sync w. trunk
 1.15.8.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.15.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.15.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.15.8.1 03-Aug-2004  skrll Sync with HEAD
 1.17.2.3 27-Feb-2008  yamt sync with head.
 1.17.2.2 04-Feb-2008  yamt sync with head.
 1.17.2.1 30-Dec-2006  yamt sync with head.
 1.18.8.1 03-Sep-2006  yamt sync with head.
 1.18.4.1 09-Sep-2006  rpaulo sync with head
 1.19.6.1 12-Jan-2007  bouyer Pull up following revision(s) (requested by chs in ticket #344):
sys/arch/acorn32/conf/Makefile.acorn32: revision 1.20
feed /dev/null to awk for building modedef.c (for building on solaris).
 1.19.4.1 10-Dec-2006  yamt sync with head.
 1.19.2.1 12-Jan-2007  ad Sync with head.
 1.20.32.1 18-Feb-2008  mjf Sync with HEAD.
 1.20.26.1 23-Mar-2008  matt sync with HEAD
 1.20.24.2 21-Mar-2008  chris Sync with head.
 1.20.24.1 27-Jan-2008  chris Sync to HEAD.
 1.20.20.1 28-Feb-2008  rjs Sync with HEAD.
 1.22.16.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.22.10.1 04-May-2009  yamt sync with head.
 1.22.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.23.82.1 10-Jun-2019  christos Sync with HEAD
 1.23.80.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.78 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.77 25-Mar-2020  jdolecek branches: 1.77.2;
remove 'file-system SMBFS' and 'pseudo-device nsmb' from all kernel configs
to prepare for their eventual removal
 1.76 19-Jan-2020  thorpej Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.75 13-Apr-2019  isaki branches: 1.75.6;
Add drvctl to kernel which has audio device.
audiocfg(1) requires drvctl(4).
 1.74 01-Aug-2018  maxv Unreference IPF/PF from all the config files, and enable NPF instead when
wanted. This also fixes some inconsistencies I saw in several files (eg
IPF options while IPF was not compiled, IPF+PF enabled by default, etc).
 1.73 07-Jun-2018  thorpej branches: 1.73.2;
Revert changes that pinned-down i2c parent specs. The i2c subsystem
has been enhanced to make this unnecessary.
 1.72 14-May-2018  thorpej Fully specifiy the location of indirectly-configured I2C devices. In
particular, the parent spec must not be wild-carded, as doing so doesn't
work well on systems where more than one I2C bus is present.
 1.71 14-Sep-2017  mrg branches: 1.71.2;
clean up COMPAT_* options for native netbsd code:
- new series of files that are useful for saying "i want everything
since netbsd 1.4", etc.
- use the fact COMPAT_* options have future dependancies to remove
many redundant options.

removes about 3000 lines total across kernel configuration files.
tested about 30 random kernels in the changed list.
 1.70 28-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 1.
 1.69 13-Dec-2016  christos wildcard speaker attachments, now that we can handle many of them.
 1.68 10-Dec-2016  christos remove VAUDIOSPEAKER for now, will be done differently.
 1.67 08-Dec-2016  nat Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
 1.66 21-Aug-2015  uebayasi branches: 1.66.2;
Add `pseudo-device ksyms' where `options DDB' is used, because
config(1)/config(5) can't handle module dependency correctly at this
moment.

(This is another proof that shared file definition (`file xxx.c a|b')
is a bad idea.)
 1.65 07-Aug-2015  maxv Remove KMEMSTATS.
 1.64 23-Aug-2014  dholland branches: 1.64.2;
Systematize (and in many cases, fix) the comments on options COMPAT_NN.

There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
 1.63 27-Jul-2014  dholland "internally consistency checks" -> "internal consistency checks"
 1.62 30-Jun-2013  rmind branches: 1.62.4;
G/C PFIL_HOOKS from the kernel configs.
 1.61 05-Jun-2013  christos branches: 1.61.2;
remove obsolete networking options
 1.60 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.59 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.58 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.57 06-Dec-2012  msaitoh Remove "#options ARMFPE"
 1.56 17-Aug-2012  abs branches: 1.56.2;
Update all kernel configs mentioning WSEMUL_* but not already including
WSDISPLAY_COMPAT_USL using the following rules:
- If WSEMUL_ is commented out, add commented out out WSDISPLAY_COMPAT_USL
- If INSTALL or obviously memory constrained, add WSDISPLAY_DEFAULTSCREENS=1
and commented out WSDISPLAY_COMPAT_USL
- Otherwise add WSDISPLAY_COMPAT_USL

Some of the INSTALL configs for larger memory machines are probably suitable
for adding WSDISPLAY_COMPAT_USL.

Now wsconscfg(8) should be able to switch VTs when expected.

Implemented after no objection from tech-kern to the following:

On 5 June 2012 09:47, David Brownlee <abs@absd.org> wrote:
> wsconscfg(8) requires WSDISPLAY_COMPAT_USL in order to switch virtual
> terminals.
>
> Except when in an exceptionally memory or space constrained
> environment (INSTALL being the obvious case), is there any reason why
> all GENERIC and GENERIC-like kernels which have wscons enabled
> shouldn't also have WSDISPLAY_COMPAT_USL?
 1.55 22-Nov-2011  tls The rnd pseudo-device is not really optional, because it is in the same
source file as the entropy-pool code itself. Move it to std. This
will be cleaned up more when I split the sources up as they should be.

This fixes build breaks on several ports. Thanks to Havard Eidnes for
pointing them out.
 1.54 06-Mar-2011  bouyer branches: 1.54.4;
merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.53 23-Nov-2010  hannken branches: 1.53.2; 1.53.4;
Remove unused count from pseudo-device md.
 1.52 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.51 05-Dec-2009  pooka branches: 1.51.2; 1.51.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.50 19-Apr-2009  tsutsui Remove number parameters from pseudo-device loop and ipfilter.
 1.49 06-Mar-2009  joerg Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
 1.48 12-Nov-2008  ad branches: 1.48.4;
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.47 30-May-2008  tsutsui branches: 1.47.4; 1.47.6;
Add options COMPAT_40 to files which have options COMPAT_30.
 1.46 19-Jan-2008  chris branches: 1.46.6; 1.46.8; 1.46.10; 1.46.12;
Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.45 22-Oct-2006  bjh21 branches: 1.45.24; 1.45.28; 1.45.30; 1.45.36; 1.45.44;
The sec(4) and ei(4) drivers appear to work on acorn32. Use them in preference
to the MD asc(4) and ie(4) drivers.
 1.44 26-Aug-2006  christos branches: 1.44.2; 1.44.4;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.43 19-Aug-2006  bjh21 Now that boot32 can pass in a useful frame rate, it's reasonable to use the
standard video mode list in our example kernels, rather that a somewhat
random subset. So do that.
 1.42 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.41 14-Aug-2006  skrll s/adpater/adapter/

Prompted by PR/34195
 1.40 05-Aug-2006  bjh21 Nothing in the tree pays any attention to "options NC" any more, so don't set
it.
 1.39 05-Feb-2006  cube branches: 1.39.2;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.38 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.37 20-Dec-2005  thorpej branches: 1.37.2; 1.37.4; 1.37.6;
Remove the tablet line discipline.
 1.36 11-Dec-2005  christos merge ktrace-lwp.
 1.35 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.34 19-Aug-2005  christos 64 bit inode changes.
 1.33 31-Jul-2005  yamt revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
 1.32 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.31 07-Jul-2005  tron Add (commented out) IPSEC_NAT_T option.
 1.30 31-Jan-2005  hannken branches: 1.30.4; 1.30.6;
Add file system snapshots to kernel configs.

- Ffs internal snapshots get compiled in unconditionally.

- File system snapshot device fss(4) added to all kernel configs that
have a disk. Device is commented out on all non-GENERIC kernels.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>
 1.29 08-Dec-2004  reinoud branches: 1.29.2; 1.29.4;
Add IPv6 support like all other architectures do and add NetBSD 2.0
binary compatibility
 1.28 10-Nov-2004  christos Add COMPAT_BSDPTY to the rest of the config files.
 1.27 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.26 20-Aug-2004  thorpej Comment out atabus; no ATA controllers or devices are configured in this
kernel.
 1.25 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.24 13-Mar-2004  bjh21 branches: 1.24.2;
Remove all use of busmouse(4), instead using wsmouse everywhere, even in
kernels that don't use wscons otherwise. The X server released with 1.6
should be able to cope with this.
 1.23 13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.22 25-Jan-2004  bjh21 Remove the "beep" driver. Its function is largely subsumed by a
combination of audio(4), wskbd(4) and audiobell(). Proposed a week
ago on port-acorn32 with no reaction whatever.
 1.21 22-Jan-2004  bjh21 Add commented-out entries to attach atppc and friends at pioc.
While I'm here, remove entries for pioc children that never exist.
 1.20 17-Jan-2004  bjh21 Use audiobell for system beeps on acorn32 when vidcaudio(4) is compiled in.
Remove the vestigal sysbeep device and replace it with the same kind of
mechanism that pckbd(4) uses to find the bell, which is just as ugly, but
more standard. Adapt beep(4) to the new world (though I'm not sure it
deserves to live).
 1.19 18-Oct-2003  lukem Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
 1.18 08-Oct-2003  bouyer Add atabus
 1.17 30-Sep-2003  thorpej New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
 1.16 13-Sep-2003  chris Add COMPAT_16 to most arm based kernels. Mainly in preperation for doing
SA_SIGINFO work.
 1.15 18-Sep-2002  lukem branches: 1.15.8;
enable USERCONF by default; it's small and extremely useful to have available.
 1.14 07-Aug-2002  bjh21 Remove comment claiming that csc(4) doesn't work.
 1.13 17-Jun-2002  lukem Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.12 09-Jun-2002  bjh21 Synchronise MONITOR and MODES definitions with GENERIC. This allows my NC to
boot in a screen mode that looks sensible on its LCD monitor.
 1.11 25-Apr-2002  atatat branches: 1.11.2; 1.11.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.10 12-Apr-2002  gmcgarry Add commented-out USERCONF option. Mainly useful for install media
and can be optionally enabled based on miniroot and ramdisk size
requirements.
 1.9 10-Apr-2002  thorpej Remove "options RISCPC"; nothing tests for it anymore.
 1.8 02-Apr-2002  lukem Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
 1.7 10-Mar-2002  lukem * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
 1.6 11-Feb-2002  reinoud The COMPAT_OLD_BOOTLOADER flag can go now since BtRiscBSD is no longer
suported due to ELF transition.
 1.5 27-Jan-2002  jdolecek add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
 1.4 25-Jan-2002  reinoud Cleanup kernel configuration file and add a generic INSTALL kernel. The
A7000 kernels are obsolete now the ARM7500 detection is integrated. The
NC's however are not completely supported and should in the near future be
bootable with GENERIC/INSTALL too.
 1.3 22-Dec-2001  cjep branches: 1.3.2;
Pull out csc Cumana SCSI II driver and note that it is not currently
working properly. This seems to have been the case for some time
(cf. PR #8924).
 1.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.8 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.7 13-Aug-2002  nathanw Catch up to -current.
 1.1.4.6 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.5 17-Apr-2002  nathanw Catch up to -current.
 1.1.4.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file NC was added on branch nathanw_sa on 2002-01-08 00:22:44 +0000
 1.3.2.7 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.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.3.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 22-Dec-2001  thorpej file NC was added on branch kqueue on 2002-01-10 19:36:03 +0000
 1.11.4.2 01-Aug-2002  lukem Pull up revision 1.13 (requested by lukem in ticket #312):
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.11.4.1 10-Jun-2002  tv Pull up revision 1.12 (requested by bjh21 in ticket #224):
Synchronise MONITOR and MODES definitions with GENERIC. This allows my NC to
boot in a screen mode that looks sensible on its LCD monitor.
 1.11.2.2 30-Aug-2002  gehenna catch up with -current.
 1.11.2.1 09-Jul-2002  gehenna catch up with -current.
 1.15.8.8 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.15.8.7 04-Feb-2005  skrll Sync with HEAD.
 1.15.8.6 18-Dec-2004  skrll Sync with HEAD.
 1.15.8.5 14-Nov-2004  skrll Sync with HEAD.
 1.15.8.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.15.8.3 18-Sep-2004  skrll Sync with HEAD.
 1.15.8.2 25-Aug-2004  skrll Sync with HEAD.
 1.15.8.1 03-Aug-2004  skrll Sync with HEAD
 1.24.2.1 15-Jul-2004  he Pull up revision 1.25 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.29.4.1 12-Feb-2005  yamt sync with head.
 1.29.2.1 29-Apr-2005  kent sync with -current
 1.30.6.3 21-Jan-2008  yamt sync with head
 1.30.6.2 30-Dec-2006  yamt sync with head.
 1.30.6.1 21-Jun-2006  yamt sync with head.
 1.30.4.1 18-Jul-2005  riz Pull up revision 1.31 (requested by tron in ticket #566):
Add (commented out) IPSEC_NAT_T option.
 1.37.6.1 22-Apr-2006  simonb Sync with head.
 1.37.4.1 09-Sep-2006  rpaulo sync with head
 1.37.2.1 18-Feb-2006  yamt sync with head.
 1.39.2.2 03-Sep-2006  yamt sync with head.
 1.39.2.1 11-Aug-2006  yamt sync with head
 1.44.4.1 10-Dec-2006  yamt sync with head.
 1.44.2.1 18-Nov-2006  ad Sync with head.
 1.45.44.1 20-Jan-2008  bouyer Sync with HEAD
 1.45.36.1 18-Feb-2008  mjf Sync with HEAD.
 1.45.30.1 23-Mar-2008  matt sync with HEAD
 1.45.28.1 20-Jan-2008  chris Sync to HEAD.
 1.45.24.1 28-Feb-2008  rjs Sync with HEAD.
 1.46.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.46.10.3 11-Aug-2010  yamt sync with head.
 1.46.10.2 11-Mar-2010  yamt sync with head
 1.46.10.1 04-May-2009  yamt sync with head.
 1.46.8.1 04-Jun-2008  yamt sync with head
 1.46.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.46.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.47.6.2 28-Apr-2009  skrll Sync with HEAD.
 1.47.6.1 19-Jan-2009  skrll Sync with HEAD.
 1.47.4.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.48.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.51.4.3 21-Apr-2011  rmind sync with head
 1.51.4.2 05-Mar-2011  rmind sync with head
 1.51.4.1 30-May-2010  rmind sync with head
 1.51.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.53.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.53.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.54.4.4 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.54.4.3 16-Jan-2013  yamt sync with (a bit old) head
 1.54.4.2 30-Oct-2012  yamt sync with head
 1.54.4.1 17-Apr-2012  yamt sync with head
 1.56.2.4 03-Dec-2017  jdolecek update from HEAD
 1.56.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.56.2.2 23-Jun-2013  tls resync from head
 1.56.2.1 25-Feb-2013  tls resync with head
 1.61.2.1 28-Aug-2013  rmind sync with head
 1.62.4.1 10-Aug-2014  tls Rebase.
 1.64.2.3 28-Aug-2017  skrll Sync with HEAD
 1.64.2.2 05-Feb-2017  skrll Sync with HEAD
 1.64.2.1 22-Sep-2015  skrll Sync with HEAD
 1.66.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.71.2.3 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.71.2.2 25-Jun-2018  pgoyette Sync with HEAD
 1.71.2.1 21-May-2018  pgoyette Sync with HEAD
 1.73.2.3 21-Apr-2020  martin Sync with HEAD
 1.73.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.73.2.1 10-Jun-2019  christos Sync with HEAD
 1.75.6.1 25-Jan-2020  ad Sync with head.
 1.77.2.1 20-Apr-2020  bouyer Sync with HEAD
 1.49 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.48 14-Aug-2006  skrll s/adpater/adapter/

Prompted by PR/34195
 1.47 05-Aug-2006  bjh21 Nothing in the tree pays any attention to "options NC" any more, so don't set
it.
 1.46 05-Aug-2006  bjh21 Xarm32VIDC has supported pckbd(4) for several releases now, so it's probably
safe to stop using rpckbd(4) in wscons configurations.
 1.45 05-Feb-2006  cube branches: 1.45.2;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.44 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.43 20-Dec-2005  thorpej branches: 1.43.2; 1.43.4; 1.43.6;
Remove the tablet line discipline.
 1.42 11-Dec-2005  christos merge ktrace-lwp.
 1.41 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.40 19-Aug-2005  christos 64 bit inode changes.
 1.39 31-Jul-2005  yamt revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
 1.38 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.37 07-Jul-2005  tron Add (commented out) IPSEC_NAT_T option.
 1.36 31-Jan-2005  hannken branches: 1.36.4; 1.36.6;
Add file system snapshots to kernel configs.

- Ffs internal snapshots get compiled in unconditionally.

- File system snapshot device fss(4) added to all kernel configs that
have a disk. Device is commented out on all non-GENERIC kernels.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>
 1.35 08-Dec-2004  reinoud branches: 1.35.2; 1.35.4;
Accidently added SMBfs support as default wich is still declared as
expirimental to my knowledge.
 1.34 08-Dec-2004  reinoud Add NetBSD 2.0 compatibility setting
 1.33 08-Dec-2004  reinoud Add IPv6 support as default since all ports now have it as default; no use
to delay NC's since it doesn't that much memory too.
 1.32 10-Nov-2004  christos Add COMPAT_BSDPTY to the rest of the config files.
 1.31 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.30 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.29 13-Mar-2004  bjh21 branches: 1.29.2;
Rename wsqms(4) to qms(4), since the "ws" is redundant now. While I'm here,
bundle it all into a single file, qms.c, replacing wsqms.c, wsqms_iomd.c,
and wsqmsvar.h.
 1.28 13-Mar-2004  bjh21 Remove all use of busmouse(4), instead using wsmouse everywhere, even in
kernels that don't use wscons otherwise. The X server released with 1.6
should be able to cope with this.
 1.27 13-Mar-2004  bjh21 Add support for iomdkbc, pckbd, and pms. Don't enable pckbd in any default
config because the X server shipped with 1.6 didn't support it, and it seems
rude to break people's X servers when they upgrade their kernels.
 1.26 13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.25 25-Jan-2004  bjh21 Remove the "beep" driver. Its function is largely subsumed by a
combination of audio(4), wskbd(4) and audiobell(). Proposed a week
ago on port-acorn32 with no reaction whatever.
 1.24 22-Jan-2004  bjh21 Add commented-out entries to attach atppc and friends at pioc.
While I'm here, remove entries for pioc children that never exist.
 1.23 17-Jan-2004  bjh21 Use audiobell for system beeps on acorn32 when vidcaudio(4) is compiled in.
Remove the vestigal sysbeep device and replace it with the same kind of
mechanism that pckbd(4) uses to find the bell, which is just as ugly, but
more standard. Adapt beep(4) to the new world (though I'm not sure it
deserves to live).
 1.22 18-Oct-2003  lukem Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
 1.21 08-Oct-2003  bouyer Add atabus
 1.20 30-Sep-2003  thorpej New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
 1.19 13-Sep-2003  chris Add COMPAT_16 to most arm based kernels. Mainly in preperation for doing
SA_SIGINFO work.
 1.18 18-Sep-2002  lukem branches: 1.18.8;
enable USERCONF by default; it's small and extremely useful to have available.
 1.17 07-Aug-2002  bjh21 Remove comment claiming that csc(4) doesn't work.
 1.16 17-Jun-2002  lukem Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.15 09-Jun-2002  bjh21 Synchronise MONITOR and MODES definitions with GENERIC. This allows my NC to
boot in a screen mode that looks sensible on its LCD monitor.
 1.14 01-Jun-2002  bjh21 Since we don't have a wsmouse attachment for the ARM7500 PS/2 mouse, turn
on the pre-wscons device for it instead. This allows X to work on my NC.
 1.13 25-Apr-2002  atatat branches: 1.13.2; 1.13.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.12 12-Apr-2002  gmcgarry Add commented-out USERCONF option. Mainly useful for install media
and can be optionally enabled based on miniroot and ramdisk size
requirements.
 1.11 10-Apr-2002  thorpej Remove "options RISCPC"; nothing tests for it anymore.
 1.10 02-Apr-2002  lukem Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
 1.9 10-Mar-2002  lukem * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
 1.8 11-Feb-2002  reinoud The COMPAT_OLD_BOOTLOADER flag can go now since BtRiscBSD is no longer
suported due to ELF transition.
 1.7 27-Jan-2002  jdolecek add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
 1.6 25-Jan-2002  reinoud Cleanup kernel configuration file and add a generic INSTALL kernel. The
A7000 kernels are obsolete now the ARM7500 detection is integrated. The
NC's however are not completely supported and should in the near future be
bootable with GENERIC/INSTALL too.
 1.5 22-Dec-2001  cjep branches: 1.5.2;
Pull out csc Cumana SCSI II driver and note that it is not currently
working properly. This seems to have been the case for some time
(cf. PR #8924).
 1.4 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.3 13-Nov-2001  augustss branches: 1.3.2;
The wsmux pseudo device does not need a count anymore.
 1.2 17-Oct-2001  reinoud Bug fix : due to changes in wscons having a wsmux seems mandatory now to
get it compiled...

added the pseudo-device wsmux 1 to ensure this demand.
 1.1 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.3.2.8 18-Oct-2002  nathanw Catch up to -current.
 1.3.2.7 13-Aug-2002  nathanw Catch up to -current.
 1.3.2.6 20-Jun-2002  nathanw Catch up to -current.
 1.3.2.5 17-Apr-2002  nathanw Catch up to -current.
 1.3.2.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.2.3 28-Feb-2002  nathanw Catch up to -current.
 1.3.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.3.2.1 13-Nov-2001  nathanw file NC_WSCONS was added on branch nathanw_sa on 2002-01-08 00:22:44 +0000
 1.5.2.7 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.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.5.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.5.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.5.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.5.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.2.1 22-Dec-2001  thorpej file NC_WSCONS was added on branch kqueue on 2002-01-10 19:36:03 +0000
 1.13.4.3 01-Aug-2002  lukem Pull up revision 1.16 (requested by lukem in ticket #312):
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.13.4.2 10-Jun-2002  tv Pull up revision 1.15 (requested by bjh21 in ticket #224):
Synchronise MONITOR and MODES definitions with GENERIC. This allows my NC to
boot in a screen mode that looks sensible on its LCD monitor.
 1.13.4.1 04-Jun-2002  lukem Pull up revision 1.14 (requested by bjh21 in ticket #138):
Since we don't have a wsmouse attachment for the ARM7500 PS/2 mouse, turn
on the pre-wscons device for it instead. This allows X to work on my NC.
 1.13.2.2 30-Aug-2002  gehenna catch up with -current.
 1.13.2.1 09-Jul-2002  gehenna catch up with -current.
 1.18.8.7 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.18.8.6 04-Feb-2005  skrll Sync with HEAD.
 1.18.8.5 18-Dec-2004  skrll Sync with HEAD.
 1.18.8.4 14-Nov-2004  skrll Sync with HEAD.
 1.18.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.18.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.18.8.1 03-Aug-2004  skrll Sync with HEAD
 1.29.2.1 15-Jul-2004  he Pull up revision 1.30 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.35.4.1 12-Feb-2005  yamt sync with head.
 1.35.2.1 29-Apr-2005  kent sync with -current
 1.36.6.2 30-Dec-2006  yamt sync with head.
 1.36.6.1 21-Jun-2006  yamt sync with head.
 1.36.4.1 18-Jul-2005  riz Pull up revision 1.37 (requested by tron in ticket #566):
Add (commented out) IPSEC_NAT_T option.
 1.43.6.1 22-Apr-2006  simonb Sync with head.
 1.43.4.1 09-Sep-2006  rpaulo sync with head
 1.43.2.1 18-Feb-2006  yamt sync with head.
 1.45.2.2 03-Sep-2006  yamt sync with head.
 1.45.2.1 11-Aug-2006  yamt sync with head
 1.4 25-Jan-2002  reinoud Cleanup kernel configuration file and add a generic INSTALL kernel. The
A7000 kernels are obsolete now the ARM7500 detection is integrated. The
NC's however are not completely supported and should in the near future be
bootable with GENERIC/INSTALL too.
 1.3 22-Dec-2001  cjep branches: 1.3.2;
Pull out csc Cumana SCSI II driver and note that it is not currently
working properly. This seems to have been the case for some time
(cf. PR #8924).
 1.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file RISCPC was added on branch nathanw_sa on 2002-01-08 00:22:44 +0000
 1.3.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 22-Dec-2001  thorpej file RISCPC was added on branch kqueue on 2002-01-10 19:36:03 +0000
 1.4 25-Jan-2002  reinoud Cleanup kernel configuration file and add a generic INSTALL kernel. The
A7000 kernels are obsolete now the ARM7500 detection is integrated. The
NC's however are not completely supported and should in the near future be
bootable with GENERIC/INSTALL too.
 1.3 22-Dec-2001  cjep branches: 1.3.2;
Pull out csc Cumana SCSI II driver and note that it is not currently
working properly. This seems to have been the case for some time
(cf. PR #8924).
 1.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file RPCINST was added on branch nathanw_sa on 2002-01-08 00:22:44 +0000
 1.3.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 22-Dec-2001  thorpej file RPCINST was added on branch kqueue on 2002-01-10 19:36:04 +0000
 1.49 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.48 14-Aug-2006  skrll s/adpater/adapter/

Prompted by PR/34195
 1.47 05-Aug-2006  bjh21 Xarm32VIDC has supported pckbd(4) for several releases now, so it's probably
safe to stop using rpckbd(4) in wscons configurations.
 1.46 28-Mar-2006  pavel Add stf to all kernel configs which have INET6 and gif, except the INSTALL
ones and those for specific machines of developers. PR 32304.

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
 1.45 05-Feb-2006  cube branches: 1.45.2; 1.45.4; 1.45.6;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.44 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.43 20-Dec-2005  thorpej branches: 1.43.2; 1.43.4; 1.43.6;
Remove the tablet line discipline.
 1.42 07-Dec-2005  tsutsui Adjust comments for options FFS_NO_SNAPSHOT.

XXX: This option should be mentioned in options(4).
 1.41 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.40 19-Aug-2005  christos 64 bit inode changes.
 1.39 31-Jul-2005  yamt revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
 1.38 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.37 07-Jul-2005  tron Add (commented out) IPSEC_NAT_T option.
 1.36 18-Feb-2005  dsl branches: 1.36.4; 1.36.6;
Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.35 11-Feb-2005  dsl Add 'option FFS_SNAPSHOT' to most of the config files.
Commented out for kernels that appear to hace space constraints.
 1.34 31-Jan-2005  hannken Add file system snapshots to kernel configs.

- Ffs internal snapshots get compiled in unconditionally.

- File system snapshot device fss(4) added to all kernel configs that
have a disk. Device is commented out on all non-GENERIC kernels.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>
 1.33 17-Jan-2005  cube branches: 1.33.2;
Add tap(4) support to a random^Wcarefully chosen set of kernel configs.
All those kernels have a line for both tun and bridge, and if either is
commented out, tap is commented out also. With the exception of i386's
GENERIC_TINY.

XXX: we _need_ some way of making this more simple.
 1.32 08-Dec-2004  reinoud branches: 1.32.2;
Add IPv6 support like all other architectures do and add NetBSD 2.0
binary compatibility
 1.31 10-Nov-2004  christos Add COMPAT_BSDPTY to the rest of the config files.
 1.30 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.29 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.28 13-Mar-2004  bjh21 branches: 1.28.2;
Rename wsqms(4) to qms(4), since the "ws" is redundant now. While I'm here,
bundle it all into a single file, qms.c, replacing wsqms.c, wsqms_iomd.c,
and wsqmsvar.h.
 1.27 13-Mar-2004  bjh21 Remove all use of busmouse(4), instead using wsmouse everywhere, even in
kernels that don't use wscons otherwise. The X server released with 1.6
should be able to cope with this.
 1.26 13-Mar-2004  bjh21 Add support for iomdkbc, pckbd, and pms. Don't enable pckbd in any default
config because the X server shipped with 1.6 didn't support it, and it seems
rude to break people's X servers when they upgrade their kernels.
 1.25 13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.24 25-Jan-2004  bjh21 Remove the "beep" driver. Its function is largely subsumed by a
combination of audio(4), wskbd(4) and audiobell(). Proposed a week
ago on port-acorn32 with no reaction whatever.
 1.23 22-Jan-2004  bjh21 Add commented-out entries to attach atppc and friends at pioc.
While I'm here, remove entries for pioc children that never exist.
 1.22 17-Jan-2004  bjh21 Use audiobell for system beeps on acorn32 when vidcaudio(4) is compiled in.
Remove the vestigal sysbeep device and replace it with the same kind of
mechanism that pckbd(4) uses to find the bell, which is just as ugly, but
more standard. Adapt beep(4) to the new world (though I'm not sure it
deserves to live).
 1.21 18-Oct-2003  lukem Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
 1.20 08-Oct-2003  bouyer Add atabus
 1.19 30-Sep-2003  thorpej New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
 1.18 13-Sep-2003  chris Add COMPAT_16 to most arm based kernels. Mainly in preperation for doing
SA_SIGINFO work.
 1.17 18-Sep-2002  lukem branches: 1.17.8;
enable USERCONF by default; it's small and extremely useful to have available.
 1.16 05-Aug-2002  bjh21 Enable csc(4), since it's reported as working.
 1.15 17-Jun-2002  lukem Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.14 25-Apr-2002  atatat branches: 1.14.2; 1.14.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.13 12-Apr-2002  gmcgarry Add commented-out USERCONF option. Mainly useful for install media
and can be optionally enabled based on miniroot and ramdisk size
requirements.
 1.12 10-Apr-2002  thorpej Remove "options RISCPC"; nothing tests for it anymore.
 1.11 02-Apr-2002  lukem Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
 1.10 10-Mar-2002  lukem * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
 1.9 11-Feb-2002  reinoud The COMPAT_OLD_BOOTLOADER flag can go now since BtRiscBSD is no longer
suported due to ELF transition.
 1.8 30-Jan-2002  reinoud Update and clean the config files to look more equal ... some non standard
configutations were not updated during time.
 1.7 27-Jan-2002  jdolecek add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
 1.6 25-Jan-2002  reinoud Cleanup kernel configuration file and add a generic INSTALL kernel. The
A7000 kernels are obsolete now the ARM7500 detection is integrated. The
NC's however are not completely supported and should in the near future be
bootable with GENERIC/INSTALL too.
 1.5 22-Dec-2001  cjep branches: 1.5.2;
Pull out csc Cumana SCSI II driver and note that it is not currently
working properly. This seems to have been the case for some time
(cf. PR #8924).
 1.4 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.3 13-Nov-2001  augustss branches: 1.3.2;
The wsmux pseudo device does not need a count anymore.
 1.2 17-Oct-2001  reinoud Bug fix : due to changes in wscons having a wsmux seems mandatory now to
get it compiled...

added the pseudo-device wsmux 1 to ensure this demand.
 1.1 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.3.2.8 18-Oct-2002  nathanw Catch up to -current.
 1.3.2.7 13-Aug-2002  nathanw Catch up to -current.
 1.3.2.6 20-Jun-2002  nathanw Catch up to -current.
 1.3.2.5 17-Apr-2002  nathanw Catch up to -current.
 1.3.2.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.2.3 28-Feb-2002  nathanw Catch up to -current.
 1.3.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.3.2.1 13-Nov-2001  nathanw file RPC_WSCONS was added on branch nathanw_sa on 2002-01-08 00:22:44 +0000
 1.5.2.7 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.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.5.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.5.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.5.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.5.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.2.1 22-Dec-2001  thorpej file RPC_WSCONS was added on branch kqueue on 2002-01-10 19:36:04 +0000
 1.14.4.2 07-Aug-2002  lukem Pull up revision 1.16 (requested by bjh21 in ticket #641):
Enable csc(4), since it's reported as working.
 1.14.4.1 01-Aug-2002  lukem Pull up revision 1.15 (requested by lukem in ticket #312):
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.14.2.2 30-Aug-2002  gehenna catch up with -current.
 1.14.2.1 09-Jul-2002  gehenna catch up with -current.
 1.17.8.11 11-Dec-2005  christos Sync with head.
 1.17.8.10 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.17.8.9 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.17.8.8 15-Feb-2005  skrll Sync with HEAD.
 1.17.8.7 04-Feb-2005  skrll Sync with HEAD.
 1.17.8.6 24-Jan-2005  skrll Sync with HEAD.
 1.17.8.5 18-Dec-2004  skrll Sync with HEAD.
 1.17.8.4 14-Nov-2004  skrll Sync with HEAD.
 1.17.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.17.8.1 03-Aug-2004  skrll Sync with HEAD
 1.28.2.1 15-Jul-2004  he Pull up revision 1.29 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.32.2.1 29-Apr-2005  kent sync with -current
 1.33.2.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.33.2.1 12-Feb-2005  yamt sync with head.
 1.36.6.2 30-Dec-2006  yamt sync with head.
 1.36.6.1 21-Jun-2006  yamt sync with head.
 1.36.4.1 18-Jul-2005  riz Pull up revision 1.37 (requested by tron in ticket #566):
Add (commented out) IPSEC_NAT_T option.
 1.43.6.1 22-Apr-2006  simonb Sync with head.
 1.43.4.1 09-Sep-2006  rpaulo sync with head
 1.43.2.1 18-Feb-2006  yamt sync with head.
 1.45.6.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.45.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.45.2.3 03-Sep-2006  yamt sync with head.
 1.45.2.2 11-Aug-2006  yamt sync with head
 1.45.2.1 01-Apr-2006  yamt sync with head.
 1.30 05-Jan-2025  andvar Fix some typos in comments.
 1.29 17-Jan-2009  bjh21 branches: 1.29.64; 1.29.102;
Clear out the vestigial support for the Simtec Hydra board. Now that we're
getting support for proper SMP ARMs, keeping non-functional support for
a seriously crippled not-really-SMP system is likely to cause more problems
than it's worth, even if it was fun for a while.
 1.28 20-Feb-2008  drochner branches: 1.28.10; 1.28.18;
Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
 1.27 19-Jan-2008  chris Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.26 14-Aug-2006  bjh21 branches: 1.26.28; 1.26.32; 1.26.34; 1.26.40; 1.26.48;
Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.25 11-Dec-2005  christos branches: 1.25.4; 1.25.8;
merge ktrace-lwp.
 1.24 11-Mar-2005  matt branches: 1.24.4;
rside is really a wdc. So make it a wdc.
XXX rside should be renamed to wdc_rsbus
 1.23 13-Mar-2004  bjh21 branches: 1.23.8; 1.23.10;
Add support for iomdkbc, pckbd, and pms. Don't enable pckbd in any default
config because the X server shipped with 1.6 didn't support it, and it seems
rude to break people's X servers when they upgrade their kernels.
 1.22 22-Jan-2004  bjh21 Add support for using ppbus(4) on acorn32. Only tested to the extent that it
attaches correctly.
 1.21 20-Jan-2004  jdolecek cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
is included there too; dev/ic/lpt.c is not included if ppbus is
configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
glue moved to conf/files and dev/pci/files.pci respectively; remove
device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
glue
 1.20 03-Jan-2004  chris Add conf framework support for riscstation. Add a rsbus as this allows
acccesses with addresses shifted by the amount specified in the cookie.

Also make the inclusion of the wscons file the resposibility of whoever
includes files.iomd. (found while attempting to checking riscstation
support into evbarm)
 1.19 08-Oct-2003  bouyer Following Matt Thomas's request, rename ata attribute to ata_hl, and
wdc_base to ata. We can now have
atabus* at ata?
in kernel config files.
 1.18 08-Oct-2003  bouyer Add atabus
 1.17 06-Oct-2002  bjh21 branches: 1.17.8;
Remove footbridge and isadma glue -- these no longer seem to be necessary.
 1.16 05-Oct-2002  bjh21 Second phase of Hydra attachment: All CPUs are now set up sufficiently that
they can call printf(), which they do before halting.
 1.15 30-Sep-2002  bjh21 Beginnings of support for the Simtec Hydra multiprocessor board.
So far, the Hydra is detected and initialised, and each slave CPU is
spun up briefly to check that it works.
 1.14 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.13 16-Jun-2002  bjh21 Kill options XSERVER: nothing referred to it anyway.
 1.12 16-Jun-2002  bjh21 Pull out config(8) input for arch/arm/iomd code into files.iomd, since that's
clearly where it belongs. Normalise the whitespace in the moved text.
 1.11 24-Apr-2002  bjh21 branches: 1.11.2;
audio -> audiobus rename.
 1.10 19-Apr-2002  wiz Complete renaming of opms to opms (was partly named pms, externally and
internally). Move arm/iomd/pms* to arm/iomd/opms*. Mechanical change,
tested by cross-compiling a kernel from i386.

Approved by christos.

XXX: What are arm/arm32/conf.c and arm/include/conf.h good for?
 1.9 11-Apr-2002  bjh21 Jason claims that nothing tests for RISCPC any more. Make it so.
 1.8 11-Feb-2002  reinoud The COMPAT_OLD_BOOTLOADER flag can go now since BtRiscBSD is no longer
suported due to ELF transition.
 1.7 16-Dec-2001  bjh21 branches: 1.7.2;
Use the MI DP83905 support for media selection on those cards that use it.
 1.6 15-Dec-2001  bjh21 if_ne_pbus needs the "mx98905" attribute.
 1.5 28-Nov-2001  lukem - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
"options FOO=xxx"). options that take a value were converted to
defparam recently.
- minor whitespace & formatting cleanups
 1.4 26-Nov-2001  thorpej Move the interrupt-related file declarations into port-specific
config descriptions so that each port choose whether or not to
use it.
 1.3 24-Nov-2001  thorpej The ARM, Ltd. floating point emulator has moved to arch/arm.
 1.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.7 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.6 17-Sep-2002  nathanw Catch up to -current.
 1.1.4.5 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.4 17-Apr-2002  nathanw Catch up to -current.
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file files.acorn32 was added on branch nathanw_sa on 2002-01-08 00:22:44 +0000
 1.7.2.6 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.5 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.7.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.7.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.7.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.7.2.1 16-Dec-2001  thorpej file files.acorn32 was added on branch kqueue on 2002-01-10 19:36:05 +0000
 1.11.2.3 09-Jul-2002  gehenna catch up with -current.
 1.11.2.2 17-May-2002  gehenna Remove old block majors list.
 1.11.2.1 16-May-2002  gehenna Include the list of block/character major numbers.
 1.17.8.4 01-Apr-2005  skrll Sync with HEAD.
 1.17.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.17.8.1 03-Aug-2004  skrll Sync with HEAD
 1.23.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.23.8.1 29-Apr-2005  kent sync with -current
 1.24.4.3 27-Feb-2008  yamt sync with head.
 1.24.4.2 21-Jan-2008  yamt sync with head
 1.24.4.1 30-Dec-2006  yamt sync with head.
 1.25.8.1 03-Sep-2006  yamt sync with head.
 1.25.4.1 09-Sep-2006  rpaulo sync with head
 1.26.48.1 20-Jan-2008  bouyer Sync with HEAD
 1.26.40.1 18-Feb-2008  mjf Sync with HEAD.
 1.26.34.1 23-Mar-2008  matt sync with HEAD
 1.26.32.3 21-Mar-2008  chris Sync with head.
 1.26.32.2 09-Feb-2008  chris Add initial reworking of acorn32 to use new interrupt code.

Note that cats probably won't work currently as acorn32 changed the way
that the pic is registered, it has to provide the irq lines as on acorn32
we attach the iomd after we need to register irqs for the pioc. So we
setup the irqs for iomd before malloc etc are available. This needs
to be fixed.

More work is still needed to update most of the podulebus drivers.
First I need to add podulebus wrapper for interrupts that handles the
maskaddr and maskbits. Exposing them to the common irq code is wrong.
 1.26.32.1 20-Jan-2008  chris Sync to HEAD.
 1.26.28.1 28-Feb-2008  rjs Sync with HEAD.
 1.28.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.28.10.1 04-May-2009  yamt sync with head.
 1.29.102.1 02-Aug-2025  perseant Sync with HEAD
 1.29.64.3 27-Sep-2018  pgoyette WIP - clean up some of the Makefiles and conf/files stuff for the
netbsd32 modules.
 1.29.64.2 27-Sep-2018  pgoyette (Try to) move the arm-specific compat_netbsd32_machdep stuff to the
arm directory, not in acorn32!

XXX We still need to come back and hook up the _13 and _16 code!
 1.29.64.1 24-Sep-2018  pgoyette Work in progress
 1.28 04-Apr-2020  jdolecek mark nsmb major obsolete
 1.27 28-Jan-2019  dholland Systematize handling of removed drivers.

- Every driver that was removed and whose number hasn't already been
reused is now listed with a commented-out "obsolete" line.
- The format of these has been systematized. Future format changes can
probably be safely done with a script.
- This does not include a few cases of assignments that only lasted a
couple days, or stuff from before major reorgs. Some of these may
be included nonetheless, because there was a lot of ground to cover
and therefore not a lot of time to dig into history in detail.

Note that the obsolete listings do not mean the major numbers can
never be reused; that's up to portmasters and/or core. It does mean
that they won't be reused by accident, however, which in some cases
(depending on the driver, how widely used it was, its family of device
nodes, their default permissions, etc.) can be quite dangerous.

Note that some of the things now explicitly listed as obsolete are
really ancient history. My scan went back as far as when the majors
files were added. (But not before that.)
 1.26 23-Sep-2018  maxv Remove ISDN from the kernel. It has remained unmaintained for a long time,
is of poor quality, and is now an obstacle to MP-ification. It was removed
ten years ago from FreeBSD for the same reason.

This retires a big user of the mbuf API, and will ease maintenance of the
kernel.
 1.25 30-Jun-2011  wiz branches: 1.25.52; 1.25.54;
dependant -> dependent
 1.24 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.23 31-Dec-2007  ad branches: 1.23.6; 1.23.10; 1.23.16; 1.23.18;
Remove systrace. Ok core@.
 1.22 24-Nov-2006  wiz branches: 1.22.24; 1.22.28; 1.22.30; 1.22.36; 1.22.44;
s/independant/independent/, from Zafer.
 1.21 14-Aug-2006  bjh21 branches: 1.21.2; 1.21.4;
Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.20 11-Dec-2005  christos branches: 1.20.4; 1.20.8;
merge ktrace-lwp.
 1.19 17-Sep-2005  yamt make VMSWAP optional again.
 1.18 31-Jul-2005  yamt revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
 1.17 30-Jul-2005  yamt defflag VMSWAP.
 1.16 13-Mar-2004  bjh21 branches: 1.16.16;
Remove qms and opms.
 1.15 25-Jan-2004  bjh21 Remove the "beep" driver. Its function is largely subsumed by a
combination of audio(4), wskbd(4) and audiobell(). Proposed a week
ago on port-acorn32 with no reaction whatever.
 1.14 10-Dec-2003  jmc Change reference at bottom from sys/dev/majors to sys/conf/majors to match
reality
 1.13 24-Oct-2003  jdolecek add necessary majors for miscellaneous devices, such as missing
wscons/scsi/isdn devices
 1.12 11-Oct-2003  jdolecek g/c major for 'netsmb' and mark the slot free - it has never been used
 1.11 10-Oct-2003  jdolecek reassing majors for crypto and pf to use the newly defined MI major
range
 1.10 10-Oct-2003  jdolecek update the comment - the space for machine-dependant majors
is reduced to 0-143
follows discussion on tech-kern
 1.9 05-Oct-2003  jdolecek Add some framework for MI assignment of device majors - add sys/dev/majors
which is automatically included during kernel config, and add comments
to individual machine-dependant majors.* files to assign new MI majors
in MI file.

Range 0-191 is reserved for machine-specific assignments, range
192+ are MI assignments.

Follows recent discussion on tech-kern@
 1.8 30-Sep-2003  thorpej New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
 1.7 22-Aug-2003  itojun create /dev/crypto
 1.6 27-Jul-2003  itojun reserve cdev major # for PF. ok'ed by technical-exec
 1.5 08-Jun-2003  reinoud branches: 1.5.2;
Make smbfs work on NetBSD/acorn32 ! it missed an entry in majors.acorn32
and an entry in the MAKEDEV
 1.4 25-Apr-2003  ragge Add ksyms device major.
 1.3 04-Oct-2002  elric branches: 1.3.2;
assign majors for raw and cooked cgd's.
 1.2 06-Sep-2002  gehenna branches: 1.2.2;
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.1 16-May-2002  gehenna branches: 1.1.2;
file majors.acorn32 was initially added on branch gehenna-devsw.
 1.1.2.3 09-Jul-2002  gehenna catch up with -current.
 1.1.2.2 30-May-2002  gehenna Add $NetBSD$
 1.1.2.1 16-May-2002  gehenna Add the list of block/character majors.
 1.2.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.2.2.2 17-Sep-2002  nathanw Catch up to -current.
 1.2.2.1 06-Sep-2002  nathanw file majors.acorn32 was added on branch nathanw_sa on 2002-09-17 21:12:24 +0000
 1.3.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.3.2.1 04-Oct-2002  jdolecek file majors.acorn32 was added on branch kqueue on 2002-10-10 18:30:23 +0000
 1.5.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 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.16.16.3 21-Jan-2008  yamt sync with head
 1.16.16.2 30-Dec-2006  yamt sync with head.
 1.16.16.1 21-Jun-2006  yamt sync with head.
 1.20.8.1 03-Sep-2006  yamt sync with head.
 1.20.4.1 09-Sep-2006  rpaulo sync with head
 1.21.4.1 10-Dec-2006  yamt sync with head.
 1.21.2.1 12-Jan-2007  ad Sync with head.
 1.22.44.1 02-Jan-2008  bouyer Sync with HEAD
 1.22.36.1 18-Feb-2008  mjf Sync with HEAD.
 1.22.30.1 09-Jan-2008  matt sync with HEAD
 1.22.28.1 01-Jan-2008  chris Sync with HEAD.
 1.22.24.1 28-Feb-2008  rjs Sync with HEAD.
 1.23.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.23.16.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.23.10.1 04-May-2009  yamt sync with head.
 1.23.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.25.54.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.25.54.1 10-Jun-2019  christos Sync with HEAD
 1.25.52.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.5 27-Jan-2008  chris Add an arm/conf/std.arm file which contains common arm options, initially
just options CPU_IN_CKSUM.

Include std.arm in all arm platform std files.

This should reenable the asm in_cksum code for all arm platforms.

Also remove the now unused in_cksum_arm.S.
 1.4 11-Dec-2005  christos branches: 1.4.46; 1.4.50; 1.4.52; 1.4.58;
merge ktrace-lwp.
 1.3 17-Sep-2005  yamt include "conf/std".
 1.2 05-Nov-2003  scw branches: 1.2.16;
Add "options ARM32_DISABLE_ALIGNMENT_FAULTS" to forcibly disable
alignment fault checking if necessary.

This option gets the acorn32 port working again.

XXX: Richard Earnshaw suggested enabling alignment faults for
XXX: userland only on acorn32. Need to investigate this.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.24.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file std.acorn32 was added on branch kqueue on 2002-01-10 19:36:05 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file std.acorn32 was added on branch nathanw_sa on 2001-10-05 22:27:48 +0000
 1.2.16.2 04-Feb-2008  yamt sync with head.
 1.2.16.1 21-Jun-2006  yamt sync with head.
 1.4.58.1 18-Feb-2008  mjf Sync with HEAD.
 1.4.52.1 23-Mar-2008  matt sync with HEAD
 1.4.50.2 09-Feb-2008  chris Add initial reworking of acorn32 to use new interrupt code.

Note that cats probably won't work currently as acorn32 changed the way
that the pic is registered, it has to provide the irq lines as on acorn32
we attach the iomd after we need to register irqs for the pioc. So we
setup the irqs for iomd before malloc etc are available. This needs
to be fixed.

More work is still needed to update most of the podulebus drivers.
First I need to add podulebus wrapper for interrupts that handles the
maskaddr and maskbits. Exposing them to the common irq code is wrong.
 1.4.50.1 27-Jan-2008  chris Sync to HEAD.
 1.4.46.1 28-Feb-2008  rjs Sync with HEAD.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file A1097C was added on branch kqueue on 2002-01-10 19:36:05 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file A1097C was added on branch nathanw_sa on 2001-10-05 22:27:48 +0000
 1.2 04-Jun-2003  reinoud New version of the AKF60 monitor definition file.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file AKF60 was added on branch kqueue on 2002-01-10 19:36:05 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file AKF60 was added on branch nathanw_sa on 2001-10-05 22:27:48 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file AKF85 was added on branch kqueue on 2002-01-10 19:36:06 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file AKF85 was added on branch nathanw_sa on 2001-10-05 22:27:48 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file AKF85B was added on branch kqueue on 2002-01-10 19:36:06 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file AKF85B was added on branch nathanw_sa on 2001-10-05 22:27:48 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file FA3415ATKE was added on branch kqueue on 2002-01-10 19:36:06 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file FA3415ATKE was added on branch nathanw_sa on 2001-10-05 22:27:48 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file NTSCTV was added on branch kqueue on 2002-01-10 19:36:06 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file NTSCTV was added on branch nathanw_sa on 2001-10-05 22:27:48 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file PALTV was added on branch kqueue on 2002-01-10 19:36:07 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file PALTV was added on branch nathanw_sa on 2001-10-05 22:27:49 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file Taxan875+LR was added on branch kqueue on 2002-01-10 19:36:07 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file Taxan875+LR was added on branch nathanw_sa on 2001-10-05 22:27:49 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file VGA was added on branch kqueue on 2002-01-10 19:36:07 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file VGA was added on branch nathanw_sa on 2001-10-05 22:27:49 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file VGAPlus was added on branch kqueue on 2002-01-10 19:36:08 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file VGAPlus was added on branch nathanw_sa on 2001-10-05 22:27:49 +0000
 1.10 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.9 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.8 04-Mar-2007  christos branches: 1.8.46; 1.8.54; 1.8.60;
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 01-Apr-2005  yamt branches: 1.6.2;
merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
save some resources like pv_entry. also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
 1.5 14-Jul-2003  lukem branches: 1.5.8; 1.5.10;
use __KERNEL_RCSID() in a consistent manner
 1.4 06-May-2002  jdolecek branches: 1.4.12;
rename memory_disc_size to md_root_size, so that kernels without
MEMORY_DISK_ROOT_SIZE option link
also make local md_root_size size_t

XXX is the load_memory_disc_from_floppy() stuff actually still being used?
 1.3 02-Apr-2002  lukem Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
 1.2 10-Mar-2002  lukem * rename MEMORY_DISK_SIZE to OLD_MEMORY_DISK_SIZE; as far as I can
tell nothing in the acorn32 port was using this version of
MEMORY_DISK_SIZE but I've left the code here incase the portmaster
wants it.
* rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are consistently named
* fold opt_mdsize.h into opt_md.h
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file md_hooks.c was added on branch kqueue on 2002-01-10 19:36:08 +0000
 1.1.4.4 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.3 17-Apr-2002  nathanw Catch up to -current.
 1.1.4.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.1 05-Oct-2001  nathanw file md_hooks.c was added on branch nathanw_sa on 2002-04-01 07:38:44 +0000
 1.4.12.4 01-Apr-2005  skrll Sync with HEAD.
 1.4.12.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.12.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.12.1 03-Aug-2004  skrll Sync with HEAD
 1.5.10.1 28-Jan-2005  yamt convert arch/acorn{26,32} to new apis.
 1.5.8.1 29-Apr-2005  kent sync with -current
 1.6.2.1 03-Sep-2007  yamt sync with head.
 1.7.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.8.60.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.8.54.1 28-Apr-2009  skrll Sync with HEAD.
 1.8.46.1 04-May-2009  yamt sync with head.
 1.3 13-Mar-2004  bjh21 Rename arch/acorn32/dev/wskbdmap_mfii.c to arch/acorn32/dev/wskbdmap_mfii_rpc.c
to avoid config(8) confusion with dev/pckbport/wskbdmap_mfii.c.
 1.2 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file wskbdmap_mfii.c was added on branch kqueue on 2002-01-10 19:36:09 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file wskbdmap_mfii.c was added on branch nathanw_sa on 2001-10-05 22:27:49 +0000
 1.3 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.2 11-Dec-2005  christos branches: 1.2.4; 1.2.8;
merge ktrace-lwp.
 1.1 13-Mar-2004  bjh21 branches: 1.1.4; 1.1.18;
Rename arch/acorn32/dev/wskbdmap_mfii.c to arch/acorn32/dev/wskbdmap_mfii_rpc.c
to avoid config(8) confusion with dev/pckbport/wskbdmap_mfii.c.
 1.1.18.1 30-Dec-2006  yamt sync with head.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 13-Mar-2004  skrll file wskbdmap_mfii_rpc.c was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.2.8.1 03-Sep-2006  yamt sync with head.
 1.2.4.1 09-Sep-2006  rpaulo sync with head
 1.1 18-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Added the documentation section of arch/arm32 to not let it dissapear.

Can't say for sure ig the interrupts/majors+minors files are still valid
though.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 18-Oct-2001  thorpej file bootloader was added on branch kqueue on 2002-01-10 19:36:09 +0000
 1.1.4.2 18-Oct-2001  reinoud Added the documentation section of arch/arm32 to not let it dissapear.

Can't say for sure ig the interrupts/majors+minors files are still valid
though.
 1.1.4.1 18-Oct-2001  reinoud file bootloader was added on branch nathanw_sa on 2001-10-18 00:05:01 +0000
 1.1 18-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Added the documentation section of arch/arm32 to not let it dissapear.

Can't say for sure ig the interrupts/majors+minors files are still valid
though.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 18-Oct-2001  thorpej file bootoptions was added on branch kqueue on 2002-01-10 19:36:09 +0000
 1.1.4.2 18-Oct-2001  reinoud Added the documentation section of arch/arm32 to not let it dissapear.

Can't say for sure ig the interrupts/majors+minors files are still valid
though.
 1.1.4.1 18-Oct-2001  reinoud file bootoptions was added on branch nathanw_sa on 2001-10-18 00:05:02 +0000
 1.12 23-Mar-2025  andvar s/argumant/argument/.
 1.11 20-Sep-2024  andvar Fix few typos.
 1.10 08-Sep-2024  rillig fix a/an grammar in obvious cases
 1.9 04-Apr-2022  andvar branches: 1.9.10;
fix various typos, mainly in comments.
 1.8 06-Feb-2022  andvar fix various typos in comments, log messages and documentation.
mainly s/aparently/apparently/ and s/implmented/implemented/.
 1.7 17-Aug-2021  andvar fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.
 1.6 19-Aug-2020  msaitoh s/ be be / be /
 1.5 30-Jun-2011  wiz dependant -> dependent
 1.4 25-Feb-2006  wiz Fix some typos.
 1.3 11-Dec-2005  christos branches: 1.3.2; 1.3.4; 1.3.6;
merge ktrace-lwp.
 1.2 13-Feb-2004  wiz branches: 1.2.16;
Uppercase CPU, plural is CPUs.
 1.1 18-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Added the documentation section of arch/arm32 to not let it dissapear.

Can't say for sure ig the interrupts/majors+minors files are still valid
though.
 1.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 18-Oct-2001  thorpej file history was added on branch kqueue on 2002-01-10 19:36:10 +0000
 1.1.4.2 18-Oct-2001  reinoud Added the documentation section of arch/arm32 to not let it dissapear.

Can't say for sure ig the interrupts/majors+minors files are still valid
though.
 1.1.4.1 18-Oct-2001  reinoud file history was added on branch nathanw_sa on 2001-10-18 00:05:02 +0000
 1.2.16.1 21-Jun-2006  yamt sync with head.
 1.3.6.1 22-Apr-2006  simonb Sync with head.
 1.3.4.1 09-Sep-2006  rpaulo sync with head
 1.3.2.1 01-Mar-2006  yamt sync with head.
 1.9.10.1 02-Aug-2025  perseant Sync with HEAD
 1.1 18-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Added the documentation section of arch/arm32 to not let it dissapear.

Can't say for sure ig the interrupts/majors+minors files are still valid
though.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 18-Oct-2001  thorpej file interrupts was added on branch kqueue on 2002-01-10 19:36:10 +0000
 1.1.4.2 18-Oct-2001  reinoud Added the documentation section of arch/arm32 to not let it dissapear.

Can't say for sure ig the interrupts/majors+minors files are still valid
though.
 1.1.4.1 18-Oct-2001  reinoud file interrupts was added on branch nathanw_sa on 2001-10-18 00:05:02 +0000
 1.2 07-Apr-2022  andvar s/psuedo/pseudo/
 1.1 18-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Added the documentation section of arch/arm32 to not let it dissapear.

Can't say for sure ig the interrupts/majors+minors files are still valid
though.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 18-Oct-2001  thorpej file majors+minors was added on branch kqueue on 2002-01-10 19:36:10 +0000
 1.1.4.2 18-Oct-2001  reinoud Added the documentation section of arch/arm32 to not let it dissapear.

Can't say for sure ig the interrupts/majors+minors files are still valid
though.
 1.1.4.1 18-Oct-2001  reinoud file majors+minors was added on branch nathanw_sa on 2001-10-18 00:05:02 +0000
 1.37 15-May-2022  andvar s/wich/which in comments.
 1.36 16-Sep-2021  andvar fix various typos, mainly in comments.
 1.35 17-Aug-2021  andvar fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.
 1.34 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.33 18-Apr-2020  skrll Trailing whitespace
 1.32 29-Mar-2020  skrll branches: 1.32.2;
KNF
 1.31 16-Jul-2019  skrll Consistently use vaddr_t as initarm and friends return type.

Makes no difference to binaries except for aarch64 where it's required
 1.30 28-Oct-2018  skrll Fix a commit
 1.29 22-Dec-2016  cherry branches: 1.29.14; 1.29.16;
switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.
 1.28 25-Oct-2014  skrll branches: 1.28.2; 1.28.4;
Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.27 13-Sep-2014  matt vm_size_t -> vsize_t
 1.26 18-Aug-2013  matt Fix more <arm/locore.h> lossage
 1.25 22-Sep-2012  matt branches: 1.25.2;
Don't use an asm in pmap_activate to update the TTBR, use cpu_setttb instead
but add a second argument to it to indicate whether the TLB/caches need to be
flushed. Default cortex to pmap_needs_fixup = 1. But check the MMFR3 field
to see if the fixed can be skipped.
Use a cf_flag bit 0 to indicate whether the A9 L2 cache should disable (bit 0 = 1)
or enabeld (bit = 0).

With these changes, the A9 MMU can use traverse caches to do MMU tablewalks
Also, make sure all memory has the shareable bit for the A9.
 1.24 16-Aug-2012  matt branches: 1.24.2;
Move the standard definitions of the {UND,IRQ,FIQ,ABT}_STACK_SIZE to
<arm32/machdep.h>
Move the extern for cpu_reset_address to the same file.
Add cpu_reset_address_paddr.
Kill cpu_reset_v4_MMU_disable.
if cpu_reset_address is NULL, then the MMU will be disabled.
 1.23 29-Jul-2012  matt Fix more -fno-common fallout.
Move more variables to common locations.
 1.22 10-May-2012  skrll _int*_t -> uint*_t

Same code before and after.
 1.21 19-Jul-2011  dyoung branches: 1.21.2; 1.21.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.20 30-Jun-2011  wiz dependant -> dependent
 1.19 28-Dec-2009  uebayasi More setttb() -> cpu_setttb() for readability & consistency. Missing instances
pointed out by tsutsui@ & nonaka@, thanks.
 1.18 27-Nov-2009  rmind - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.17 26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.16 22-Sep-2009  tsutsui Explicitly include <sys/exec_aout.h> for ZMAGIC etc.
 1.15 11-Aug-2009  matt Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
 1.14 13-Feb-2009  apb Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
 1.13 30-Nov-2008  martin branches: 1.13.4;
As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
 1.12 23-Nov-2008  chris Fix EB7500ATX kernel to build again, mainly catching up on 6+ months of
changes elsewhere in the kernel:
* kernel_l1pt is now a global in pmap
* wdc no longer has dma/udma caps without the relevant options, however,
rside doesn't support dma/udma so don't set the options.
* also fix a device_t/softc split issue.

Perhaps I should add the kernel to the default build list for acorn32, to
avoid any other breakage. Although as the only person probably even
running NetBSD on an EB7500ATX system I'm not sure it's worthwhile.
 1.11 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.10 11-Nov-2008  dyoung It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled. So I have made two changes:

1 Do not call pmf_system_shutdown() from doshutdownhooks(). Instead,
change every call to doshutdownhooks() to a call to doshutdownhooks()
followed by a call to pmf_system_shutdown(). No functional change
is intended by this change.

2 Make i386 re-enable interrupts briefly while it calls
pmf_system_shutdown(). I leave it to others either to fix the
other ports, or to factor out some MI shutdown code, as joerg@
suggests, and fix that. Note that a functional change *is* intended
by this change.

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
 1.9 19-Jan-2008  chris branches: 1.9.6; 1.9.10; 1.9.16; 1.9.18;
Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.8 17-Oct-2007  garbled branches: 1.8.2; 1.8.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.7 13-Aug-2007  tsutsui branches: 1.7.2; 1.7.4;
Remove all references to spl_mask. Now it isn't used by any sources.
Discussed on port-arm.
 1.6 24-Oct-2006  bjh21 branches: 1.6.8; 1.6.16; 1.6.22; 1.6.24; 1.6.26;
parse_mi_bootargs() is declared in <arm/arm32/machdep.h>, so there's no need
to declare it here too.
 1.5 31-Aug-2006  matt branches: 1.5.2; 1.5.4;
Make this console now that vconsole is done and with GCC4.
 1.4 16-Aug-2006  bjh21 Clean out some cruft left behind by the old console code.
 1.3 11-Dec-2005  christos branches: 1.3.4; 1.3.8;
merge ktrace-lwp.
 1.2 12-Dec-2004  abs branches: 1.2.10;
Fix comments slighly
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.5 18-Dec-2004  skrll Sync with HEAD.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file eb7500atx_machdep.c was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.2.10.3 21-Jan-2008  yamt sync with head
 1.2.10.2 03-Sep-2007  yamt sync with head.
 1.2.10.1 30-Dec-2006  yamt sync with head.
 1.3.8.1 03-Sep-2006  yamt sync with head.
 1.3.4.1 09-Sep-2006  rpaulo sync with head
 1.5.4.1 10-Dec-2006  yamt sync with head.
 1.5.2.1 18-Nov-2006  ad Sync with head.
 1.6.26.1 16-Aug-2007  jmcneill Sync with HEAD.
 1.6.24.1 28-Feb-2008  rjs Sync with HEAD.
 1.6.22.1 15-Aug-2007  skrll Sync with HEAD.
 1.6.16.1 03-Oct-2007  garbled Sync with HEAD
 1.6.8.1 20-Aug-2007  ad Sync with HEAD.
 1.7.4.2 23-Mar-2008  matt sync with HEAD
 1.7.4.1 06-Nov-2007  matt sync with HEAD
 1.7.2.3 20-Jan-2008  chris Sync to HEAD.
 1.7.2.2 01-Jan-2008  chris Sync with HEAD.
 1.7.2.1 13-Aug-2007  chris file eb7500atx_machdep.c was added on branch chris-arm-intr-rework on 2008-01-01 15:39:51 +0000
 1.8.8.1 20-Jan-2008  bouyer Sync with HEAD
 1.8.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.9.18.2 03-Mar-2009  skrll Sync with HEAD.
 1.9.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.9.16.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.9.10.3 11-Mar-2010  yamt sync with head
 1.9.10.2 19-Aug-2009  yamt sync with head.
 1.9.10.1 04-May-2009  yamt sync with head.
 1.9.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.13.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.21.6.1 02-Jun-2012  mrg sync to latest -current.
 1.21.2.3 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.21.2.2 30-Oct-2012  yamt sync with head
 1.21.2.1 23-May-2012  yamt sync with head.
 1.24.2.3 03-Dec-2017  jdolecek update from HEAD
 1.24.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.24.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.25.2.1 28-Aug-2013  rmind sync with head
 1.28.4.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.28.2.1 05-Feb-2017  skrll Sync with HEAD
 1.29.16.4 21-Apr-2020  martin Sync with HEAD
 1.29.16.3 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.29.16.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.29.16.1 10-Jun-2019  christos Sync with HEAD
 1.29.14.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.32.2.1 20-Apr-2020  bouyer Sync with HEAD
 1.13 29-May-2022  andvar fix various typos in comments and log messages.
 1.12 25-Apr-2019  msaitoh KNF. No functional change.
 1.11 25-Apr-2019  msaitoh No functional change:
- Use __arraycount().
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- KNF.
- Tabify.
- Remove extra space.
 1.10 13-Apr-2015  riastradh branches: 1.10.18;
MD rnd.h cleanups. Please let me know if I broke anything!
 1.9 10-May-2012  skrll branches: 1.9.2; 1.9.16;
_int*_t -> uint*_t

Same code before and after.
 1.8 02-Feb-2012  tls Entropy-pool implementation move and cleanup.

1) Move core entropy-pool code and source/sink/sample management code
to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
avoid expensive operations on disabled entropy sources; make the
rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
system events, and skew between clocks, with a sample implementation
for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files). Tested with release
builds on amd64 and evbarm and live testing on amd64.
 1.7 19-Jul-2011  dyoung branches: 1.7.2; 1.7.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.6 22-Sep-2009  tsutsui Split device_t/softc. Tested only on cs at ofisa on shark.
 1.5 12-May-2009  cegger use device_xname()
 1.4 11-Dec-2005  christos branches: 1.4.80; 1.4.94;
merge ktrace-lwp.
 1.3 04-Jul-2004  chris branches: 1.3.2;
Use a define, rather than hard coded number, for the interrupt to claim.

Make use of the ability to parse the cs's eeprom for values, rather than
ignoring the eeprom.
 1.2 03-Jan-2004  chris Tidy up the code, add a copyright block for myself. Sprinkle a few
comments, de-_P things.
 1.1 03-Jan-2004  chris First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.3.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.3.2.2 03-Aug-2004  skrll Sync with HEAD
 1.3.2.1 04-Jul-2004  skrll file if_cs.c was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.4.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.80.2 11-Mar-2010  yamt sync with head
 1.4.80.1 16-May-2009  yamt sync with head
 1.7.6.2 02-Jun-2012  mrg sync to latest -current.
 1.7.6.1 18-Feb-2012  mrg merge to -current.
 1.7.2.2 23-May-2012  yamt sync with head.
 1.7.2.1 17-Apr-2012  yamt sync with head
 1.9.16.1 06-Jun-2015  skrll Sync with HEAD
 1.9.2.1 03-Dec-2017  jdolecek update from HEAD
 1.10.18.1 10-Jun-2019  christos Sync with HEAD
 1.12 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.11 24-Apr-2021  thorpej branches: 1.11.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.10 27-Oct-2012  chs branches: 1.10.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.9 19-Jul-2011  dyoung branches: 1.9.2; 1.9.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.8 03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.7 21-Oct-2009  rmind branches: 1.7.4; 1.7.6; 1.7.10;
Drop 3rd and 4th clauses from Ichiro FUKUHARA's license.
Reviewed and approved by ichiro@ (copyright holder).

(this single file was missed in previous commit)
 1.6 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.5 26-Mar-2007  hubertf branches: 1.5.40; 1.5.48; 1.5.54;
Remove duplicate #include <sys/param.h>, and instead
#include <sys/cdefs.h> for __KERNEL_RCSID()

From: Slava Semushin <php-coder@altlinux.ru>
 1.4 11-Dec-2005  christos branches: 1.4.26; 1.4.30; 1.4.32; 1.4.34;
merge ktrace-lwp.
 1.3 26-Aug-2005  drochner s/locdesc_t/int/g
 1.2 30-Jun-2005  drochner branches: 1.2.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file rsbus.c was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.2.2.2 03-Sep-2007  yamt sync with head.
 1.2.2.1 21-Jun-2006  yamt sync with head.
 1.4.34.1 29-Mar-2007  reinoud Pullup to -current
 1.4.32.1 11-Jul-2007  mjf Sync with head.
 1.4.30.1 10-Apr-2007  ad Sync with head.
 1.4.26.1 15-Apr-2007  yamt sync with head.
 1.5.54.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.5.48.1 28-Apr-2009  skrll Sync with HEAD.
 1.5.40.2 11-Mar-2010  yamt sync with head
 1.5.40.1 04-May-2009  yamt sync with head.
 1.7.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.7.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.4.1 12-Jun-2011  rmind sync with head
 1.9.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.9.2.1 30-Oct-2012  yamt sync with head
 1.10.52.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.10.52.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.10.52.4 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.10.52.3 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.10.52.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.10.52.1 20-Mar-2021  thorpej The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
tag-value variadic arguments that can be passed to the various
config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
Noticed several incorrect usages along the way, which will be
audited in a future commit.
 1.11.8.1 03-Aug-2021  thorpej Adapt to CFARGS().
 1.4 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.3 19-Jul-2011  dyoung branches: 1.3.2; 1.3.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file rsbus.h was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.3.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.3.2.1 30-Oct-2012  yamt sync with head
 1.5 16-Mar-2018  ryo use designated initializer to make adaptability and flexibility for changing struct bus_space.
no functional change.
 1.4 10-May-2012  skrll branches: 1.4.38;
_int*_t -> uint*_t

Same code before and after.
 1.3 19-Jul-2011  dyoung branches: 1.3.2; 1.3.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file rsbus_io.c was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.3.6.1 02-Jun-2012  mrg sync to latest -current.
 1.3.2.1 23-May-2012  yamt sync with head.
 1.4.38.1 22-Mar-2018  pgoyette Synch with HEAD, resolve conflicts
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file rsbus_io_asm.S was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.17 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.16 20-Oct-2017  jdolecek move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init()
and ata_channel_destroy() respectively, to make attachment code simpler,
and to make it easier to spot special queue manipulation like cmdide(4)

on topic of PR kern/52606
 1.15 07-Oct-2017  jdolecek Merge support for SATA NCQ (Native Command Queueing) from jdolecek-ncq branch

ATA subsystem was changed to support several outstanding commands, and use
NCQ xfers if supported by both the controller and the disk, including NCQ
error recovery. Set NCQ high priority for BPRIO_TIMECRITICAL xfers
if supported. Added FUA support.

Done some work towards MP-safe, all ATA code tsleep()/wakeup() replaced
by condvars, and switched most code from spl* to mutexes (separate
wd(4) and ata channel lock).

Introduced new option WD_CHAOS_MONKEY to facilitate testing of error
handling, fixed several uncovered issues. Also fixed several problems
with kernel dump to wd(4) disk.

Tested with ahcisata(4), mvsata(4), siisata(4), piixide(4) on amd64,
with and without port multiplier, both disk and ATAPI devices; other
drivers and archs mechanically adjusted and compile-tested. NCQ is
supported for ahcisata(4) and siisata(4) for any controller, for
mvsata(4) only Gen IIe ones for now. Also enabled ATAPI support in
mvsata(4).

Thanks to Matt Thomas for initial ATA infrastructure patch, and
Jonathan A.Kollasch for siisata(4) NCQ changes and general testing.

Also fixes PR kern/43169 (wd(4)); and PR kern/11811, PR kern/47041,
PR kern/51979 (kernel dump)
 1.14 31-Jul-2012  bouyer branches: 1.14.2; 1.14.28;
Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.
 1.13 26-Jul-2012  jakllsch Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@
 1.12 02-Jul-2012  bouyer Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
when SATA cable move was needed
 1.11 19-Jul-2011  dyoung branches: 1.11.2;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.10 23-Nov-2008  chris Fix EB7500ATX kernel to build again, mainly catching up on 6+ months of
changes elsewhere in the kernel:
* kernel_l1pt is now a global in pmap
* wdc no longer has dma/udma caps without the relevant options, however,
rside doesn't support dma/udma so don't set the options.
* also fix a device_t/softc split issue.

Perhaps I should add the kernel to the default build list for acorn32, to
avoid any other breakage. Although as the only person probably even
running NetBSD on an EB7500ATX system I'm not sure it's worthwhile.
 1.9 18-Mar-2008  cube branches: 1.9.4; 1.9.10; 1.9.12;
Split device_t and softc for ATA devices, as well as wd(4). Other
cosmetic changes where appropriate.
 1.8 16-Jan-2006  bouyer branches: 1.8.48; 1.8.50; 1.8.70; 1.8.74;
properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
 1.7 11-Dec-2005  christos branches: 1.7.2;
merge ktrace-lwp.
 1.6 11-Mar-2005  matt branches: 1.6.4;
Constify a structure.
 1.5 20-Aug-2004  thorpej branches: 1.5.4; 1.5.6;
Move most of wdc_softc into a new atac_softc structure that contains
info common to all types of ATA controllers.
 1.4 14-Aug-2004  thorpej - Split the register handles out of struct wdc_channel into a separate
wdc_regs structure, and array of which (indexed per channel) is pointed
to by struct wdc_softc.
- Move the resulting wdc_channel structure to atavar.h and rename it to
ata_channel. Rename the corresponding flags.
- Add a "ch_ndrive" member to struct ata_channel, which indicates the
maximum number of drives that can be present on the channel. For now,
this is always 2. Add an ATA_MAXDRIVES constant that places an upper
limit on this value, also currently 2.
 1.3 25-May-2004  thorpej branches: 1.3.2;
Add the notion of "shadow registers" to the wdc driver. These shadow
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers. Right now, the two
shadows are:

- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)

Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.

Partially from Jordan Rhody @ Wasabi Systems, Inc.
 1.2 04-Jan-2004  chris Tidy up a few things:
Get rid of the static bus tag, instead move it into the softc.
Update to ThorpeJ's recent variable renaming for ATA things.
De-__P and KNF prototypes, also make attach and probe static.
Add RCSID.
Add a copyright for myself.
 1.1 03-Jan-2004  chris First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.3.2.6 01-Apr-2005  skrll Sync with HEAD.
 1.3.2.5 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.2.4 18-Sep-2004  skrll Sync with HEAD.
 1.3.2.3 25-Aug-2004  skrll Sync with HEAD.
 1.3.2.2 03-Aug-2004  skrll Sync with HEAD
 1.3.2.1 25-May-2004  skrll file rside.c was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.5.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.5.4.1 29-Apr-2005  kent sync with -current
 1.6.4.2 24-Mar-2008  yamt sync with head.
 1.6.4.1 21-Jun-2006  yamt sync with head.
 1.7.2.1 01-Feb-2006  yamt sync with head.
 1.8.74.2 17-Jan-2009  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.8.48.1 21-Mar-2008  chris Sync with head.
 1.9.12.1 19-Jan-2009  skrll Sync with HEAD.
 1.9.10.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.9.4.1 04-May-2009  yamt sync with head.
 1.11.2.1 30-Oct-2012  yamt sync with head
 1.14.28.2 27-Sep-2017  jdolecek change wdc_init_shadow_regs() to accept only struct wdc_regs, it doesn't
touch anything else

factor out the probe-only struct ata_channel initialization to wdcprobe(), to
reduce duplication of logic in individual drivers, and to actually work now
that more init is needed beyond the memset()
 1.14.28.1 24-Apr-2017  jdolecek use ata_queue_alloc() to dynamically allocate ata_queue for ata channel
 1.14.2.1 03-Dec-2017  jdolecek update from HEAD
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 03-Jan-2004  chris branches: 1.1.4;
First part of support for the eb7500atx board from simtec:
http://www.simtec.co.uk/products/EB7500ATX/

also available with RISC-OS as a RiscStation:
http://www.riscstation.co.uk/html/products.html

This is basic bootstrap with support for ide and networking, currently only
tested with booting from ABLE, and not RISC-OS.

I would have placed it into evbarm, but iomd doesn't appear to use the same
interrupt files as evbarm. I'll check it into here for now, until iomd
uses the common interrupt code.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 03-Jan-2004  skrll file rsidereg.h was added on branch ktrace-lwp on 2004-08-03 10:30:49 +0000
 1.29 02-May-2013  matt This change arm, armeb, earm, earmeb, earmhf, earmhfeb so all builds that
share a MACHINE_ARCH for userland so that except for etc, will produce
identical sets.

usr/include/machine now points to usr/include/arm
 1.28 11-Jan-2013  matt Don't install fp.h anymore
 1.27 19-Jul-2011  dyoung branches: 1.27.2; 1.27.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.26 17-Jul-2011  joerg Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.25 19-Jan-2008  chris Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.24 09-Feb-2007  ad branches: 1.24.20; 1.24.24; 1.24.26; 1.24.32; 1.24.38;
Merge newlock2 to head.
 1.23 14-Aug-2006  bjh21 branches: 1.23.2;
Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.22 26-Jul-2006  drochner don't install <machine/db_machdep.h>, this is kernel only
 1.21 11-Dec-2005  christos branches: 1.21.4; 1.21.8;
merge ktrace-lwp.
 1.20 08-May-2004  kleink branches: 1.20.12;
Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.
 1.19 13-Mar-2004  bjh21 NetBSD/acorn32 no longer has busmouse(4), so remove <machine/mouse.h>.
 1.18 25-Jan-2004  bjh21 Remove the "beep" driver. Its function is largely subsumed by a
combination of audio(4), wskbd(4) and audiobell(). Proposed a week
ago on port-acorn32 with no reaction whatever.
 1.17 17-Jan-2003  thorpej branches: 1.17.2;
Merge the nathanw_sa branch.
 1.16 06-Jan-2003  reinoud Remove loadfile_machdep.h from being installed
 1.15 29-Dec-2002  reinoud Update the NetBSD part for the bootloader change. Mostly the changes in
bootconfig.h needs reflection
 1.14 26-Nov-2002  lukem Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.
 1.13 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.12 07-Aug-2002  briggs Implement pmc(9) -- An interface to hardware performance monitoring
counters. These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface. Initially, the Intel XScale
counters are the only ones supported.
 1.11 26-Nov-2001  thorpej branches: 1.11.2; 1.11.10;
Delete <machine/psl.h> from the ARM ports. It's not a header that
we need to provide to MI code or to userland, and it's also not a
header that generic ARM code should be including directly.
 1.10 25-Nov-2001  thorpej Move disklabel_acorn.h to <sys/disklabel_acorn.h>, much like we did
with disklabel_mbr.h. More cleanup yet to come.
 1.9 24-Nov-2001  thorpej Clean this up, don't install files that userland doens't need.
 1.8 24-Nov-2001  thorpej No need to install bootconfig.h
 1.7 23-Nov-2001  thorpej No longer need <machine/undefined.h>.
 1.6 23-Nov-2001  thorpej No longer need <machine/pte.h>.
 1.5 23-Nov-2001  thorpej No longer need <machine/cpus.h>
 1.4 23-Nov-2001  thorpej No longer need <machine/cpufunc.h>
 1.3 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.2 06-Oct-2001  bjh21 branches: 1.2.4;
vidc.h => vidc_machdep.h, since the latter exists and the former doesn't.
 1.1 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.2.4.8 07-Jan-2003  reinoud Better patch here too; pullup from HEAD
 1.2.4.7 29-Dec-2002  thorpej Sync with HEAD.
 1.2.4.6 11-Dec-2002  thorpej Sync with HEAD.
 1.2.4.5 17-Sep-2002  nathanw Catch up to -current.
 1.2.4.4 13-Aug-2002  nathanw Catch up to -current.
 1.2.4.3 08-Jan-2002  nathanw Catch up to -current.
 1.2.4.2 14-Nov-2001  thorpej ARM-specific mcontext support. From Klaus Klein <kleink@netbsd.org>.
 1.2.4.1 06-Oct-2001  thorpej file Makefile was added on branch nathanw_sa on 2001-11-14 20:53:07 +0000
 1.11.10.2 30-Aug-2002  gehenna catch up with -current.
 1.11.10.1 16-May-2002  gehenna Remove unnecessary file.
 1.11.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.11.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.11.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.11.2.1 26-Nov-2001  thorpej file Makefile was added on branch kqueue on 2002-01-10 19:36:11 +0000
 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.20.12.3 21-Jan-2008  yamt sync with head
 1.20.12.2 26-Feb-2007  yamt sync with head.
 1.20.12.1 30-Dec-2006  yamt sync with head.
 1.21.8.2 03-Sep-2006  yamt sync with head.
 1.21.8.1 11-Aug-2006  yamt sync with head
 1.21.4.1 09-Sep-2006  rpaulo sync with head
 1.23.2.1 01-Feb-2007  ad Header file cleanup.
 1.24.38.1 20-Jan-2008  bouyer Sync with HEAD
 1.24.32.1 18-Feb-2008  mjf Sync with HEAD.
 1.24.26.1 23-Mar-2008  matt sync with HEAD
 1.24.24.1 20-Jan-2008  chris Sync to HEAD.
 1.24.20.1 28-Feb-2008  rjs Sync with HEAD.
 1.27.12.2 23-Jun-2013  tls resync from head
 1.27.12.1 25-Feb-2013  tls resync with head
 1.27.2.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.27.2.1 23-Jan-2013  yamt sync with head
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ansi.h was added on branch kqueue on 2002-01-10 19:36:11 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ansi.h was added on branch nathanw_sa on 2001-10-05 22:27:49 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file aout_machdep.h was added on branch kqueue on 2002-01-10 19:36:11 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file aout_machdep.h was added on branch nathanw_sa on 2001-10-05 22:27:49 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file asm.h was added on branch kqueue on 2002-01-10 19:36:12 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file asm.h was added on branch nathanw_sa on 2001-10-05 22:27:50 +0000
 1.2 26-Sep-2020  skrll G/C arm/atomic.h
 1.1 19-Oct-2002  bsh branches: 1.1.2; 1.1.4; 1.1.74;
make atomic_{set,clear}_bit() inline for arm32 ports, and
add <machine/atomic.h> for them.
 1.1.74.1 19-Apr-2007  thorpej Convert to the new atomic ops API.
 1.1.4.2 11-Nov-2002  nathanw Catch up to -current
 1.1.4.1 19-Oct-2002  nathanw file atomic.h was added on branch nathanw_sa on 2002-11-11 21:55:51 +0000
 1.1.2.2 24-Oct-2002  bjh21 Sync with trunk.
 1.1.2.1 19-Oct-2002  bjh21 file atomic.h was added on branch bjh21-hydra on 2002-10-24 22:34:46 +0000
 1.2 25-Jan-2004  bjh21 Remove the "beep" driver. Its function is largely subsumed by a
combination of audio(4), wskbd(4) and audiobell(). Proposed a week
ago on port-acorn32 with no reaction whatever.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file beep.h was added on branch kqueue on 2002-01-10 19:36:12 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file beep.h was added on branch nathanw_sa on 2001-10-05 22:27:50 +0000
 1.7 24-Oct-2006  bjh21 Use <arm/bootconfig.h>.
 1.6 11-Dec-2005  christos branches: 1.6.20; 1.6.22;
merge ktrace-lwp.
 1.5 04-Jun-2005  chris branches: 1.5.2;
Add const
 1.4 29-Dec-2002  reinoud branches: 1.4.2;
Update the NetBSD part for the bootloader change. Mostly the changes in
bootconfig.h needs reflection
 1.3 11-Feb-2002  reinoud _important_ : the old BtRiscBSD compatibility has been put to rest... this
means that kernels from now on are not bootable by !BtRiscBSD but only with
!BtNetBSD.

Big initial commit for a new cleaned up and extended bootblock style. This
patch also allows ELF symbol tables to be read when the patches on the
bootloader are commit but will work fine with the older bootloader.

An extra option `oldkernel' will be provided in the newer bootloader to
pass out old style bootconfig's thus enabling old style kernels to load and
function.

Tested on a.out and ELF (preliminary) kernels with both older and new style
bootconfig blocks.
 1.2 09-Feb-2002  reinoud We don't need to include "footbridge.h"
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file bootconfig.h was added on branch kqueue on 2002-01-10 19:36:13 +0000
 1.1.4.3 29-Dec-2002  thorpej Sync with HEAD.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file bootconfig.h was added on branch nathanw_sa on 2002-02-28 04:05:54 +0000
 1.4.2.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.2.1 30-Dec-2006  yamt sync with head.
 1.6.22.1 10-Dec-2006  yamt sync with head.
 1.6.20.1 18-Nov-2006  ad Sync with head.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file bswap.h was added on branch kqueue on 2002-01-10 19:36:13 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file bswap.h was added on branch nathanw_sa on 2001-10-05 22:27:50 +0000
 1.2 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file bus.h was added on branch kqueue on 2002-01-10 19:36:13 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file bus.h was added on branch nathanw_sa on 2001-10-05 22:27:50 +0000
 1.1 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.1 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file cdefs.h was added on branch kqueue on 2002-01-10 19:36:13 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file cdefs.h was added on branch nathanw_sa on 2001-10-05 22:27:50 +0000
 1.5 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.4 19-Apr-2002  wiz branches: 1.4.2;
Complete renaming of opms to opms (was partly named pms, externally and
internally). Move arm/iomd/pms* to arm/iomd/opms*. Mechanical change,
tested by cross-compiling a kernel from i386.

Approved by christos.

XXX: What are arm/arm32/conf.c and arm/include/conf.h good for?
 1.3 28-Feb-2002  simonb Use "#define<tab>".
 1.2 27-Feb-2002  christos - define other DEV_ constants that the local port uses.
- delete cdev_decl(mm) since <sys/conf.h> does it.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.5 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.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file conf.h was added on branch kqueue on 2002-01-10 19:36:14 +0000
 1.1.4.5 17-Sep-2002  nathanw Catch up to -current.
 1.1.4.4 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file conf.h was added on branch nathanw_sa on 2002-02-28 04:05:54 +0000
 1.4.2.1 16-May-2002  gehenna Remove unnecessary file.
 1.9 17-Jan-2009  bjh21 Clear out the vestigial support for the Simtec Hydra board. Now that we're
getting support for proper SMP ARMs, keeping non-functional support for
a seriously crippled not-really-SMP system is likely to cause more problems
than it's worth, even if it was fun for a while.
 1.8 17-Oct-2007  garbled branches: 1.8.20; 1.8.28;
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.7 17-May-2007  yamt branches: 1.7.10; 1.7.12;
merge yamt-idlelwp branch. asked by core@. some ports still needs work.

from doc/BRANCHES:

idle lwp, and some changes depending on it.

1. separate context switching and thread scheduling.
(cf. gmcgarry_ctxsw)
2. implement idle lwp.
3. clean up related MD/MI interfaces.
4. make scheduler(s) modular.
 1.6 13-Oct-2002  bjh21 branches: 1.6.24; 1.6.62; 1.6.66; 1.6.68; 1.6.74;
It appears that MI code requires ci_cpuid to be the CPU number of the CPU
in question, whereas the ARM code was using it to hold the model
identification. To fix this, rename:

ci_cpuid -> ci_arm_cpuid
ci_cputype -> ci_arm_cputype (for consistency)
ci_cpurev -> ci_arm_cpurev (ditto)
ci_cpunum -> ci_cpuid

This makes top(1) give correct CPU numbers in its "STATE" column (all 0 for
now).
 1.5 12-Oct-2002  bjh21 Remember the location of each CPU's idle PCB in struct cpu_info.
Move allocation of the idle PCB from hydra.c to cpu.c and add some
extra initialisation from cpu_fork().
 1.4 12-Oct-2002  bjh21 Move curpcb into struct cpu_info in MULTIPROCESSOR kernels.
 1.3 06-Oct-2002  bjh21 Turn curcpu() into a macro.
Rename cpu_info_array to cpu_info and make it public.
Add CPU_FOREACH() and friends.
 1.2 05-Oct-2002  bjh21 Minimal changes to allow a kernel with "options MULTIPROCESSOR" to compile
and boot multi-user on a single-processor machine. Many of these changes
are wildly inappropriate for actual multi-processor operation, and correcting
this will be my next task.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file cpu.h was added on branch kqueue on 2002-01-10 19:36:14 +0000
 1.1.4.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file cpu.h was added on branch nathanw_sa on 2002-10-18 02:33:37 +0000
 1.6.74.1 22-May-2007  matt Update to HEAD.
 1.6.68.1 11-Jul-2007  mjf Sync with head.
 1.6.66.1 27-May-2007  ad Sync with head.
 1.6.62.1 29-Mar-2007  skrll Adapt arm32. Thanks to scw for helping out.

Tested on my cats (SA1)

XXX hydra should die. i've made some changes, but no guarantees.
 1.6.24.1 03-Sep-2007  yamt sync with head.
 1.7.12.1 06-Nov-2007  matt sync with HEAD
 1.7.10.1 01-Jan-2008  chris Sync with HEAD.
 1.8.28.1 19-Jan-2009  skrll Sync with HEAD.
 1.8.20.1 04-May-2009  yamt sync with head.
 1.2 23-Nov-2001  thorpej No longer need <machine/cpufunc.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file cpufunc.h was added on branch nathanw_sa on 2002-02-28 04:05:54 +0000
 1.2 23-Nov-2001  thorpej No longer need <machine/cpus.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file cpus.h was added on branch nathanw_sa on 2002-02-28 04:05:54 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file db_machdep.h was added on branch kqueue on 2002-01-10 19:36:14 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file db_machdep.h was added on branch nathanw_sa on 2001-10-05 22:27:50 +0000
 1.2 24-Nov-2001  thorpej This is a Shark-specific file; don't need it here.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file devmap.h was added on branch nathanw_sa on 2002-02-28 04:05:55 +0000
 1.5 07-May-2013  matt Make all ports use a common disklabel.h with MAXPARTITIONS set to 16.
Only RAW_PART varies between ports.
 1.4 30-Aug-2011  bouyer branches: 1.4.2; 1.4.12;
Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 12-Jun-2005  dyoung Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/. That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such. I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.24.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file disklabel.h was added on branch kqueue on 2002-01-10 19:36:14 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file disklabel.h was added on branch nathanw_sa on 2001-10-05 22:27:50 +0000
 1.4.12.1 23-Jun-2013  tls resync from head
 1.4.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.2 25-Nov-2001  thorpej Move disklabel_acorn.h to <sys/disklabel_acorn.h>, much like we did
with disklabel_mbr.h. More cleanup yet to come.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file disklabel_acorn.h was added on branch nathanw_sa on 2002-02-28 04:05:55 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file elf_machdep.h was added on branch kqueue on 2002-01-10 19:36:14 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file elf_machdep.h was added on branch nathanw_sa on 2001-10-05 22:27:50 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file endian.h was added on branch kqueue on 2002-01-10 19:36:15 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file endian.h was added on branch nathanw_sa on 2001-10-05 22:27:50 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file endian_machdep.h was added on branch kqueue on 2002-01-10 19:36:15 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file endian_machdep.h was added on branch nathanw_sa on 2001-10-05 22:27:50 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file float.h was added on branch kqueue on 2002-01-10 19:36:15 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file float.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.2 11-Jan-2013  matt Remove FPA specific header.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.166; 1.1.176;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.176.1 25-Feb-2013  tls resync with head
 1.1.166.1 23-Jan-2013  yamt sync with head
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file fp.h was added on branch kqueue on 2002-01-10 19:36:15 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file fp.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file frame.h was added on branch kqueue on 2002-01-10 19:36:16 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file frame.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ieee.h was added on branch kqueue on 2002-01-10 19:36:16 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ieee.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ieeefp.h was added on branch kqueue on 2002-01-10 19:36:16 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ieeefp.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.3 29-Nov-2010  skrll KNF - remove names from function prototype declarations.
 1.2 14-Mar-2009  dsl branches: 1.2.4;
Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.132; 1.1.140; 1.1.146;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.146.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.140.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.132.1 04-May-2009  yamt sync with head.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file iic.h was added on branch kqueue on 2002-01-10 19:36:16 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file iic.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.2.4.1 05-Mar-2011  rmind sync with head
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file int_const.h was added on branch kqueue on 2002-01-10 19:36:17 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file int_const.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file int_fmtio.h was added on branch kqueue on 2002-01-10 19:36:17 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file int_fmtio.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file int_limits.h was added on branch kqueue on 2002-01-10 19:36:17 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file int_limits.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file int_mwgwtypes.h was added on branch kqueue on 2002-01-10 19:36:17 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file int_mwgwtypes.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file int_types.h was added on branch kqueue on 2002-01-10 19:36:18 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file int_types.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.9 13-Jun-2010  tsutsui Apply fixes for PR port-arm/43339:
Set proper IPL_SOFTfoo values even in !FAST_SOFTINTS case.
Some assertions in MI code expect they have unique values,
per comments from rmind@.

Also cleanup various "interrupt hierarchy" code since IPL_NONE and
IPL_SOFTfoo should not be set by any hardware interrupt establish functions.

Ok'ed by mrg@, tested on shark and hpcarm.
 1.8 27-Apr-2008  matt branches: 1.8.20; 1.8.22;
Merge kernel changes in matt-armv6 to HEAD.
 1.7 08-Jan-2008  matt branches: 1.7.6; 1.7.8; 1.7.10;
Add IPL_SOFT* defined at IPL_NONE.
Change _ARM32_INTR_H to _ACORN32_INTR_H
 1.6 03-Dec-2007  ad branches: 1.6.6;
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.5 21-Dec-2006  yamt branches: 1.5.6; 1.5.20; 1.5.22; 1.5.24; 1.5.26; 1.5.32;
merge yamt-splraiseipl branch.

- finish implementing splraiseipl (and makeiplcookie).
http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
- complete workqueue(9) and fix its ipl problem, which is reported
to cause audio skipping.
- fix netbt (at least compilation problems) for some ports.
- fix PR/33218.
 1.4 16-Jun-2003  thorpej branches: 1.4.18; 1.4.48; 1.4.50;
Rename IPL_IMP -> IPL_VM.
 1.3 04-Oct-2002  chris Fixup IPL_LEVELS to be correct. This matches the change I did to footbridge
based systems. Untested on shark, but is the right thing to do. I suspect
the original arm32 intr.h had the bug, and when the ports split we just took
the bug.
 1.2 26-Nov-2001  thorpej branches: 1.2.2; 1.2.6;
Use <arm/arm32/psl.h> rather than <machine/psl.h>.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file intr.h was added on branch nathanw_sa on 2002-01-08 00:22:45 +0000
 1.2.6.1 17-Mar-2002  thorpej IPL_IMP -> IPL_VM
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 26-Nov-2001  thorpej file intr.h was added on branch kqueue on 2002-01-10 19:36:18 +0000
 1.4.50.1 04-Nov-2006  yamt add IPL_STATCLOCK, IPL_SCHED, IPL_LOCK.
 1.4.48.1 12-Jan-2007  ad Sync with head.
 1.4.18.3 21-Jan-2008  yamt sync with head
 1.4.18.2 07-Dec-2007  yamt sync with head
 1.4.18.1 30-Dec-2006  yamt sync with head.
 1.5.32.2 18-Feb-2008  mjf Sync with HEAD.
 1.5.32.1 08-Dec-2007  mjf Sync with HEAD.
 1.5.26.3 23-Mar-2008  matt sync with HEAD
 1.5.26.2 28-Jan-2008  matt Given the that there are only 4 IPLs (ignoring soft IPLs), a number of
cleanups can be done:
Remove _SPL_* aliases.
Don't store irqmasks in ci_cpl, just make it an ipl level.
Add fast softint switching support.
 1.5.26.1 09-Jan-2008  matt sync with HEAD
 1.5.24.3 09-Feb-2008  chris Add initial reworking of acorn32 to use new interrupt code.

Note that cats probably won't work currently as acorn32 changed the way
that the pic is registered, it has to provide the irq lines as on acorn32
we attach the iomd after we need to register irqs for the pioc. So we
setup the irqs for iomd before malloc etc are available. This needs
to be fixed.

More work is still needed to update most of the podulebus drivers.
First I need to add podulebus wrapper for interrupts that handles the
maskaddr and maskbits. Exposing them to the common irq code is wrong.
 1.5.24.2 20-Jan-2008  chris Sync to HEAD.
 1.5.24.1 01-Jan-2008  chris Sync with HEAD.
 1.5.22.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.5.20.1 28-Feb-2008  rjs Sync with HEAD.
 1.5.6.1 03-Dec-2007  ad Sync with HEAD.
 1.6.6.1 08-Jan-2008  bouyer Sync with HEAD
 1.7.10.2 11-Aug-2010  yamt sync with head.
 1.7.10.1 16-May-2008  yamt sync with head.
 1.7.8.1 18-May-2008  yamt sync with head.
 1.7.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.8.22.1 03-Jul-2010  rmind sync with head
 1.8.20.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file io.h was added on branch kqueue on 2002-01-10 19:36:18 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file io.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.2 19-Jan-2008  chris Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.40; 1.1.98; 1.1.102; 1.1.104; 1.1.110; 1.1.118;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.118.1 20-Jan-2008  bouyer Sync with HEAD
 1.1.110.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.104.1 23-Mar-2008  matt sync with HEAD
 1.1.102.1 20-Jan-2008  chris Sync to HEAD.
 1.1.98.1 28-Feb-2008  rjs Sync with HEAD.
 1.1.40.1 21-Jan-2008  yamt sync with head
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ipkdb.h was added on branch kqueue on 2002-01-10 19:36:18 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ipkdb.h was added on branch nathanw_sa on 2001-10-05 22:27:51 +0000
 1.9 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.8 29-Apr-2008  matt branches: 1.8.8; 1.8.14;
Change IPL_LEVELS to NIPL.
current_spl_level is dead.
 1.7 11-Dec-2005  christos branches: 1.7.50; 1.7.52; 1.7.76; 1.7.78; 1.7.80;
merge ktrace-lwp.
 1.6 04-Jul-2004  chris Add more defines for the available IRQ's on a 7500.
 1.5 01-Jan-2004  chris Correct entries for IRQ_NEVENT1 and IRQ_NEVENT2. They were both out by one.

This now means a disk is detected on my RiscStation board.
 1.4 08-Feb-2003  chris branches: 1.4.2;
Add NEVENT1 and 2 as interrupt lines. Simtec docs for their 7500 board
refer to them as such (as does the ARM 7500FE pdf)
 1.3 17-Feb-2002  bjh21 Add prototype for stray_irqhandler().
 1.2 20-Dec-2001  thorpej branches: 1.2.2;
* Share a common vector page between arm26 and arm32.
* Use a common set of exception handlers for all arm32 platforms.
* New FIQ framework based on discussions with Ben Harris, shared
between arm26 and arm32.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file irqhandler.h was added on branch nathanw_sa on 2002-01-08 00:22:45 +0000
 1.2.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 20-Dec-2001  thorpej file irqhandler.h was added on branch kqueue on 2002-01-10 19:36:19 +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.80.2 04-May-2009  yamt sync with head.
 1.7.80.1 16-May-2008  yamt sync with head.
 1.7.78.1 18-May-2008  yamt sync with head.
 1.7.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.52.1 28-Jan-2008  matt Given the that there are only 4 IPLs (ignoring soft IPLs), a number of
cleanups can be done:
Remove _SPL_* aliases.
Don't store irqmasks in ci_cpl, just make it an ipl level.
Add fast softint switching support.
 1.7.50.1 09-Feb-2008  chris Add initial reworking of acorn32 to use new interrupt code.

Note that cats probably won't work currently as acorn32 changed the way
that the pic is registered, it has to provide the irq lines as on acorn32
we attach the iomd after we need to register irqs for the pioc. So we
setup the irqs for iomd before malloc etc are available. This needs
to be fixed.

More work is still needed to update most of the podulebus drivers.
First I need to add podulebus wrapper for interrupts that handles the
maskaddr and maskbits. Exposing them to the common irq code is wrong.
 1.8.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.8.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.2 06-Jan-2002  thorpej Acorn systems do not support the ISA bus; remove these files.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file isa_machdep.h was added on branch nathanw_sa on 2002-02-28 04:05:55 +0000
 1.2 06-Jan-2002  thorpej Acorn systems do not support the ISA bus; remove these files.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file isapnp_machdep.h was added on branch nathanw_sa on 2002-02-28 04:05:55 +0000
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 02-Jul-2004  drochner just include <sys/joystick.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file joystick.h was added on branch kqueue on 2002-01-10 19:36:19 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file joystick.h was added on branch nathanw_sa on 2001-10-05 22:27:52 +0000
 1.2 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file katelib.h was added on branch nathanw_sa on 2002-02-28 04:05:55 +0000
 1.4 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.3 11-Dec-2005  christos branches: 1.3.4; 1.3.8;
merge ktrace-lwp.
 1.2 08-May-2004  jmc branches: 1.2.12;
Add proper include guards..
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file kbd.h was added on branch kqueue on 2002-01-10 19:36:19 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file kbd.h was added on branch nathanw_sa on 2001-10-05 22:27:52 +0000
 1.2.12.1 30-Dec-2006  yamt sync with head.
 1.3.8.1 03-Sep-2006  yamt sync with head.
 1.3.4.1 09-Sep-2006  rpaulo sync with head
 1.2 22-Nov-2001  thorpej Remove kerndebug.h from non-Shark code (it's a Shark-specific header
file, and probably should be done away with anyway).
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file kerndebug.h was added on branch nathanw_sa on 2002-02-28 04:05:55 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file limits.h was added on branch kqueue on 2002-01-10 19:36:19 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file limits.h was added on branch nathanw_sa on 2001-10-05 22:27:52 +0000
 1.6 06-Aug-2014  joerg Consistently define WARN in a way that passes format string checks, i.e.
always uses the same number of arguments as given in the format string.
 1.5 14-Mar-2009  dsl branches: 1.5.22; 1.5.36;
Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.4 28-Apr-2008  martin branches: 1.4.8; 1.4.14;
Remove clause 3 and 4 from TNF licenses
 1.3 25-Jan-2006  christos branches: 1.3.74; 1.3.76; 1.3.78;
free -> dealloc
unsigned -> size_t for alloc/dealloc
 1.2 28-Dec-2002  reinoud branches: 1.2.18; 1.2.30;
Add the loadfile_machdep.h as needed for native bootloaders
 1.1 03-Nov-2001  reinoud branches: 1.1.2; 1.1.4; 1.1.6;
Not used in this port yet but since it is supposed to be a generic machine
dependend loadfile extention i copied it from arch/arm32/include where it
was committed as part of the ofwboot for sharks where Jason is working on.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 03-Nov-2001  thorpej file loadfile_machdep.h was added on branch kqueue on 2002-01-10 19:36:20 +0000
 1.1.4.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.4.1 03-Nov-2001  thorpej file loadfile_machdep.h was added on branch nathanw_sa on 2002-12-29 19:15:04 +0000
 1.1.2.2 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.1.2.1 03-Nov-2001  thorpej file loadfile_machdep.h was added on branch thorpej-mips-cache on 2001-11-12 21:16:14 +0000
 1.2.30.1 01-Feb-2006  yamt sync with head.
 1.2.18.1 21-Jun-2006  yamt sync with head.
 1.3.78.2 04-May-2009  yamt sync with head.
 1.3.78.1 16-May-2008  yamt sync with head.
 1.3.76.1 18-May-2008  yamt sync with head.
 1.3.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.5.36.1 10-Aug-2014  tls Rebase.
 1.5.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10 13-Feb-2022  riastradh acorn32: Partial __cpu_simple_lock membar audit.

For __cpu_simple_unlock, __insn_barrier is absolutely required.
Whether we need a stronger memory barrier, I don't know offhand and
I'm not sure what the right architecture manual to consult is -- it's
not clear why this isn't just using the generic arm lock.h.
 1.9 15-Jan-2009  pooka Use kernel spinlocks only with _HARDKERNEL
 1.8 12-Oct-2008  pooka branches: 1.8.2;
__cpu_simple_lock_t changed to unsigned char on arm kernels almost
two years ago. Catchup here also, although it seems nothing uses
acorn32 kernels with MULTIPROCESSOR.
 1.7 28-Apr-2008  martin branches: 1.7.6;
Remove clause 3 and 4 from TNF licenses
 1.6 28-Dec-2005  perry branches: 1.6.76; 1.6.78; 1.6.80;
inline -> __inline
 1.5 24-Dec-2005  perry Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 26-Sep-2003  nathanw branches: 1.3.16;
Move __cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED to machine/types.h
so that they can be used in a namespace-friendly way.
 1.2 07-Oct-2002  bjh21 branches: 1.2.2; 1.2.8;
Special locking primitives for use in Hydra kernels. These include a cache
invalidation after every lock to ensure that changes made by other CPUs are
visible. This has nasty performance implications, but it does allow my
Hydrated Risc PC to run printf() on all its CPUs at once without corrupting
the message buffer.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file lock.h was added on branch kqueue on 2002-01-10 19:36:20 +0000
 1.1.4.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file lock.h was added on branch nathanw_sa on 2002-10-18 02:33:38 +0000
 1.2.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.8.1 03-Aug-2004  skrll Sync with HEAD
 1.2.2.1 24-Oct-2002  bjh21 Sync with trunk.
 1.3.16.1 21-Jun-2006  yamt sync with head.
 1.6.80.2 04-May-2009  yamt sync with head.
 1.6.80.1 16-May-2008  yamt sync with head.
 1.6.78.1 18-May-2008  yamt sync with head.
 1.6.76.2 17-Jan-2009  mjf Sync with HEAD.
 1.6.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.6.1 19-Oct-2008  haad Sync with HEAD.
 1.8.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.1 30-Nov-2024  christos branches: 1.1.4;
Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.1.4.2 02-Aug-2025  perseant Sync with HEAD
 1.1.4.1 30-Nov-2024  perseant file lwp_private.h was added on branch perseant-exfatfs on 2025-08-02 05:55:20 +0000
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 30-Sep-2003  thorpej branches: 1.1.4;
New generic I2C framework. Supports bit-bang and "intelligent" I2C
interface controllers (of varying intelligence levels).

Contributed by Wasabi Systems, Inc. Primarily written by Steve Woodford,
with some modification by me.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 30-Sep-2003  skrll file machdep.h was added on branch ktrace-lwp on 2004-08-03 10:30:55 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file math.h was added on branch kqueue on 2002-01-10 19:36:20 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file math.h was added on branch nathanw_sa on 2001-10-05 22:27:52 +0000
 1.2 17-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.1 14-Nov-2001  thorpej branches: 1.1.2;
file mcontext.h was initially added on branch nathanw_sa.
 1.1.2.1 14-Nov-2001  thorpej ARM-specific mcontext support. From Klaus Klein <kleink@netbsd.org>.
 1.3 13-Mar-2004  bjh21 NetBSD/acorn32 no longer has busmouse(4), so remove <machine/mouse.h>.
 1.2 19-Apr-2002  wiz branches: 1.2.12;
Complete renaming of opms to opms (was partly named pms, externally and
internally). Move arm/iomd/pms* to arm/iomd/opms*. Mechanical change,
tested by cross-compiling a kernel from i386.

Approved by christos.

XXX: What are arm/arm32/conf.c and arm/include/conf.h good for?
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file mouse.h was added on branch kqueue on 2002-01-10 19:36:20 +0000
 1.1.4.2 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file mouse.h was added on branch nathanw_sa on 2002-06-20 03:37:19 +0000
 1.2.12.1 03-Aug-2004  skrll Sync with HEAD
 1.2 09-Feb-2007  ad branches: 1.2.4;
Merge newlock2 to head.
 1.1 22-Dec-2006  ad branches: 1.1.2;
file mutex.h was initially added on branch newlock2.
 1.1.2.1 22-Dec-2006  ad Pull in CPU specific stubs.
 1.2.4.2 26-Feb-2007  yamt sync with head.
 1.2.4.1 09-Feb-2007  yamt file mutex.h was added on branch yamt-lazymbuf on 2007-02-26 09:05:29 +0000
 1.1 03-Aug-2014  martin branches: 1.1.2; 1.1.6;
Add a few missing netbsd32_machdep.h files
 1.1.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.1 03-Aug-2014  tls file netbsd32_machdep.h was added on branch tls-maxphys on 2014-08-20 00:02:40 +0000
 1.1.2.2 10-Aug-2014  tls Rebase.
 1.1.2.1 03-Aug-2014  tls file netbsd32_machdep.h was added on branch tls-earlyentropy on 2014-08-10 06:53:48 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ofisa_machdep.h was added on branch kqueue on 2002-01-10 19:36:21 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ofisa_machdep.h was added on branch nathanw_sa on 2001-10-05 22:27:52 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ofw.h was added on branch kqueue on 2002-01-10 19:36:21 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ofw.h was added on branch nathanw_sa on 2001-10-05 22:27:52 +0000
 1.6 03-Jan-2003  thorpej Remove obsolete MACHINE_ARCH -> arm32
 1.5 12-Feb-2002  thorpej * For platforms which are already ELF, remove the definition of
MACHINE_ARCH since <arm/param.h> already sets it correctly to "arm".
* For platforms which are not yet ELF, defined MACHINE_ARCH to "arm32"
if __ELF__ is not defined by the C preprocessor.
* In <arm/param.h>, clarify the rules about when MACHINE and
MACHINE_ARCH are defined, and to what. Also, for ELF platforms,
int the non-_KERNEL case, force both MACHINE and MACHINE_ARCH to "arm",
rather than allowing platform-specifc code to define either.
 1.4 18-Nov-2001  bjh21 branches: 1.4.2;
Match multiple-include-protection macros to name of file.
 1.3 18-Nov-2001  bjh21 Roll back last change. Acorn32, being a major port, shouldn't switch to ELF
until the ABI is finalized.
 1.2 31-Oct-2001  reinoud branches: 1.2.2;
Change MACHINE_ARCH to arm making it ELF now.
 1.1 05-Oct-2001  reinoud branches: 1.1.2;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.2.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.2.2.4 03-Jan-2003  thorpej Sync with HEAD.
 1.2.2.3 28-Feb-2002  nathanw Catch up to -current.
 1.2.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.2.2.1 31-Oct-2001  nathanw file param.h was added on branch nathanw_sa on 2002-01-08 00:22:45 +0000
 1.4.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.4.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.1 18-Nov-2001  thorpej file param.h was added on branch kqueue on 2002-01-10 19:36:21 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file pcb.h was added on branch kqueue on 2002-01-10 19:36:21 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file pcb.h was added on branch nathanw_sa on 2001-10-05 22:27:52 +0000
 1.2 21-Nov-2001  soren pccons is not used by acorn32.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file pccons.h was added on branch nathanw_sa on 2002-02-28 04:05:56 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file pci_machdep.h was added on branch kqueue on 2002-01-10 19:36:22 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file pci_machdep.h was added on branch nathanw_sa on 2001-10-05 22:27:52 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file pio.h was added on branch kqueue on 2002-01-10 19:36:22 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file pio.h was added on branch nathanw_sa on 2001-10-05 22:27:52 +0000
 1.2 23-Nov-2001  thorpej branches: 1.2.2;
Extra whitespace removal.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file pmap.h was added on branch nathanw_sa on 2002-01-08 00:22:45 +0000
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 23-Nov-2001  thorpej file pmap.h was added on branch kqueue on 2002-01-10 19:36:22 +0000
 1.2 12-Jul-2018  maxv Remove the kernel PMC code. Sent yesterday on tech-kern@.

This change:

* Removes "options PERFCTRS", the associated includes, and the associated
ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is
good.

* Removes the PMC code of ARM XSCALE.

* Removes all the pmc.h files. They were all empty, except for ARM XSCALE.

* Reorders the x86 PMC code not to rely on the legacy pmc.h file. The
definitions are put in sysarch.h.

* Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control
and sys_pmc_get_info syscalls. They are marked as OBSOL in kern,
netbsd32 and rump.

* Removes the pmc_evid_t and pmc_ctr_t types.

* Removes all the associated man pages. The sets are marked as obsolete.
 1.1 07-Aug-2002  briggs branches: 1.1.2; 1.1.4; 1.1.6; 1.1.206; 1.1.208;
Implement pmc(9) -- An interface to hardware performance monitoring
counters. These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface. Initially, the Intel XScale
counters are the only ones supported.
 1.1.208.1 10-Jun-2019  christos Sync with HEAD
 1.1.206.1 28-Jul-2018  pgoyette Sync with HEAD
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 07-Aug-2002  jdolecek file pmc.h was added on branch kqueue on 2002-09-06 08:31:08 +0000
 1.1.4.2 30-Aug-2002  gehenna catch up with -current.
 1.1.4.1 07-Aug-2002  gehenna file pmc.h was added on branch gehenna-devsw on 2002-08-30 00:18:43 +0000
 1.1.2.2 13-Aug-2002  nathanw Catch up to -current.
 1.1.2.1 07-Aug-2002  nathanw file pmc.h was added on branch nathanw_sa on 2002-08-13 01:02:37 +0000
 1.5 10-May-2012  skrll _int*_t -> uint*_t

Same code before and after.
 1.4 19-Jul-2011  dyoung branches: 1.4.2; 1.4.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.3 03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.2 14-Mar-2009  dsl branches: 1.2.4; 1.2.6; 1.2.10;
Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.132; 1.1.140; 1.1.146;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.146.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.140.1 28-Apr-2009  skrll Sync with HEAD.
 1.1.132.1 04-May-2009  yamt sync with head.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file podulebus_machdep.h was added on branch kqueue on 2002-01-10 19:36:23 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file podulebus_machdep.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.2.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.2.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1 12-Jun-2011  rmind sync with head
 1.4.6.1 02-Jun-2012  mrg sync to latest -current.
 1.4.2.1 23-May-2012  yamt sync with head.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file proc.h was added on branch kqueue on 2002-01-10 19:36:23 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file proc.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file profile.h was added on branch kqueue on 2002-01-10 19:36:23 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file profile.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.2 23-Nov-2001  thorpej Don't need a <machine/profileio.h> on these platforms.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file profileio.h was added on branch nathanw_sa on 2002-02-28 04:05:56 +0000
 1.2 26-Nov-2001  thorpej Delete <machine/psl.h> from the ARM ports. It's not a header that
we need to provide to MI code or to userland, and it's also not a
header that generic ARM code should be including directly.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file psl.h was added on branch nathanw_sa on 2002-02-28 04:05:56 +0000
 1.2 23-Nov-2001  thorpej No longer need <machine/pte.h>.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file pte.h was added on branch nathanw_sa on 2002-02-28 04:05:56 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ptrace.h was added on branch kqueue on 2002-01-10 19:36:23 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ptrace.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file reg.h was added on branch kqueue on 2002-01-10 19:36:24 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file reg.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file rtc.h was added on branch kqueue on 2002-01-10 19:36:24 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file rtc.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.2 09-Feb-2007  ad branches: 1.2.4;
Merge newlock2 to head.
 1.1 22-Dec-2006  ad branches: 1.1.2;
file rwlock.h was initially added on branch newlock2.
 1.1.2.1 22-Dec-2006  ad Pull in CPU specific stubs.
 1.2.4.2 26-Feb-2007  yamt sync with head.
 1.2.4.1 09-Feb-2007  yamt file rwlock.h was added on branch yamt-lazymbuf on 2007-02-26 09:05:29 +0000
 1.2 07-Sep-2015  dholland Final bit of PR 41200: headers that declare ioctls should include sys/ioccom.h.
This covers most if not all of the MD headers.

XXX: a lot of the ioctl definitions in some of these files are cutpasted.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.176; 1.1.196;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.196.1 22-Sep-2015  skrll Sync with HEAD
 1.1.176.1 03-Dec-2017  jdolecek update from HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file scrio.h was added on branch kqueue on 2002-01-10 19:36:24 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file scrio.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file setjmp.h was added on branch kqueue on 2002-01-10 19:36:24 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file setjmp.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file signal.h was added on branch kqueue on 2002-01-10 19:36:25 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file signal.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.2 17-Jul-2011  joerg Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file stdarg.h was added on branch kqueue on 2002-01-10 19:36:25 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file stdarg.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file sysarch.h was added on branch kqueue on 2002-01-10 19:36:25 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file sysarch.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file trap.h was added on branch kqueue on 2002-01-10 19:36:25 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file trap.h was added on branch nathanw_sa on 2001-10-05 22:27:53 +0000
 1.8 26-Jan-2017  christos provide __HAVE_COMPAT_NETBSD32 and fix multiple include protection consistently.
 1.7 20-Jan-2008  joerg branches: 1.7.54; 1.7.74; 1.7.78; 1.7.82;
Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
 1.6 03-Sep-2006  bjh21 branches: 1.6.28; 1.6.32; 1.6.34; 1.6.40; 1.6.48;
Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere.
 1.5 03-Sep-2006  bjh21 Switch acorn32 to MI inittodr() etc.
 1.4 03-Aug-2006  bjh21 Support for timecounters on acorn32, supplied by Mike Pumford. Only
compile-tested by me, but he promises it works.
 1.3 28-Feb-2002  simonb branches: 1.3.34; 1.3.48; 1.3.52;
Use "#define<tab>".
 1.2 22-Nov-2001  thorpej branches: 1.2.2;
Add 26-bit and 32-bit types.h files, which indicate the programming
model in use for a given platform (__PROG26 vs __PROG32), then pulls
in <arm/types.h>. Change each ARM port to pull in <arm/arm26/types.h>
or <arm/arm32/types.h> as appropriate. Change all references to PROG26
and PROG32 to __PROG26 and __PROG32. Eliminate the opt_progmode.h
header file.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file types.h was added on branch nathanw_sa on 2002-01-08 00:22:45 +0000
 1.2.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 22-Nov-2001  thorpej file types.h was added on branch kqueue on 2002-01-10 19:36:26 +0000
 1.3.52.2 14-Sep-2006  yamt sync with head.
 1.3.52.1 11-Aug-2006  yamt sync with head
 1.3.48.1 09-Sep-2006  rpaulo sync with head
 1.3.34.2 21-Jan-2008  yamt sync with head
 1.3.34.1 30-Dec-2006  yamt sync with head.
 1.6.48.1 23-Jan-2008  bouyer Sync with HEAD.
 1.6.40.1 18-Feb-2008  mjf Sync with HEAD.
 1.6.34.1 23-Mar-2008  matt sync with HEAD
 1.6.32.2 09-Feb-2008  chris Add initial reworking of acorn32 to use new interrupt code.

Note that cats probably won't work currently as acorn32 changed the way
that the pic is registered, it has to provide the irq lines as on acorn32
we attach the iomd after we need to register irqs for the pioc. So we
setup the irqs for iomd before malloc etc are available. This needs
to be fixed.

More work is still needed to update most of the podulebus drivers.
First I need to add podulebus wrapper for interrupts that handles the
maskaddr and maskbits. Exposing them to the common irq code is wrong.
 1.6.32.1 27-Jan-2008  chris Sync to HEAD.
 1.6.28.1 28-Feb-2008  rjs Sync with HEAD.
 1.7.82.1 21-Apr-2017  bouyer Sync with HEAD
 1.7.78.1 20-Mar-2017  pgoyette Sync with HEAD
 1.7.74.1 05-Feb-2017  skrll Sync with HEAD
 1.7.54.1 03-Dec-2017  jdolecek update from HEAD
 1.2 23-Nov-2001  thorpej No longer need <machine/undefined.h>.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file undefined.h was added on branch nathanw_sa on 2002-02-28 04:05:56 +0000
 1.2 17-Jul-2011  joerg Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file varargs.h was added on branch kqueue on 2002-01-10 19:36:26 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file varargs.h was added on branch nathanw_sa on 2001-10-05 22:27:54 +0000
 1.5 14-Aug-2006  bjh21 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long. It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
 1.4 11-Dec-2005  christos branches: 1.4.4; 1.4.8;
merge ktrace-lwp.
 1.3 09-Jun-2005  he branches: 1.3.2;
Adapt to compiling with -Wcast-qual and -Wshadow.
 1.2 08-May-2004  jmc Add proper include guards..
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.24.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.24.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.2 03-Aug-2004  skrll Sync with HEAD
 1.1.24.1 03-Jul-2003  wrstuden lwp-ify a lot of the arm drivers. Needed to get acorn32/GENERIC compiling.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file vconsole.h was added on branch kqueue on 2002-01-10 19:36:26 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file vconsole.h was added on branch nathanw_sa on 2001-10-05 22:27:54 +0000
 1.3.2.2 30-Dec-2006  yamt sync with head.
 1.3.2.1 21-Jun-2006  yamt sync with head.
 1.4.8.1 03-Sep-2006  yamt sync with head.
 1.4.4.1 09-Sep-2006  rpaulo sync with head
 1.2 05-Feb-2024  andvar s/dependancies/dependencies/ and s/independantly/independently/ in comments and
distrib notes.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file vidc_machdep.h was added on branch kqueue on 2002-01-10 19:36:26 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file vidc_machdep.h was added on branch nathanw_sa on 2001-10-05 22:27:54 +0000
 1.28 27-Mar-2019  christos - expose vmparams to userland on arm, like other archs do.
- remove unneeded includes
 1.27 02-Nov-2017  skrll branches: 1.27.4;
ISA exists on more that just shark. Fix a comment about this.
 1.26 23-Feb-2015  joerg Use default PAGER_MAP_DEFAULT_SIZE for ARM and PowerPC, exception
acorn26. This bumps the KVA reservation from 4MB to 16MB and avoids
long hangs on my Cubietruck under IO. acorn26 is kept as it does have a
ridiculous low 32MB KVA limit.
 1.25 18-Feb-2012  christos branches: 1.25.2; 1.25.16;
expose more for kmemuser/fix include protection
 1.24 17-Feb-2012  skrll Spell _KMEMUSER correctly

Spotted by riz@
 1.23 17-Feb-2012  christos expose more for kmemuser
 1.22 06-Nov-2010  uebayasi branches: 1.22.8; 1.22.12;
Remove incomplete, never worked dynamic run-time memory registration
(uvm_page_physload(9)). This functionality will be re-added later.
 1.21 25-Oct-2007  yamt branches: 1.21.40; 1.21.42;
defparam PAGER_MAP_SIZE.
 1.20 11-Dec-2005  christos branches: 1.20.30; 1.20.48; 1.20.50; 1.20.52; 1.20.56;
merge ktrace-lwp.
 1.19 07-Aug-2003  agc branches: 1.19.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.18 22-May-2003  thorpej branches: 1.18.2;
Move KERNEL_VM_SIZE into the C files where its used.
 1.17 22-May-2003  thorpej Use virtual_avail and virtual_end to compute the size of the available
kernel VM space for VM_MAX_KERNEL_BUF, and move the definition into
generic ARM code.
 1.16 21-May-2003  thorpej Move KERNEL_VM_BASE inside where it is used (it won't be there for long).
 1.15 21-May-2003  thorpej Remove one last old pmap remnant.
 1.14 03-May-2003  thorpej Don't expose KERNEL_TEXT_BASE outside of board-specific code. This gives
individual board start-up code more flexibility about where the kernel
starts in the kernel address space.
 1.13 28-Apr-2003  thorpej Don't define APTE_BASE if ARM32_PMAP_NEW is defined; the new pmap
doesn't use it.
 1.12 02-Apr-2003  thorpej Use PAGE_SIZE rather than NBPG.
 1.11 14-Sep-2002  thorpej Back out previous; it breaks binary compatibility between platforms
in the same MACHINE_ARCH.
 1.10 14-Sep-2002  mycroft Move some #defines out of _KERNEL.
 1.9 23-Mar-2002  thorpej * Change all uses of KERNEL_SPACE_START to KERNEL_BASE.
* Delete now unused KERNEL_SPACE_START.
 1.8 23-Mar-2002  thorpej Define KERNEL_TEXT_BASE, APTE_BASE, and KERNEL_VM_BASE in terms
of KERNEL_BASE.
 1.7 23-Mar-2002  thorpej * Rename PROCESS_PAGE_TBLS_BASE -> PTE_BASE
* Rename ALT_PAGE_TBLS_BASE -> APTE_BASE
* Garbage-collect PAGE_TABLE_SPACE_START
 1.6 03-Mar-2002  chris Implement pmap_growkernel for arm32 based ports.
Note that this has been compiled on some systems, cats, IQ80310, IPAQ, netwinder and shark (note that shark's build is currently broken due to other reasons), but only actually run on cats.
Shark doesn't make use of the functionality as I believe there has to be a correlation between OFW and the kernel tables so that calls into OFW work.
 1.5 23-Nov-2001  thorpej branches: 1.5.2;
Move even more constants into the shared 32-bit vmparam.h header.
Cleanup elsewhere will have to be done before we can sanitize this
header any further.
 1.4 23-Nov-2001  thorpej - Move more contents of various <machine/vmparam.h> files into
<arm/arm32/vmparam.h> (mostly the stuff that's tied to the pmap
implementation).
- Since the MMU definitions in pte.h are specific to ARM processors
that support 32-bit mode, move pte.h to <arm/arm32/pte.h>.
- Make the Netwinder startup file build again (use PT_B|PT_C, rather
than PT_CACHEABLE, since the latter expands to a variable these days).
 1.3 15-Nov-2001  soren MAXSLP is defined to be a machine-independent scheduling parameter,
so move it into sys/param.h.
 1.2 11-Nov-2001  thorpej branches: 1.2.2;
Pull in common 32-bit ARM VM parameters.
 1.1 05-Oct-2001  reinoud branches: 1.1.2;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.2.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.2.2.4 17-Apr-2002  nathanw Catch up to -current.
 1.2.2.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.2.2.1 11-Nov-2001  nathanw file vmparam.h was added on branch nathanw_sa on 2002-01-08 00:22:45 +0000
 1.5.2.5 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.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.5.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.5.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.2.1 23-Nov-2001  thorpej file vmparam.h was added on branch kqueue on 2002-01-10 19:36:27 +0000
 1.18.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.18.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.18.2.1 03-Aug-2004  skrll Sync with HEAD
 1.19.16.1 27-Oct-2007  yamt sync with head.
 1.20.56.1 13-Nov-2007  bouyer Sync with HEAD
 1.20.52.1 06-Nov-2007  matt sync with HEAD
 1.20.50.1 01-Jan-2008  chris Sync with HEAD.
 1.20.48.1 28-Oct-2007  joerg Sync with HEAD.
 1.20.30.1 03-Dec-2007  ad Sync with HEAD.
 1.21.42.1 05-Mar-2011  rmind sync with head
 1.21.40.1 26-Apr-2010  uebayasi Remove the unfinished code to add a memory segment after uvm_page_init().
It doesn't even compile.

(In the future, we should allocate struct vm_page [] on the added memory
segment for NUMA's sake.)
 1.22.12.2 24-Feb-2012  mrg sync to -current.
 1.22.12.1 18-Feb-2012  mrg merge to -current.
 1.22.8.1 17-Apr-2012  yamt sync with head
 1.25.16.1 06-Apr-2015  skrll Sync with HEAD
 1.25.2.1 03-Dec-2017  jdolecek update from HEAD
 1.27.4.1 10-Jun-2019  christos Sync with HEAD
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 08-May-2004  kleink branches: 1.1.2;
Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.
 1.1.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.2.2 03-Aug-2004  skrll Sync with HEAD
 1.1.2.1 08-May-2004  skrll file wchar_limits.h was added on branch ktrace-lwp on 2004-08-03 10:30:55 +0000
 1.7 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.6 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.5 12-May-2009  cegger use device_xname(), use aprint_*_dev
 1.4 16-Apr-2008  cegger branches: 1.4.4; 1.4.18;
device_t / softc split. From Hans Rosenfeld.
 1.3 29-Mar-2006  thorpej branches: 1.3.64;
Use device_cfdata().
 1.2 11-Dec-2005  christos branches: 1.2.4; 1.2.6; 1.2.8; 1.2.10; 1.2.12;
merge ktrace-lwp.
 1.1 22-Jan-2004  bjh21 branches: 1.1.4; 1.1.18;
Add support for using ppbus(4) on acorn32. Only tested to the extent that it
attaches correctly.
 1.1.18.1 21-Jun-2006  yamt sync with head.
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 22-Jan-2004  skrll file atppc_pioc.c was added on branch ktrace-lwp on 2004-08-03 10:30:55 +0000
 1.2.12.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.2.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.8.1 01-Apr-2006  yamt sync with head.
 1.2.6.1 22-Apr-2006  simonb Sync with head.
 1.2.4.1 09-Sep-2006  rpaulo sync with head
 1.3.64.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.4.1 16-May-2009  yamt sync with head
 1.17 08-Dec-2018  thorpej Clean up initialization of com_regs structure, in preparation for
some additional changers.
 1.16 19-Jul-2011  dyoung branches: 1.16.52; 1.16.54;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.15 03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.14 28-Apr-2008  martin branches: 1.14.22; 1.14.28; 1.14.32;
Remove clause 3 and 4 from TNF licenses
 1.13 14-Mar-2008  cube branches: 1.13.2; 1.13.4;
Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend). Use proper types and ansify where appropriate.
 1.12 29-Feb-2008  dyoung Use pmf_device_register1() instead of shutdownhook_establish() to
register com_cleanup() as the shutdown hook.

Add a generic suspend routine. Suspend and resume com@isa.

Protect against dereferencing a NULL softc in comioctl().

Destroy both a mutex and a callout in com_detach().

Cosmetic: use aprint_*_dev(). Use PMF_FN_ARGS, PMF_FN_PROTO.
 1.11 13-Jul-2006  gdamore branches: 1.11.34; 1.11.36; 1.11.56; 1.11.60;
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.10 11-Dec-2005  christos branches: 1.10.4; 1.10.8; 1.10.16;
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 14-Jun-2003  thorpej branches: 1.8.2;
Also pass a type argument to comcnattach() and com_kgdb_attach().
comspeed() (and thus cominit()) may need this information.
 1.7 02-Oct-2002  thorpej Fix script-o's in previous.
 1.6 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.5 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4 10-Mar-2002  bjh21 __RCSID -> __KERNEL_RCSID
 1.3 17-Feb-2002  bjh21 cons_decl(com), to get prototypes.
 1.2 27-Nov-2001  thorpej branches: 1.2.2;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.5 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file com_pioc.c was added on branch nathanw_sa on 2002-01-08 00:22:45 +0000
 1.2.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 27-Nov-2001  thorpej file com_pioc.c was added on branch kqueue on 2002-01-10 19:36:27 +0000
 1.8.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.8.2.1 03-Aug-2004  skrll Sync with HEAD
 1.9.16.2 17-Mar-2008  yamt sync with head.
 1.9.16.1 30-Dec-2006  yamt sync with head.
 1.10.16.1 20-Jun-2006  gdamore COM_INIT_REGS-ify acorn32.
 1.10.8.1 11-Aug-2006  yamt sync with head
 1.10.4.1 09-Sep-2006  rpaulo sync with head
 1.11.60.2 02-Jun-2008  mjf Sync with HEAD.
 1.11.60.1 03-Apr-2008  mjf Sync with HEAD.
 1.11.56.1 24-Mar-2008  keiichi sync with head.
 1.11.36.1 23-Mar-2008  matt sync with HEAD
 1.11.34.1 21-Mar-2008  chris Sync with head.
 1.13.4.1 16-May-2008  yamt sync with head.
 1.13.2.1 18-May-2008  yamt sync with head.
 1.14.32.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.14.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.14.22.1 12-Jun-2011  rmind sync with head
 1.16.54.1 10-Jun-2019  christos Sync with HEAD
 1.16.52.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.65 28-Aug-2023  andvar acorn32/fdc(4): fix modifiers blkno values to %lld and
fix typos in fr_r10-r12 variables (fh->fr).

Fixes acorn32 build with FD_DEBUG enabled option.
 1.64 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.63 24-Apr-2021  thorpej branches: 1.63.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.62 20-Nov-2020  thorpej branches: 1.62.2;
malloc(9) -> kmem(9)
 1.61 10-Nov-2019  chs branches: 1.61.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.60 08-Feb-2019  mrg make *fd*.c's fd_dev_to_type() always a static inline. some
have it as a const, and have code to copy the defaults to
modify them before using them, but that probably requires a
real test to feel confident in changing.
 1.59 03-Sep-2018  riastradh Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
 1.58 26-Apr-2015  mlelstv branches: 1.58.2; 1.58.8; 1.58.16; 1.58.18;
Use C99-style initializers for struct dkdriver.
 1.57 02-Jan-2015  christos We have three sets of DTYPE_ constants in the kernel:
altq Drop Type
disklabel Disk Type
file Descriptor Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.
 1.56 25-Oct-2014  skrll branches: 1.56.2;
Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.55 25-Jul-2014  dholland Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.54 25-Jul-2014  dholland Add d_discard to all struct bdevsw instances I could find.

I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.
 1.53 16-Mar-2014  dholland branches: 1.53.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.52 27-Oct-2012  chs branches: 1.52.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.51 19-Jul-2011  dyoung branches: 1.51.2; 1.51.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.50 03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.49 09-Dec-2010  uebayasi branches: 1.49.2; 1.49.6;
Fix DEBUG build.
 1.48 28-Nov-2010  hannken As md(4) no longer has "needs-count" there is no "md.h" anymore.
Remove the inclusion of this file.

Acorn32 now always builds load_memory_disc_from_floppy(). This should
not be a problem as all configs have md(4).

Observed by: Masao Uebayashi <uebayasi@netbsd.org>
 1.47 24-Feb-2010  dyoung branches: 1.47.2;
Use device_private().
 1.46 12-May-2009  cegger branches: 1.46.2;
use device_xname()
 1.45 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.44 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.43 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.42 14-Feb-2009  cegger build & bugfix: spl0 is an alias for splx(IPL_NONE), which effectively results in calling splx() twice.
 1.41 13-Jan-2009  yamt branches: 1.41.2;
g/c BUFQ_FOO() macros and use bufq_foo() directly.
 1.40 16-Dec-2008  christos replace bitmask_snprintf(9) with snprintb(3)
 1.39 12-Jun-2008  cegger branches: 1.39.4;
use device_lookup_private to get softc
 1.38 28-Apr-2008  martin branches: 1.38.2; 1.38.4;
Remove clause 3 and 4 from TNF licenses
 1.37 08-Jan-2008  matt branches: 1.37.6; 1.37.8; 1.37.10;
Remove unused variable.
 1.36 05-Jan-2008  ad Missing arg to cv_timedwait().
 1.35 02-Jan-2008  ad Merge vmlocking2 to head.
 1.34 25-Oct-2007  yamt branches: 1.34.2; 1.34.4; 1.34.8;
fix warnings.
 1.33 17-Oct-2007  garbled 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.32 08-Oct-2007  ad branches: 1.32.2;
Merge brelse() changes from the vmlocking branch.
 1.31 08-Oct-2007  ad Merge disk init changes from the vmlocking branch. These seperate init /
destroy of 'struct disk' from attach / detach.
 1.30 29-Jul-2007  ad branches: 1.30.2; 1.30.4; 1.30.6; 1.30.8; 1.30.10;
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.29 09-Jul-2007  ad branches: 1.29.2; 1.29.4;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.28 04-Mar-2007  christos branches: 1.28.2; 1.28.4; 1.28.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.27 15-Feb-2007  reinoud branches: 1.27.2;
Rename the B_XXX flag to B_DEVPRIVATE flag since it was never used for
debugging and its main use is in device drivers. Its used there to signal
that the flagged buffer has a special meaning or should be handled
differently.

OK'd by Bill Sudenmund on tech-kern.
 1.26 14-Apr-2006  blymn Make i/o statistics collection more generic, include tape drives and
nfs mounts in the set of devices that statistics will be reported on.
 1.25 26-Mar-2006  thorpej Use device_unit().
 1.24 23-Feb-2006  thorpej branches: 1.24.2; 1.24.4; 1.24.6;
Use device_parent().
 1.23 24-Dec-2005  perry branches: 1.23.2; 1.23.4; 1.23.6;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.22 11-Dec-2005  christos merge ktrace-lwp.
 1.21 15-Oct-2005  yamt - change the way to specify a bufq strategy. (by string rather than by number)
- rather than embedding bufq_state in driver softc,
have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
from sys/bufq.h to sys/bufq_impl.h.
(is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c. (not tested)
 1.20 09-Jun-2005  he branches: 1.20.2;
Adapt to compiling with -Wcast-qual and -Wshadow.
 1.19 28-Oct-2004  yamt move buffer queue related stuffs from buf.h to their own header, bufq.h.
 1.18 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.17 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.16 18-Jun-2003  drochner branches: 1.16.2;
don't #include <sys/dkstat.h> where it is (appearently) unused
 1.15 19-Apr-2003  bjh21 Fix format string mismatch.
 1.14 31-Jan-2003  thorpej Fix printf format from daddr_t changes.
 1.13 01-Jan-2003  thorpej Use aprint_normal() for cfprint routines.
 1.12 01-Nov-2002  mrg implement separate read/write disk statistics:
- disk_unbusy() gets a new parameter to tell the IO direction.
- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
when processing hw.diskstats, add the read&write bytes/transfers for
the old combined stats to attempt to keep backwards compatibility.

unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail. however, the next time this is
change it will not fail again.

this is just the kernel portion.
 1.11 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.10 02-Oct-2002  thorpej branches: 1.10.2;
Fix script-o's in previous.
 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 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.5 27-Jul-2002  hannken Convert to new device buffer queue interface.

Approved by: Reinoud Zandijk <reinoud@netbsd.org>
 1.4 20-Dec-2001  thorpej branches: 1.4.2; 1.4.10;
* Share a common vector page between arm26 and arm32.
* Use a common set of exception handlers for all arm32 platforms.
* New FIQ framework based on discussions with Ben Harris, shared
between arm26 and arm32.
 1.3 27-Nov-2001  thorpej Use <machine/intr.h>, not <machine/irqhandler.h>
 1.2 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.9 03-Jan-2003  thorpej Sync with HEAD.
 1.1.4.8 11-Nov-2002  nathanw Catch up to -current
 1.1.4.7 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.6 17-Sep-2002  nathanw Catch up to -current.
 1.1.4.5 01-Aug-2002  nathanw Catch up to -current.
 1.1.4.4 24-Jun-2002  nathanw Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).
 1.1.4.3 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.2 15-Nov-2001  thorpej Machine-dependent kernel mods for scheduler activations on
32-bit ARM processors. Kernel boots multi-user on an XScale,
but upcalls not yet tested.
 1.1.4.1 05-Oct-2001  thorpej file fd.c was added on branch nathanw_sa on 2001-11-15 08:30:30 +0000
 1.4.10.4 30-Aug-2002  gehenna catch up with -current.
 1.4.10.3 16-May-2002  gehenna Replace the hard-coded major with calling devsw API.
 1.4.10.2 16-May-2002  gehenna Add the block/character device switches.
 1.4.10.1 16-May-2002  gehenna Include sys/conf.h instead of machine/conf.h (obsoleted)
 1.4.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.4.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.4.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.1 20-Dec-2001  thorpej file fd.c was added on branch kqueue on 2002-01-10 19:36:28 +0000
 1.10.2.2 09-Nov-2002  bjh21 Catch up to -current.
 1.10.2.1 24-Oct-2002  bjh21 Sync with trunk.
 1.16.2.7 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.16.2.6 02-Nov-2004  skrll Sync with HEAD.
 1.16.2.5 21-Sep-2004  skrll Fix the sync with head I botched.
 1.16.2.4 18-Sep-2004  skrll Sync with HEAD.
 1.16.2.3 05-Aug-2004  skrll Fix some merge mistakes.
 1.16.2.2 03-Aug-2004  skrll Sync with HEAD
 1.16.2.1 03-Jul-2003  wrstuden lwp-ify a lot of the arm drivers. Needed to get acorn32/GENERIC compiling.
 1.20.2.5 21-Jan-2008  yamt sync with head
 1.20.2.4 27-Oct-2007  yamt sync with head.
 1.20.2.3 03-Sep-2007  yamt sync with head.
 1.20.2.2 26-Feb-2007  yamt sync with head.
 1.20.2.1 21-Jun-2006  yamt sync with head.
 1.23.6.1 22-Apr-2006  simonb Sync with head.
 1.23.4.1 09-Sep-2006  rpaulo sync with head
 1.23.2.1 01-Mar-2006  yamt sync with head.
 1.24.6.4 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.24.6.3 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.24.6.2 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.24.6.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.24.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.24.2.2 24-May-2006  yamt sync with head.
 1.24.2.1 01-Apr-2006  yamt sync with head.
 1.27.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.28.10.2 16-Oct-2007  garbled Sync with HEAD
 1.28.10.1 03-Oct-2007  garbled Sync with HEAD
 1.28.4.1 11-Jul-2007  mjf Sync with head.
 1.28.2.5 03-Dec-2007  ad Sync with HEAD.
 1.28.2.4 09-Oct-2007  ad Sync with head.
 1.28.2.3 20-Aug-2007  ad - Alter disk attach/detach to fix a panic when closing a vnd device.
- Sync with HEAD.
 1.28.2.2 19-Aug-2007  ad - Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).
 1.28.2.1 15-Jul-2007  ad Sync with head.
 1.29.4.1 15-Aug-2007  skrll Sync with HEAD.
 1.29.2.1 07-Aug-2007  matt Sync with HEAD.
 1.30.10.1 14-Oct-2007  yamt sync with head.
 1.30.8.2 09-Jan-2008  matt sync with HEAD
 1.30.8.1 06-Nov-2007  matt sync with HEAD
 1.30.6.3 09-Feb-2008  chris Add initial reworking of acorn32 to use new interrupt code.

Note that cats probably won't work currently as acorn32 changed the way
that the pic is registered, it has to provide the irq lines as on acorn32
we attach the iomd after we need to register irqs for the pioc. So we
setup the irqs for iomd before malloc etc are available. This needs
to be fixed.

More work is still needed to update most of the podulebus drivers.
First I need to add podulebus wrapper for interrupts that handles the
maskaddr and maskbits. Exposing them to the common irq code is wrong.
 1.30.6.2 20-Jan-2008  chris Sync to HEAD.
 1.30.6.1 01-Jan-2008  chris Sync with HEAD.
 1.30.4.2 28-Oct-2007  joerg Sync with HEAD.
 1.30.4.1 26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.30.2.1 28-Feb-2008  rjs Sync with HEAD.
 1.32.2.1 13-Nov-2007  bouyer Sync with HEAD
 1.34.8.2 08-Jan-2008  bouyer Sync with HEAD
 1.34.8.1 02-Jan-2008  bouyer Sync with HEAD
 1.34.4.2 31-Dec-2007  ad Catch up with buffer cache changes.
 1.34.4.1 31-Dec-2007  ad Make compile with new buffer cache locking scheme.

XXX This should be largely MI, please do not make another clone of disksubr.c.
 1.34.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.37.10.4 11-Mar-2010  yamt sync with head
 1.37.10.3 16-May-2009  yamt sync with head
 1.37.10.2 04-May-2009  yamt sync with head.
 1.37.10.1 16-May-2008  yamt sync with head.
 1.37.8.2 17-Jun-2008  yamt sync with head.
 1.37.8.1 18-May-2008  yamt sync with head.
 1.37.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.37.6.2 29-Jun-2008  mjf Sync with HEAD.
 1.37.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.38.4.1 18-Jun-2008  simonb Sync with head.
 1.38.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.39.4.3 28-Apr-2009  skrll Sync with HEAD.
 1.39.4.2 03-Mar-2009  skrll Sync with HEAD.
 1.39.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.41.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.46.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.47.2.2 12-Jun-2011  rmind sync with head
 1.47.2.1 05-Mar-2011  rmind sync with head
 1.49.6.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.49.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.51.12.3 03-Dec-2017  jdolecek update from HEAD
 1.51.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.51.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.51.2.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.51.2.1 30-Oct-2012  yamt sync with head
 1.52.2.1 18-May-2014  rmind sync with head
 1.53.2.1 10-Aug-2014  tls Rebase.
 1.56.2.2 06-Jun-2015  skrll Sync with HEAD
 1.56.2.1 06-Apr-2015  skrll Sync with HEAD
 1.58.18.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.58.18.1 10-Jun-2019  christos Sync with HEAD
 1.58.16.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.58.8.1 27-Apr-2017  pgoyette Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita. There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.
 1.58.2.3 20-Jul-2016  pgoyette Adapt the machine/arch dependent code to the new {b,c}devsw reference
counting.

XXX Most of these will require testing by someone other than myself, as
I have a limited selection of hardware!
 1.58.2.2 20-Jul-2016  pgoyette Redo previous. Rather than separately extracting the device_t, we can
rely on sc->sc_dev when we need to call device_release().
 1.58.2.1 19-Jul-2016  pgoyette Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it. This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@
 1.61.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.62.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.63.8.1 03-Aug-2021  thorpej Adapt to CFARGS().
 1.5 30-Jun-2011  wiz dependant -> dependent
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 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.2 09-Apr-2003  thorpej branches: 1.2.2;
Use PAGE_SIZE rather than NBPG.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file fdreg.h was added on branch kqueue on 2002-01-10 19:36:28 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file fdreg.h was added on branch nathanw_sa on 2001-10-05 22:27:54 +0000
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.13 27-Dec-2019  msaitoh s/manaul/manual/ in comment.
 1.12 19-Jul-2011  dyoung branches: 1.12.54;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.11 03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.10 13-Apr-2008  chris branches: 1.10.26; 1.10.32; 1.10.36;
Fix device_t/softc split fallout.

A device_t should never be cast with void*. This fixes reboot on acorn32.
I also suspect it'll fix a panic mjf was seeing due to corruption of the
alldevs list.
 1.9 07-Mar-2008  cube Split the softc from the device_t for all lpt(4) variants and attachments
except the ppbus stuff (which doesn't compile) and ulpt(4) which is
unrelated and can be dealt with separately.

As usual, it comes with related cosmetic changes.
 1.8 02-Oct-2002  thorpej branches: 1.8.24; 1.8.86; 1.8.88; 1.8.108; 1.8.112;
Fix script-o's in previous.
 1.7 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.6 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.5 10-Mar-2002  bjh21 __RCSID -> __KERNEL_RCSID
 1.4 17-Feb-2002  bjh21 Add __RCSID().
 1.3 17-Feb-2002  bjh21 Add prototypes for lpt_port_test() and lptprobe().
 1.2 27-Nov-2001  thorpej branches: 1.2.2;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.5 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file lpt_pioc.c was added on branch nathanw_sa on 2002-01-08 00:22:46 +0000
 1.2.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 27-Nov-2001  thorpej file lpt_pioc.c was added on branch kqueue on 2002-01-10 19:36:28 +0000
 1.8.112.2 02-Jun-2008  mjf Sync with HEAD.
 1.8.112.1 03-Apr-2008  mjf Sync with HEAD.
 1.8.108.1 24-Mar-2008  keiichi sync with head.
 1.8.88.1 23-Mar-2008  matt sync with HEAD
 1.8.86.1 21-Mar-2008  chris Sync with head.
 1.8.24.1 17-Mar-2008  yamt sync with head.
 1.10.36.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.10.32.1 06-Jun-2011  jruoho Sync with HEAD.
 1.10.26.1 12-Jun-2011  rmind sync with head
 1.12.54.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.20 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.19 24-Apr-2021  thorpej branches: 1.19.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.18 27-Oct-2012  chs branches: 1.18.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.17 19-Jul-2011  dyoung branches: 1.17.2; 1.17.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.16 03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.15 12-May-2009  cegger branches: 1.15.4; 1.15.6; 1.15.10;
use device_xname()
 1.14 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.13 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.12 11-Dec-2005  christos branches: 1.12.80; 1.12.88; 1.12.94;
merge ktrace-lwp.
 1.11 26-Aug-2005  drochner s/locdesc_t/int/g
 1.10 30-Jun-2005  drochner branches: 1.10.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.9 28-Jun-2005  drochner convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)
 1.8 14-Dec-2004  chs use the generated macros in locators.h rather than hard-coded numbers
to index the cf_loc[] array. reviewed by allen briggs.
 1.7 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.6 01-Jan-2003  thorpej branches: 1.6.2;
Use aprint_normal() for cfprint routines.
 1.5 02-Oct-2002  thorpej Fix script-o's in previous.
 1.4 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.3 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.2 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.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file pioc.c was added on branch kqueue on 2002-01-10 19:36:28 +0000
 1.1.4.3 03-Jan-2003  thorpej Sync with HEAD.
 1.1.4.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file pioc.c was added on branch nathanw_sa on 2002-10-18 02:33:40 +0000
 1.6.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.6.2.4 18-Dec-2004  skrll Sync with HEAD.
 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.2.1 21-Jun-2006  yamt sync with head.
 1.12.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.12.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.12.80.2 16-May-2009  yamt sync with head
 1.12.80.1 04-May-2009  yamt sync with head.
 1.15.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.15.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.15.4.1 12-Jun-2011  rmind sync with head
 1.17.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.17.2.1 30-Oct-2012  yamt sync with head
 1.18.52.8 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.18.52.7 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.18.52.6 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.18.52.5 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.18.52.4 22-Mar-2021  thorpej Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.
 1.18.52.3 22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.18.52.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.18.52.1 20-Mar-2021  thorpej The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
tag-value variadic arguments that can be passed to the various
config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
Noticed several incorrect usages along the way, which will be
audited in a future commit.
 1.19.8.1 03-Aug-2021  thorpej Adapt to CFARGS().
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file piocreg.h was added on branch kqueue on 2002-01-10 19:36:29 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file piocreg.h was added on branch nathanw_sa on 2001-10-05 22:27:54 +0000
 1.2 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file piocvar.h was added on branch kqueue on 2002-01-10 19:36:29 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file piocvar.h was added on branch nathanw_sa on 2001-10-05 22:27:54 +0000
 1.31 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.30 20-Oct-2017  jdolecek move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init()
and ata_channel_destroy() respectively, to make attachment code simpler,
and to make it easier to spot special queue manipulation like cmdide(4)

on topic of PR kern/52606
 1.29 07-Oct-2017  jdolecek Merge support for SATA NCQ (Native Command Queueing) from jdolecek-ncq branch

ATA subsystem was changed to support several outstanding commands, and use
NCQ xfers if supported by both the controller and the disk, including NCQ
error recovery. Set NCQ high priority for BPRIO_TIMECRITICAL xfers
if supported. Added FUA support.

Done some work towards MP-safe, all ATA code tsleep()/wakeup() replaced
by condvars, and switched most code from spl* to mutexes (separate
wd(4) and ata channel lock).

Introduced new option WD_CHAOS_MONKEY to facilitate testing of error
handling, fixed several uncovered issues. Also fixed several problems
with kernel dump to wd(4) disk.

Tested with ahcisata(4), mvsata(4), siisata(4), piixide(4) on amd64,
with and without port multiplier, both disk and ATAPI devices; other
drivers and archs mechanically adjusted and compile-tested. NCQ is
supported for ahcisata(4) and siisata(4) for any controller, for
mvsata(4) only Gen IIe ones for now. Also enabled ATAPI support in
mvsata(4).

Thanks to Matt Thomas for initial ATA infrastructure patch, and
Jonathan A.Kollasch for siisata(4) NCQ changes and general testing.

Also fixes PR kern/43169 (wd(4)); and PR kern/11811, PR kern/47041,
PR kern/51979 (kernel dump)
 1.28 31-Jul-2012  bouyer branches: 1.28.2; 1.28.28;
Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.
 1.27 26-Jul-2012  jakllsch Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@
 1.26 02-Jul-2012  bouyer Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
when SATA cable move was needed
 1.25 19-Jul-2011  dyoung branches: 1.25.2;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.24 03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.23 18-Mar-2008  cube branches: 1.23.26; 1.23.32; 1.23.36;
Set the device_t back pointer in the softc.
 1.22 18-Mar-2008  cube Split device_t and softc for ATA devices, as well as wd(4). Other
cosmetic changes where appropriate.
 1.21 16-Jan-2006  bouyer branches: 1.21.48; 1.21.50; 1.21.70; 1.21.74;
properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
 1.20 11-Dec-2005  christos branches: 1.20.2;
merge ktrace-lwp.
 1.19 28-Sep-2004  reinoud branches: 1.19.12;
wdc shadow registers need to be initialised later.

Request pullup for 2-0 nessisary?
 1.18 20-Aug-2004  thorpej Move most of wdc_softc into a new atac_softc structure that contains
info common to all types of ATA controllers.
 1.17 14-Aug-2004  thorpej - Split the register handles out of struct wdc_channel into a separate
wdc_regs structure, and array of which (indexed per channel) is pointed
to by struct wdc_softc.
- Move the resulting wdc_channel structure to atavar.h and rename it to
ata_channel. Rename the corresponding flags.
- Add a "ch_ndrive" member to struct ata_channel, which indicates the
maximum number of drives that can be present on the channel. For now,
this is always 2. Add an ATA_MAXDRIVES constant that places an upper
limit on this value, also currently 2.
 1.16 25-May-2004  thorpej Add the notion of "shadow registers" to the wdc driver. These shadow
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers. Right now, the two
shadows are:

- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)

Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.

Partially from Jordan Rhody @ Wasabi Systems, Inc.
 1.15 03-Jan-2004  thorpej More wdc_channel structure member namespace cleanup:
- channel -> ch_channel
- wdc -> ch_wdc
 1.14 03-Jan-2004  thorpej Rename "struct channel_softc" to "struct wdc_channel".
 1.13 01-Jan-2004  thorpej Rename:
- wdc_xfer to ata_xfer
- channel_queue to ata_queue
and move them to <dev/ata/atavar.h> so they can be used by non-wdc ATA
controllers. Clean up the member names of these structures while at it.
 1.12 31-Dec-2003  thorpej Simplify allocation of the channel queue.
 1.11 02-Dec-2003  bjh21 Update for new world of indirect wdc registers.
 1.10 08-Oct-2003  bouyer Adapt for wdcattach() prototype change.
 1.9 25-Sep-2003  mycroft Hide the use of config_interrupts() in one place.
 1.8 19-Sep-2003  mycroft 1) Use config_interrupts() to attach IDE and ATAPI drives. This eliminates
most polling.
2) Clean up some goofiness in pciide -- get rid of the whole "candisable" path
(it's gratuitous) and simplify the code by calling pciide_map_compat_intr(),
*_set_modes() and wdc_print_modes() from central locations.
3) Add a register writability and register ghost test to eliminate phantom
drives more quickly.
 1.7 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.6 02-Oct-2002  thorpej branches: 1.6.8;
Fix script-o's in previous.
 1.5 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.4 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.3 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.2 27-Nov-2001  thorpej branches: 1.2.2;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file wdc_pioc.c was added on branch nathanw_sa on 2002-01-08 00:22:46 +0000
 1.2.2.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 27-Nov-2001  thorpej file wdc_pioc.c was added on branch kqueue on 2002-01-10 19:36:29 +0000
 1.6.8.5 19-Oct-2004  skrll Sync with HEAD
 1.6.8.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.8.3 18-Sep-2004  skrll Sync with HEAD.
 1.6.8.2 25-Aug-2004  skrll Sync with HEAD.
 1.6.8.1 03-Aug-2004  skrll Sync with HEAD
 1.19.12.2 24-Mar-2008  yamt sync with head.
 1.19.12.1 21-Jun-2006  yamt sync with head.
 1.20.2.1 01-Feb-2006  yamt sync with head.
 1.21.74.1 03-Apr-2008  mjf Sync with HEAD.
 1.21.70.1 24-Mar-2008  keiichi sync with head.
 1.21.50.1 23-Mar-2008  matt sync with HEAD
 1.21.48.1 21-Mar-2008  chris Sync with head.
 1.23.36.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.23.32.1 06-Jun-2011  jruoho Sync with HEAD.
 1.23.26.1 12-Jun-2011  rmind sync with head
 1.25.2.1 30-Oct-2012  yamt sync with head
 1.28.28.2 27-Sep-2017  jdolecek change wdc_init_shadow_regs() to accept only struct wdc_regs, it doesn't
touch anything else

factor out the probe-only struct ata_channel initialization to wdcprobe(), to
reduce duplication of logic in individual drivers, and to actually work now
that more init is needed beyond the memset()
 1.28.28.1 26-Sep-2017  jdolecek switch to ata_queue_alloc() so that this at least compiles
 1.28.2.1 03-Dec-2017  jdolecek update from HEAD
 1.24 02-Jan-2025  andvar s/Mulit/Multi/ in comment.
 1.23 07-Aug-2021  thorpej branches: 1.23.12;
Merge thorpej-cfargs2.
 1.22 24-Apr-2021  thorpej branches: 1.22.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.21 08-Dec-2018  thorpej branches: 1.21.14;
Clean up initialization of com_regs structure, in preparation for
some additional changers.
 1.20 27-Oct-2012  chs branches: 1.20.36; 1.20.38;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.19 19-Jul-2011  dyoung branches: 1.19.2; 1.19.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.18 03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.17 27-Nov-2009  rmind branches: 1.17.4; 1.17.6; 1.17.10;
- Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.16 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.15 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.14 28-Apr-2008  martin branches: 1.14.8; 1.14.14;
Remove clause 3 and 4 from TNF licenses
 1.13 14-Mar-2008  cube branches: 1.13.2; 1.13.4;
Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend). Use proper types and ansify where appropriate.
 1.12 13-Jul-2006  gdamore branches: 1.12.34; 1.12.36; 1.12.56; 1.12.60;
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.11 11-Dec-2005  christos branches: 1.11.4; 1.11.8; 1.11.16;
merge ktrace-lwp.
 1.10 13-Sep-2004  drochner branches: 1.10.12;
use config_found() instead of config_found_sm() if no submatch
function is used
 1.9 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.8 01-Jan-2003  thorpej branches: 1.8.2;
Use aprint_normal() for cfprint routines.
 1.7 05-Oct-2002  chs add missing protos, clean up includes.
 1.6 02-Oct-2002  thorpej Fix script-o's in previous.
 1.5 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.4 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.3 22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2 27-Nov-2001  thorpej branches: 1.2.2; 1.2.10; 1.2.12;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.5 03-Jan-2003  thorpej Sync with HEAD.
 1.1.4.4 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.3 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file amps.c was added on branch nathanw_sa on 2002-01-08 00:22:46 +0000
 1.2.12.1 01-Nov-2002  tron Pull up revision 1.3 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2.10.1 30-May-2002  gehenna Catch up with -current.
 1.2.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 27-Nov-2001  thorpej file amps.c was added on branch kqueue on 2002-01-10 19:36:30 +0000
 1.8.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.8.2.1 03-Aug-2004  skrll Sync with HEAD
 1.10.12.2 17-Mar-2008  yamt sync with head.
 1.10.12.1 30-Dec-2006  yamt sync with head.
 1.11.16.1 20-Jun-2006  gdamore COM_INIT_REGS-ify acorn32.
 1.11.8.1 11-Aug-2006  yamt sync with head
 1.11.4.1 09-Sep-2006  rpaulo sync with head
 1.12.60.2 02-Jun-2008  mjf Sync with HEAD.
 1.12.60.1 03-Apr-2008  mjf Sync with HEAD.
 1.12.56.1 24-Mar-2008  keiichi sync with head.
 1.12.36.1 23-Mar-2008  matt sync with HEAD
 1.12.34.1 21-Mar-2008  chris Sync with head.
 1.13.4.3 11-Mar-2010  yamt sync with head
 1.13.4.2 04-May-2009  yamt sync with head.
 1.13.4.1 16-May-2008  yamt sync with head.
 1.13.2.1 18-May-2008  yamt sync with head.
 1.14.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.14.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.17.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.17.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.17.4.1 12-Jun-2011  rmind sync with head
 1.19.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.19.2.1 30-Oct-2012  yamt sync with head
 1.20.38.1 10-Jun-2019  christos Sync with HEAD
 1.20.36.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.21.14.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.22.8.1 03-Aug-2021  thorpej Adapt to CFARGS().
 1.23.12.1 02-Aug-2025  perseant Sync with HEAD
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.128; 1.1.130; 1.1.132;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 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.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ampsreg.h was added on branch kqueue on 2002-01-10 19:36:30 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ampsreg.h was added on branch nathanw_sa on 2001-10-05 22:27:55 +0000
 1.22 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.21 24-Apr-2021  thorpej branches: 1.21.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.20 25-Oct-2014  skrll branches: 1.20.4; 1.20.10; 1.20.34;
Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.19 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.18 19-Jul-2011  dyoung branches: 1.18.2; 1.18.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.17 03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.16 12-May-2009  cegger branches: 1.16.4; 1.16.6; 1.16.10;
use device_xname()
 1.15 12-Jun-2008  cegger branches: 1.15.10;
use device_lookup_private to get softc
 1.14 11-Dec-2005  christos branches: 1.14.76; 1.14.78; 1.14.80; 1.14.82; 1.14.84;
merge ktrace-lwp.
 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 03-May-2003  wiz branches: 1.12.2;
DMA, not dma nor Dma.
 1.11 02-Oct-2002  thorpej Fix script-o's in previous.
 1.10 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.9 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.8 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.7 05-Aug-2002  bjh21 Rather than forcing on XS_POLL in SCSI transfers ourselves, set
SCSIPI_ADAPT_POLL_ONLY to tell the MI scsipi layer to do it for us. This,
plus G/Cing some debugging code, removes the card-specific scsi_request
wrappers.
 1.6 22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.5 10-Mar-2002  bjh21 branches: 1.5.4; 1.5.6;
__RCSID -> __KERNEL_RCSID
 1.4 18-Feb-2002  bjh21 Add a prototype for asc_dump().
Delete asc_dmaintr(): it's unused.
__RCSID().
 1.3 27-Nov-2001  thorpej branches: 1.3.2;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.2 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.7 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.6 13-Aug-2002  nathanw Catch up to -current.
 1.1.4.5 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file asc.c was added on branch nathanw_sa on 2002-01-08 00:22:46 +0000
 1.3.2.6 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.5 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 27-Nov-2001  thorpej file asc.c was added on branch kqueue on 2002-01-10 19:36:30 +0000
 1.5.6.1 01-Nov-2002  tron Pull up revision 1.6 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.5.4.2 30-Aug-2002  gehenna catch up with -current.
 1.5.4.1 30-May-2002  gehenna Catch up with -current.
 1.12.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.12.2.1 03-Aug-2004  skrll Sync with HEAD
 1.14.84.1 18-Jun-2008  simonb Sync with head.
 1.14.82.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.14.80.2 16-May-2009  yamt sync with head
 1.14.80.1 04-May-2009  yamt sync with head.
 1.14.78.1 17-Jun-2008  yamt sync with head.
 1.14.76.1 29-Jun-2008  mjf Sync with HEAD.
 1.15.10.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.16.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.16.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.16.4.1 12-Jun-2011  rmind sync with head
 1.18.12.2 03-Dec-2017  jdolecek update from HEAD
 1.18.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.18.2.1 30-Oct-2012  yamt sync with head
 1.20.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.20.10.1 27-Apr-2017  pgoyette Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita. There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.
 1.20.4.2 20-Jul-2016  pgoyette Redo previous. Rather than separately extracting the device_t, we can
rely on sc->sc_dev when we need to call device_release().
 1.20.4.1 19-Jul-2016  pgoyette Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it. This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@
 1.21.8.1 03-Aug-2021  thorpej Adapt to CFARGS().
 1.6 20-Aug-2006  bjh21 Clean out some of the junk from this file, sepcifically definitions for
an Amiga DMA controller, and #if 0'ed WD33C93 definitions that are duplicated
in sbicreg.h. uPD71071 definitions can stay for now, since they're not
actually useless even though they're unused.
 1.5 08-Mar-2006  lukem Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
 1.4 24-Dec-2005  perry branches: 1.4.4; 1.4.6; 1.4.8; 1.4.10;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 07-Aug-2003  agc branches: 1.2.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ascreg.h was added on branch kqueue on 2002-01-10 19:36:30 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ascreg.h was added on branch nathanw_sa on 2001-10-05 22:27:55 +0000
 1.2.16.2 30-Dec-2006  yamt sync with head.
 1.2.16.1 21-Jun-2006  yamt sync with head.
 1.4.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.4.8.2 03-Sep-2006  yamt sync with head.
 1.4.8.1 13-Mar-2006  yamt sync with head.
 1.4.6.1 22-Apr-2006  simonb Sync with head.
 1.4.4.1 09-Sep-2006  rpaulo sync with head
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ascvar.h was added on branch kqueue on 2002-01-10 19:36:31 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ascvar.h was added on branch nathanw_sa on 2001-10-05 22:27:55 +0000
 1.22 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.21 24-Apr-2021  thorpej branches: 1.21.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.20 25-Oct-2014  skrll branches: 1.20.34;
Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.19 21-Jan-2014  christos fix unused variable
 1.18 27-Oct-2012  chs branches: 1.18.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.17 03-Jun-2011  matt branches: 1.17.2; 1.17.12;
device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.16 12-May-2009  cegger branches: 1.16.4; 1.16.6; 1.16.10;
use device_xname()
 1.15 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.14 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.13 11-Dec-2005  christos branches: 1.13.80; 1.13.88; 1.13.94;
merge ktrace-lwp.
 1.12 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.11 01-Apr-2003  thorpej branches: 1.11.2;
Use PAGE_SIZE rather than NBPG.
 1.10 05-Oct-2002  chs add missing protos, clean up includes.
 1.9 02-Oct-2002  thorpej Fix script-o's in previous.
 1.8 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.7 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.6 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.5 05-Aug-2002  bjh21 Rather than forcing on XS_POLL in SCSI transfers ourselves, set
SCSIPI_ADAPT_POLL_ONLY to tell the MI scsipi layer to do it for us. This,
plus G/Cing some debugging code, removes the card-specific scsi_request
wrappers.
 1.4 22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.3 27-Nov-2001  thorpej branches: 1.3.2; 1.3.10; 1.3.12;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.2 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.5 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.4 13-Aug-2002  nathanw Catch up to -current.
 1.1.4.3 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file cosc.c was added on branch nathanw_sa on 2002-01-08 00:22:46 +0000
 1.3.12.1 01-Nov-2002  tron Pull up revision 1.4 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.3.10.2 30-Aug-2002  gehenna catch up with -current.
 1.3.10.1 30-May-2002  gehenna Catch up with -current.
 1.3.2.5 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.4 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 27-Nov-2001  thorpej file cosc.c was added on branch kqueue on 2002-01-10 19:36:31 +0000
 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.13.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.13.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.13.80.2 16-May-2009  yamt sync with head
 1.13.80.1 04-May-2009  yamt sync with head.
 1.16.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.16.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.16.4.1 12-Jun-2011  rmind sync with head
 1.17.12.3 03-Dec-2017  jdolecek update from HEAD
 1.17.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.17.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.17.2.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.17.2.1 30-Oct-2012  yamt sync with head
 1.18.2.1 18-May-2014  rmind sync with head
 1.20.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.21.8.1 03-Aug-2021  thorpej Adapt to CFARGS().
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file coscreg.h was added on branch kqueue on 2002-01-10 19:36:31 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file coscreg.h was added on branch nathanw_sa on 2001-10-05 22:27:55 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file coscvar.h was added on branch kqueue on 2002-01-10 19:36:31 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file coscvar.h was added on branch nathanw_sa on 2001-10-05 22:27:56 +0000
 1.12 21-Mar-2014  christos kill sprintf
 1.11 27-Oct-2012  chs branches: 1.11.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.10 28-Apr-2008  martin branches: 1.10.34; 1.10.44;
Remove clause 3 and 4 from TNF licenses
 1.9 04-Apr-2008  tsutsui branches: 1.9.2; 1.9.4;
Split devict_t/softc for ncr5380sbc SCSI, and misc cosmetic changes.
 1.8 11-Dec-2005  christos branches: 1.8.76;
merge ktrace-lwp.
 1.7 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.6 02-Oct-2002  thorpej branches: 1.6.8;
Fix script-o's in previous.
 1.5 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.4 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.3 22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2 27-Nov-2001  thorpej branches: 1.2.2; 1.2.10; 1.2.12;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.4 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.3 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file csa.c was added on branch nathanw_sa on 2002-01-08 00:22:46 +0000
 1.2.12.1 01-Nov-2002  tron Pull up revision 1.3 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2.10.1 30-May-2002  gehenna Catch up with -current.
 1.2.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 27-Nov-2001  thorpej file csa.c was added on branch kqueue on 2002-01-10 19:36:31 +0000
 1.6.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.8.1 03-Aug-2004  skrll Sync with HEAD
 1.8.76.1 02-Jun-2008  mjf 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.44.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.44.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.10.34.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10.34.1 30-Oct-2012  yamt sync with head
 1.11.2.1 18-May-2014  rmind sync with head
 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 21-Jan-2014  christos branches: 1.19.44;
fix unused variables
 1.18 27-Oct-2012  chs branches: 1.18.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.17 03-Jun-2011  matt branches: 1.17.2; 1.17.12;
device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.16 12-May-2009  cegger branches: 1.16.4; 1.16.6; 1.16.10;
use device_xname()
 1.15 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.14 28-Apr-2008  martin branches: 1.14.8; 1.14.14;
Remove clause 3 and 4 from TNF licenses
 1.13 11-Dec-2005  christos branches: 1.13.76; 1.13.78; 1.13.80;
merge ktrace-lwp.
 1.12 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.11 03-May-2003  wiz branches: 1.11.2;
DMA, not dma nor Dma.
 1.10 01-Apr-2003  thorpej Use PAGE_SIZE rather than NBPG.
 1.9 05-Oct-2002  chs add missing protos, clean up includes.
 1.8 02-Oct-2002  thorpej Fix script-o's in previous.
 1.7 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.6 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.5 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.4 05-Aug-2002  bjh21 Rather than forcing on XS_POLL in SCSI transfers ourselves, set
SCSIPI_ADAPT_POLL_ONLY to tell the MI scsipi layer to do it for us. This,
plus G/Cing some debugging code, removes the card-specific scsi_request
wrappers.
 1.3 22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2 27-Nov-2001  thorpej branches: 1.2.2; 1.2.10; 1.2.12;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.5 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.4 13-Aug-2002  nathanw Catch up to -current.
 1.1.4.3 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file csc.c was added on branch nathanw_sa on 2002-01-08 00:22:46 +0000
 1.2.12.2 01-Nov-2002  tron Pull up revision 1.3 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2.12.1 07-Aug-2002  lukem Pull up revision 1.4 (requested by bjh21 in ticket #640):
Rather than forcing on XS_POLL in SCSI transfers ourselves, set
SCSIPI_ADAPT_POLL_ONLY to tell the MI scsipi layer to do it for us. This,
plus G/Cing some debugging code, removes the card-specific scsi_request
wrappers.
 1.2.10.2 30-Aug-2002  gehenna catch up with -current.
 1.2.10.1 30-May-2002  gehenna Catch up with -current.
 1.2.2.5 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.4 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.2.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 27-Nov-2001  thorpej file csc.c was added on branch kqueue on 2002-01-10 19:36:32 +0000
 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.13.80.3 16-May-2009  yamt sync with head
 1.13.80.2 04-May-2009  yamt sync with head.
 1.13.80.1 16-May-2008  yamt sync with head.
 1.13.78.1 18-May-2008  yamt sync with head.
 1.13.76.1 02-Jun-2008  mjf Sync with HEAD.
 1.14.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.14.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.16.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.16.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.16.4.1 12-Jun-2011  rmind sync with head
 1.17.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.17.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.17.2.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.17.2.1 30-Oct-2012  yamt sync with head
 1.18.2.1 18-May-2014  rmind sync with head
 1.19.44.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.20.8.1 03-Aug-2021  thorpej Adapt to CFARGS().
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.128; 1.1.130; 1.1.132;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 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.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file cscreg.h was added on branch kqueue on 2002-01-10 19:36:32 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file cscreg.h was added on branch nathanw_sa on 2001-10-05 22:27:56 +0000
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.128; 1.1.130; 1.1.132;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 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.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file cscvar.h was added on branch kqueue on 2002-01-10 19:36:32 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file cscvar.h was added on branch nathanw_sa on 2001-10-05 22:27:56 +0000
 1.34 21-Aug-2021  andvar fix some more typos in comments/log messages, improve wording as well.
 1.33 22-Jul-2020  msaitoh s/reseting/resetting/
 1.32 27-Dec-2019  msaitoh s/transfered/transferred/
 1.31 17-Aug-2016  skrll branches: 1.31.16;
Spelling on comment
 1.30 13-Dec-2015  christos PR/50514: David Binderman: Add missing break
 1.29 25-Oct-2014  skrll branches: 1.29.2;
Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.28 13-Sep-2014  matt Replace more vm_offset_t, vm_size_t with vaddr_t, vsize_t
Use paddr_t for msgbufphys
 1.27 22-Feb-2014  matt Deal with non-4KB page sizes
 1.26 21-Jan-2014  christos fix unused variables
 1.25 27-Oct-2012  chs branches: 1.25.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.24 09-Dec-2010  uebayasi branches: 1.24.8; 1.24.18;
Fix DEBUG build.
 1.23 16-May-2009  cegger branches: 1.23.4;
KNF, same object code generated
 1.22 18-Mar-2009  cegger bcopy -> memcpy
 1.21 18-Mar-2009  cegger bzero -> memset
 1.20 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.19 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.18 08-Mar-2006  lukem branches: 1.18.70; 1.18.78; 1.18.84;
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
 1.17 11-Dec-2005  christos branches: 1.17.4; 1.17.6; 1.17.8; 1.17.10;
merge ktrace-lwp.
 1.16 01-Apr-2005  yamt branches: 1.16.2;
merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
save some resources like pv_entry. also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
 1.15 10-Nov-2003  wiz branches: 1.15.8; 1.15.10;
Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
 1.14 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.13 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.12 14-Jul-2003  lukem use __KERNEL_RCSID(0, instead of RCSID( in the kernel
 1.11 03-May-2003  wiz branches: 1.11.2;
DMA, not dma nor Dma.
 1.10 01-Apr-2003  thorpej Use PAGE_SIZE rather than NBPG.
 1.9 05-Oct-2002  chs add missing protos, clean up includes.
 1.8 22-Aug-2002  thorpej * Add PTE_SYNC() and PTE_SYNC_RANGE() macros. These don't actually do
anything yet.
* Use PTE_SYNC() and PTE_SYNC_RANGE() in some obvious places, i.e.
where vtopte() is used.
 1.7 05-Apr-2002  thorpej branches: 1.7.2;
* Rewrite the 32-bit ARM pte.h based on the ARM architecture manual.
Significant cleanup, here, including better PTE bit names.
* Add XScale PTE extensions (ECC enable, write-allocate cache mode).
* Mechanical changes everywhere else to update for new pte.h. While
doing this, two bugs (as a result of typos) were fixed in

arm/arm32/bus_dma.c
evbarm/integrator/int_bus_dma.c
 1.6 24-Mar-2002  thorpej Use vtopte() instead of pmap_pte().
 1.5 18-Feb-2002  bjh21 Internal prototypes for loads of functions.
Casts in calls to sc_setup_dma and sc_need_bump to match implementations.
__RCSID() while I'm here.
 1.4 25-Jan-2002  thorpej Overhaul of the ARM cache code. This is mostly a simplification
pass. Rather than providing a whole slew of cache operations that
aren't ever used, distill them down to some useful primitives:

icache_sync_all Synchronize I-cache
icache_sync_range Synchronize I-cache range

dcache_wbinv_all Write-back and Invalidate D-cache
dcache_wbinv_range Write-back and Invalidate D-cache range
dcache_inv_range Invalidate D-cache range
dcache_wb_range Write-back D-cache range

idcache_wbinv_all Write-back and Invalidate D-cache,
Invalidate I-cache
idcache_wbinv_range Write-back and Invalidate D-cache,
Invalidate I-cache range

Note: This does not yet include an overhaul of the actual asm files
that implement the primitives. Instead, we've provided a safe default
for each CPU type, and the individual CPU types can now be optimized
one at a time.
 1.3 27-Nov-2001  thorpej branches: 1.3.2;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.2 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.7 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.6 27-Aug-2002  thorpej Sync with -current.
 1.1.4.5 17-Apr-2002  nathanw Catch up to -current.
 1.1.4.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file esc.c was added on branch nathanw_sa on 2002-01-08 00:22:46 +0000
 1.3.2.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.3.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 27-Nov-2001  thorpej file esc.c was added on branch kqueue on 2002-01-10 19:36:32 +0000
 1.7.2.1 30-Aug-2002  gehenna catch up with -current.
 1.11.2.4 01-Apr-2005  skrll Sync with HEAD.
 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.10.1 28-Jan-2005  yamt convert arch/acorn{26,32} to new apis.
 1.15.8.1 29-Apr-2005  kent sync with -current
 1.16.2.1 21-Jun-2006  yamt sync with head.
 1.17.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.17.8.1 13-Mar-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.84.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.18.78.1 28-Apr-2009  skrll Sync with HEAD.
 1.18.70.2 20-Jun-2009  yamt sync with head
 1.18.70.1 04-May-2009  yamt sync with head.
 1.23.4.1 05-Mar-2011  rmind sync with head
 1.24.18.3 03-Dec-2017  jdolecek update from HEAD
 1.24.18.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.24.18.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.24.8.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.24.8.1 30-Oct-2012  yamt sync with head
 1.25.2.1 18-May-2014  rmind sync with head
 1.29.2.2 05-Oct-2016  skrll Sync with HEAD
 1.29.2.1 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.31.16.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file escreg.h was added on branch kqueue on 2002-01-10 19:36:32 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file escreg.h was added on branch nathanw_sa on 2001-10-05 22:27:56 +0000
 1.10 21-Aug-2021  andvar fix some more typos in comments/log messages, improve wording as well.
 1.9 22-Jul-2020  msaitoh s/reseting/resetting/
 1.8 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.7 14-Mar-2009  dsl branches: 1.7.12; 1.7.22;
Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.6 11-Dec-2005  christos branches: 1.6.80; 1.6.88; 1.6.94;
merge ktrace-lwp.
 1.5 10-Nov-2003  wiz Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
 1.4 09-Apr-2003  thorpej branches: 1.4.2;
Use PAGE_SIZE rather than NBPG.
 1.3 05-Oct-2002  chs add missing protos, clean up includes.
 1.2 18-Feb-2002  bjh21 Add prototypes for function pointers in struct esc_softc.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file escvar.h was added on branch kqueue on 2002-01-10 19:36:33 +0000
 1.1.4.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file escvar.h was added on branch nathanw_sa on 2002-02-28 04:05:57 +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.6.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.6.80.1 04-May-2009  yamt sync with head.
 1.7.22.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.7.12.1 30-Oct-2012  yamt sync with head
 1.36 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.35 04-Apr-2022  andvar fix various typos, mainly in comments.
 1.34 20-Oct-2017  jdolecek move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init()
and ata_channel_destroy() respectively, to make attachment code simpler,
and to make it easier to spot special queue manipulation like cmdide(4)

on topic of PR kern/52606
 1.33 07-Oct-2017  jdolecek Merge support for SATA NCQ (Native Command Queueing) from jdolecek-ncq branch

ATA subsystem was changed to support several outstanding commands, and use
NCQ xfers if supported by both the controller and the disk, including NCQ
error recovery. Set NCQ high priority for BPRIO_TIMECRITICAL xfers
if supported. Added FUA support.

Done some work towards MP-safe, all ATA code tsleep()/wakeup() replaced
by condvars, and switched most code from spl* to mutexes (separate
wd(4) and ata channel lock).

Introduced new option WD_CHAOS_MONKEY to facilitate testing of error
handling, fixed several uncovered issues. Also fixed several problems
with kernel dump to wd(4) disk.

Tested with ahcisata(4), mvsata(4), siisata(4), piixide(4) on amd64,
with and without port multiplier, both disk and ATAPI devices; other
drivers and archs mechanically adjusted and compile-tested. NCQ is
supported for ahcisata(4) and siisata(4) for any controller, for
mvsata(4) only Gen IIe ones for now. Also enabled ATAPI support in
mvsata(4).

Thanks to Matt Thomas for initial ATA infrastructure patch, and
Jonathan A.Kollasch for siisata(4) NCQ changes and general testing.

Also fixes PR kern/43169 (wd(4)); and PR kern/11811, PR kern/47041,
PR kern/51979 (kernel dump)
 1.32 31-Jul-2012  bouyer branches: 1.32.2; 1.32.28;
Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.
 1.31 26-Jul-2012  jakllsch Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@
 1.30 02-Jul-2012  bouyer Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
when SATA cable move was needed
 1.29 19-Jul-2011  dyoung branches: 1.29.2;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.28 12-May-2009  cegger use device_xname()
 1.27 18-Mar-2008  cube branches: 1.27.4; 1.27.18;
Split device_t and softc for ATA devices, as well as wd(4). Other
cosmetic changes where appropriate.
 1.26 09-Oct-2006  bjh21 branches: 1.26.28; 1.26.30; 1.26.50; 1.26.54;
The correct number of elements to insert into cmd_iohs is WDC_NREG. Using
larger numbers risks a buffer overflow and panic. Bug spotted by Mike Pumford.
Patch compile-tested only, but it's obviously correct.
 1.25 16-Jan-2006  bouyer branches: 1.25.18; 1.25.20;
properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
 1.24 11-Dec-2005  christos branches: 1.24.2;
merge ktrace-lwp.
 1.23 20-Aug-2004  thorpej branches: 1.23.12;
Move most of wdc_softc into a new atac_softc structure that contains
info common to all types of ATA controllers.
 1.22 14-Aug-2004  thorpej - Split the register handles out of struct wdc_channel into a separate
wdc_regs structure, and array of which (indexed per channel) is pointed
to by struct wdc_softc.
- Move the resulting wdc_channel structure to atavar.h and rename it to
ata_channel. Rename the corresponding flags.
- Add a "ch_ndrive" member to struct ata_channel, which indicates the
maximum number of drives that can be present on the channel. For now,
this is always 2. Add an ATA_MAXDRIVES constant that places an upper
limit on this value, also currently 2.
 1.21 25-May-2004  thorpej Add the notion of "shadow registers" to the wdc driver. These shadow
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers. Right now, the two
shadows are:

- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)

Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.

Partially from Jordan Rhody @ Wasabi Systems, Inc.
 1.20 03-Jan-2004  thorpej More wdc_channel structure member namespace cleanup:
- channel -> ch_channel
- wdc -> ch_wdc
 1.19 03-Jan-2004  thorpej Rename "struct channel_softc" to "struct wdc_channel".
 1.18 01-Jan-2004  thorpej Rename:
- wdc_xfer to ata_xfer
- channel_queue to ata_queue
and move them to <dev/ata/atavar.h> so they can be used by non-wdc ATA
controllers. Clean up the member names of these structures while at it.
 1.17 31-Dec-2003  thorpej Simplify allocation of the channel queue.
 1.16 02-Dec-2003  bjh21 Update for new world of indirect wdc registers.
 1.15 19-Oct-2003  he Adapt to the new wdcattach() signature.
 1.14 08-Oct-2003  bouyer Adapt for wdcattach() prototype change.
 1.13 25-Sep-2003  mycroft Hide the use of config_interrupts() in one place.
 1.12 24-Sep-2003  mycroft Take a stab at making this compile, at least.
 1.11 21-Sep-2003  matt Adapt to new wdcattach calling conventions.
 1.10 02-Oct-2002  thorpej branches: 1.10.8;
Fix script-o's in previous.
 1.9 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.8 01-Oct-2002  bjh21 Constify ide_versions.
 1.7 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.6 15-Sep-2002  bjh21 Cleanup: Remove no-longer-accurate comment, un-__P, ANSIfy, __KERNEL_RCSID,
other light KNF.
 1.5 15-Sep-2002  bjh21 Allocate channel structures as part of the softc rather than malloc'ing them
at run time. This simplifies the code and avoids problems with uninitialised
variables, and if it's good enough for pciide(4), it's good enough for me.

Also normalise the prefix for channel-specific messages.
 1.4 14-Sep-2002  bjh21 On ARCIN v6 cards, clear the EPROM page latch on shutdown. This seems to be
necessary to allow the card to be detected afterwards. In theory, this
shouldn't be necessary, since we don't touch the page latch yet, but I'm not
going to argue.
 1.3 22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2 27-Nov-2001  thorpej branches: 1.2.2; 1.2.10; 1.2.12;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.5 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.4 17-Sep-2002  nathanw Catch up to -current.
 1.1.4.3 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file icside.c was added on branch nathanw_sa on 2002-01-08 00:22:46 +0000
 1.2.12.1 01-Nov-2002  tron Pull up revision 1.3 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2.10.1 30-May-2002  gehenna Catch up with -current.
 1.2.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 27-Nov-2001  thorpej file icside.c was added on branch kqueue on 2002-01-10 19:36:33 +0000
 1.10.8.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.8.3 18-Sep-2004  skrll Sync with HEAD.
 1.10.8.2 25-Aug-2004  skrll Sync with HEAD.
 1.10.8.1 03-Aug-2004  skrll Sync with HEAD
 1.23.12.3 24-Mar-2008  yamt sync with head.
 1.23.12.2 30-Dec-2006  yamt sync with head.
 1.23.12.1 21-Jun-2006  yamt sync with head.
 1.24.2.1 01-Feb-2006  yamt sync with head.
 1.25.20.1 22-Oct-2006  yamt sync with head
 1.25.18.1 18-Nov-2006  ad Sync with head.
 1.26.54.1 03-Apr-2008  mjf Sync with HEAD.
 1.26.50.1 24-Mar-2008  keiichi sync with head.
 1.26.30.1 23-Mar-2008  matt sync with HEAD
 1.26.28.1 21-Mar-2008  chris Sync with head.
 1.27.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.27.4.1 16-May-2009  yamt sync with head
 1.29.2.1 30-Oct-2012  yamt sync with head
 1.32.28.2 27-Sep-2017  jdolecek change wdc_init_shadow_regs() to accept only struct wdc_regs, it doesn't
touch anything else

factor out the probe-only struct ata_channel initialization to wdcprobe(), to
reduce duplication of logic in individual drivers, and to actually work now
that more init is needed beyond the memset()
 1.32.28.1 24-Apr-2017  jdolecek use ata_queue_alloc() to dynamically allocate ata_queue for ata channel
 1.32.2.1 03-Dec-2017  jdolecek update from HEAD
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file icside_io_asm.S was added on branch kqueue on 2002-01-10 19:36:33 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file icside_io_asm.S was added on branch nathanw_sa on 2001-10-05 22:27:57 +0000
 1.3 15-Sep-2002  bjh21 Allocate channel structures as part of the softc rather than malloc'ing them
at run time. This simplifies the code and avoids problems with uninitialised
variables, and if it's good enough for pciide(4), it's good enough for me.

Also normalise the prefix for channel-specific messages.
 1.2 14-Sep-2002  bjh21 On ARCIN v6 cards, clear the EPROM page latch on shutdown. This seems to be
necessary to allow the card to be detected afterwards. In theory, this
shouldn't be necessary, since we don't touch the page latch yet, but I'm not
going to argue.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file icsidereg.h was added on branch kqueue on 2002-01-10 19:36:33 +0000
 1.1.4.2 17-Sep-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file icsidereg.h was added on branch nathanw_sa on 2002-09-17 21:12:27 +0000
 1.57 18-Aug-2025  andvar Fix various typos, mainly in comments:
s/invaid/invalid/
s/instad/instead/
s/wich/with/
s/tranform/transform/
s/tranmist/transmit/
s/tranceiver/transceiver/
s/Tranparent/Transparent/
s/tranlated/translated/
s/tranfer/transfer/
s/tranmissions/transmissions/
s/condtions/conditions/
s/Recient/Recent/
 1.56 06-Oct-2024  andvar Fix couple of typos in comments.
 1.55 05-Feb-2024  andvar branches: 1.55.2;
triple "r" typos, mainly s/interrrupt/interrupt/ in comments and one definition.
 1.54 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.53 17-Sep-2022  thorpej Eliminate use of IFF_OACTIVE.
 1.52 08-Apr-2022  andvar fix various typos, mainly in comments, but also log messages, docs, game text.
 1.51 10-Nov-2021  msaitoh s/structre/structure/ in comment.
 1.50 19-Sep-2021  andvar fix various typos in comments, messages and documentation.
 1.49 24-Jul-2021  andvar s/structres/structures + s/whenver/whenever
 1.48 05-Feb-2020  skrll branches: 1.48.10;
Adopt <net/if_stats.h>
 1.47 05-Feb-2020  skrll Adopt <net/if_stats.h>
 1.46 04-Feb-2020  skrll Trailing whitespace
 1.45 04-Feb-2020  skrll Adopt <net/if_stats.h>
 1.44 13-Sep-2019  msaitoh branches: 1.44.2;
if_flags is neither int nor short. It's unsigned short.
 1.43 05-Feb-2019  msaitoh Remove very old IFF_NOTRAILERS flag.
 1.42 26-Jun-2018  msaitoh branches: 1.42.2;
Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.
 1.41 22-Jun-2018  msaitoh It's not required to include net/bpfdesc.h. Remove it.
 1.40 25-Jun-2017  maxv branches: 1.40.4;
spl leak, found by Mootja
 1.39 22-Feb-2017  nonaka branches: 1.39.6;
Apply deferred if_start to more MD drivers.
 1.38 15-Dec-2016  ozaki-r branches: 1.38.2;
Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input

The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
- Where/When if_ipackets is counted up
- Note that some drivers still update packet statistics in their own
way (periodical update)
- Moved bpf_mtap run in softint
- This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net
 1.37 10-Jun-2016  ozaki-r branches: 1.37.2;
Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.
 1.36 09-Feb-2016  ozaki-r Introduce softint-based if_input

This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!
 1.35 20-May-2015  ozaki-r Remove leftover use of AF_NS and NS option

Unnecessary NETISR_NS is also removed.
 1.34 25-Oct-2014  skrll branches: 1.34.2;
Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.33 18-Oct-2014  snj src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
 1.32 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.31 10-May-2012  skrll branches: 1.31.2;
_int*_t -> uint*_t

Same code before and after.
 1.30 03-Jun-2011  matt branches: 1.30.2; 1.30.6;
device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.29 05-Apr-2010  joerg branches: 1.29.2; 1.29.6;
Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
 1.28 19-Jan-2010  pooka branches: 1.28.2; 1.28.4;
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.27 16-May-2009  cegger KNF, same object code generated
 1.26 12-May-2009  cegger use device_xname()
 1.25 18-Mar-2009  cegger bcopy -> memcpy
 1.24 18-Mar-2009  cegger bzero -> memset
 1.23 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.22 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.21 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.20 07-Nov-2008  dyoung branches: 1.20.4;
*** Summary ***

When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.

Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address. (Thanks matt@.)

Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior. Make network drivers share more code.

Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.

Return consistent, appropriate error codes from network drivers.

Improve readability. KNF.

*** Details ***

In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.

In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.

Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr. That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.

In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.

Pull device initialization out of switch statements under
SIOCINITIFADDR. For example, pull ..._init() out of any switch
statement that looks like this:

switch (...->sa_family) {
case ...:
..._init();
...
break;
...
default:
..._init();
...
break;
}

Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,

switch (x & (IFF_UP|IFF_RUNNING)) {
case 0:
...
break;
case IFF_RUNNING:
...
break;
case IFF_UP:
...
break;
case IFF_UP|IFF_RUNNING:
...
break;
}

unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).

In ipw(4), remove an if_set_sadl() call that is out of place.

In nfe(4), reuse the jumbo MTU logic in ether_ioctl().

Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure. Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.

Return ENOTTY instead of EINVAL for inappropriate ioctls. In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.

Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source. In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.

Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.

In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.

Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.

In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.

Let ifioctl_common() handle SIOCGIFADDR.

Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.

In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.

bzero -> memset. Delete unnecessary casts to void *. Use
sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with
NULL instead of "testing truth". Replace some instances of (type
*)0 with NULL. Change some K&R prototypes to ANSI C, and join
lines.
 1.19 17-Oct-2007  garbled branches: 1.19.16; 1.19.20; 1.19.26; 1.19.28;
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.18 26-Aug-2007  dyoung branches: 1.18.2;
Constify.
 1.17 04-Mar-2007  christos branches: 1.17.2; 1.17.10; 1.17.14; 1.17.18; 1.17.20;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.16 26-Oct-2006  bjh21 branches: 1.16.4;
No need for two __KERNEL_RCSIDs.
 1.15 24-Dec-2005  perry branches: 1.15.20; 1.15.22;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.14 11-Dec-2005  christos merge ktrace-lwp.
 1.13 14-Jul-2003  lukem branches: 1.13.16;
use __KERNEL_RCSID() in a consistent manner
 1.12 14-Jul-2003  lukem use __KERNEL_RCSID(0, instead of RCSID( in the kernel
 1.11 20-Jan-2003  bouyer branches: 1.11.2;
bzero the part of the buffer used to pad the packet to
ETHER_MIN_LEN - ETHER_CRC_LEN.
 1.10 02-Oct-2002  thorpej Fix script-o's in previous.
 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 22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.5 18-Feb-2002  bjh21 branches: 1.5.8; 1.5.10;
Add internal prototypes for lots of functions.
Add __RCSID() while I'm here.
 1.4 16-Jan-2002  thorpej Use bpf_mtap().
 1.3 27-Nov-2001  thorpej branches: 1.3.2;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.2 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.5 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.4 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file if_ie.c was added on branch nathanw_sa on 2002-01-08 00:22:46 +0000
 1.3.2.6 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.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.3.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 27-Nov-2001  thorpej file if_ie.c was added on branch kqueue on 2002-01-10 19:36:34 +0000
 1.5.10.2 28-Jan-2003  jmc Pullup revisions 1.10-1.11 (requested by bouyer in ticket #1120)
bzero the part of the buffer used to pad the packet to
ETHER_MIN_LEN - ETHER_CRC_LEN.
 1.5.10.1 01-Nov-2002  tron Pull up revision 1.6 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.5.8.1 30-May-2002  gehenna Catch up with -current.
 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.13.16.3 03-Sep-2007  yamt sync with head.
 1.13.16.2 30-Dec-2006  yamt sync with head.
 1.13.16.1 21-Jun-2006  yamt sync with head.
 1.15.22.1 10-Dec-2006  yamt sync with head.
 1.15.20.1 18-Nov-2006  ad Sync with head.
 1.16.4.1 12-Mar-2007  rmind Sync with HEAD.
 1.17.20.1 01-Jan-2008  chris Sync with HEAD.
 1.17.18.1 03-Sep-2007  jmcneill Sync with HEAD.
 1.17.14.1 03-Sep-2007  skrll Sync with HEAD.
 1.17.10.1 03-Oct-2007  garbled Sync with HEAD
 1.17.2.1 09-Oct-2007  ad Sync with head.
 1.18.2.1 06-Nov-2007  matt sync with HEAD
 1.19.28.2 28-Apr-2009  skrll Sync with HEAD.
 1.19.28.1 19-Jan-2009  skrll Sync with HEAD.
 1.19.26.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.19.20.5 11-Aug-2010  yamt sync with head.
 1.19.20.4 11-Mar-2010  yamt sync with head
 1.19.20.3 20-Jun-2009  yamt sync with head
 1.19.20.2 16-May-2009  yamt sync with head
 1.19.20.1 04-May-2009  yamt sync with head.
 1.19.16.1 17-Jan-2009  mjf Sync with HEAD.
 1.20.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.28.4.2 12-Jun-2011  rmind sync with head
 1.28.4.1 30-May-2010  rmind sync with head
 1.28.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.29.6.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.29.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.30.6.1 02-Jun-2012  mrg sync to latest -current.
 1.30.2.2 30-Oct-2012  yamt sync with head
 1.30.2.1 23-May-2012  yamt sync with head.
 1.31.2.2 03-Dec-2017  jdolecek update from HEAD
 1.31.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.34.2.5 28-Aug-2017  skrll Sync with HEAD
 1.34.2.4 05-Feb-2017  skrll Sync with HEAD
 1.34.2.3 09-Jul-2016  skrll Sync with HEAD
 1.34.2.2 19-Mar-2016  skrll Sync with HEAD
 1.34.2.1 06-Jun-2015  skrll Sync with HEAD
 1.37.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.37.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.38.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.39.6.1 26-Jul-2018  snj Pull up following revision(s) (requested by msaitoh in ticket #938):
sys/arch/acorn32/podulebus/if_ie.c: revision 1.41
sys/arch/amiga/dev/if_es.c: revision 1.58
sys/arch/amiga/dev/if_qn.c: revision 1.45
sys/arch/arm/at91/at91emac.c: revision 1.20
sys/arch/arm/ep93xx/epe.c: revision 1.37
sys/arch/emips/ebus/if_le_ebus.c: revision 1.14
sys/arch/emips/ebus/if_le_ebus.c: revision 1.15
sys/arch/mac68k/dev/if_mc.c: revision 1.46
sys/arch/macppc/dev/am79c950.c: revision 1.39
sys/arch/newsmips/apbus/if_sn.c: revision 1.40
sys/arch/next68k/dev/mb8795.c: revision 1.59
sys/arch/playstation2/dev/if_smap.c: revision 1.25
sys/arch/playstation2/dev/if_smap.c: revision 1.26
sys/arch/sun2/dev/if_ec.c: revision 1.28
sys/arch/sun3/dev/if_ie.c: revision 1.63
sys/arch/x68k/dev/if_ne_intio.c: revision 1.19
sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.75
sys/arch/xen/xen/xennetback_xenbus.c: revision 1.63
sys/dev/bi/if_ni.c: revision 1.45
sys/dev/cadence/if_cemac.c: revision 1.12
sys/dev/ic/am7990.c: revision 1.78
sys/dev/ic/am79900.c: revision 1.27
sys/dev/ic/an.c: revision 1.67
sys/dev/ic/cs89x0.c: revision 1.40
sys/dev/ic/dm9000.c: revision 1.13
sys/dev/ic/dm9000.c: revision 1.14
sys/dev/ic/dp8390.c: revision 1.88
sys/dev/ic/elink3.c: revision 1.141
sys/dev/ic/elinkxl.c: revision 1.122
sys/dev/ic/hme.c: revision 1.98
sys/dev/ic/i82586.c: revision 1.77
sys/dev/ic/lance.c: revision 1.53
sys/dev/ic/mb86950.c: revision 1.27
sys/dev/ic/mb86960.c: revision 1.86
sys/dev/ic/mtd803.c: revision 1.34
sys/dev/ic/pdq_ifsubr.c: revision 1.59
sys/dev/ic/rrunner.c: revision 1.86
sys/dev/ic/seeq8005.c: revision 1.58
sys/dev/ic/sgec.c: revision 1.47
sys/dev/ic/smc90cx6.c: revision 1.72
sys/dev/ic/smc91cxx.c: revision 1.96
sys/dev/ic/tropic.c: revision 1.49
sys/dev/ic/wi.c: revision 1.245
sys/dev/isa/if_eg.c: revision 1.93
sys/dev/isa/if_el.c: revision 1.95
sys/dev/isa/if_iy.c: revision 1.101
sys/dev/ofw/ofnet.c: revision 1.58
sys/dev/pci/if_alc.c: revision 1.27
sys/dev/pci/if_de.c: revision 1.152
sys/dev/pci/if_fpa.c: revision 1.61
sys/dev/pci/if_jme.c: revision 1.34
sys/dev/pci/if_tl.c: revision 1.108
sys/dev/pci/if_vte.c: revision 1.19
sys/dev/pci/ixgbe/ixgbe.h: revision 1.50
sys/dev/pcmcia/if_cnw.c: revision 1.62
sys/dev/pcmcia/if_malo_pcmcia.c: revision 1.17
sys/dev/pcmcia/if_ray.c: revision 1.89
sys/dev/pcmcia/if_xi.c: revision 1.81
sys/dev/pcmcia/mhzc.c: revision 1.51
sys/dev/pcmcia/xirc.c: revision 1.34
sys/dev/qbus/if_de.c: revision 1.33
sys/dev/qbus/if_qe.c: revision 1.78
sys/dev/qbus/if_qt.c: revision 1.22
sys/dev/sbus/be.c: revision 1.87
sys/dev/sbus/qe.c: revision 1.68
sys/dev/scsipi/if_se.c: revision 1.96
sys/dev/usb/if_atu.c: revision 1.59
sys/net/if_l2tp.c: revision 1.28 via patch
sys/net/if_ppp.c: revision 1.160
It's not required to include net/bpfdesc.h. Remove it.
--
Simplify like other drivers. NULL check of ifp->if_bpf is done in
bpf_mtap(), so it's not required to do it here.
--
Remove duplicated inclusion of net/bpf.h.
--
Remove duplicated inclusion of net/bpf.h.
--
Simplify bpf_mtap() call. No functional change.
 1.40.4.2 28-Jul-2018  pgoyette Sync with HEAD
 1.40.4.1 25-Jun-2018  pgoyette Sync with HEAD
 1.42.2.3 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.42.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.42.2.1 10-Jun-2019  christos Sync with HEAD
 1.44.2.1 29-Feb-2020  ad Sync with head.
 1.48.10.1 01-Aug-2021  thorpej Sync with HEAD.
 1.55.2.1 02-Aug-2025  perseant Sync with HEAD
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 04-Mar-2007  christos branches: 1.2.42; 1.2.44; 1.2.46;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.40; 1.1.78;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.78.1 12-Mar-2007  rmind Sync with HEAD.
 1.1.40.1 03-Sep-2007  yamt sync with head.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file if_iereg.h was added on branch kqueue on 2002-01-10 19:36:34 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file if_iereg.h was added on branch nathanw_sa on 2001-10-05 22:27:57 +0000
 1.2.46.1 16-May-2008  yamt sync with head.
 1.2.44.1 18-May-2008  yamt sync with head.
 1.2.42.1 02-Jun-2008  mjf Sync with HEAD.
 1.20 29-May-2019  msaitoh KNF. No functional change.
 1.19 25-Apr-2019  msaitoh No functional change:
- Use __arraycount().
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- KNF.
- Tabify.
- Remove extra space.
 1.18 21-Jan-2014  christos branches: 1.18.30;
fix unused variables
 1.17 10-May-2012  skrll branches: 1.17.2; 1.17.4;
_int*_t -> uint*_t

Same code before and after.
 1.16 19-Jul-2011  dyoung branches: 1.16.2; 1.16.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.15 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.14 12-Mar-2008  cube branches: 1.14.2; 1.14.4;
Split device_t and softc for the NE2000 Ethernet chip and all its variants
and attachments. Use device_t accessors, correct types, and ANSIfy when
appropriate.
 1.13 11-Dec-2005  christos branches: 1.13.50; 1.13.52; 1.13.72; 1.13.76;
merge ktrace-lwp.
 1.12 06-Dec-2003  bjh21 branches: 1.12.16;
Correct typo in last.
 1.11 06-Dec-2003  bjh21 Fix tiny formatting glitches.
 1.10 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.9 02-Oct-2002  thorpej branches: 1.9.8;
Fix script-o's in previous.
 1.8 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.7 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.6 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.5 22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.4 16-Dec-2001  bjh21 branches: 1.4.2; 1.4.10; 1.4.12;
Use the MI DP83905 support for media selection on those cards that use it.
 1.3 15-Dec-2001  bjh21 Use the MX98905 bug workaround for EtherN and EtherI cards.
 1.2 27-Nov-2001  thorpej Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.4 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.3 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file if_ne_pbus.c was added on branch nathanw_sa on 2002-01-08 00:22:47 +0000
 1.4.12.1 01-Nov-2002  tron Pull up revision 1.5 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.4.10.1 30-May-2002  gehenna Catch up with -current.
 1.4.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.4.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.1 16-Dec-2001  thorpej file if_ne_pbus.c was added on branch kqueue on 2002-01-10 19:36:34 +0000
 1.9.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.9.8.1 03-Aug-2004  skrll Sync with HEAD
 1.12.16.1 17-Mar-2008  yamt sync with head.
 1.13.76.2 02-Jun-2008  mjf Sync with HEAD.
 1.13.76.1 03-Apr-2008  mjf Sync with HEAD.
 1.13.72.1 24-Mar-2008  keiichi sync with head.
 1.13.52.1 23-Mar-2008  matt sync with HEAD
 1.13.50.2 21-Mar-2008  chris Sync with head.
 1.13.50.1 09-Feb-2008  chris Add initial reworking of acorn32 to use new interrupt code.

Note that cats probably won't work currently as acorn32 changed the way
that the pic is registered, it has to provide the irq lines as on acorn32
we attach the iomd after we need to register irqs for the pioc. So we
setup the irqs for iomd before malloc etc are available. This needs
to be fixed.

More work is still needed to update most of the podulebus drivers.
First I need to add podulebus wrapper for interrupts that handles the
maskaddr and maskbits. Exposing them to the common irq code is wrong.
 1.14.4.1 16-May-2008  yamt sync with head.
 1.14.2.1 18-May-2008  yamt sync with head.
 1.16.6.1 02-Jun-2012  mrg sync to latest -current.
 1.16.2.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.16.2.1 23-May-2012  yamt sync with head.
 1.17.4.1 18-May-2014  rmind sync with head
 1.17.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.18.30.1 10-Jun-2019  christos Sync with HEAD
 1.4 10-Feb-2024  andvar fix various typos in comments and log messages.
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 16-Dec-2001  bjh21 branches: 1.2.2; 1.2.124; 1.2.126; 1.2.128;
Use the MI DP83905 support for media selection on those cards that use it.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file if_ne_pbusreg.h was added on branch nathanw_sa on 2002-01-08 00:22:47 +0000
 1.2.128.1 16-May-2008  yamt sync with head.
 1.2.126.1 18-May-2008  yamt sync with head.
 1.2.124.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 16-Dec-2001  thorpej file if_ne_pbusreg.h was added on branch kqueue on 2002-01-10 19:36:34 +0000
 1.12 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.11 25-Oct-2014  skrll Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.10 10-May-2012  skrll branches: 1.10.2;
_int*_t -> uint*_t

Same code before and after.
 1.9 03-Jun-2011  matt branches: 1.9.2; 1.9.6;
device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.8 14-Mar-2009  dsl branches: 1.8.4; 1.8.6; 1.8.10;
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.7 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.6 05-Oct-2002  chs branches: 1.6.116; 1.6.124; 1.6.130;
add missing protos, clean up includes.
 1.5 19-Jun-2002  bjh21 $Id$ -> $NetBSD$ (oops).
 1.4 27-Nov-2001  thorpej branches: 1.4.2; 1.4.10;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.3 23-Nov-2001  thorpej No need to pull in <machine/pte.h> directly.
 1.2 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.4 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.3 01-Aug-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file netslot.c was added on branch nathanw_sa on 2002-01-08 00:22:47 +0000
 1.4.10.1 16-Jul-2002  gehenna catch up with -current.
 1.4.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.4.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.1 27-Nov-2001  thorpej file netslot.c was added on branch kqueue on 2002-01-10 19:36:35 +0000
 1.6.130.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.124.1 28-Apr-2009  skrll Sync with HEAD.
 1.6.116.1 04-May-2009  yamt sync with head.
 1.8.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.8.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.8.4.1 12-Jun-2011  rmind sync with head
 1.9.6.1 02-Jun-2012  mrg sync to latest -current.
 1.9.2.1 23-May-2012  yamt sync with head.
 1.10.2.1 03-Dec-2017  jdolecek update from HEAD
 1.34 30-May-2022  andvar s/identifing/identifying/ and s/multipler/multiplier/ in comments.
 1.33 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.32 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.31 24-Apr-2021  thorpej branches: 1.31.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.30 20-Nov-2020  thorpej branches: 1.30.2;
malloc(9) -> kmem(9)
 1.29 25-Oct-2014  skrll branches: 1.29.32;
Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.28 13-Sep-2014  matt Replace more vm_offset_t, vm_size_t with vaddr_t, vsize_t
Use paddr_t for msgbufphys
 1.27 21-Mar-2014  christos kill sprintf
 1.26 03-Jun-2011  matt branches: 1.26.2; 1.26.12; 1.26.16;
device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.25 12-May-2009  cegger branches: 1.25.4; 1.25.6; 1.25.10;
use device_xname()
 1.24 15-Mar-2009  cegger ansify function definitions
 1.23 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.22 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.21 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.20 11-Dec-2005  christos branches: 1.20.80; 1.20.88; 1.20.94;
merge ktrace-lwp.
 1.19 26-Aug-2005  drochner s/locdesc_t/int/g
 1.18 28-Jun-2005  drochner branches: 1.18.2;
convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)
 1.17 21-May-2003  thorpej branches: 1.17.2;
Fully switch acorn32 to the new pmap; it has been confirmed to work.
 1.16 26-Apr-2003  chris Add support for ARM32_PMAP_NEW. Note that due to changes to how the l1
table is handled the podulebus mappings are now done at initarm, rather
than in the podulebus code. While I'm not happy with this it does work,
perhaps there's a better way to do it?

Not enableing by default I've not got enough cards to check the podulebus
change hasn't broken something (works with my rapide and with my network
podule)
 1.15 01-Jan-2003  thorpej Use aprint_normal() for cfprint routines.
 1.14 02-Oct-2002  thorpej Fix script-o's in previous.
 1.13 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.12 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.11 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.10 27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.9 22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.8 05-Apr-2002  thorpej branches: 1.8.2; 1.8.4;
* Rewrite the 32-bit ARM pte.h based on the ARM architecture manual.
Significant cleanup, here, including better PTE bit names.
* Add XScale PTE extensions (ECC enable, write-allocate cache mode).
* Mechanical changes everywhere else to update for new pte.h. While
doing this, two bugs (as a result of typos) were fixed in

arm/arm32/bus_dma.c
evbarm/integrator/int_bus_dma.c
 1.7 10-Mar-2002  bjh21 __RCSID -> __KERNEL_RCSID
 1.6 20-Feb-2002  thorpej Rename map_section() to pmap_map_section(), move it to pmap.c, and give it
an extra argument (prot - specifies protection of the mapping).
 1.5 18-Feb-2002  bjh21 Add prototypes for podulebusmatch(), podulebusattach(), podulebusprint(),
podulebussubmatch(), podulechunkdirectory() and podulesncan().
Fix argument types of podulebussubmatch().
Remove podloader_read_region(), since it's not used externally.
 1.4 27-Nov-2001  thorpej branches: 1.4.2;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.3 23-Nov-2001  thorpej No need to pull in <machine/pte.h> directly.
 1.2 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.8 03-Jan-2003  thorpej Sync with HEAD.
 1.1.4.7 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.6 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.5 17-Apr-2002  nathanw Catch up to -current.
 1.1.4.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file podulebus.c was added on branch nathanw_sa on 2002-01-08 00:22:47 +0000
 1.4.2.5 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.4.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.4.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.1 27-Nov-2001  thorpej file podulebus.c was added on branch kqueue on 2002-01-10 19:36:35 +0000
 1.8.4.1 01-Nov-2002  tron Pull up revision 1.9 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.8.2.1 30-May-2002  gehenna Catch up with -current.
 1.17.2.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.18.2.1 21-Jun-2006  yamt sync with head.
 1.20.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.20.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.20.80.2 16-May-2009  yamt sync with head
 1.20.80.1 04-May-2009  yamt sync with head.
 1.25.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.25.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.25.4.1 12-Jun-2011  rmind sync with head
 1.26.16.1 18-May-2014  rmind sync with head
 1.26.12.2 03-Dec-2017  jdolecek update from HEAD
 1.26.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.26.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.32.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.30.2.2 22-Mar-2021  thorpej Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.
 1.30.2.1 22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.31.8.1 03-Aug-2021  thorpej Adapt to CFARGS().
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file podulebus.h was added on branch kqueue on 2002-01-10 19:36:35 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file podulebus.h was added on branch nathanw_sa on 2001-10-05 22:27:58 +0000
 1.9 16-Mar-2018  ryo use designated initializer to make adaptability and flexibility for changing struct bus_space.
no functional change.
 1.8 10-May-2012  skrll branches: 1.8.38;
_int*_t -> uint*_t

Same code before and after.
 1.7 19-Jul-2011  dyoung branches: 1.7.2; 1.7.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.6 15-Mar-2009  cegger ansify function definitions
 1.5 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.4 11-Dec-2005  christos branches: 1.4.80; 1.4.88; 1.4.94;
merge ktrace-lwp.
 1.3 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.2 27-Sep-2002  provos branches: 1.2.8;
remove trailing \n in panic(). approved perry.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file podulebus_io.c was added on branch kqueue on 2002-01-10 19:36:35 +0000
 1.1.4.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file podulebus_io.c was added on branch nathanw_sa on 2002-10-18 02:33:44 +0000
 1.2.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.8.1 03-Aug-2004  skrll Sync with HEAD
 1.4.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.80.1 04-May-2009  yamt sync with head.
 1.7.6.1 02-Jun-2012  mrg sync to latest -current.
 1.7.2.1 23-May-2012  yamt sync with head.
 1.8.38.1 22-Mar-2018  pgoyette Synch with HEAD, resolve conflicts
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file podulebus_io_asm.S was added on branch kqueue on 2002-01-10 19:36:36 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file podulebus_io_asm.S was added on branch nathanw_sa on 2001-10-05 22:27:59 +0000
 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 13-Sep-2014  matt branches: 1.19.34;
Replace more vm_offset_t, vm_size_t with vaddr_t, vsize_t
Use paddr_t for msgbufphys
 1.18 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.17 03-Jun-2011  matt branches: 1.17.2; 1.17.12;
device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.16 12-May-2009  cegger branches: 1.16.4; 1.16.6; 1.16.10;
use device_xname()
 1.15 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.14 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.13 11-Dec-2005  christos branches: 1.13.80; 1.13.88; 1.13.94;
merge ktrace-lwp.
 1.12 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.11 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.10 03-May-2003  wiz branches: 1.10.2;
DMA, not dma nor Dma.
 1.9 01-Apr-2003  thorpej Use PAGE_SIZE rather than NBPG.
 1.8 05-Oct-2002  chs add missing protos, clean up includes.
 1.7 02-Oct-2002  thorpej Fix script-o's in previous.
 1.6 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.5 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.3 05-Aug-2002  bjh21 Rather than forcing on XS_POLL in SCSI transfers ourselves, set
SCSIPI_ADAPT_POLL_ONLY to tell the MI scsipi layer to do it for us. This,
plus G/Cing some debugging code, removes the card-specific scsi_request
wrappers.
 1.2 27-Nov-2001  thorpej branches: 1.2.2; 1.2.10;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.4 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.3 13-Aug-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file ptsc.c was added on branch nathanw_sa on 2002-01-08 00:22:47 +0000
 1.2.10.1 30-Aug-2002  gehenna catch up with -current.
 1.2.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 27-Nov-2001  thorpej file ptsc.c was added on branch kqueue on 2002-01-10 19:36:36 +0000
 1.10.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.10.2.1 03-Aug-2004  skrll Sync with HEAD
 1.13.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.13.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.13.80.2 16-May-2009  yamt sync with head
 1.13.80.1 04-May-2009  yamt sync with head.
 1.16.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.16.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.16.4.1 12-Jun-2011  rmind sync with head
 1.17.12.2 03-Dec-2017  jdolecek update from HEAD
 1.17.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.17.2.1 30-Oct-2012  yamt sync with head
 1.19.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.20.8.1 03-Aug-2021  thorpej Adapt to CFARGS().
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ptscreg.h was added on branch kqueue on 2002-01-10 19:36:36 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ptscreg.h was added on branch nathanw_sa on 2001-10-05 22:27:59 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file ptscvar.h was added on branch kqueue on 2002-01-10 19:36:36 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file ptscvar.h was added on branch nathanw_sa on 2001-10-05 22:27:59 +0000
 1.33 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.32 20-Oct-2017  jdolecek move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init()
and ata_channel_destroy() respectively, to make attachment code simpler,
and to make it easier to spot special queue manipulation like cmdide(4)

on topic of PR kern/52606
 1.31 07-Oct-2017  jdolecek Merge support for SATA NCQ (Native Command Queueing) from jdolecek-ncq branch

ATA subsystem was changed to support several outstanding commands, and use
NCQ xfers if supported by both the controller and the disk, including NCQ
error recovery. Set NCQ high priority for BPRIO_TIMECRITICAL xfers
if supported. Added FUA support.

Done some work towards MP-safe, all ATA code tsleep()/wakeup() replaced
by condvars, and switched most code from spl* to mutexes (separate
wd(4) and ata channel lock).

Introduced new option WD_CHAOS_MONKEY to facilitate testing of error
handling, fixed several uncovered issues. Also fixed several problems
with kernel dump to wd(4) disk.

Tested with ahcisata(4), mvsata(4), siisata(4), piixide(4) on amd64,
with and without port multiplier, both disk and ATAPI devices; other
drivers and archs mechanically adjusted and compile-tested. NCQ is
supported for ahcisata(4) and siisata(4) for any controller, for
mvsata(4) only Gen IIe ones for now. Also enabled ATAPI support in
mvsata(4).

Thanks to Matt Thomas for initial ATA infrastructure patch, and
Jonathan A.Kollasch for siisata(4) NCQ changes and general testing.

Also fixes PR kern/43169 (wd(4)); and PR kern/11811, PR kern/47041,
PR kern/51979 (kernel dump)
 1.30 31-Jul-2012  bouyer branches: 1.30.2; 1.30.28;
Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.
 1.29 26-Jul-2012  jakllsch Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@
 1.28 02-Jul-2012  bouyer Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
when SATA cable move was needed
 1.27 19-Jul-2011  dyoung branches: 1.27.2;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.26 18-Mar-2008  cube Split device_t and softc for ATA devices, as well as wd(4). Other
cosmetic changes where appropriate.
 1.25 09-Oct-2006  bjh21 branches: 1.25.28; 1.25.30; 1.25.50; 1.25.54;
The correct number of elements to insert into cmd_iohs is WDC_NREG. Using
larger numbers risks a buffer overflow and panic. Bug spotted by Mike Pumford.
Patch compile-tested only, but it's obviously correct.
 1.24 16-Jan-2006  bouyer branches: 1.24.18; 1.24.20;
properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
 1.23 11-Dec-2005  christos branches: 1.23.2;
merge ktrace-lwp.
 1.22 20-Aug-2004  thorpej branches: 1.22.12;
Move most of wdc_softc into a new atac_softc structure that contains
info common to all types of ATA controllers.
 1.21 14-Aug-2004  thorpej - Split the register handles out of struct wdc_channel into a separate
wdc_regs structure, and array of which (indexed per channel) is pointed
to by struct wdc_softc.
- Move the resulting wdc_channel structure to atavar.h and rename it to
ata_channel. Rename the corresponding flags.
- Add a "ch_ndrive" member to struct ata_channel, which indicates the
maximum number of drives that can be present on the channel. For now,
this is always 2. Add an ATA_MAXDRIVES constant that places an upper
limit on this value, also currently 2.
 1.20 25-May-2004  thorpej Add the notion of "shadow registers" to the wdc driver. These shadow
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers. Right now, the two
shadows are:

- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)

Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.

Partially from Jordan Rhody @ Wasabi Systems, Inc.
 1.19 03-Jan-2004  thorpej More wdc_channel structure member namespace cleanup:
- channel -> ch_channel
- wdc -> ch_wdc
 1.18 03-Jan-2004  thorpej Rename "struct channel_softc" to "struct wdc_channel".
 1.17 01-Jan-2004  thorpej Rename:
- wdc_xfer to ata_xfer
- channel_queue to ata_queue
and move them to <dev/ata/atavar.h> so they can be used by non-wdc ATA
controllers. Clean up the member names of these structures while at it.
 1.16 31-Dec-2003  thorpej Simplify allocation of the channel queue.
 1.15 02-Dec-2003  bjh21 Update for new world of indirect wdc registers.
 1.14 19-Oct-2003  he Adapt to the new wdcattach() signature.
 1.13 08-Oct-2003  bouyer Adapt for wdcattach() prototype change.
 1.12 25-Sep-2003  mycroft Hide the use of config_interrupts() in one place.
 1.11 24-Sep-2003  mycroft Take a stab at making this compile, at least.
 1.10 21-Sep-2003  matt Adapt to new wdcattach calling conventions.
 1.9 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.8 04-Feb-2003  perry branches: 1.8.2;
correct grammar and use use
 1.7 02-Oct-2002  thorpej Fix script-o's in previous.
 1.6 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.5 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.3 22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2 27-Nov-2001  thorpej branches: 1.2.2; 1.2.10; 1.2.12;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.4 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.3 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file rapide.c was added on branch nathanw_sa on 2002-01-08 00:22:47 +0000
 1.2.12.1 01-Nov-2002  tron Pull up revision 1.3 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2.10.1 30-May-2002  gehenna Catch up with -current.
 1.2.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 27-Nov-2001  thorpej file rapide.c was added on branch kqueue on 2002-01-10 19:36:37 +0000
 1.8.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.8.2.2 25-Aug-2004  skrll Sync with HEAD.
 1.8.2.1 03-Aug-2004  skrll Sync with HEAD
 1.22.12.3 24-Mar-2008  yamt sync with head.
 1.22.12.2 30-Dec-2006  yamt sync with head.
 1.22.12.1 21-Jun-2006  yamt sync with head.
 1.23.2.1 01-Feb-2006  yamt sync with head.
 1.24.20.1 22-Oct-2006  yamt sync with head
 1.24.18.1 18-Nov-2006  ad Sync with head.
 1.25.54.1 03-Apr-2008  mjf Sync with HEAD.
 1.25.50.1 24-Mar-2008  keiichi sync with head.
 1.25.30.1 23-Mar-2008  matt sync with HEAD
 1.25.28.2 21-Mar-2008  chris Sync with head.
 1.25.28.1 09-Feb-2008  chris Add initial reworking of acorn32 to use new interrupt code.

Note that cats probably won't work currently as acorn32 changed the way
that the pic is registered, it has to provide the irq lines as on acorn32
we attach the iomd after we need to register irqs for the pioc. So we
setup the irqs for iomd before malloc etc are available. This needs
to be fixed.

More work is still needed to update most of the podulebus drivers.
First I need to add podulebus wrapper for interrupts that handles the
maskaddr and maskbits. Exposing them to the common irq code is wrong.
 1.27.2.1 30-Oct-2012  yamt sync with head
 1.30.28.2 27-Sep-2017  jdolecek change wdc_init_shadow_regs() to accept only struct wdc_regs, it doesn't
touch anything else

factor out the probe-only struct ata_channel initialization to wdcprobe(), to
reduce duplication of logic in individual drivers, and to actually work now
that more init is needed beyond the memset()
 1.30.28.1 24-Apr-2017  jdolecek use ata_queue_alloc() to dynamically allocate ata_queue for ata channel
 1.30.2.1 03-Dec-2017  jdolecek update from HEAD
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file rapide_io_asm.S was added on branch kqueue on 2002-01-10 19:36:37 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file rapide_io_asm.S was added on branch nathanw_sa on 2001-10-05 22:27:59 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file rapidereg.h was added on branch kqueue on 2002-01-10 19:36:37 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file rapidereg.h was added on branch nathanw_sa on 2001-10-05 22:27:59 +0000
 1.18 03-May-2022  andvar fix various typos, mainly s/trasfering/transferring/ and s/theese/these/.
 1.17 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.16 19-Jul-2011  dyoung branches: 1.16.2; 1.16.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.15 12-May-2009  cegger use device_xname()
 1.14 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.13 17-Oct-2007  garbled branches: 1.13.20; 1.13.28; 1.13.34;
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.12 09-Jul-2007  ad branches: 1.12.10; 1.12.12;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.11 08-Mar-2006  lukem branches: 1.11.20; 1.11.22; 1.11.28;
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
 1.10 11-Dec-2005  christos branches: 1.10.4; 1.10.6; 1.10.8; 1.10.10;
merge ktrace-lwp.
 1.9 09-Jun-2005  he branches: 1.9.2;
Adapt to compiling with -Wcast-qual and -Wshadow.
 1.8 21-Sep-2003  matt Fix GCC 3.3.1 nits.
 1.7 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.6 03-May-2003  wiz branches: 1.6.2;
DMA, not dma nor Dma.
 1.5 04-Oct-2002  bjh21 Don't define DEBUG if it's already defined.
 1.4 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.3 10-Mar-2002  bjh21 __RCSID -> __KERNEL_RCSID
 1.2 18-Feb-2002  bjh21 Add prototype for sbicdumpstate().
Add in-core RCSID.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file sbic.c was added on branch kqueue on 2002-01-10 19:36:37 +0000
 1.1.4.4 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file sbic.c was added on branch nathanw_sa on 2002-02-28 04:05:58 +0000
 1.6.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 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.9.2.2 03-Sep-2007  yamt sync with head.
 1.9.2.1 21-Jun-2006  yamt sync with head.
 1.10.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.10.8.1 13-Mar-2006  yamt sync with head.
 1.10.6.1 22-Apr-2006  simonb Sync with head.
 1.10.4.1 09-Sep-2006  rpaulo sync with head
 1.11.28.1 03-Oct-2007  garbled Sync with HEAD
 1.11.22.1 11-Jul-2007  mjf Sync with head.
 1.11.20.1 15-Jul-2007  ad Sync with head.
 1.12.12.1 06-Nov-2007  matt sync with HEAD
 1.12.10.1 01-Jan-2008  chris Sync with HEAD.
 1.13.34.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.13.28.1 28-Apr-2009  skrll Sync with HEAD.
 1.13.20.2 16-May-2009  yamt sync with head
 1.13.20.1 04-May-2009  yamt sync with head.
 1.16.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.16.2.1 30-Oct-2012  yamt sync with head
 1.6 16-Sep-2021  andvar fix various typos, mainly in comments.
 1.5 08-Mar-2006  lukem Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
 1.4 11-Dec-2005  christos branches: 1.4.4; 1.4.6; 1.4.8; 1.4.10;
merge ktrace-lwp.
 1.3 21-Sep-2003  matt branches: 1.3.16;
Fix GCC 3.3.1 nits.
 1.2 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.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file sbicreg.h was added on branch kqueue on 2002-01-10 19:36:38 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file sbicreg.h was added on branch nathanw_sa on 2001-10-05 22:27:59 +0000
 1.3.16.1 21-Jun-2006  yamt sync with head.
 1.4.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.4.8.1 13-Mar-2006  yamt sync with head.
 1.4.6.1 22-Apr-2006  simonb Sync with head.
 1.4.4.1 09-Sep-2006  rpaulo sync with head
 1.8 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.7 01-Jan-2022  andvar fix typos in comments, mainly basicly -> basically.
 1.6 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.5 29-Jul-2012  matt branches: 1.5.2;
Fix more -fno-common fallout.
Move more variables to common locations.
 1.4 11-Dec-2005  christos branches: 1.4.114;
merge ktrace-lwp.
 1.3 07-Dec-2004  thorpej Use "struct scsipi_command" in internal command structures so that
we have enough space for 16-byte CDBs.
 1.2 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.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6; 1.1.24;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.24.4 18-Dec-2004  skrll Sync with HEAD.
 1.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file sbicvar.h was added on branch kqueue on 2002-01-10 19:36:38 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file sbicvar.h was added on branch nathanw_sa on 2001-10-05 22:28:00 +0000
 1.4.114.1 30-Oct-2012  yamt sync with head
 1.5.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.31 28-Aug-2023  andvar fix SFAS_DEBUG enabled build for acorn32:
declare dump_nexus(), dump_nexii(), dump_sfassoftc() than option is enabled.
fix specifier for nexus->dma[loop].ptr in printf().
 1.30 21-Aug-2021  andvar fix some more typos in comments/log messages, improve wording as well.
 1.29 22-Jul-2020  msaitoh s/reseting/resetting/
 1.28 27-Dec-2019  msaitoh s/transfered/transferred/
 1.27 17-Aug-2016  skrll branches: 1.27.16;
Spelling on comment
 1.26 25-Oct-2014  skrll branches: 1.26.2;
Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.25 13-Sep-2014  matt Replace more vm_offset_t, vm_size_t with vaddr_t, vsize_t
Use paddr_t for msgbufphys
 1.24 22-Feb-2014  matt Deal with non-4KB page sizes
 1.23 21-Jan-2014  christos fix unused variables
 1.22 27-Oct-2012  chs branches: 1.22.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.21 09-Dec-2010  uebayasi branches: 1.21.8; 1.21.18;
Fix DEBUG build.
 1.20 16-May-2009  cegger branches: 1.20.4;
KNF, same object code generated
 1.19 18-Mar-2009  cegger bcopy -> memcpy
 1.18 18-Mar-2009  cegger bzero -> memset
 1.17 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.16 08-Mar-2006  lukem branches: 1.16.70; 1.16.78; 1.16.84;
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
 1.15 11-Dec-2005  christos branches: 1.15.4; 1.15.6; 1.15.8; 1.15.10;
merge ktrace-lwp.
 1.14 01-Apr-2005  yamt branches: 1.14.2;
merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
save some resources like pv_entry. also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
 1.13 10-Nov-2003  wiz branches: 1.13.8; 1.13.10;
Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
 1.12 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.11 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.10 03-May-2003  wiz branches: 1.10.2;
DMA, not dma nor Dma.
 1.9 01-Apr-2003  thorpej Use PAGE_SIZE rather than NBPG.
 1.8 05-Oct-2002  chs add missing protos, clean up includes.
 1.7 22-Aug-2002  thorpej * Add PTE_SYNC() and PTE_SYNC_RANGE() macros. These don't actually do
anything yet.
* Use PTE_SYNC() and PTE_SYNC_RANGE() in some obvious places, i.e.
where vtopte() is used.
 1.6 05-Apr-2002  thorpej branches: 1.6.2;
* Rewrite the 32-bit ARM pte.h based on the ARM architecture manual.
Significant cleanup, here, including better PTE bit names.
* Add XScale PTE extensions (ECC enable, write-allocate cache mode).
* Mechanical changes everywhere else to update for new pte.h. While
doing this, two bugs (as a result of typos) were fixed in

arm/arm32/bus_dma.c
evbarm/integrator/int_bus_dma.c
 1.5 24-Mar-2002  thorpej Use vtopte() instead of pmap_pte().
 1.4 25-Jan-2002  thorpej Overhaul of the ARM cache code. This is mostly a simplification
pass. Rather than providing a whole slew of cache operations that
aren't ever used, distill them down to some useful primitives:

icache_sync_all Synchronize I-cache
icache_sync_range Synchronize I-cache range

dcache_wbinv_all Write-back and Invalidate D-cache
dcache_wbinv_range Write-back and Invalidate D-cache range
dcache_inv_range Invalidate D-cache range
dcache_wb_range Write-back D-cache range

idcache_wbinv_all Write-back and Invalidate D-cache,
Invalidate I-cache
idcache_wbinv_range Write-back and Invalidate D-cache,
Invalidate I-cache range

Note: This does not yet include an overhaul of the actual asm files
that implement the primitives. Instead, we've provided a safe default
for each CPU type, and the individual CPU types can now be optimized
one at a time.
 1.3 27-Nov-2001  thorpej branches: 1.3.2;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.2 22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.7 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.6 27-Aug-2002  thorpej Sync with -current.
 1.1.4.5 17-Apr-2002  nathanw Catch up to -current.
 1.1.4.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file sfas.c was added on branch nathanw_sa on 2002-01-08 00:22:47 +0000
 1.3.2.5 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 27-Nov-2001  thorpej file sfas.c was added on branch kqueue on 2002-01-10 19:36:38 +0000
 1.6.2.1 30-Aug-2002  gehenna catch up with -current.
 1.10.2.4 01-Apr-2005  skrll Sync with HEAD.
 1.10.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.10.2.1 03-Aug-2004  skrll Sync with HEAD
 1.13.10.1 28-Jan-2005  yamt convert arch/acorn{26,32} to new apis.
 1.13.8.1 29-Apr-2005  kent sync with -current
 1.14.2.1 21-Jun-2006  yamt sync with head.
 1.15.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.15.8.1 13-Mar-2006  yamt sync with head.
 1.15.6.1 22-Apr-2006  simonb Sync with head.
 1.15.4.1 09-Sep-2006  rpaulo sync with head
 1.16.84.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.16.78.1 28-Apr-2009  skrll Sync with HEAD.
 1.16.70.2 20-Jun-2009  yamt sync with head
 1.16.70.1 04-May-2009  yamt sync with head.
 1.20.4.1 05-Mar-2011  rmind sync with head
 1.21.18.3 03-Dec-2017  jdolecek update from HEAD
 1.21.18.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.18.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.21.8.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.21.8.1 30-Oct-2012  yamt sync with head
 1.22.2.1 18-May-2014  rmind sync with head
 1.26.2.1 05-Oct-2016  skrll Sync with HEAD
 1.27.16.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file sfasreg.h was added on branch kqueue on 2002-01-10 19:36:39 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file sfasreg.h was added on branch nathanw_sa on 2001-10-05 22:28:00 +0000
 1.9 21-Aug-2021  andvar fix some more typos in comments/log messages, improve wording as well.
 1.8 22-Jul-2020  msaitoh s/reseting/resetting/
 1.7 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.6 14-Mar-2009  dsl branches: 1.6.12; 1.6.22;
Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.5 11-Dec-2005  christos branches: 1.5.80; 1.5.88; 1.5.94;
merge ktrace-lwp.
 1.4 10-Nov-2003  wiz Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
 1.3 09-Apr-2003  thorpej branches: 1.3.2;
Use PAGE_SIZE rather than NBPG.
 1.2 05-Oct-2002  chs add missing protos, clean up includes.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file sfasvar.h was added on branch kqueue on 2002-01-10 19:36:40 +0000
 1.1.4.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file sfasvar.h was added on branch nathanw_sa on 2002-10-18 02:33:46 +0000
 1.3.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.2.1 03-Aug-2004  skrll Sync with HEAD
 1.5.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.5.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.5.80.1 04-May-2009  yamt sync with head.
 1.6.22.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.6.12.1 30-Oct-2012  yamt sync with head
 1.33 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.32 04-Apr-2022  andvar fix various typos, mainly in comments.
 1.31 20-Oct-2017  jdolecek move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init()
and ata_channel_destroy() respectively, to make attachment code simpler,
and to make it easier to spot special queue manipulation like cmdide(4)

on topic of PR kern/52606
 1.30 07-Oct-2017  jdolecek Merge support for SATA NCQ (Native Command Queueing) from jdolecek-ncq branch

ATA subsystem was changed to support several outstanding commands, and use
NCQ xfers if supported by both the controller and the disk, including NCQ
error recovery. Set NCQ high priority for BPRIO_TIMECRITICAL xfers
if supported. Added FUA support.

Done some work towards MP-safe, all ATA code tsleep()/wakeup() replaced
by condvars, and switched most code from spl* to mutexes (separate
wd(4) and ata channel lock).

Introduced new option WD_CHAOS_MONKEY to facilitate testing of error
handling, fixed several uncovered issues. Also fixed several problems
with kernel dump to wd(4) disk.

Tested with ahcisata(4), mvsata(4), siisata(4), piixide(4) on amd64,
with and without port multiplier, both disk and ATAPI devices; other
drivers and archs mechanically adjusted and compile-tested. NCQ is
supported for ahcisata(4) and siisata(4) for any controller, for
mvsata(4) only Gen IIe ones for now. Also enabled ATAPI support in
mvsata(4).

Thanks to Matt Thomas for initial ATA infrastructure patch, and
Jonathan A.Kollasch for siisata(4) NCQ changes and general testing.

Also fixes PR kern/43169 (wd(4)); and PR kern/11811, PR kern/47041,
PR kern/51979 (kernel dump)
 1.29 31-Jul-2012  bouyer branches: 1.29.2; 1.29.28;
Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.
 1.28 26-Jul-2012  jakllsch Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

ok christos@
 1.27 02-Jul-2012  bouyer Add sata Port MultiPlier (PMP) support to the ata bus layer,
as described in
http://mail-index.netbsd.org/tech-kern/2012/06/23/msg013442.html
PMP support in integrated to the atabus layer.
struct ata_channel's ch_drive[] is not dynamically allocated, and ch_ndrive
(renamed to ch_ndrives) closely reflects the size of the ch_drive[] array.
Add helper functions atabus_alloc_drives() and atabus_free_drives()
to manage ch_drive[]/ch_ndrives.
Add wdc_maxdrives to struct wdc_softc so that bus front-end can specify
how much drive they really support (master/slave or single).
ata_reset_drive() callback gains a uint32_t *sigp argument which,
when not NULL, will contain the signature of the device being reset.
While there, some cosmetic changes:
- added a drive_type enum to ata_drive_datas, and stop encoding the
probed drive type in drive_flags (we were out of drive flags anyway).
- rename DRIVE_ATAPIST to DRIVE_ATAPIDSCW to better reflect what this
really is
- remove ata_channel->ata_drives, it's redundant with the pointer in
ata_drive_datas
- factor out the interpretation of SATA signatures in sata_interpet_sig()

propagate these changes to the ATA HBA drivers, and add support for PMP
to ahcisata(4) and siisata(4).

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
when SATA cable move was needed
 1.26 19-Jul-2011  dyoung branches: 1.26.2;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.25 18-Mar-2008  cube Split device_t and softc for ATA devices, as well as wd(4). Other
cosmetic changes where appropriate.
 1.24 24-Sep-2006  bjh21 branches: 1.24.28; 1.24.30; 1.24.50; 1.24.54;
PR 23783: the correct number of elements to insert into cmd_iohs is WDC_NREG,
not DRIVE_REGISTERS_SPACE. The latter is much bigger and causes a buffer
overrun and panic. Patch supplied by Mike Pumford.
 1.23 16-Jan-2006  bouyer branches: 1.23.18; 1.23.20;
properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
 1.22 11-Dec-2005  christos branches: 1.22.2;
merge ktrace-lwp.
 1.21 20-Aug-2004  thorpej branches: 1.21.10; 1.21.12;
Move most of wdc_softc into a new atac_softc structure that contains
info common to all types of ATA controllers.
 1.20 14-Aug-2004  thorpej - Split the register handles out of struct wdc_channel into a separate
wdc_regs structure, and array of which (indexed per channel) is pointed
to by struct wdc_softc.
- Move the resulting wdc_channel structure to atavar.h and rename it to
ata_channel. Rename the corresponding flags.
- Add a "ch_ndrive" member to struct ata_channel, which indicates the
maximum number of drives that can be present on the channel. For now,
this is always 2. Add an ATA_MAXDRIVES constant that places an upper
limit on this value, also currently 2.
 1.19 25-May-2004  thorpej Add the notion of "shadow registers" to the wdc driver. These shadow
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers. Right now, the two
shadows are:

- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)

Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.

Partially from Jordan Rhody @ Wasabi Systems, Inc.
 1.18 03-Jan-2004  thorpej branches: 1.18.2; 1.18.4; 1.18.6;
More wdc_channel structure member namespace cleanup:
- channel -> ch_channel
- wdc -> ch_wdc
 1.17 03-Jan-2004  thorpej Rename "struct channel_softc" to "struct wdc_channel".
 1.16 01-Jan-2004  thorpej Rename:
- wdc_xfer to ata_xfer
- channel_queue to ata_queue
and move them to <dev/ata/atavar.h> so they can be used by non-wdc ATA
controllers. Clean up the member names of these structures while at it.
 1.15 31-Dec-2003  thorpej Simplify allocation of the channel queue.
 1.14 02-Dec-2003  bjh21 Update for new world of indirect wdc registers.
 1.13 19-Oct-2003  he Adapt to the new wdcattach() signature.
 1.12 08-Oct-2003  bouyer Adapt for wdcattach() prototype change.
 1.11 25-Sep-2003  mycroft Hide the use of config_interrupts() in one place.
 1.10 24-Sep-2003  mycroft Take a stab at making this compile, at least.
 1.9 21-Sep-2003  matt Adapt to new wdcattach calling conventions.
 1.8 14-Jul-2003  lukem use __KERNEL_RCSID() in a consistent manner
 1.7 02-Oct-2002  thorpej branches: 1.7.8;
Fix script-o's in previous.
 1.6 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.5 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.3 22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2 27-Nov-2001  thorpej branches: 1.2.2; 1.2.10; 1.2.12;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.1 05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.4 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.3 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file simide.c was added on branch nathanw_sa on 2002-01-08 00:22:47 +0000
 1.2.12.1 01-Nov-2002  tron Pull up revision 1.3 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.2.10.1 30-May-2002  gehenna Catch up with -current.
 1.2.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1 27-Nov-2001  thorpej file simide.c was added on branch kqueue on 2002-01-10 19:36:40 +0000
 1.7.8.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.8.3 18-Sep-2004  skrll Sync with HEAD.
 1.7.8.2 25-Aug-2004  skrll Sync with HEAD.
 1.7.8.1 03-Aug-2004  skrll Sync with HEAD
 1.18.6.1 09-Oct-2006  bouyer Pull up following revision(s) (requested by bjh21 in ticket #10703):
sys/arch/acorn32/podulebus/simide.c: revision 1.24
PR 23783: the correct number of elements to insert into cmd_iohs is WDC_NREG,
not DRIVE_REGISTERS_SPACE. The latter is much bigger and causes a buffer
overrun and panic. Patch supplied by Mike Pumford.
 1.18.4.1 09-Oct-2006  bouyer Pull up following revision(s) (requested by bjh21 in ticket #10703):
sys/arch/acorn32/podulebus/simide.c: revision 1.24
PR 23783: the correct number of elements to insert into cmd_iohs is WDC_NREG,
not DRIVE_REGISTERS_SPACE. The latter is much bigger and causes a buffer
overrun and panic. Patch supplied by Mike Pumford.
 1.18.2.1 09-Oct-2006  bouyer Pull up following revision(s) (requested by bjh21 in ticket #10703):
sys/arch/acorn32/podulebus/simide.c: revision 1.24
PR 23783: the correct number of elements to insert into cmd_iohs is WDC_NREG,
not DRIVE_REGISTERS_SPACE. The latter is much bigger and causes a buffer
overrun and panic. Patch supplied by Mike Pumford.
 1.21.12.3 24-Mar-2008  yamt sync with head.
 1.21.12.2 30-Dec-2006  yamt sync with head.
 1.21.12.1 21-Jun-2006  yamt sync with head.
 1.21.10.1 06-Oct-2006  ghen Pull up following revision(s) (requested by bjh21 in ticket #1534):
sys/arch/acorn32/podulebus/simide.c: revision 1.24
PR 23783: the correct number of elements to insert into cmd_iohs is WDC_NREG,
not DRIVE_REGISTERS_SPACE. The latter is much bigger and causes a buffer
overrun and panic. Patch supplied by Mike Pumford.
 1.22.2.1 01-Feb-2006  yamt sync with head.
 1.23.20.1 22-Oct-2006  yamt sync with head
 1.23.18.1 18-Nov-2006  ad Sync with head.
 1.24.54.1 03-Apr-2008  mjf Sync with HEAD.
 1.24.50.1 24-Mar-2008  keiichi sync with head.
 1.24.30.1 23-Mar-2008  matt sync with HEAD
 1.24.28.1 21-Mar-2008  chris Sync with head.
 1.26.2.1 30-Oct-2012  yamt sync with head
 1.29.28.2 27-Sep-2017  jdolecek change wdc_init_shadow_regs() to accept only struct wdc_regs, it doesn't
touch anything else

factor out the probe-only struct ata_channel initialization to wdcprobe(), to
reduce duplication of logic in individual drivers, and to actually work now
that more init is needed beyond the memset()
 1.29.28.1 24-Apr-2017  jdolecek use ata_queue_alloc() to dynamically allocate ata_queue for ata channel
 1.29.2.1 03-Dec-2017  jdolecek update from HEAD
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file simide_io_asm.S was added on branch kqueue on 2002-01-10 19:36:40 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file simide_io_asm.S was added on branch nathanw_sa on 2001-10-05 22:28:00 +0000
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file simidereg.h was added on branch kqueue on 2002-01-10 19:36:40 +0000
 1.1.4.2 05-Oct-2001  reinoud Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.1 05-Oct-2001  reinoud file simidereg.h was added on branch nathanw_sa on 2001-10-05 22:28:00 +0000
 1.4 13-Aug-2018  mrg include the boot32 and nbfs boot programs for eabi, as acorn32
with eabi still wants them.

not tested. someone, please test. this fixes the acorn32 build
since it was switched to eabi.
 1.3 01-May-2013  matt branches: 1.3.34; 1.3.36;
Fix abi/arch/float-abi so can be built from any arm port.
Force MACHINE to acorn32
Only build little-endian non-earm.
 1.2 04-Jul-2006  bjh21 branches: 1.2.98; 1.2.108;
Descend into nbfs -- I think it's useful now.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.20; 1.1.34; 1.1.38; 1.1.46;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.46.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.38.1 11-Aug-2006  yamt sync with head
 1.1.34.1 09-Sep-2006  rpaulo sync with head
 1.1.20.1 30-Dec-2006  yamt sync with head.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file Makefile was added on branch nathanw_sa on 2002-12-29 19:15:05 +0000
 1.2.108.1 23-Jun-2013  tls resync from head
 1.2.98.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.3.36.1 10-Jun-2019  christos Sync with HEAD
 1.3.34.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.27 07-Sep-2020  mrg -march=armv3m option is obsolete. remove it from commented kernel
configurations (we haven't supported those machines lately anyway),
and, for GCC >= 9, from the one caller.
 1.26 26-Apr-2020  rin Adjust for binutils 2.34 in the same manner as efiboot:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/stand/efiboot/Makefile.efiboot#rev1.12

XXX
Compile test only.
 1.25 24-Oct-2019  christos 1. All Makefiles that use ARM_APCS_FLAGS add -marm unconditionally and
bsd.own.mk also adds it for gcc only (so we end up with 2 -marm for gcc).
Just add -marm unconditionally in bsd.own.mk in ARM_APCS_FLAGS and remove
it from everywhere else.
2. gcc-8 now warns about thumb internetwork in APCS mode. This does not make
sense because the documentation says that this flag does not make a
difference in apcs mode, but might produce larger code in non-APCS mode.
So we just add it to silence the warnings.
 1.24 09-Apr-2017  christos branches: 1.24.14;
Put back KLINK_MACHINE
 1.23 08-Apr-2017  christos centralize vers.c building for standalone programs.
 1.22 22-Feb-2017  maya GC gcc < 4.8 logic.

-marm implies -mno-thumb, and -mno-thumb-interwork is a GCC default.
 1.21 12-Jan-2014  tsutsui branches: 1.21.6; 1.21.10; 1.21.14;
Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.20 15-Dec-2013  joerg Move flags for ARM's APCS ABI into a common variable. Add some forces to
deal with limitations in the Clang <-> LLVM backend interaction to pick
the correct ABI and target assembler.
 1.19 04-Nov-2013  christos explicitly add -marm
 1.18 04-Nov-2013  christos no-thumb-interlock is the default, and no-thumb does not exist in gcc 4.8
 1.17 15-Aug-2013  matt Add CPPFLAGS+= -mno-thumb -mno-thumb-interwork
 1.16 02-May-2013  matt branches: 1.16.4;
use KLINK_MACHINE
 1.15 01-May-2013  matt Fix abi/arch/float-abi so can be built from any arm port.
Force MACHINE to acorn32
Only build little-endian non-earm.
 1.14 22-Jan-2011  joerg branches: 1.14.4; 1.14.14;
Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.13 03-Apr-2009  tsutsui branches: 1.13.4; 1.13.6; 1.13.8;
Remove obsolete LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET.
They were removed from <lib/libsa/stand.h> on December 2007.
 1.12 02-Apr-2006  bjh21 branches: 1.12.68; 1.12.76; 1.12.82;
Circular references are almost inevitable between libsa and libriscos.
Solve them the easy way, using --start-group and --end-group.
 1.11 01-Apr-2006  bjh21 Add code to support access to RISC OS disk devices from libsa. This is
sufficient to allow a small wrapper program to access files on the NetBSD
partition of a shared disk. NetBSD-only disks don't work (FileCore objects
to the lack of a boot block), and there's no code to actually use this
facility yet.
 1.10 29-Mar-2006  bjh21 Provide a default for MKMODULE.
 1.9 28-Mar-2006  bjh21 Add infrastructure for building real RISC OS relocatable modules, since I've
worked out how to do it. boot32 doesn't use this mechanism because converting
it would take a fair amount of effort for little gain at this stage.
 1.8 11-Dec-2005  christos branches: 1.8.4; 1.8.6; 1.8.8; 1.8.10; 1.8.12;
merge ktrace-lwp.
 1.7 23-Nov-2003  bjh21 branches: 1.7.16;
Remove spurious whitespace.
 1.6 23-Nov-2003  bjh21 Create the "machine" and "arm" links directly from the .BEGIN rule, rather
than in dependencies of it, since .BEGIN is apparently only special for
its commands, not its dependencies. This should get boot26, and probably
boot32, compiling again.
 1.5 26-Oct-2003  lukem Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
 1.4 08-Oct-2003  simonb Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
against them.
 1.3 21-Sep-2003  matt Fix some GCC3.3.1 nits (-ffreestanding, #include <lib/libkern/libkern.h>)
 1.2 20-Apr-2003  bjh21 branches: 1.2.2;
Create a symlink to sys/arch/arm/include alongside the one to
sys/arch/${MACHINE}/include.
 1.1 28-Dec-2002  reinoud branches: 1.1.2;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file Makefile.buildboot was added on branch nathanw_sa on 2002-12-29 19:15:05 +0000
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.7.16.1 21-Jun-2006  yamt sync with head.
 1.8.12.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.8.12.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.8.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.8.8.2 11-Apr-2006  yamt sync with head
 1.8.8.1 01-Apr-2006  yamt sync with head.
 1.8.6.1 22-Apr-2006  simonb Sync with head.
 1.8.4.1 09-Sep-2006  rpaulo sync with head
 1.12.82.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.12.76.1 28-Apr-2009  skrll Sync with HEAD.
 1.12.68.1 04-May-2009  yamt sync with head.
 1.13.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.13.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.13.4.1 05-Mar-2011  rmind sync with head
 1.14.14.3 03-Dec-2017  jdolecek update from HEAD
 1.14.14.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.14.14.1 23-Jun-2013  tls resync from head
 1.14.4.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.16.4.2 18-May-2014  rmind sync with head
 1.16.4.1 28-Aug-2013  rmind sync with head
 1.21.14.1 21-Apr-2017  bouyer Sync with HEAD
 1.21.10.2 26-Apr-2017  pgoyette Sync with HEAD
 1.21.10.1 20-Mar-2017  pgoyette Sync with HEAD
 1.21.6.1 28-Aug-2017  skrll Sync with HEAD
 1.24.14.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.6 09-May-2002  jdolecek This is now in distrib/acorn32/stand/BtNetBSD.
 1.5 09-May-2002  jdolecek seems like a ``cd .'' is necessary in non-interactive shell
to get PWD set in /bin/sh

XXX this should really be converted to Makefile, and avoid non-intree
XXX tools like zip
 1.4 15-Feb-2002  reinoud Create a .zip file next to the .tar file special for those Acorn folks who
can download a free unzipper but dont have access to a .tar.gz file.
 1.3 12-Feb-2002  reinoud Get rid of the verbose flag ... this only clobbers the output.
 1.2 11-Feb-2002  reinoud Update the bootloader extraction program to be more friendly and to provide
a way to include the bootloader in the release structure

XXX it needs to honour DESTDIR one day
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file export-BtNetBSD was added on branch kqueue on 2002-01-10 19:36:41 +0000
 1.1.4.3 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file export-BtNetBSD was added on branch nathanw_sa on 2002-02-28 04:05:59 +0000
 1.2 09-May-2002  jdolecek This is now in distrib/acorn32/stand/BtNetBSD.
 1.1 05-Oct-2001  reinoud branches: 1.1.4; 1.1.6;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.6.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1 05-Oct-2001  thorpej file import-BtNetBSD was added on branch kqueue on 2002-01-10 19:36:41 +0000
 1.1.4.2 20-Jun-2002  nathanw Catch up to -current.
 1.1.4.1 05-Oct-2001  nathanw file import-BtNetBSD was added on branch nathanw_sa on 2002-06-20 03:37:21 +0000
 1.2 29-Dec-2018  christos Adjust for binutils-2.31.1
 1.1 28-Mar-2006  bjh21 branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.14; 1.1.20; 1.1.166; 1.1.168;
Add infrastructure for building real RISC OS relocatable modules, since I've
worked out how to do it. boot32 doesn't use this mechanism because converting
it would take a fair amount of effort for little gain at this stage.
 1.1.168.1 10-Jun-2019  christos Sync with HEAD
 1.1.166.1 18-Jan-2019  pgoyette Synch with HEAD
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 28-Mar-2006  rpaulo file module.ldscript was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:36:41 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 28-Mar-2006  yamt file module.ldscript was added on branch yamt-lazymbuf on 2006-06-21 14:47:48 +0000
 1.1.8.2 22-Apr-2006  simonb Sync with head.
 1.1.8.1 28-Mar-2006  simonb file module.ldscript was added on branch simonb-timecounters on 2006-04-22 11:37:10 +0000
 1.1.6.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.6.1 28-Mar-2006  elad file module.ldscript was added on branch elad-kernelauth on 2006-04-19 02:31:57 +0000
 1.1.4.2 11-Apr-2006  yamt sync files somehow mis-tagged by yamt-pdpolicy-base2.
 1.1.4.1 28-Mar-2006  yamt file module.ldscript was added on branch yamt-pdpolicy on 2006-04-11 12:20:51 +0000
 1.1.2.2 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.1.2.1 28-Mar-2006  tron file module.ldscript was added on branch peter-altq on 2006-03-31 09:44:55 +0000
 1.7 06-Feb-2021  joerg Modernize acorn32 boot code to work directly with LLVM's assembler.
 1.6 02-Aug-2019  joerg branches: 1.6.8;
Force use of GNU as for acorn32 boot code (pre-unified assembly)
 1.5 01-Apr-2006  bjh21 branches: 1.5.156;
Add code to support access to RISC OS disk devices from libsa. This is
sufficient to allow a small wrapper program to access files on the NetBSD
partition of a shared disk. NetBSD-only disks don't work (FileCore objects
to the lack of a boot block), and there's no code to actually use this
facility yet.
 1.4 11-Dec-2005  christos branches: 1.4.4; 1.4.6; 1.4.8; 1.4.10; 1.4.12;
merge ktrace-lwp.
 1.3 18-May-2004  gavan branches: 1.3.12;
Claim maximum available memory during boot32 startup. This removes
the need to explicitly set the WIMP slot size before running the bootloader.

Conditional on BOOT_MAXIMISE_MEMORY, so as not to interfere with potential
future uses of libriscos.

Also remove references to increasing WIMP slot size, as this is now
meaningless.
 1.2 26-Oct-2003  lukem branches: 1.2.2;
Use ${HOST_SH} instead of `sh'.

If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.4;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.4.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file Makefile was added on branch nathanw_sa on 2002-12-29 19:15:06 +0000
 1.2.2.1 22-May-2004  he Pull up revision 1.3 (requested by abs in ticket #365):
Claim maximum available memory during boot32 startup. This
removes the need to explicitly set the WIMP slot size before
running the bootloader.
Conditional on BOOT_MAXIMISE_MEMORY, so as not to interfere
with potential future uses of libriscos.
Also remove references to increasing WIMP slot size, as
this is now meaningless.
 1.3.12.1 21-Jun-2006  yamt sync with head.
 1.4.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.4.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.4.8.1 11-Apr-2006  yamt sync with head
 1.4.6.1 22-Apr-2006  simonb Sync with head.
 1.4.4.1 09-Sep-2006  rpaulo sync with head
 1.5.156.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.6.8.1 03-Apr-2021  thorpej Sync with HEAD.
 1.50 24-May-2022  andvar fix various typos in comments, docs and log messages.
 1.49 29-Apr-2022  rin Fix fallout from libsa change; stand.h includes <sys/param.h> now.

Use '\0' instead of NULL for NUL-character.
 1.48 10-Nov-2021  msaitoh s/compatability/compatibility/ in comment.
 1.47 27-Dec-2019  msaitoh s/suport/support/
 1.46 23-Jan-2019  sborrill Don't call OS_ReadSysInfo Platform class call on RISC OS 3
 1.45 30-Oct-2018  christos no param names in prototype.
 1.44 30-Oct-2018  christos provide a main prototype (this is standalone)
 1.43 24-Jan-2018  skrll branches: 1.43.2; 1.43.4;
Remove port-acorn26

OK core@
 1.42 11-Jun-2016  dholland PR 51200 gets in libsa considered harmful: use kgets
 1.41 21-Mar-2014  christos branches: 1.41.6;
kill sprintf
 1.40 04-Nov-2013  christos remove unused variable
 1.39 10-May-2012  skrll branches: 1.39.2; 1.39.4;
_int*_t -> uint*_t

Same code before and after.
 1.38 22-Jan-2011  joerg branches: 1.38.4; 1.38.8;
Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.37 02-Aug-2009  gavan branches: 1.37.4; 1.37.6; 1.37.8;
Don't reset devices if booting an Iyonix. It's fine for acorn32 devices
because we know how to configure all of the hardware, but as we don't know
how to configure the Iyonix graphics card we must rely on RISC OS to do
it for us.

While we're here, space separate the kernel arguments. It's a bit hard
parsing them in the kernel when they're all run together.
 1.36 18-Mar-2009  cegger bzero -> memset
 1.35 23-Nov-2008  chris branches: 1.35.4;
Stop attempts to boot a kernel that is bigger than the first DRAM block.

At the moment too much stuff assumes that the kernel is contiguous in
physical memory.

While this doesn't make an INSTALL kernel work for me it at least now
indicates what the fault is, and I can swap the memory sticks round.
 1.34 12-Apr-2008  chris branches: 1.34.4; 1.34.10; 1.34.12;
Ignore size alignment issues, as we're never going to have a case where
copying a three extra bytes will cause an issue.
 1.33 03-Feb-2008  chris branches: 1.33.6;
Fix-up boot32 to work on A7000+

Logically the previous code should have worked but didn't. It appeared to
fail when reading the relocation table from physical memory.

To work-around this issue we now compact the relocation table (it shrinks
from ~800 entries to ~15 on a 2.5MB kernel) The compacted table is small
enough to copy into the page of memory we use to do the relocations. The
relocation code can now find the table, and carry out the relocations.

To help with debugging the screen border will change colour:
Red: Running without the MMU turned on (IE 1-1 physical mapping)
Note that the border will stay red a while as we're copying the
kernel over at this point.
Green: We've finished copying the kernel over (unless the code breaks
this will be rarely seen)
Blue: We're running on the bootstrap L1 table, and just about to call
the kernel.

Other tweaks include:
* copy the kernel 32bits at a time, rather than 8 bits at a time.
* assert that the relocations are 32bit aligned (so the above works)
* flush the cache and write buffers before turning off the MMU.

Tested by myself on an A7000+. Tested by skrll@ on Risc-PC and A7000.
 1.32 26-Jan-2008  chris Fix support for kinetic in the bootloader.

With these changes the kinetic dram blocks are correctly identified and
passed into the kernel.

Note that I've a pending kernel change to understand the kinetic blocks
and do something useful with them.
 1.31 21-Jan-2008  chris Zero out the whole of the structure, not just the first 4 bytes. IE use
sizeof(*bconfig) not sizeof(bconfig)

Now a small kernel will boot up on my RISC-PC, an install kernel won't
though, it hangs at the switch from RISC-OS to NetBSD.
 1.30 04-Mar-2007  christos branches: 1.30.16; 1.30.20; 1.30.22; 1.30.28; 1.30.34;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.29 19-Aug-2006  bjh21 branches: 1.29.6; 1.29.8; 1.29.12; 1.29.16;
Add support to boot32 for passing a real vsync frequency to NetBSD.
Unfortunately, RISC OS doesn't seem to provide a sensible way to ask what
frame rate it's using so we resort to measuring it ourselves.
 1.28 25-Jun-2006  christos GCC4 fixes from Mike Pumford
 1.27 25-Mar-2006  bjh21 branches: 1.27.4;
Don't rely on first_mapped_PODRAM_page_index being zero on systems without
PODRAM, especially since it's initialised to -1. Instead, use
(podram_blocks != 0) to decide when to use it. This still doesn't make
my Risc PC boot, but it generates a believable relocation table now.
 1.26 25-Mar-2006  bjh21 When looking for somewhere to put the relocation table, reset the counter of
contingous pages to zero when we find a non-contiguous one. This way, we'll
actually find a contiguous block of the correct size (assuming there is one).
The updated version still boots my NC correctly, and fails slightly more
pleasantly on mr Risc PC.
 1.25 23-Mar-2006  bjh21 Use normal array subscripting syntax in place of addition and dereferencing.
No binary code change.
 1.24 23-Mar-2006  bjh21 Ah yes, _that's_ why we don't use field widths in printf() here: libsa's
printf() doesn't support them. Revert to using print0() while I ponder the
matter.
 1.23 23-Mar-2006  bjh21 Use slightly more advanced printf() formats to replace the horrid print0()
function.
 1.22 23-Mar-2006  bjh21 Substantial syntactic KNF, mostly removing surplus punctuation.
Generated code is unchanged.
 1.21 23-Mar-2006  bjh21 Reduce to 80 columns again. It's over two years since Reinoud touched this
code, so I hope this won't affect him too adversely.

Compiled binaries are (modulo date stamps) the same before and after.
 1.20 11-Dec-2005  christos branches: 1.20.4; 1.20.6; 1.20.8; 1.20.10; 1.20.12;
merge ktrace-lwp.
 1.19 26-May-2004  abs branches: 1.19.12;
Adjust the reserved heap space based on memory size. This avoids running out
of heap on machines with large amounts of memory. Tested on 33MB RISC OS 4
and 128MB RISC OS 5 machines. Updated version to 3.40.
 1.18 19-May-2004  abs Add qsort to libsa (taken from sys/dev/vinum/vinumqsort.c) and use instead of
bubblesort in acorn32 bootloader. Reduces time to sort memory on A710 equipped
RiscPC from over twenty seconds to effectively instantaneous.
Update boot version to 3.30
 1.17 18-May-2004  gavan Claim maximum available memory during boot32 startup. This removes
the need to explicitly set the WIMP slot size before running the bootloader.

Conditional on BOOT_MAXIMISE_MEMORY, so as not to interfere with potential
future uses of libriscos.

Also remove references to increasing WIMP slot size, as this is now
meaningless.
 1.16 20-Jul-2003  reinoud branches: 1.16.2;
First step towards more KNF; but most of all hopefully solving PR
acorn32/15850
 1.15 03-Jun-2003  reinoud branches: 1.15.2;
Cleanup DRAM video memory allocation. This needed to be done anyway and it
also ought to solve bootproblems with the A7000(+) family.

As an extra benefit, the surplus memory of the screen is returned to the
memorypool.
 1.14 20-Apr-2003  bjh21 KNF doesn't apply to Reinoud -- back out my last two changes.
 1.13 20-Apr-2003  bjh21 KNF
 1.12 20-Apr-2003  bjh21 80 columns, dammit!
 1.11 15-Jan-2003  reinoud Small typo and add initialisation for the `bank' counter
 1.10 08-Jan-2003  reinoud Fixup serious loading problems (together with the former commit of start.S)
major code cleanup esp. types used. Also cleanup up a major BUG that for
some odd reason worked :-/ makes me puzzled. It signifies that there might
be copies around in physical space of the DRAM ??? and thus its function
was motherboard dependent? It must have been old cruft from before the
cleanup of the relocation engine.
 1.9 06-Jan-2003  reinoud Fix miscelanious small errors that arose from having non Mb aligned memory
for the videoscreen.
 1.8 06-Jan-2003  reinoud Small fixes that showed up during boot-testing of a Pace DSL4000 running
the RISC OS-STB 4.0.0 version of RISC OS.
 1.7 06-Jan-2003  reinoud We have version 3.02 now : just a small fix for bootkernel name guessing.
 1.6 30-Dec-2002  reinoud In the case there is just one SIMM and one memory bank from the SIMM things
got wrong when no VRAM was there.

Placing the video DRAM in front of the kernel is OK when its 1Mb since the
kernel wants to be on a Mb boundary. Placing the video DRAM in the last
SIMM bank at the front is also OK unless there is just one SIMM and just one
bank; then it got in the way again!

Solution is to put the DRAM at the end of the SIMM instead of the beginning!
This however can result in the non 16 kb alignment of the top of physical
RAM where the temporary L1 page tables are situated. If its not 16 kb aligned
then move the L1 page table address down and down until it is 16 kb aligned.
This memory will be reused later on anyway.

What to do when we really support changing screensizes... see it as a max?
or use a different sceme alltogether? It might not even be a bootloader
problem then allthough its memory is not showing up in the DRAM/VRAM
block counts wich needs to be fixed one day.
 1.5 30-Dec-2002  reinoud Since we dont support switching screenmodes (yet) we might as well claim
just enough for the screenmemory to be in instead of the maximum of 1Mb.
Small machines like my 8Mb NC get a 700 kb back and thats really noticeable.
 1.4 30-Dec-2002  reinoud If we don't have VRAM then at least account the screensize correctly :) it goes
pretty wierd if it is set wrongly.
 1.3 30-Dec-2002  reinoud If we nick memory from the DRAM for video then please account it correctly!
 1.2 29-Dec-2002  reinoud branches: 1.2.2;
The unique machine ID is used in some networking stuff to generate a
unique-ish number, so better add it again!
 1.1 28-Dec-2002  reinoud Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.2.2.7 17-Jan-2003  thorpej Sync with HEAD.
 1.2.2.6 15-Jan-2003  thorpej Sync with HEAD.
 1.2.2.5 07-Jan-2003  thorpej Sync with HEAD.
 1.2.2.4 06-Jan-2003  reinoud Pull up the bootloader to -current
 1.2.2.3 03-Jan-2003  thorpej Sync with HEAD.
 1.2.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.2.2.1 29-Dec-2002  thorpej file boot32.c was added on branch nathanw_sa on 2002-12-29 19:15:06 +0000
 1.15.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.15.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.15.2.1 03-Aug-2004  skrll Sync with HEAD
 1.16.2.3 29-May-2004  tron Pull up revision 1.19 (requested by abs in ticket #404):
Adjust the reserved heap space based on memory size. This avoids running out
of heap on machines with large amounts of memory. Tested on 33MB RISC OS 4
and 128MB RISC OS 5 machines. Updated version to 3.40.
 1.16.2.2 22-May-2004  he Pull up revision 1.18 (requested by abs in ticket #369):
Add qsort to libsa (taken from sys/dev/vinum/vinumqsort.c)
and use instead of bubblesort in acorn32 bootloader. Reduces
time to sort memory on A710 equipped RiscPC from over twenty
seconds to effectively instantaneous. Update boot version
to 3.30
 1.16.2.1 22-May-2004  he Pull up revision 1.17 (requested by abs in ticket #365):
Claim maximum available memory during boot32 startup. This
removes the need to explicitly set the WIMP slot size before
running the bootloader.
Conditional on BOOT_MAXIMISE_MEMORY, so as not to interfere
with potential future uses of libriscos.
Also remove references to increasing WIMP slot size, as
this is now meaningless.
 1.19.12.5 04-Feb-2008  yamt sync with head.
 1.19.12.4 21-Jan-2008  yamt sync with head
 1.19.12.3 03-Sep-2007  yamt sync with head.
 1.19.12.2 30-Dec-2006  yamt sync with head.
 1.19.12.1 21-Jun-2006  yamt sync with head.
 1.20.12.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.20.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.20.8.3 03-Sep-2006  yamt sync with head.
 1.20.8.2 26-Jun-2006  yamt sync with head.
 1.20.8.1 01-Apr-2006  yamt sync with head.
 1.20.6.1 22-Apr-2006  simonb Sync with head.
 1.20.4.1 09-Sep-2006  rpaulo sync with head
 1.27.4.1 13-Jul-2006  gdamore Merge from HEAD.
 1.29.16.1 23-Feb-2008  bouyer Pull up following revision(s) (requested by chris in ticket #1063):
sys/arch/acorn32/stand/boot32/boot32.c: revision 1.31
Zero out the whole of the structure, not just the first 4 bytes. IE use
sizeof(*bconfig) not sizeof(bconfig)
Now a small kernel will boot up on my RISC-PC, an install kernel won't
though, it hangs at the switch from RISC-OS to NetBSD.
 1.29.12.1 03-Jun-2008  skrll Sync with netbsd-4.
 1.29.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.29.6.1 23-Feb-2008  bouyer Pull up following revision(s) (requested by chris in ticket #1063):
sys/arch/acorn32/stand/boot32/boot32.c: revision 1.31
Zero out the whole of the structure, not just the first 4 bytes. IE use
sizeof(*bconfig) not sizeof(bconfig)
Now a small kernel will boot up on my RISC-PC, an install kernel won't
though, it hangs at the switch from RISC-OS to NetBSD.
 1.30.34.1 23-Jan-2008  bouyer Sync with HEAD.
 1.30.28.1 18-Feb-2008  mjf Sync with HEAD.
 1.30.22.1 23-Mar-2008  matt sync with HEAD
 1.30.20.2 09-Feb-2008  chris Sync to HEAD.
 1.30.20.1 27-Jan-2008  chris Sync to HEAD.
 1.30.16.1 28-Feb-2008  rjs Sync with HEAD.
 1.33.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.33.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.34.12.2 28-Apr-2009  skrll Sync with HEAD.
 1.34.12.1 19-Jan-2009  skrll Sync with HEAD.
 1.34.10.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.34.4.2 19-Aug-2009  yamt sync with head.
 1.34.4.1 04-May-2009  yamt sync with head.
 1.35.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.37.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.37.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.37.4.1 05-Mar-2011  rmind sync with head
 1.38.8.1 02-Jun-2012  mrg sync to latest -current.
 1.38.4.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.38.4.1 23-May-2012  yamt sync with head.
 1.39.4.1 18-May-2014  rmind sync with head
 1.39.2.2 03-Dec-2017  jdolecek update from HEAD
 1.39.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.41.6.1 09-Jul-2016  skrll Sync with HEAD
 1.43.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.43.4.1 10-Jun-2019  christos Sync with HEAD
 1.43.2.2 26-Jan-2019  pgoyette Sync with HEAD
 1.43.2.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 18-Nov-2003  gavan Mark module as 32-bit compatible
 1.2 08-Jan-2003  reinoud branches: 1.2.2;
From the comment :
/*
* The size of the code/data to be moved is not `end - rmbase' but
* `__bss_start__ - rmbase' for the module is loaded into RISC OS
* based on the filesize where as NetBSD doesn't have to include all
* the bss space into the file itself. In some odd cases the
* relocatable module area can be smaller than the module + bss and
* thus bomb out.
*/
 1.1 28-Dec-2002  reinoud branches: 1.1.2;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.2.3 15-Jan-2003  thorpej Sync with HEAD.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file rmheader.S was added on branch nathanw_sa on 2002-12-29 19:15:07 +0000
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.6 09-Feb-2024  andvar s/discriptor/descriptor/ in comments.
 1.5 20-Aug-2021  andvar fix various typos in comments and log messages.
 1.4 06-Feb-2021  joerg Modernize acorn32 boot code to work directly with LLVM's assembler.
 1.3 03-Feb-2008  chris branches: 1.3.110;
Fix-up boot32 to work on A7000+

Logically the previous code should have worked but didn't. It appeared to
fail when reading the relocation table from physical memory.

To work-around this issue we now compact the relocation table (it shrinks
from ~800 entries to ~15 on a 2.5MB kernel) The compacted table is small
enough to copy into the page of memory we use to do the relocations. The
relocation code can now find the table, and carry out the relocations.

To help with debugging the screen border will change colour:
Red: Running without the MMU turned on (IE 1-1 physical mapping)
Note that the border will stay red a while as we're copying the
kernel over at this point.
Green: We've finished copying the kernel over (unless the code breaks
this will be rarely seen)
Blue: We're running on the bootstrap L1 table, and just about to call
the kernel.

Other tweaks include:
* copy the kernel 32bits at a time, rather than 8 bits at a time.
* assert that the relocations are 32bit aligned (so the above works)
* flush the cache and write buffers before turning off the MMU.

Tested by myself on an A7000+. Tested by skrll@ on Risc-PC and A7000.
 1.2 25-Jan-2008  chris Leave the SA's clockswitching enabled. It allows the SA to run at full
speed when running things from cache, rather than being in step with the
memory clock.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.20; 1.1.78; 1.1.82; 1.1.84; 1.1.90;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.90.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.84.1 23-Mar-2008  matt sync with HEAD
 1.1.82.2 09-Feb-2008  chris Sync to HEAD.
 1.1.82.1 27-Jan-2008  chris Sync to HEAD.
 1.1.78.1 28-Feb-2008  rjs Sync with HEAD.
 1.1.20.1 04-Feb-2008  yamt sync with head.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file start.S was added on branch nathanw_sa on 2002-12-29 19:15:07 +0000
 1.3.110.1 03-Apr-2021  thorpej Sync with HEAD.
 1.12 23-Nov-2008  chris Stop attempts to boot a kernel that is bigger than the first DRAM block.

At the moment too much stuff assumes that the kernel is contiguous in
physical memory.

While this doesn't make an INSTALL kernel work for me it at least now
indicates what the fault is, and I can swap the memory sticks round.
 1.11 19-Aug-2006  bjh21 branches: 1.11.58; 1.11.62; 1.11.68; 1.11.70;
Add support to boot32 for passing a real vsync frequency to NetBSD.
Unfortunately, RISC OS doesn't seem to provide a sensible way to ask what
frame rate it's using so we resort to measuring it ourselves.
 1.10 11-Dec-2005  christos branches: 1.10.4; 1.10.8;
merge ktrace-lwp.
 1.9 26-May-2004  abs branches: 1.9.12;
Adjust the reserved heap space based on memory size. This avoids running out
of heap on machines with large amounts of memory. Tested on 33MB RISC OS 4
and 128MB RISC OS 5 machines. Updated version to 3.40.
 1.8 19-May-2004  abs Add qsort to libsa (taken from sys/dev/vinum/vinumqsort.c) and use instead of
bubblesort in acorn32 bootloader. Reduces time to sort memory on A710 equipped
RiscPC from over twenty seconds to effectively instantaneous.
Update boot version to 3.30
 1.7 03-Jun-2003  reinoud branches: 1.7.2; 1.7.4;
Cleanup DRAM video memory allocation. This needed to be done anyway and it
also ought to solve bootproblems with the A7000(+) family.

As an extra benefit, the surplus memory of the screen is returned to the
memorypool.
 1.6 08-Jan-2003  reinoud Fixup serious loading problems (together with the former commit of start.S)
major code cleanup esp. types used. Also cleanup up a major BUG that for
some odd reason worked :-/ makes me puzzled. It signifies that there might
be copies around in physical space of the DRAM ??? and thus its function
was motherboard dependent? It must have been old cruft from before the
cleanup of the relocation engine.
 1.5 06-Jan-2003  reinoud Fix miscelanious small errors that arose from having non Mb aligned memory
for the videoscreen.
 1.4 06-Jan-2003  reinoud Small fixes that showed up during boot-testing of a Pace DSL4000 running
the RISC OS-STB 4.0.0 version of RISC OS.
 1.3 06-Jan-2003  reinoud We have version 3.02 now : just a small fix for bootkernel name guessing.
 1.2 02-Jan-2003  reinoud Oeps... forgot the versions file
 1.1 28-Dec-2002  reinoud branches: 1.1.2;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.2.6 15-Jan-2003  thorpej Sync with HEAD.
 1.1.2.5 07-Jan-2003  thorpej Sync with HEAD.
 1.1.2.4 06-Jan-2003  reinoud Pull up the bootloader to -current
 1.1.2.3 03-Jan-2003  thorpej Sync with HEAD.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file version was added on branch nathanw_sa on 2002-12-29 19:15:10 +0000
 1.7.4.2 29-May-2004  tron Pull up revision 1.9 (requested by abs in ticket #404):
Adjust the reserved heap space based on memory size. This avoids running out
of heap on machines with large amounts of memory. Tested on 33MB RISC OS 4
and 128MB RISC OS 5 machines. Updated version to 3.40.
 1.7.4.1 22-May-2004  he Pull up revision 1.8 (requested by abs in ticket #369):
Add qsort to libsa (taken from sys/dev/vinum/vinumqsort.c)
and use instead of bubblesort in acorn32 bootloader. Reduces
time to sort memory on A710 equipped RiscPC from over twenty
seconds to effectively instantaneous. Update boot version
to 3.30
 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.9.12.1 30-Dec-2006  yamt sync with head.
 1.10.8.1 03-Sep-2006  yamt sync with head.
 1.10.4.1 09-Sep-2006  rpaulo sync with head
 1.11.70.1 19-Jan-2009  skrll Sync with HEAD.
 1.11.68.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.11.62.1 04-May-2009  yamt sync with head.
 1.11.58.1 17-Jan-2009  mjf Sync with HEAD.
 1.6 22-Mar-2016  mrg remove a bunch of "@echo done" from the tail of rules. these messages
were vaguely useful back when we didn't run make -j, but now you end
up with a single line "done" every so often, with no idea what it is
for. very few other targets claim they're done so just remove these.
 1.5 07-Sep-2015  uebayasi Order library object build.
 1.4 07-Sep-2015  uebayasi Sprinkle more done messages.
 1.3 01-Apr-2006  bjh21 branches: 1.3.112; 1.3.132;
Add code to support access to RISC OS disk devices from libsa. This is
sufficient to allow a small wrapper program to access files on the NetBSD
partition of a shared disk. NetBSD-only disks don't work (FileCore objects
to the lack of a boot block), and there's no code to actually use this
facility yet.
 1.2 28-Mar-2006  bjh21 Add infrastructure for building real RISC OS relocatable modules, since I've
worked out how to do it. boot32 doesn't use this mechanism because converting
it would take a fair amount of effort for little gain at this stage.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.20; 1.1.34; 1.1.36; 1.1.38; 1.1.40; 1.1.42;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.42.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.42.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.1.40.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.38.2 11-Apr-2006  yamt sync with head
 1.1.38.1 01-Apr-2006  yamt sync with head.
 1.1.36.1 22-Apr-2006  simonb Sync with head.
 1.1.34.1 09-Sep-2006  rpaulo sync with head
 1.1.20.1 21-Jun-2006  yamt sync with head.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file Makefile was added on branch nathanw_sa on 2002-12-29 19:15:11 +0000
 1.3.132.2 22-Apr-2016  skrll Sync with HEAD
 1.3.132.1 22-Sep-2015  skrll Sync with HEAD
 1.3.112.1 03-Dec-2017  jdolecek update from HEAD
 1.6 13-Jun-2018  christos revert previous MAKEOBJDIRPREFIX massaging
 1.5 11-Jun-2018  christos Switch from using MAKEOBJDIRPREFIX to MAKEOBJDIR
 1.4 27-May-2018  christos - Introduce :q modifier for make variables and make it double escape $'s so
that passing variables to recursive makes with :q works as expected.
- Revert :Q to work as before.
- Adjust makefiles that use recursive make to use :q

Discussed on tech-toolchain@
XXX: pullup 8
 1.3 22-Mar-2016  mrg branches: 1.3.10; 1.3.16;
remove a bunch of "@echo done" from the tail of rules. these messages
were vaguely useful back when we didn't run make -j, but now you end
up with a single line "done" every so often, with no idea what it is
for. very few other targets claim they're done so just remove these.
 1.2 06-Sep-2015  uebayasi In kernel lib build, print message when things not only start bug also end.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.176;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.176.2 22-Apr-2016  skrll Sync with HEAD
 1.1.176.1 22-Sep-2015  skrll Sync with HEAD
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file Makefile.inc was added on branch nathanw_sa on 2002-12-29 19:15:11 +0000
 1.3.16.1 25-Jun-2018  pgoyette Sync with HEAD
 1.3.10.1 09-Jun-2018  martin Pull up following revision(s) (requested by christos in ticket #870):

sys/lib/libgnuefi/Makefile.inc: revision 1.5
external/mit/xorg/xorg-pkg-ver.mk: revision 1.9
sys/arch/i386/stand/lib/Makefile.inc: revision 1.17
sys/compat/common/Makefile.inc: revision 1.25
usr.bin/make/unit-tests/varquote.exp: revision 1.1, 1.2
sys/lib/libsa/Makefile.inc: revision 1.24
usr.bin/make/var.c: revision 1.220
sys/arch/ia64/stand/efi/libefi/Makefile.inc: revision 1.5
sys/arch/hppa/spmath/Makefile.inc: revision 1.10
usr.bin/make/unit-tests/varquote.mk: revision 1.1, 1.2
usr.bin/make/unit-tests/Makefile: revision 1.53
sys/lib/libkern/Makefile.inc: revision 1.45
sys/arch/acorn32/stand/lib/Makefile.inc: revision 1.4
sys/arch/m68k/fpsp/Makefile.inc: revision 1.21
usr.bin/make/make.1: revision 1.273
sys/lib/libz/Makefile.inc: revision 1.17

- Introduce :q modifier for make variables and make it double escape $'s so
that passing variables to recursive makes with :q works as expected.
- Adjust makefiles that use recursive make to use :q

Discussed on tech-toolchain@

XXX: pullup 8
 1.3 05-Apr-2006  bjh21 Use ctype macros.
 1.2 01-Apr-2006  bjh21 Add code to support access to RISC OS disk devices from libsa. This is
sufficient to allow a small wrapper program to access files on the NetBSD
partition of a shared disk. NetBSD-only disks don't work (FileCore objects
to the lack of a boot block), and there's no code to actually use this
facility yet.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.20; 1.1.34; 1.1.36; 1.1.38; 1.1.40; 1.1.42;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.42.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.40.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.38.1 11-Apr-2006  yamt sync with head
 1.1.36.1 22-Apr-2006  simonb Sync with head.
 1.1.34.1 09-Sep-2006  rpaulo sync with head
 1.1.20.1 21-Jun-2006  yamt sync with head.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file devopen.c was added on branch nathanw_sa on 2002-12-29 19:15:12 +0000
 1.3 08-Feb-2024  christos PR/57912: Jan-Benedict Glaw: Use repro epoch for generating date string
 1.2 30-Apr-2008  martin Convert TNF licenses to new 2 clause variant
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.108; 1.1.110; 1.1.112;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.112.1 16-May-2008  yamt sync with head.
 1.1.110.1 18-May-2008  yamt sync with head.
 1.1.108.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file newvers_rm.sh was added on branch nathanw_sa on 2002-12-29 19:15:13 +0000
 1.12 23-Jan-2019  sborrill Add xosmodule_enumeratewithversion() to allow operating systems modules
to be enumerated along with their version numbers.
 1.11 18-Oct-2018  skrll Use unified syntax
 1.10 19-Aug-2006  bjh21 branches: 1.10.148; 1.10.150;
Add support to boot32 for passing a real vsync frequency to NetBSD.
Unfortunately, RISC OS doesn't seem to provide a sensible way to ask what
frame rate it's using so we resort to measuring it ourselves.
 1.9 20-Jul-2006  bjh21 Silly error: xos_cli() should call XOS_CLI, not OS_CLI.
 1.8 13-Jul-2006  bjh21 Pass the argument to OSModule_Free in the correct register. This stops
NBFS leaking memory.
 1.7 04-Jul-2006  bjh21 Add some definitions necessary for the latest NBFS, plus a couple of
functions that my boot32 hacks are likely to require.
 1.6 01-Apr-2006  bjh21 branches: 1.6.4;
Add code to support access to RISC OS disk devices from libsa. This is
sufficient to allow a small wrapper program to access files on the NetBSD
partition of a shared disk. NetBSD-only disks don't work (FileCore objects
to the lack of a boot block), and there's no code to actually use this
facility yet.
 1.5 11-Dec-2005  christos branches: 1.5.4; 1.5.6; 1.5.8; 1.5.10; 1.5.12;
merge ktrace-lwp.
 1.4 23-Nov-2003  bjh21 branches: 1.4.16;
Remove a spurious commented-out line.
 1.3 23-Nov-2003  bjh21 Rename os_CLI() and xos_CLI() to os_cli() and xos_cli() for consistency with
everything else.
 1.2 19-Nov-2003  gavan Save arguments passed into scratch registers, rather than scratch
registers into arguments passed.

Avoids corruption of anything pointed to by r3 and r4 on entry to
os_get_env, and allows pass-by-reference values to be returned.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.4;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.4.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file riscoscalls.S was added on branch nathanw_sa on 2002-12-29 19:15:13 +0000
 1.4.16.2 30-Dec-2006  yamt sync with head.
 1.4.16.1 21-Jun-2006  yamt sync with head.
 1.5.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.5.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.5.8.3 03-Sep-2006  yamt sync with head.
 1.5.8.2 11-Aug-2006  yamt sync with head
 1.5.8.1 11-Apr-2006  yamt sync with head
 1.5.6.1 22-Apr-2006  simonb Sync with head.
 1.5.4.1 09-Sep-2006  rpaulo sync with head
 1.6.4.1 13-Jul-2006  gdamore Merge from HEAD.
 1.10.150.1 10-Jun-2019  christos Sync with HEAD
 1.10.148.2 26-Jan-2019  pgoyette Sync with HEAD
 1.10.148.1 20-Oct-2018  pgoyette Sync with head
 1.13 23-Jan-2019  sborrill Add xosmodule_enumeratewithversion() to allow operating systems modules
to be enumerated along with their version numbers.
 1.12 10-May-2012  skrll branches: 1.12.38; 1.12.40;
_int*_t -> uint*_t

Same code before and after.
 1.11 02-Aug-2009  gavan branches: 1.11.12; 1.11.16;
Don't reset devices if booting an Iyonix. It's fine for acorn32 devices
because we know how to configure all of the hardware, but as we don't know
how to configure the Iyonix graphics card we must rely on RISC OS to do
it for us.

While we're here, space separate the kernel arguments. It's a bit hard
parsing them in the kernel when they're all run together.
 1.10 04-Mar-2007  christos branches: 1.10.46;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.9 19-Aug-2006  bjh21 branches: 1.9.8;
Add support to boot32 for passing a real vsync frequency to NetBSD.
Unfortunately, RISC OS doesn't seem to provide a sensible way to ask what
frame rate it's using so we resort to measuring it ourselves.
 1.8 13-Jul-2006  bjh21 Add Service_FSRedeclare.
 1.7 04-Jul-2006  bjh21 Add some definitions necessary for the latest NBFS, plus a couple of
functions that my boot32 hacks are likely to require.
 1.6 06-Apr-2006  bjh21 branches: 1.6.4;
Use more manifest constants.
 1.5 01-Apr-2006  bjh21 Add code to support access to RISC OS disk devices from libsa. This is
sufficient to allow a small wrapper program to access files on the NetBSD
partition of a shared disk. NetBSD-only disks don't work (FileCore objects
to the lack of a boot block), and there's no code to actually use this
facility yet.
 1.4 11-Dec-2005  christos branches: 1.4.4; 1.4.6; 1.4.8; 1.4.10; 1.4.12;
merge ktrace-lwp.
 1.3 18-May-2004  gavan branches: 1.3.12;
Claim maximum available memory during boot32 startup. This removes
the need to explicitly set the WIMP slot size before running the bootloader.

Conditional on BOOT_MAXIMISE_MEMORY, so as not to interfere with potential
future uses of libriscos.

Also remove references to increasing WIMP slot size, as this is now
meaningless.
 1.2 23-Nov-2003  bjh21 branches: 1.2.2;
Rename os_CLI() and xos_CLI() to os_cli() and xos_cli() for consistency with
everything else.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.4;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.4.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file riscoscalls.h was added on branch nathanw_sa on 2002-12-29 19:15:14 +0000
 1.2.2.1 22-May-2004  he Pull up revision 1.3 (requested by abs in ticket #365):
Claim maximum available memory during boot32 startup. This
removes the need to explicitly set the WIMP slot size before
running the bootloader.
Conditional on BOOT_MAXIMISE_MEMORY, so as not to interfere
with potential future uses of libriscos.
Also remove references to increasing WIMP slot size, as
this is now meaningless.
 1.3.12.3 03-Sep-2007  yamt sync with head.
 1.3.12.2 30-Dec-2006  yamt sync with head.
 1.3.12.1 21-Jun-2006  yamt sync with head.
 1.4.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.4.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.4.8.3 03-Sep-2006  yamt sync with head.
 1.4.8.2 11-Aug-2006  yamt sync with head
 1.4.8.1 11-Apr-2006  yamt sync with head
 1.4.6.1 22-Apr-2006  simonb Sync with head.
 1.4.4.1 09-Sep-2006  rpaulo sync with head
 1.6.4.1 13-Jul-2006  gdamore Merge from HEAD.
 1.9.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.10.46.1 19-Aug-2009  yamt sync with head.
 1.11.16.1 02-Jun-2012  mrg sync to latest -current.
 1.11.12.1 23-May-2012  yamt sync with head.
 1.12.40.1 10-Jun-2019  christos Sync with HEAD
 1.12.38.1 26-Jan-2019  pgoyette Sync with HEAD
 1.1 28-Dec-2002  reinoud branches: 1.1.2;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file riscoscons.c was added on branch nathanw_sa on 2002-12-29 19:15:15 +0000
 1.4 17-Jul-2011  joerg Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.3 12-Jan-2009  tsutsui Use <machine/stdarg.h> rather than <stdarg.h> to allow build without DESTDIR.
 1.2 01-Apr-2006  bjh21 branches: 1.2.64; 1.2.68; 1.2.76;
Add code to support access to RISC OS disk devices from libsa. This is
sufficient to allow a small wrapper program to access files on the NetBSD
partition of a shared disk. NetBSD-only disks don't work (FileCore objects
to the lack of a boot block), and there's no code to actually use this
facility yet.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.20; 1.1.34; 1.1.36; 1.1.38; 1.1.40; 1.1.42;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.42.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.40.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.38.1 11-Apr-2006  yamt sync with head
 1.1.36.1 22-Apr-2006  simonb Sync with head.
 1.1.34.1 09-Sep-2006  rpaulo sync with head
 1.1.20.1 21-Jun-2006  yamt sync with head.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file riscosdisk.c was added on branch nathanw_sa on 2002-12-29 19:15:15 +0000
 1.2.76.1 19-Jan-2009  skrll Sync with HEAD.
 1.2.68.1 04-May-2009  yamt sync with head.
 1.2.64.1 17-Jan-2009  mjf Sync with HEAD.
 1.1 28-Dec-2002  reinoud branches: 1.1.2;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file riscosdisk.h was added on branch nathanw_sa on 2002-12-29 19:15:16 +0000
 1.1 28-Dec-2002  reinoud branches: 1.1.2;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file riscoserrors.c was added on branch nathanw_sa on 2002-12-29 19:15:17 +0000
 1.4 25-Jan-2006  christos free -> dealloc
unsigned -> size_t for alloc/dealloc
 1.3 11-Dec-2005  christos branches: 1.3.2;
merge ktrace-lwp.
 1.2 21-Aug-2003  he branches: 1.2.16;
Adapt to const-ification of first arg of open function in fs_ops.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.4;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.4.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file riscosfile.c was added on branch nathanw_sa on 2002-12-29 19:15:17 +0000
 1.2.16.1 21-Jun-2006  yamt sync with head.
 1.3.2.1 01-Feb-2006  yamt sync with head.
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 21-Aug-2003  he Adapt to const-ification of first arg of open function in fs_ops.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.4;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.4.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file riscosfile.h was added on branch nathanw_sa on 2002-12-29 19:15:18 +0000
 1.6 29-Sep-2020  msaitoh s/occurence/occurrence/
 1.5 14-May-2012  skrll Remove printf that snuck in somehow.
 1.4 10-May-2012  skrll KNF
 1.3 25-Nov-2010  skrll branches: 1.3.8; 1.3.12;
Use partition_cyl_high and partition_cyl_low to find the "RiscBSD"
partition.

Makes nbfs somewhat work on my RiscPC.
 1.2 25-Jun-2006  christos branches: 1.2.6; 1.2.76; 1.2.88;
GCC4 fixes from Mike Pumford
 1.1 01-Apr-2006  bjh21 branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Add code to support access to RISC OS disk devices from libsa. This is
sufficient to allow a small wrapper program to access files on the NetBSD
partition of a shared disk. NetBSD-only disks don't work (FileCore objects
to the lack of a boot block), and there's no code to actually use this
facility yet.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 01-Apr-2006  yamt file riscospart.c was added on branch yamt-lazymbuf on 2006-06-21 14:47:48 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 01-Apr-2006  tron file riscospart.c was added on branch peter-altq on 2006-05-24 15:47:49 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 01-Apr-2006  simonb file riscospart.c was added on branch simonb-timecounters on 2006-04-22 11:37:10 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 01-Apr-2006  elad file riscospart.c was added on branch elad-kernelauth on 2006-04-19 02:31:57 +0000
 1.1.2.3 26-Jun-2006  yamt sync with head.
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 01-Apr-2006  yamt file riscospart.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:25 +0000
 1.2.88.1 05-Mar-2011  rmind sync with head
 1.2.76.1 21-Dec-2010  riz Pull up following revision(s) (requested by skrll in ticket #1495):
sys/arch/acorn32/stand/lib/riscospart.c: revision 1.3
Use partition_cyl_high and partition_cyl_low to find the "RiscBSD"
partition.
Makes nbfs somewhat work on my RiscPC.
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 25-Jun-2006  rpaulo file riscospart.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:36:42 +0000
 1.3.12.1 02-Jun-2012  mrg sync to latest -current.
 1.3.8.1 23-May-2012  yamt sync with head.
 1.1 01-Apr-2006  bjh21 branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.20;
Add code to support access to RISC OS disk devices from libsa. This is
sufficient to allow a small wrapper program to access files on the NetBSD
partition of a shared disk. NetBSD-only disks don't work (FileCore objects
to the lack of a boot block), and there's no code to actually use this
facility yet.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 01-Apr-2006  rpaulo file riscospart.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:36:42 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 01-Apr-2006  yamt file riscospart.h was added on branch yamt-lazymbuf on 2006-06-21 14:47:48 +0000
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 01-Apr-2006  tron file riscospart.h was added on branch peter-altq on 2006-05-24 15:47:49 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 01-Apr-2006  simonb file riscospart.h was added on branch simonb-timecounters on 2006-04-22 11:37:10 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 01-Apr-2006  elad file riscospart.h was added on branch elad-kernelauth on 2006-04-19 02:31:57 +0000
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 01-Apr-2006  yamt file riscospart.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:25 +0000
 1.3 04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.2 25-Jun-2006  christos branches: 1.2.6; 1.2.12;
GCC4 fixes from Mike Pumford
 1.1 28-Mar-2006  bjh21 branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.12; 1.1.14;
Add infrastructure for building real RISC OS relocatable modules, since I've
worked out how to do it. boot32 doesn't use this mechanism because converting
it would take a fair amount of effort for little gain at this stage.
 1.1.14.4 03-Sep-2007  yamt sync with head.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 28-Mar-2006  yamt file rmreloc.c was added on branch yamt-lazymbuf on 2006-06-21 14:47:48 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.8.2 22-Apr-2006  simonb Sync with head.
 1.1.8.1 28-Mar-2006  simonb file rmreloc.c was added on branch simonb-timecounters on 2006-04-22 11:37:10 +0000
 1.1.6.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.6.1 28-Mar-2006  elad file rmreloc.c was added on branch elad-kernelauth on 2006-04-19 02:31:57 +0000
 1.1.4.3 26-Jun-2006  yamt sync with head.
 1.1.4.2 11-Apr-2006  yamt sync files somehow mis-tagged by yamt-pdpolicy-base2.
 1.1.4.1 28-Mar-2006  yamt file rmreloc.c was added on branch yamt-pdpolicy on 2006-04-11 12:20:51 +0000
 1.1.2.2 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.1.2.1 28-Mar-2006  tron file rmreloc.c was added on branch peter-altq on 2006-03-31 09:44:55 +0000
 1.2.12.1 12-Mar-2007  rmind Sync with HEAD.
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 25-Jun-2006  rpaulo file rmreloc.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:36:42 +0000
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 13-Jun-2004  abs Add BOOT_LEAVE_MEMORY (desired memory left unused) and BOOT_MIN_AVAIL_MEMORY
(minimum desired free memory), default them to 5M and 10M respectively.
On a machine with more than (BOOT_LEAVE_MEMORY + BOOT_MIN_AVAIL_MEMORY) free
BOOT_LEAVE_MEMORY will be left unused.
Allows a kernel to be booted from SparkFS on a machine with more than 15M
of free memory (SparkFS needs to be able to allocate memory for the
uncompressed kernel)
 1.2 18-May-2004  gavan Claim maximum available memory during boot32 startup. This removes
the need to explicitly set the WIMP slot size before running the bootloader.

Conditional on BOOT_MAXIMISE_MEMORY, so as not to interfere with potential
future uses of libriscos.

Also remove references to increasing WIMP slot size, as this is now
meaningless.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.4; 1.1.6;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.6.2 17-Jun-2004  tron Pull up revision 1.3 (requested by abs in ticket #497):
Add BOOT_LEAVE_MEMORY (desired memory left unused) and BOOT_MIN_AVAIL_MEMORY
(minimum desired free memory), default them to 5M and 10M respectively.
On a machine with more than (BOOT_LEAVE_MEMORY + BOOT_MIN_AVAIL_MEMORY) free
BOOT_LEAVE_MEMORY will be left unused.
Allows a kernel to be booted from SparkFS on a machine with more than 15M
of free memory (SparkFS needs to be able to allocate memory for the
uncompressed kernel)
 1.1.6.1 22-May-2004  he Pull up revision 1.2 (requested by abs in ticket #365):
Claim maximum available memory during boot32 startup. This
removes the need to explicitly set the WIMP slot size before
running the bootloader.
Conditional on BOOT_MAXIMISE_MEMORY, so as not to interfere
with potential future uses of libriscos.
Also remove references to increasing WIMP slot size, as
this is now meaningless.
 1.1.4.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file srt0.S was added on branch nathanw_sa on 2002-12-29 19:15:19 +0000
 1.2 28-Mar-2006  bjh21 Don't declare HIMEM as a variable if it's a macro already.
 1.1 28-Dec-2002  reinoud branches: 1.1.2; 1.1.20; 1.1.34; 1.1.36; 1.1.38; 1.1.40; 1.1.42;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.42.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.1.40.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.38.1 01-Apr-2006  yamt sync with head.
 1.1.36.1 22-Apr-2006  simonb Sync with head.
 1.1.34.1 09-Sep-2006  rpaulo sync with head
 1.1.20.1 21-Jun-2006  yamt sync with head.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file srt0.h was added on branch nathanw_sa on 2002-12-29 19:15:20 +0000
 1.6 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.5 11-Dec-2005  christos branches: 1.5.80; 1.5.88; 1.5.94;
merge ktrace-lwp.
 1.4 24-Mar-2004  drochner remove license clauses 3 and 4 from my cpoyright notices
 1.3 21-Sep-2003  matt Fix some GCC3.3.1 nits (-ffreestanding, #include <lib/libkern/libkern.h>)
 1.2 06-Jan-2003  reinoud branches: 1.2.2;
Small fixes that showed up during boot-testing of a Pace DSL4000 running
the RISC OS-STB 4.0.0 version of RISC OS.
 1.1 28-Dec-2002  reinoud branches: 1.1.2;
Initial commit of the 3rd generation of bootloaders for the Acorn32
platform. It features far better support for newer architectures and is
fully rewritten in C and compile-able under NetBSD.

Since it shares code with `boot26' for Acorn26 merging the common parts is
likely to be next on the list.
 1.1.2.3 07-Jan-2003  thorpej Sync with HEAD.
 1.1.2.2 29-Dec-2002  thorpej Sync with HEAD.
 1.1.2.1 28-Dec-2002  thorpej file srt1.c was added on branch nathanw_sa on 2002-12-29 19:15:20 +0000
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.5.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.5.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.5.80.1 04-May-2009  yamt sync with head.
 1.5 06-Feb-2021  joerg Modernize acorn32 boot code to work directly with LLVM's assembler.
 1.4 02-Aug-2019  joerg branches: 1.4.8;
Force use of GNU as for acorn32 boot code (pre-unified assembly)
 1.3 04-Jul-2006  bjh21 branches: 1.3.6; 1.3.154;
We don't actually use NEWVERSWHAT, but we should still try to make it correct.
 1.2 02-Jul-2006  bjh21 Define LIBSA_NO_TWIDDLE, since NBFS really shouldn't twiddle().
 1.1 05-Apr-2006  bjh21 branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Very rough initial attempt at a RISC OS filing system based on libsa, to
allow the loading of kernels from a NetBSD file system by a RISC-OS-based
bootloader. Currently, there's just about enough functionality to allow
BtNetBSD (and hence presumably boot32 on systems where it works) to load
a kernel. This code has the great advantages over our existing UnixFS
that we actually have the source and can compile it under NetBSD.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 05-Apr-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-06-21 14:48:00 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 05-Apr-2006  tron file Makefile was added on branch peter-altq on 2006-05-24 15:47:49 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 05-Apr-2006  simonb file Makefile was added on branch simonb-timecounters on 2006-04-22 11:37:10 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 05-Apr-2006  elad file Makefile was added on branch elad-kernelauth on 2006-04-19 02:31:57 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 05-Apr-2006  yamt file Makefile was added on branch yamt-pdpolicy on 2006-04-11 11:53:25 +0000
 1.3.154.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.3.6.2 09-Sep-2006  rpaulo sync with head
 1.3.6.1 04-Jul-2006  rpaulo file Makefile was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:36:53 +0000
 1.4.8.1 03-Apr-2021  thorpej Sync with HEAD.
 1.11 21-Mar-2014  christos kill sprintf
 1.10 10-Jun-2013  mrg branches: 1.10.2;
s/DIRBLKSIZE/UFS_&/.

HI DH! :-)
 1.9 10-May-2012  skrll branches: 1.9.2;
Bit more KNF
 1.8 10-May-2012  skrll KNF
 1.7 13-Jul-2006  bjh21 branches: 1.7.6; 1.7.100; 1.7.104;
Fix error handling in nbfs_close().
 1.6 13-Jul-2006  bjh21 Sensible error handling, with libsa errors being mapped to useful RISC OS
errors. Also centralise our filing system number (as yet unassigned) in
nbfs.h.
 1.5 04-Jul-2006  bjh21 Add suppport for FSEntry_file 255, loading whole files. Now I can open
/etc/passwd in Zap.
 1.4 02-Jul-2006  bjh21 Add support or FSEntry_Func 14 and FSEntry_Func 15, which seem to be the
important directory-listing entry points.
 1.3 06-Apr-2006  bjh21 branches: 1.3.2; 1.3.4; 1.3.6; 1.3.10; 1.3.12; 1.3.14;
Fix a couple of typos.
 1.2 06-Apr-2006  bjh21 Use more manifest constants.
 1.1 05-Apr-2006  bjh21 Very rough initial attempt at a RISC OS filing system based on libsa, to
allow the loading of kernels from a NetBSD file system by a RISC-OS-based
bootloader. Currently, there's just about enough functionality to allow
BtNetBSD (and hence presumably boot32 on systems where it works) to load
a kernel. This code has the great advantages over our existing UnixFS
that we actually have the source and can compile it under NetBSD.
 1.3.14.3 30-Dec-2006  yamt sync with head.
 1.3.14.2 21-Jun-2006  yamt sync with head.
 1.3.14.1 06-Apr-2006  yamt file nbfs.c was added on branch yamt-lazymbuf on 2006-06-21 14:48:00 +0000
 1.3.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.3.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.3.10.1 06-Apr-2006  tron file nbfs.c was added on branch peter-altq on 2006-05-24 15:47:49 +0000
 1.3.6.2 22-Apr-2006  simonb Sync with head.
 1.3.6.1 06-Apr-2006  simonb file nbfs.c was added on branch simonb-timecounters on 2006-04-22 11:37:10 +0000
 1.3.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.3.4.1 06-Apr-2006  elad file nbfs.c was added on branch elad-kernelauth on 2006-04-19 02:31:57 +0000
 1.3.2.3 11-Aug-2006  yamt sync with head
 1.3.2.2 11-Apr-2006  yamt sync with head
 1.3.2.1 06-Apr-2006  yamt file nbfs.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:25 +0000
 1.7.104.1 02-Jun-2012  mrg sync to latest -current.
 1.7.100.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.7.100.1 23-May-2012  yamt sync with head.
 1.7.6.2 09-Sep-2006  rpaulo sync with head
 1.7.6.1 13-Jul-2006  rpaulo file nbfs.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:36:53 +0000
 1.9.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.2.1 23-Jun-2013  tls resync from head
 1.10.2.1 18-May-2014  rmind sync with head
 1.2 13-Jul-2006  bjh21 branches: 1.2.6;
Sensible error handling, with libsa errors being mapped to useful RISC OS
errors. Also centralise our filing system number (as yet unassigned) in
nbfs.h.
 1.1 05-Apr-2006  bjh21 branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Very rough initial attempt at a RISC OS filing system based on libsa, to
allow the loading of kernels from a NetBSD file system by a RISC-OS-based
bootloader. Currently, there's just about enough functionality to allow
BtNetBSD (and hence presumably boot32 on systems where it works) to load
a kernel. This code has the great advantages over our existing UnixFS
that we actually have the source and can compile it under NetBSD.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 05-Apr-2006  yamt file nbfs.h was added on branch yamt-lazymbuf on 2006-06-21 14:48:00 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 05-Apr-2006  tron file nbfs.h was added on branch peter-altq on 2006-05-24 15:47:49 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 05-Apr-2006  simonb file nbfs.h was added on branch simonb-timecounters on 2006-04-22 11:37:10 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 05-Apr-2006  elad file nbfs.h was added on branch elad-kernelauth on 2006-04-19 02:31:57 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 05-Apr-2006  yamt file nbfs.h was added on branch yamt-pdpolicy on 2006-04-11 11:53:25 +0000
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 13-Jul-2006  rpaulo file nbfs.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:36:53 +0000
 1.2 13-Jul-2006  bjh21 branches: 1.2.6;
RCS ID header.
 1.1 05-Apr-2006  bjh21 branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Very rough initial attempt at a RISC OS filing system based on libsa, to
allow the loading of kernels from a NetBSD file system by a RISC-OS-based
bootloader. Currently, there's just about enough functionality to allow
BtNetBSD (and hence presumably boot32 on systems where it works) to load
a kernel. This code has the great advantages over our existing UnixFS
that we actually have the source and can compile it under NetBSD.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 05-Apr-2006  yamt file rmalloc.c was added on branch yamt-lazymbuf on 2006-06-21 14:48:00 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 05-Apr-2006  tron file rmalloc.c was added on branch peter-altq on 2006-05-24 15:47:49 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 05-Apr-2006  simonb file rmalloc.c was added on branch simonb-timecounters on 2006-04-22 11:37:10 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 05-Apr-2006  elad file rmalloc.c was added on branch elad-kernelauth on 2006-04-19 02:31:57 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 05-Apr-2006  yamt file rmalloc.c was added on branch yamt-pdpolicy on 2006-04-11 11:53:25 +0000
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 13-Jul-2006  rpaulo file rmalloc.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:36:53 +0000
 1.5 06-Feb-2021  joerg Modernize acorn32 boot code to work directly with LLVM's assembler.
 1.4 13-Jul-2006  bjh21 branches: 1.4.6; 1.4.166;
Handle Service_FSRedeclare correctly. NBFS now works after restarting
FileSwitch.
 1.3 13-Jul-2006  bjh21 Sensible error handling, with libsa errors being mapped to useful RISC OS
errors. Also centralise our filing system number (as yet unassigned) in
nbfs.h.
 1.2 02-Jul-2006  bjh21 Add a *NBFS command to select NBFS as current filing system.
 1.1 05-Apr-2006  bjh21 branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Very rough initial attempt at a RISC OS filing system based on libsa, to
allow the loading of kernels from a NetBSD file system by a RISC-OS-based
bootloader. Currently, there's just about enough functionality to allow
BtNetBSD (and hence presumably boot32 on systems where it works) to load
a kernel. This code has the great advantages over our existing UnixFS
that we actually have the source and can compile it under NetBSD.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 05-Apr-2006  yamt file rmheader.S was added on branch yamt-lazymbuf on 2006-06-21 14:48:00 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 05-Apr-2006  tron file rmheader.S was added on branch peter-altq on 2006-05-24 15:47:49 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 05-Apr-2006  simonb file rmheader.S was added on branch simonb-timecounters on 2006-04-22 11:37:10 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 05-Apr-2006  elad file rmheader.S was added on branch elad-kernelauth on 2006-04-19 02:31:57 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 05-Apr-2006  yamt file rmheader.S was added on branch yamt-pdpolicy on 2006-04-11 11:53:25 +0000
 1.4.166.1 03-Apr-2021  thorpej Sync with HEAD.
 1.4.6.2 09-Sep-2006  rpaulo sync with head
 1.4.6.1 13-Jul-2006  rpaulo file rmheader.S was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:36:53 +0000
 1.4 13-Jul-2006  bjh21 branches: 1.4.6;
Bump version number for today's changes.
 1.3 04-Jul-2006  bjh21 Fix missing newline at end of file.
 1.2 04-Jul-2006  bjh21 Add suppport for FSEntry_file 255, loading whole files. Now I can open
/etc/passwd in Zap.
 1.1 05-Apr-2006  bjh21 branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Very rough initial attempt at a RISC OS filing system based on libsa, to
allow the loading of kernels from a NetBSD file system by a RISC-OS-based
bootloader. Currently, there's just about enough functionality to allow
BtNetBSD (and hence presumably boot32 on systems where it works) to load
a kernel. This code has the great advantages over our existing UnixFS
that we actually have the source and can compile it under NetBSD.
 1.1.14.3 30-Dec-2006  yamt sync with head.
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 05-Apr-2006  yamt file version was added on branch yamt-lazymbuf on 2006-06-21 14:48:00 +0000
 1.1.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.10.1 05-Apr-2006  tron file version was added on branch peter-altq on 2006-05-24 15:47:49 +0000
 1.1.6.2 22-Apr-2006  simonb Sync with head.
 1.1.6.1 05-Apr-2006  simonb file version was added on branch simonb-timecounters on 2006-04-22 11:37:10 +0000
 1.1.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 05-Apr-2006  elad file version was added on branch elad-kernelauth on 2006-04-19 02:31:57 +0000
 1.1.2.3 11-Aug-2006  yamt sync with head
 1.1.2.2 11-Apr-2006  yamt sync with head
 1.1.2.1 05-Apr-2006  yamt file version was added on branch yamt-pdpolicy on 2006-04-11 11:53:25 +0000
 1.4.6.2 09-Sep-2006  rpaulo sync with head
 1.4.6.1 13-Jul-2006  rpaulo file version was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:36:53 +0000

RSS XML Feed