Home | History | Annotate | only in /src/sys/arch/hpcarm
History log of /src/sys/arch/hpcarm
RevisionDateAuthorComments
 1.3 25-Oct-2008  apb Use ${TOOL_SED} instead if plain sed in Makefiles.
 1.2 06-Jan-2003  lukem branches: 1.2.104; 1.2.108; 1.2.114;
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 23-Feb-2001  ichiro branches: 1.1.4; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 07-Jan-2003  thorpej Sync with HEAD.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file Makefile was added on branch thorpej_scsipi on 2001-03-12 13:28:18 +0000
 1.2.114.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.2.108.1 04-May-2009  yamt sync with head.
 1.2.104.1 17-Jan-2009  mjf 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 23-Feb-2001  ichiro branches: 1.1.4; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 07-Jan-2003  thorpej Sync with HEAD.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file .keep_me was added on branch thorpej_scsipi on 2001-03-12 13:28:18 +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 21:08:41 +0000
 1.4 06-Feb-2009  jym 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.3 02-Oct-2006  chs branches: 1.3.56; 1.3.64;
remove MALLOC_NOINLINE, it doesn't do anything anymore.
 1.2 03-Jan-2006  peter branches: 1.2.16; 1.2.20; 1.2.22;
Remove sl, it's already defined in IPAQ.
 1.1 30-Dec-2005  rjs branches: 1.1.2;
Add config for installation kernel for IPAQ.
 1.1.2.1 15-Jan-2006  yamt sync with head.
 1.2.22.1 22-Oct-2006  yamt sync with head
 1.2.20.1 18-Nov-2006  ad Sync with head.
 1.2.16.3 30-Dec-2006  yamt sync with head.
 1.2.16.2 21-Jun-2006  yamt sync with head.
 1.2.16.1 03-Jan-2006  yamt file INSTALL_IPAQ was added on branch yamt-lazymbuf on 2006-06-21 14:51:44 +0000
 1.3.64.1 03-Mar-2009  skrll Sync with HEAD.
 1.3.56.1 04-May-2009  yamt sync with head.
 1.1 04-Sep-2010  tsutsui branches: 1.1.2; 1.1.4; 1.1.10;
Build install ramdisk kernel for JORNADA720.
 1.1.10.2 05-Mar-2011  rmind sync with head
 1.1.10.1 04-Sep-2010  rmind file INSTALL_JORNADA720 was added on branch rmind-uvmplock on 2011-03-05 20:50:31 +0000
 1.1.4.2 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.1.4.1 04-Sep-2010  uebayasi file INSTALL_JORNADA720 was added on branch uebayasi-xip on 2010-10-22 07:21:18 +0000
 1.1.2.2 09-Oct-2010  yamt sync with head
 1.1.2.1 04-Sep-2010  yamt file INSTALL_JORNADA720 was added on branch yamt-nfs-mp on 2010-10-09 03:31:45 +0000
 1.2 31-Mar-2012  nonaka Add support kloader(4) for PXA2X0.
 1.1 17-Apr-2010  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.14; 1.1.18;
Added Sharp W-ZERO3 series support.
 1.1.18.1 05-Apr-2012  mrg sync to latest -current.
 1.1.14.1 17-Apr-2012  yamt sync with head
 1.1.6.2 11-Aug-2010  yamt sync with head.
 1.1.6.1 17-Apr-2010  yamt file INSTALL_WZERO3 was added on branch yamt-nfs-mp on 2010-08-11 22:52:04 +0000
 1.1.4.2 30-May-2010  rmind sync with head
 1.1.4.1 17-Apr-2010  rmind file INSTALL_WZERO3 was added on branch rmind-uvmplock on 2010-05-30 05:16:50 +0000
 1.1.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.2.1 17-Apr-2010  uebayasi file INSTALL_WZERO3 was added on branch uebayasi-xip on 2010-04-30 14:39:24 +0000
 1.84 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.83 19-Jan-2020  thorpej branches: 1.83.4;
Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.82 26-Apr-2019  sevan branches: 1.82.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.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 14-Sep-2017  mrg branches: 1.80.2; 1.80.4;
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.79 29-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 3.
 1.78 07-Aug-2015  maxv Remove KMEMSTATS.
 1.77 23-Aug-2014  dholland branches: 1.77.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.76 03-Aug-2014  martin Add COMPAT_NETBSD32, following the switch to eabi by default.
 1.75 30-Jun-2013  rmind branches: 1.75.4;
G/C PFIL_HOOKS from the kernel configs.
 1.74 05-Jun-2013  christos branches: 1.74.2;
remove obsolete networking options
 1.73 27-Apr-2013  christos the bogus number police
 1.72 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.71 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.70 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.69 06-Dec-2012  msaitoh Remove "#options ARMFPE"
 1.68 10-Mar-2012  joerg branches: 1.68.2;
P1003_1B_SEMAPHORE is no longer optional.
 1.67 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.66 22-Nov-2011  tls branches: 1.66.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.65 30-Jun-2011  wiz branches: 1.65.2;
dependant -> dependent
 1.64 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.63 04-Jan-2011  tsutsui branches: 1.63.2; 1.63.4;
Add options P1003_1B_SEMAPHORE.
 1.62 23-Nov-2010  hannken Remove unused count from pseudo-device md.
 1.61 26-Jun-2010  tsutsui Comment out options RTC_OFFSET so that bootinfo->timezone passed by
hpcboot will be used by default.
 1.60 17-Apr-2010  nonaka Added Sharp W-ZERO3 series support.
 1.59 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.58 05-Dec-2009  pooka branches: 1.58.2; 1.58.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.57 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.56 24-Nov-2008  ad branches: 1.56.4;
Remove softdep, pass 1. We are focused on improving journalling.

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

Proposed on tech-kern@.
 1.54 31-Jul-2008  simonb branches: 1.54.2;
Add "options WAPBL" to standard GENERIC/INSTALL type configs.
 1.53 30-May-2008  tsutsui branches: 1.53.4;
Add options COMPAT_40 to files which have options COMPAT_30.
 1.52 19-Jan-2008  chris branches: 1.52.6; 1.52.8; 1.52.10; 1.52.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.51 17-Oct-2007  garbled branches: 1.51.2; 1.51.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.50 07-May-2007  jnemeth branches: 1.50.6; 1.50.10;
PR/36234 - Joerg Niendorf -- xi -> xirc
 1.49 27-Sep-2006  manu branches: 1.49.2; 1.49.4; 1.49.8; 1.49.10; 1.49.16;
- 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.48 26-Aug-2006  christos branches: 1.48.2; 1.48.4;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.47 11-Apr-2006  peter Implement pmap_devmap on hpcarm to map I/O registers that are used
in early start-up stage. Change the virtual address for UART #3 to
the physical address in the configuration files.
While here, implement the sa11x0_bs_unmap function.

Reviewed by Toru Nishimura (on port-arm).
 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 23-Oct-2005  peter - Remove options PORTMASTER (not used any code).
- Add (commented out) options DEBUG.
- Add "pseudo-device ksyms".
 1.40 19-Aug-2005  christos branches: 1.40.2;
Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.39 19-Aug-2005  christos 64 bit inode changes.
 1.38 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.37 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.36 07-Jul-2005  tron Add (commented out) IPSEC_NAT_T option.
 1.35 25-Feb-2005  simonb branches: 1.35.2; 1.35.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.34 18-Feb-2005  dsl Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.33 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.32 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.31 10-Nov-2004  christos branches: 1.31.4; 1.31.6;
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-Feb-2004  wiz branches: 1.28.2;
Uppercase CPU, plural is CPUs.
 1.27 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.26 08-Oct-2003  bouyer Add atabus.
 1.25 13-Sep-2003  chris Add COMPAT_16 to most arm based kernels. Mainly in preperation for doing
SA_SIGINFO work.
 1.24 14-Oct-2002  elric branches: 1.24.6;
Added commented out cgd(4)s to GENERIC configs.
 1.23 18-Sep-2002  lukem enable USERCONF by default; it's small and extremely useful to have available.
 1.22 22-Jun-2002  toshii Comment out MEMORY_DISK_HOOKS as a workarund for the following problem.
hpcarm has a bug which prevents booting if kernel text+data size exceeds
3.75MB.
 1.21 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.20 03-May-2002  rjs branches: 1.20.2; 1.20.4;
Remove CPU_SA110 option.
 1.19 25-Apr-2002  atatat 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.18 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.17 10-Apr-2002  thorpej Delete option SAIP; nothing tests it.
 1.16 10-Apr-2002  thorpej Eliminate all #ifdef HPCARM, and delete the option.
 1.15 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.14 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.13 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.12 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.11 10-Jul-2001  ichiro branches: 1.11.6;
ipaqlcd attach to ipaqbus
 1.10 10-Jul-2001  ichiro add ipaqbus and ipaqpcic
 1.9 08-Jul-2001  abs branches: 1.9.2;
Standardise TCP_COMPAT_42 as commented out, grouped with other COMPAT options,
and with the comment '4.2BSD TCP/IP bug compat. Not recommended'
Add commented out 'TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG'
(All hail amiga and atari which make some attempt to automate the
multiplicity of config files...)
 1.8 08-Jul-2001  ichiro Extended GPIO address is 0x49000000.
 1.7 07-Jul-2001  ichiro pcmcia support of SA1110
 1.6 07-Jul-2001  ichiro mapping extended GPIOs
iPAQ: Extended GPIOs appears at address 0x41000000
 1.5 02-Jul-2001  ichiro using bus_space_tag for salcd
 1.4 01-Jun-2001  toshii Nuke FRAMEBUF_HW_BASE. This value is provided by the bootloader.
 1.3 24-Feb-2001  toshii branches: 1.3.2; 1.3.4;
Use hardware address for saost.
 1.2 24-Feb-2001  ichiro change com-speed to 19200.
default com-speed of hpcboot are 19200
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.3.4.1 24-Feb-2001  bouyer file IPAQ was added on branch thorpej_scsipi on 2001-03-12 13:28:18 +0000
 1.3.2.1 21-Jun-2001  nathanw Catch up to -current.
 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 03-Aug-2001  lukem update to -current
 1.11.6.8 18-Oct-2002  nathanw Catch up to -current.
 1.11.6.7 01-Aug-2002  nathanw Catch up to -current.
 1.11.6.6 20-Jun-2002  nathanw Catch up to -current.
 1.11.6.5 17-Apr-2002  nathanw Catch up to -current.
 1.11.6.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.11.6.3 28-Feb-2002  nathanw Catch up to -current.
 1.11.6.2 08-Jan-2002  nathanw Catch up to -current.
 1.11.6.1 10-Jul-2001  nathanw file IPAQ was added on branch nathanw_sa on 2002-01-08 00:24:50 +0000
 1.20.4.1 01-Aug-2002  lukem Pull up revision 1.21 (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.20.2.2 16-Jul-2002  gehenna catch up with -current.
 1.20.2.1 14-Jul-2002  gehenna catch up with -current.
 1.24.6.9 11-Dec-2005  christos Sync with head.
 1.24.6.8 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.24.6.7 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.24.6.6 15-Feb-2005  skrll Sync with HEAD.
 1.24.6.5 04-Feb-2005  skrll Sync with HEAD.
 1.24.6.4 14-Nov-2004  skrll Sync with HEAD.
 1.24.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.24.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.24.6.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.31.6.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.31.6.1 12-Feb-2005  yamt sync with head.
 1.31.4.1 29-Apr-2005  kent sync with -current
 1.35.4.4 21-Jan-2008  yamt sync with head
 1.35.4.3 03-Sep-2007  yamt sync with head.
 1.35.4.2 30-Dec-2006  yamt sync with head.
 1.35.4.1 21-Jun-2006  yamt sync with head.
 1.35.2.2 27-May-2007  bouyer Pull up following revision(s) (requested by jnemeth in ticket #1778):
sys/arch/hpcarm/conf/IPAQ: revision 1.50
sys/arch/amd64/conf/GENERIC: revision 1.141
sys/arch/amd64/conf/INSTALL: revision 1.68
sys/arch/i386/conf/SWINGER: revision 1.90
PR/36234 - Joerg Niendorf -- xi -> xirc
 1.35.2.1 18-Jul-2005  riz branches: 1.35.2.1.2; 1.35.2.1.4;
Pull up revision 1.36 (requested by tron in ticket #566):
Add (commented out) IPSEC_NAT_T option.
 1.35.2.1.4.1 27-May-2007  bouyer Pull up following revision(s) (requested by jnemeth in ticket #1778):
sys/arch/hpcarm/conf/IPAQ: revision 1.50
sys/arch/amd64/conf/GENERIC: revision 1.141
sys/arch/amd64/conf/INSTALL: revision 1.68
sys/arch/i386/conf/SWINGER: revision 1.90
PR/36234 - Joerg Niendorf -- xi -> xirc
 1.35.2.1.2.1 27-May-2007  bouyer Pull up following revision(s) (requested by jnemeth in ticket #1778):
sys/arch/hpcarm/conf/IPAQ: revision 1.50
sys/arch/amd64/conf/GENERIC: revision 1.141
sys/arch/amd64/conf/INSTALL: revision 1.68
sys/arch/i386/conf/SWINGER: revision 1.90
PR/36234 - Joerg Niendorf -- xi -> xirc
 1.40.2.1 26-Oct-2005  yamt sync with head
 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.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 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 24-May-2006  yamt sync with head.
 1.45.2.1 01-Apr-2006  yamt sync with head.
 1.48.4.1 22-Oct-2006  yamt sync with head
 1.48.2.1 18-Nov-2006  ad Sync with head.
 1.49.16.1 22-May-2007  matt Update to HEAD.
 1.49.10.1 11-Jul-2007  mjf Sync with head.
 1.49.8.1 27-May-2007  ad Sync with head.
 1.49.4.1 17-May-2007  yamt sync with head.
 1.49.2.1 12-May-2007  pavel Pull up following revision(s) (requested by jnemeth in ticket #639):
sys/arch/hpcarm/conf/IPAQ: revision 1.50
sys/arch/amd64/conf/GENERIC: revision 1.141
sys/arch/amd64/conf/INSTALL: revision 1.68
sys/arch/i386/conf/SWINGER: revision 1.90
sys/arch/hpcarm/conf/JORNADA820: revision 1.8
PR/36234 - Joerg Niendorf -- xi -> xirc
 1.50.10.2 23-Mar-2008  matt sync with HEAD
 1.50.10.1 06-Nov-2007  matt sync with HEAD
 1.50.6.3 28-Feb-2008  rjs Sync with HEAD.
 1.50.6.2 07-Oct-2007  rjs Pass address of EGPIO as device attribute.
 1.50.6.1 06-Oct-2007  rjs Switch to new interrupt code.
 1.51.8.1 20-Jan-2008  bouyer Sync with HEAD
 1.51.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.52.12.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.52.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.52.10.3 11-Aug-2010  yamt sync with head.
 1.52.10.2 11-Mar-2010  yamt sync with head
 1.52.10.1 04-May-2009  yamt sync with head.
 1.52.8.1 04-Jun-2008  yamt sync with head
 1.52.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.52.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.52.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.53.4.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.53.4.1 19-Oct-2008  haad Sync with HEAD.
 1.54.2.2 28-Apr-2009  skrll Sync with HEAD.
 1.54.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.56.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.58.4.4 21-Apr-2011  rmind sync with head
 1.58.4.3 05-Mar-2011  rmind sync with head
 1.58.4.2 03-Jul-2010  rmind sync with head
 1.58.4.1 30-May-2010  rmind sync with head
 1.58.2.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.58.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.63.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.63.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.65.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.65.2.2 16-Jan-2013  yamt sync with (a bit old) head
 1.65.2.1 17-Apr-2012  yamt sync with head
 1.66.2.2 11-Mar-2012  mrg sync to latest -current
 1.66.2.1 18-Feb-2012  mrg merge to -current.
 1.68.2.4 03-Dec-2017  jdolecek update from HEAD
 1.68.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.68.2.2 23-Jun-2013  tls resync from head
 1.68.2.1 25-Feb-2013  tls resync with head
 1.74.2.1 28-Aug-2013  rmind sync with head
 1.75.4.1 10-Aug-2014  tls Rebase.
 1.77.2.2 28-Aug-2017  skrll Sync with HEAD
 1.77.2.1 22-Sep-2015  skrll Sync with HEAD
 1.80.4.3 21-Apr-2020  martin Sync with HEAD
 1.80.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.80.4.1 10-Jun-2019  christos Sync with HEAD
 1.80.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.82.4.1 25-Jan-2020  ad Sync with head.
 1.83.4.1 20-Apr-2020  bouyer Sync with HEAD
 1.105 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.104 19-Jan-2020  thorpej branches: 1.104.4;
Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.103 26-Apr-2019  sevan branches: 1.103.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.102 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.101 14-Sep-2017  mrg branches: 1.101.2; 1.101.4;
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.100 29-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 3.
 1.99 30-Mar-2017  sevan Set the relevant options to build a kernel with the necessary components to
support DTrace on the Jornada 710/720 devices.
- Modular
- Built with DTrace hooks and full symbol table
 1.98 22-Mar-2017  sevan The the MII/PHY section. It's not technically possible for this hardware to run on this system.
 1.97 12-Aug-2015  maxv branches: 1.97.2; 1.97.4;
Remove KMEMSTATS.
 1.96 23-Aug-2014  dholland branches: 1.96.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.95 03-Aug-2014  martin Add COMPAT_NETBSD32, following the switch to eabi by default.
 1.94 30-Jun-2013  rmind branches: 1.94.4;
G/C PFIL_HOOKS from the kernel configs.
 1.93 05-Jun-2013  christos branches: 1.93.2;
remove obsolete networking options
 1.92 27-Apr-2013  christos the bogus number police
 1.91 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.90 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.89 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.88 06-Dec-2012  msaitoh Remove "#options ARMFPE"
 1.87 17-Aug-2012  abs branches: 1.87.2;
Ensure all WSDISPLAY_COMPAT_USL entries have same comment
 1.86 10-Mar-2012  joerg P1003_1B_SEMAPHORE is no longer optional.
 1.85 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.84 22-Nov-2011  tls branches: 1.84.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.83 30-Jun-2011  wiz branches: 1.83.2;
dependant -> dependent
 1.82 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.81 04-Jan-2011  tsutsui branches: 1.81.2; 1.81.4;
Add options P1003_1B_SEMAPHORE.
 1.80 23-Nov-2010  hannken Remove unused count from pseudo-device md.
 1.79 26-Jun-2010  tsutsui If options RTC_OFFSET is not specified use bootinfo->timezone passed
by hpcboot.exe as well as other hpc* ports. Noticed by uwe@.
Also comment out options RTC_OFFSET=0 lines and note about this
in kernel config files. Tested on WS003SH.

XXX: dup code among pxa2x0_hpc_machdep.c and sa11x0_hpc_machdep.c
 1.78 22-May-2010  plunky add btmagic(4) where other Bluetooth drivers are listed
 1.77 17-Apr-2010  nonaka Added Sharp W-ZERO3 series support.
 1.76 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.75 05-Dec-2009  pooka branches: 1.75.2; 1.75.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.74 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.73 03-Jan-2009  christos branches: 1.73.2;
remove esl (KIYOHARA Takashi)
 1.72 24-Nov-2008  ad Remove softdep, pass 1. We are focused on improving journalling.

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

Proposed on tech-kern@.
 1.70 31-Jul-2008  simonb branches: 1.70.2; 1.70.4;
Add "options WAPBL" to standard GENERIC/INSTALL type configs.
 1.69 30-May-2008  tsutsui branches: 1.69.4;
Add options COMPAT_40 to files which have options COMPAT_30.
 1.68 19-Jan-2008  chris branches: 1.68.6; 1.68.8; 1.68.10; 1.68.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.67 02-Dec-2007  kiyohara branches: 1.67.6;
Add bcsp(4).
 1.66 17-Oct-2007  garbled branches: 1.66.2;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.65 20-Aug-2007  kiyohara branches: 1.65.2;
Add btbc(4).
 1.64 01-Mar-2007  kiyohara branches: 1.64.2; 1.64.10; 1.64.14; 1.64.16; 1.64.18;
Add btuart(4).
 1.63 08-Jan-2007  ichiro branches: 1.63.2;
move devices entry to MD/conf/files.*
catch up to current kernel configuration
 1.62 11-Nov-2006  jmmv Remove tmpfs's experimental status. OK'ed by core@.
 1.61 07-Oct-2006  peter Add support for touches on the HP hard icons, mostly copied from hpcsh but
also with support for raw kbd (for X).

No objection on port-hpcarm.
 1.60 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.59 26-Aug-2006  christos branches: 1.59.2; 1.59.4;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.58 11-Apr-2006  peter Implement pmap_devmap on hpcarm to map I/O registers that are used
in early start-up stage. Change the virtual address for UART #3 to
the physical address in the configuration files.
While here, implement the sa11x0_bs_unmap function.

Reviewed by Toru Nishimura (on port-arm).
 1.57 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.56 04-Mar-2006  peter branches: 1.56.2; 1.56.4; 1.56.6;
Remove pioc device and all devices that attach to it (were commented out
anyway).
 1.55 04-Mar-2006  peter Comment out options DIAGNOSTIC.
 1.54 04-Mar-2006  peter Add file-systems TMPFS and UDF, commented out.
 1.53 04-Mar-2006  peter Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.52 05-Feb-2006  cube Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.51 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.50 03-Jan-2006  peter branches: 1.50.2; 1.50.4;
Add (commented out) options for color customization.
Enable customized output by default.
 1.49 20-Dec-2005  thorpej branches: 1.49.2;
Remove the tablet line discipline.
 1.48 07-Dec-2005  tsutsui Adjust comments for options FFS_NO_SNAPSHOT.

XXX: This option should be mentioned in options(4).
 1.47 23-Oct-2005  peter - Remove options PORTMASTER (not used any code).
- Add (commented out) options DEBUG.
- Add "pseudo-device ksyms".
 1.46 19-Aug-2005  christos branches: 1.46.2;
Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.45 19-Aug-2005  christos 64 bit inode changes.
 1.44 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.43 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.42 07-Jul-2005  tron Add (commented out) IPSEC_NAT_T option.
 1.41 25-Feb-2005  simonb branches: 1.41.2; 1.41.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.40 18-Feb-2005  dsl Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.39 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.38 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.37 10-Nov-2004  christos branches: 1.37.4; 1.37.6;
Add COMPAT_BSDPTY to the rest of the config files.
 1.36 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.35 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.34 13-Feb-2004  wiz branches: 1.34.2;
Uppercase CPU where appropriate.
 1.33 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.32 08-Oct-2003  bouyer Add atabus.
 1.31 13-Sep-2003  chris Add COMPAT_16 to most arm based kernels. Mainly in preperation for doing
SA_SIGINFO work.
 1.30 17-Apr-2003  wiz branches: 1.30.2;
no iic, thus no rtc@iic, thus no todclock@rtc.
 1.29 14-Oct-2002  elric Added commented out cgd(4)s to GENERIC configs.
 1.28 18-Sep-2002  lukem enable USERCONF by default; it's small and extremely useful to have available.
 1.27 16-Sep-2002  manu Fix a config mistake for wsmouse
 1.26 22-Jul-2002  manu Enable two WSDISPLAY options needed by the X server
 1.25 21-Jul-2002  manu Added a commented out J720KBD_LAYOUT option, to show how default keymap can
be changed.
 1.24 19-Jul-2002  toshii Support jornada720 touchpanel.
 1.23 18-Jul-2002  manu Added PHY to the config file so that most PCMCIA ethernet board will work.
 1.22 22-Jun-2002  toshii Comment out MEMORY_DISK_HOOKS as a workarund for the following problem.
hpcarm has a bug which prevents booting if kernel text+data size exceeds
3.75MB.
 1.21 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.20 03-May-2002  rjs branches: 1.20.2; 1.20.4;
Remove CPU_SA110 option.
 1.19 25-Apr-2002  atatat 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.18 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.17 10-Apr-2002  thorpej Delete option SAIP; nothing tests it.
 1.16 10-Apr-2002  thorpej Eliminate all #ifdef HPCARM, and delete the option.
 1.15 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.14 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.13 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.12 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.11 13-Nov-2001  augustss branches: 1.11.2;
The wsmux pseudo device does not need a count anymore.
 1.10 08-Jul-2001  abs branches: 1.10.2;
Standardise TCP_COMPAT_42 as commented out, grouped with other COMPAT options,
and with the comment '4.2BSD TCP/IP bug compat. Not recommended'
Add commented out 'TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG'
(All hail amiga and atari which make some attempt to automate the
multiplicity of config files...)
 1.9 23-Jun-2001  toshii Enable a bunch of PCMCIA network cards. They cannot be tested before
enabling.
 1.8 23-Jun-2001  toshii Add jornada720 keyboard device.
 1.7 23-Jun-2001  toshii Remove obsolete BOOTINFO_FB_* workaround.
 1.6 01-Jun-2001  toshii Nuke FRAMEBUF_HW_BASE. This value is provided by the bootloader.
 1.5 01-Jun-2001  toshii Add support for jornada720's framebuffer.

The functionality is almost same as bivideo, and hardware rasops and
power saving are not yet supported.
 1.4 23-May-2001  toshii Add some PCMCIA devices.
 1.3 24-Feb-2001  toshii branches: 1.3.2; 1.3.4;
Use hardware address for saost.
 1.2 24-Feb-2001  ichiro change com-speed to 19200.
default com-speed of hpcboot are 19200
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.3.4.1 24-Feb-2001  bouyer file JORNADA720 was added on branch thorpej_scsipi on 2001-03-12 13:28:19 +0000
 1.3.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.10.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.10.2.5 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.10.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.10.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.10.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.10.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.11.2.8 18-Oct-2002  nathanw Catch up to -current.
 1.11.2.7 01-Aug-2002  nathanw Catch up to -current.
 1.11.2.6 20-Jun-2002  nathanw Catch up to -current.
 1.11.2.5 17-Apr-2002  nathanw Catch up to -current.
 1.11.2.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.11.2.3 28-Feb-2002  nathanw Catch up to -current.
 1.11.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.11.2.1 13-Nov-2001  nathanw file JORNADA720 was added on branch nathanw_sa on 2002-01-08 00:24:50 +0000
 1.20.4.1 01-Aug-2002  lukem Pull up revision 1.21 (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.20.2.4 31-Aug-2002  gehenna catch up with -current.
 1.20.2.3 21-Jul-2002  gehenna catch up with -current.
 1.20.2.2 16-Jul-2002  gehenna catch up with -current.
 1.20.2.1 14-Jul-2002  gehenna catch up with -current.
 1.30.2.9 11-Dec-2005  christos Sync with head.
 1.30.2.8 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.30.2.7 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.30.2.6 15-Feb-2005  skrll Sync with HEAD.
 1.30.2.5 04-Feb-2005  skrll Sync with HEAD.
 1.30.2.4 14-Nov-2004  skrll Sync with HEAD.
 1.30.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.30.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.30.2.1 03-Aug-2004  skrll Sync with HEAD
 1.34.2.1 15-Jul-2004  he Pull up revision 1.35 (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.6.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.37.6.1 12-Feb-2005  yamt sync with head.
 1.37.4.1 29-Apr-2005  kent sync with -current
 1.41.4.6 21-Jan-2008  yamt sync with head
 1.41.4.5 07-Dec-2007  yamt sync with head
 1.41.4.4 03-Sep-2007  yamt sync with head.
 1.41.4.3 26-Feb-2007  yamt sync with head.
 1.41.4.2 30-Dec-2006  yamt sync with head.
 1.41.4.1 21-Jun-2006  yamt sync with head.
 1.41.2.1 18-Jul-2005  riz Pull up revision 1.42 (requested by tron in ticket #566):
Add (commented out) IPSEC_NAT_T option.
 1.46.2.1 26-Oct-2005  yamt sync with head
 1.49.2.2 18-Feb-2006  yamt sync with head.
 1.49.2.1 15-Jan-2006  yamt sync with head.
 1.50.4.1 22-Apr-2006  simonb Sync with head.
 1.50.2.1 09-Sep-2006  rpaulo sync with head
 1.56.6.2 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.56.6.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.56.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.56.2.3 03-Sep-2006  yamt sync with head.
 1.56.2.2 24-May-2006  yamt sync with head.
 1.56.2.1 01-Apr-2006  yamt sync with head.
 1.59.4.2 10-Dec-2006  yamt sync with head.
 1.59.4.1 22-Oct-2006  yamt sync with head
 1.59.2.2 12-Jan-2007  ad Sync with head.
 1.59.2.1 18-Nov-2006  ad Sync with head.
 1.63.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.64.18.2 03-Dec-2007  joerg Sync with HEAD.
 1.64.18.1 03-Sep-2007  jmcneill Sync with HEAD.
 1.64.16.4 28-Feb-2008  rjs Sync with HEAD.
 1.64.16.3 26-Dec-2007  rjs Sync with HEAD.
 1.64.16.2 01-Nov-2007  rjs Sync with HEAD.
 1.64.16.1 06-Oct-2007  rjs Switch to new interrupt code.
 1.64.14.1 03-Sep-2007  skrll Sync with HEAD.
 1.64.10.1 03-Oct-2007  garbled Sync with HEAD
 1.64.2.3 03-Dec-2007  ad Sync with HEAD.
 1.64.2.2 03-Dec-2007  ad Sync with HEAD.
 1.64.2.1 20-Aug-2007  ad Sync with HEAD.
 1.65.2.3 23-Mar-2008  matt sync with HEAD
 1.65.2.2 09-Jan-2008  matt sync with HEAD
 1.65.2.1 06-Nov-2007  matt sync with HEAD
 1.66.2.2 18-Feb-2008  mjf Sync with HEAD.
 1.66.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.67.6.1 20-Jan-2008  bouyer Sync with HEAD
 1.68.12.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.68.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.68.10.3 11-Aug-2010  yamt sync with head.
 1.68.10.2 11-Mar-2010  yamt sync with head
 1.68.10.1 04-May-2009  yamt sync with head.
 1.68.8.1 04-Jun-2008  yamt sync with head
 1.68.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.68.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.68.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.69.4.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.69.4.1 19-Oct-2008  haad Sync with HEAD.
 1.70.4.1 21-Nov-2010  riz Pull up following revision(s) (requested by plunky in ticket #1407):
sys/dev/bluetooth/btdev.h: revision 1.9
sys/arch/iyonix/conf/GENERIC: revision 1.60
sys/arch/sparc64/conf/GENERIC: revision 1.129
sys/dev/usb/hid.c: revision 1.30
sys/dev/usb/hid.h: revision 1.13
sys/arch/i386/conf/GENERIC: revision 1.983
usr.sbin/btdevctl/print.c: revision 1.10
sys/arch/evbarm/conf/MPCSA_GENERIC: revision 1.16
sys/arch/alpha/conf/GENERIC: revision 1.337
sys/dev/bluetooth/files.bluetooth: revision 1.14
sys/arch/evbarm/conf/GUMSTIX: revision 1.49
sys/dev/usb/usbdevs: revision 1.550
sys/arch/evbppc/conf/OPENBLOCKS266_OPT: revision 1.14
sys/arch/hpcsh/conf/GENERIC: revision 1.91
sys/dev/bluetooth/btmagic.c: revision 1.1
distrib/sets/lists/man/mi: revision 1.1210
sys/arch/amd64/conf/GENERIC: revision 1.279
sys/arch/i386/conf/ALL: revision 1.258
sys/arch/amd64/conf/XEN3_DOM0: revision 1.54
sys/arch/hpcarm/conf/JORNADA720: revision 1.78
sys/dev/usb/hid.c: revision 1.29
share/man/man4/btmagic.4: revision 1.1
hid_get_data() does not work if the size of data is less than
a byte and crosses a byte boundary, and it always returns a
sign-extended value.
fix this by using the algorithm from libusbhid to read bytes,
and provide a hid_get_udata() function to return unsigned data
values.
while here, const args
update DPRINTF to reflect actual function name
add Apple Magic Mouse product-id
regen for Magic Mouse id
allow for vendor-id and product-id properties, passing them
through to child devices
add Magic Mouse driver and manpage btmagic(4)
additionally query the "PnP Information" service record to discover
any USB Forum vendor-id and product-id values and store them in the
property list if found.
add btmagic(4) where other Bluetooth drivers are listed
 1.70.2.2 28-Apr-2009  skrll Sync with HEAD.
 1.70.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.73.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.75.4.4 21-Apr-2011  rmind sync with head
 1.75.4.3 05-Mar-2011  rmind sync with head
 1.75.4.2 03-Jul-2010  rmind sync with head
 1.75.4.1 30-May-2010  rmind sync with head
 1.75.2.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.75.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.81.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.81.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.83.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.83.2.3 16-Jan-2013  yamt sync with (a bit old) head
 1.83.2.2 30-Oct-2012  yamt sync with head
 1.83.2.1 17-Apr-2012  yamt sync with head
 1.84.2.2 11-Mar-2012  mrg sync to latest -current
 1.84.2.1 18-Feb-2012  mrg merge to -current.
 1.87.2.4 03-Dec-2017  jdolecek update from HEAD
 1.87.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.87.2.2 23-Jun-2013  tls resync from head
 1.87.2.1 25-Feb-2013  tls resync with head
 1.93.2.1 28-Aug-2013  rmind sync with head
 1.94.4.1 10-Aug-2014  tls Rebase.
 1.96.2.2 28-Aug-2017  skrll Sync with HEAD
 1.96.2.1 22-Sep-2015  skrll Sync with HEAD
 1.97.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.97.2.1 26-Apr-2017  pgoyette Sync with HEAD
 1.101.4.3 21-Apr-2020  martin Sync with HEAD
 1.101.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.101.4.1 10-Jun-2019  christos Sync with HEAD
 1.101.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.103.4.1 25-Jan-2020  ad Sync with head.
 1.104.4.1 20-Apr-2020  bouyer Sync with HEAD
 1.7 11-Dec-2005  christos merge ktrace-lwp.
 1.6 04-Mar-2004  jdc branches: 1.6.4;
Make this include the Jornada 720 config and just change the memory size,
as it is exactly the same otherwise.
 1.5 13-Feb-2004  wiz Uppercase CPU where appropriate.
 1.4 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.3 08-Oct-2003  bouyer Add atabus.
 1.2 16-Sep-2003  agc Add COMPAT_16, pointed out by Bryan Vyhmeister.
 1.1 16-Sep-2003  agc Add a kernel configuration file for the Jornada 728.
 1.6.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.6.4.2 03-Aug-2004  skrll Sync with HEAD
 1.6.4.1 04-Mar-2004  skrll file JORNADA728 was added on branch ktrace-lwp on 2004-08-03 10:35:04 +0000
 1.42 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.41 19-Jan-2020  thorpej branches: 1.41.4;
Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.40 01-Aug-2018  maxv branches: 1.40.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.39 14-Sep-2017  mrg branches: 1.39.2; 1.39.4;
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.38 29-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 3.
 1.37 12-Aug-2015  maxv Remove KMEMSTATS.
 1.36 23-Aug-2014  dholland branches: 1.36.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.35 03-Aug-2014  martin Add COMPAT_NETBSD32, following the switch to eabi by default.
 1.34 30-Jun-2013  rmind branches: 1.34.4;
G/C PFIL_HOOKS from the kernel configs.
 1.33 05-Jun-2013  christos branches: 1.33.2;
remove obsolete networking options
 1.32 27-Apr-2013  christos the bogus number police
 1.31 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.30 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.29 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.28 06-Dec-2012  msaitoh Remove "#options ARMFPE"
 1.27 17-Aug-2012  abs branches: 1.27.2;
Ensure all WSDISPLAY_COMPAT_USL entries have same comment
 1.26 10-Mar-2012  joerg P1003_1B_SEMAPHORE is no longer optional.
 1.25 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.24 22-Nov-2011  tls branches: 1.24.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.23 30-Jun-2011  wiz branches: 1.23.2;
dependant -> dependent
 1.22 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.21 04-Jan-2011  tsutsui branches: 1.21.2; 1.21.4;
Add options P1003_1B_SEMAPHORE.
 1.20 23-Nov-2010  hannken Remove unused count from pseudo-device md.
 1.19 26-Jun-2010  tsutsui If options RTC_OFFSET is not specified use bootinfo->timezone passed
by hpcboot.exe as well as other hpc* ports. Noticed by uwe@.
Also comment out options RTC_OFFSET=0 lines and note about this
in kernel config files. Tested on WS003SH.

XXX: dup code among pxa2x0_hpc_machdep.c and sa11x0_hpc_machdep.c
 1.18 17-Apr-2010  nonaka Added Sharp W-ZERO3 series support.
 1.17 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.16 05-Dec-2009  pooka branches: 1.16.2; 1.16.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.15 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.14 24-Nov-2008  ad branches: 1.14.4;
Remove softdep, pass 1. We are focused on improving journalling.

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

Proposed on tech-kern@.
 1.12 31-Jul-2008  simonb branches: 1.12.2;
Add "options WAPBL" to standard GENERIC/INSTALL type configs.
 1.11 30-May-2008  tsutsui branches: 1.11.4;
Add options COMPAT_40 to files which have options COMPAT_30.
 1.10 19-Jan-2008  chris branches: 1.10.6; 1.10.8; 1.10.10; 1.10.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.9 17-Oct-2007  garbled branches: 1.9.2; 1.9.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.8 07-May-2007  jnemeth branches: 1.8.6; 1.8.10;
PR/36234 - Joerg Niendorf -- xi -> xirc
 1.7 27-Sep-2006  manu branches: 1.7.2; 1.7.4; 1.7.8; 1.7.10; 1.7.16;
- 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.6 26-Aug-2006  christos branches: 1.6.2; 1.6.4;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.5 11-Apr-2006  peter branches: 1.5.6;
Implement pmap_devmap on hpcarm to map I/O registers that are used
in early start-up stage. Change the virtual address for UART #3 to
the physical address in the configuration files.
While here, implement the sa11x0_bs_unmap function.

Reviewed by Toru Nishimura (on port-arm).
 1.4 05-Feb-2006  cube branches: 1.4.2; 1.4.4; 1.4.6;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.3 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.2 26-Jan-2006  peter branches: 1.2.2; 1.2.4; 1.2.6;
Correct cut 'n pasto in comments.
 1.1 25-Jan-2006  is Boots - with serial console - far enough to ask for a root device.
 1.2.6.1 22-Apr-2006  simonb Sync with head.
 1.2.4.3 18-Feb-2006  yamt sync with head.
 1.2.4.2 01-Feb-2006  yamt sync with head.
 1.2.4.1 26-Jan-2006  yamt file JORNADA820 was added on branch yamt-uio_vmspace on 2006-02-01 14:51:27 +0000
 1.2.2.1 09-Sep-2006  rpaulo sync with head
 1.4.6.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.4.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.4.2.2 03-Sep-2006  yamt sync with head.
 1.4.2.1 24-May-2006  yamt sync with head.
 1.5.6.5 21-Jan-2008  yamt sync with head
 1.5.6.4 03-Sep-2007  yamt sync with head.
 1.5.6.3 30-Dec-2006  yamt sync with head.
 1.5.6.2 21-Jun-2006  yamt sync with head.
 1.5.6.1 11-Apr-2006  yamt file JORNADA820 was added on branch yamt-lazymbuf on 2006-06-21 14:51:44 +0000
 1.6.4.1 22-Oct-2006  yamt sync with head
 1.6.2.1 18-Nov-2006  ad Sync with head.
 1.7.16.1 22-May-2007  matt Update to HEAD.
 1.7.10.1 11-Jul-2007  mjf Sync with head.
 1.7.8.1 27-May-2007  ad Sync with head.
 1.7.4.1 17-May-2007  yamt sync with head.
 1.7.2.1 12-May-2007  pavel Pull up following revision(s) (requested by jnemeth in ticket #639):
sys/arch/hpcarm/conf/IPAQ: revision 1.50
sys/arch/amd64/conf/GENERIC: revision 1.141
sys/arch/amd64/conf/INSTALL: revision 1.68
sys/arch/i386/conf/SWINGER: revision 1.90
sys/arch/hpcarm/conf/JORNADA820: revision 1.8
PR/36234 - Joerg Niendorf -- xi -> xirc
 1.8.10.2 23-Mar-2008  matt sync with HEAD
 1.8.10.1 06-Nov-2007  matt sync with HEAD
 1.8.6.1 28-Feb-2008  rjs Sync with HEAD.
 1.9.8.1 20-Jan-2008  bouyer Sync with HEAD
 1.9.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.10.12.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.10.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.10.10.3 11-Aug-2010  yamt sync with head.
 1.10.10.2 11-Mar-2010  yamt sync with head
 1.10.10.1 04-May-2009  yamt sync with head.
 1.10.8.1 04-Jun-2008  yamt sync with head
 1.10.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.10.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.10.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.11.4.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.11.4.1 19-Oct-2008  haad Sync with HEAD.
 1.12.2.2 28-Apr-2009  skrll Sync with HEAD.
 1.12.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.14.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.16.4.4 21-Apr-2011  rmind sync with head
 1.16.4.3 05-Mar-2011  rmind sync with head
 1.16.4.2 03-Jul-2010  rmind sync with head
 1.16.4.1 30-May-2010  rmind sync with head
 1.16.2.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.16.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.21.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.21.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.23.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.23.2.3 16-Jan-2013  yamt sync with (a bit old) head
 1.23.2.2 30-Oct-2012  yamt sync with head
 1.23.2.1 17-Apr-2012  yamt sync with head
 1.24.2.2 11-Mar-2012  mrg sync to latest -current
 1.24.2.1 18-Feb-2012  mrg merge to -current.
 1.27.2.4 03-Dec-2017  jdolecek update from HEAD
 1.27.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.27.2.2 23-Jun-2013  tls resync from head
 1.27.2.1 25-Feb-2013  tls resync with head
 1.33.2.1 28-Aug-2013  rmind sync with head
 1.34.4.1 10-Aug-2014  tls Rebase.
 1.36.2.2 28-Aug-2017  skrll Sync with HEAD
 1.36.2.1 22-Sep-2015  skrll Sync with HEAD
 1.39.4.3 21-Apr-2020  martin Sync with HEAD
 1.39.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.39.4.1 10-Jun-2019  christos Sync with HEAD
 1.39.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.40.6.1 25-Jan-2020  ad Sync with head.
 1.41.4.1 20-Apr-2020  bouyer Sync with HEAD
 1.20 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.19 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.18 18-Feb-2008  joerg branches: 1.18.96; 1.18.98;
Register assym.h dependencies.
 1.17 11-Dec-2005  christos branches: 1.17.46; 1.17.50; 1.17.56;
merge ktrace-lwp.
 1.16 31-May-2005  christos branches: 1.16.2;
s/GENASSYM/GENASSYM_CONF/ so we can use "GENASSYM" as the program name.
 1.15 04-Jun-2004  thorpej Add the %MAKEOPTIONSAPPEND token at the end of the file, after the
common Makefile.kern.inc has been included.
 1.14 05-Oct-2002  chs branches: 1.14.6; 1.14.10;
add missing protos.
 1.13 19-Dec-2001  thorpej Remove the MACHINE_ARCH assignment.
 1.12 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.11 27-Nov-2001  thorpej Use the generic 32-bit ARM genassym.cf
 1.10 26-Nov-2001  thorpej Allow port-specific Makefile fragments to specify a list of additional
genassym.cf fragments, if desired.
 1.9 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.8 15-Nov-2001  thorpej MACHINE_ARCH == arm on hpcarm.
 1.7 26-Oct-2001  jmc branches: 1.7.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.6 23-Oct-2001  thorpej branches: 1.6.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.5 23-Oct-2001  thorpej Pull in <bsd.own.mk> to get the correct toolchain definitions for
the USE_NEW_TOOLCHAIN case.
 1.4 02-Aug-2001  toshii Change the start address to load the kernel. We have 768k more free
memory now.
 1.3 29-Jun-2001  toshii branches: 1.3.2;
Use ld -X instead of -x, to keep local symbols for DDB.

XXX does other arm ports need this change?
 1.2 29-May-2001  mrg define _KERNEL_OPT as well as _KERNEL. we will use this in the future to
get kernel "opt_foo.h" headers, rather than _KERNEL && !_LKM.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file Makefile.hpcarm was added on branch thorpej_scsipi on 2001-03-12 13:28:19 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1 03-Aug-2001  lukem update to -current
 1.6.2.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.7.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.7.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.7.2.1 26-Oct-2001  nathanw file Makefile.hpcarm was added on branch nathanw_sa on 2002-01-08 00:24:50 +0000
 1.14.10.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.14.6.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.14.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.14.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.14.6.1 03-Aug-2004  skrll Sync with HEAD
 1.16.2.1 27-Feb-2008  yamt sync with head.
 1.17.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.17.50.1 23-Mar-2008  matt sync with HEAD
 1.17.46.1 28-Feb-2008  rjs Sync with HEAD.
 1.18.98.1 10-Jun-2019  christos Sync with HEAD
 1.18.96.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.33 26-Dec-2021  andvar fix various typos, mainly in comments.
 1.32 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.31 24-Mar-2020  sevan branches: 1.31.2;
g/c UGEN_BULK_RA_WB which is not a supported option
 1.30 19-Jan-2020  thorpej Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.29 21-Aug-2019  msaitoh branches: 1.29.2;
Fix typo (s/contoller/controller/).
 1.28 14-Apr-2019  isaki Fix build error. size locater is gone.
Thanks mrg@.
 1.27 13-Apr-2019  isaki Add drvctl to kernel which has audio device.
audiocfg(1) requires drvctl(4).
 1.26 23-Oct-2018  jdolecek remove the 'wd* at umass?' for the non-standardized and rare (extinct?)
In-System Design ATA protocol over Bulk-Only devices from most kernels,
leave only in i386/amd64 ALL; it's unmaintained and likely currently broken,
lack of test hardware makes it impossible to support
 1.25 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.24 07-Jun-2018  thorpej branches: 1.24.2;
Revert changes that pinned-down i2c parent specs. The i2c subsystem
has been enhanced to make this unnecessary.
 1.23 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.22 14-Sep-2017  mrg branches: 1.22.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.21 29-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 3.
 1.20 13-Dec-2016  christos wildcard speaker attachments, now that we can handle many of them.
 1.19 10-Dec-2016  christos remove VAUDIOSPEAKER for now, will be done differently.
 1.18 08-Dec-2016  nat Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
 1.17 12-Aug-2015  maxv branches: 1.17.2;
Remove KMEMSTATS.
 1.16 23-Aug-2014  dholland branches: 1.16.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.15 16-Aug-2014  apb Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
 1.14 03-Aug-2014  martin Add COMPAT_NETBSD32, following the switch to eabi by default.
 1.13 30-Jun-2013  rmind branches: 1.13.4;
G/C PFIL_HOOKS from the kernel configs.
 1.12 05-Jun-2013  christos branches: 1.12.2;
remove obsolete networking options
 1.11 27-Apr-2013  christos the bogus number police
 1.10 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.9 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.8 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.7 17-Oct-2012  apb Add "options COMPAT_60" to all kernel configuration files
that already had "options COMPAT_50".
 1.6 17-Aug-2012  abs branches: 1.6.2;
Ensure all WSDISPLAY_COMPAT_USL entries have same comment
 1.5 31-Mar-2012  nonaka Add support kloader(4) for PXA2X0.
 1.4 10-Mar-2012  joerg P1003_1B_SEMAPHORE is no longer optional.
 1.3 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.2 22-Nov-2011  tls branches: 1.2.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.1 06-Aug-2011  kiyohara branches: 1.1.2;
Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.1.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.1.2.2 30-Oct-2012  yamt sync with head
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.2.2.3 05-Apr-2012  mrg sync to latest -current.
 1.2.2.2 11-Mar-2012  mrg sync to latest -current
 1.2.2.1 18-Feb-2012  mrg merge to -current.
 1.6.2.4 03-Dec-2017  jdolecek update from HEAD
 1.6.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.2.2 23-Jun-2013  tls resync from head
 1.6.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.12.2.1 28-Aug-2013  rmind sync with head
 1.13.4.1 10-Aug-2014  tls Rebase.
 1.16.2.3 28-Aug-2017  skrll Sync with HEAD
 1.16.2.2 05-Feb-2017  skrll Sync with HEAD
 1.16.2.1 22-Sep-2015  skrll Sync with HEAD
 1.17.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.22.2.4 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.22.2.3 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.22.2.2 25-Jun-2018  pgoyette Sync with HEAD
 1.22.2.1 21-May-2018  pgoyette Sync with HEAD
 1.24.2.4 21-Apr-2020  martin Sync with HEAD
 1.24.2.3 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.24.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.24.2.1 10-Jun-2019  christos Sync with HEAD
 1.29.2.1 25-Jan-2020  ad Sync with head.
 1.31.2.1 20-Apr-2020  bouyer Sync with HEAD
 1.54 20-Nov-2021  rin Add commented out FONT_DROID_SANS_MONO10x20 option. This enables 80x24
terminal on WVGA models, which is slightly easier on the eyes ;)
 1.53 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.52 24-Mar-2020  sevan branches: 1.52.2;
g/c UGEN_BULK_RA_WB which is not a supported option
 1.51 19-Jan-2020  thorpej Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.50 21-Aug-2019  msaitoh branches: 1.50.2;
Fix typo (s/contoller/controller/).
 1.49 26-Apr-2019  sevan 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.48 06-Feb-2019  rin Add ure(4) to kernel config files. Also add PHY drivers where necessary.
 1.47 23-Oct-2018  jdolecek remove the 'wd* at umass?' for the non-standardized and rare (extinct?)
In-System Design ATA protocol over Bulk-Only devices from most kernels,
leave only in i386/amd64 ALL; it's unmaintained and likely currently broken,
lack of test hardware makes it impossible to support
 1.46 25-Aug-2018  rin Add (commented out) mue(4) to where appropriate.
Also add MII/PHY drivers for USB NICs if missing.
 1.45 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.44 14-Sep-2017  mrg branches: 1.44.2; 1.44.4;
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.43 29-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 3.
 1.42 13-Dec-2016  christos wildcard speaker attachments, now that we can handle many of them.
 1.41 10-Dec-2016  christos remove VAUDIOSPEAKER for now, will be done differently.
 1.40 08-Dec-2016  nat Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
 1.39 12-Aug-2015  maxv branches: 1.39.2;
Remove KMEMSTATS.
 1.38 05-Feb-2015  nonaka Added drvctl, putter and PUFFS.
 1.37 23-Aug-2014  dholland branches: 1.37.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.36 16-Aug-2014  apb Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
 1.35 03-Aug-2014  martin Add COMPAT_NETBSD32, following the switch to eabi by default.
 1.34 30-Jun-2013  rmind branches: 1.34.4;
G/C PFIL_HOOKS from the kernel configs.
 1.33 05-Jun-2013  christos branches: 1.33.2;
remove obsolete networking options
 1.32 27-Apr-2013  christos the bogus number police
 1.31 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.30 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.29 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.28 17-Oct-2012  apb Add "options COMPAT_60" to all kernel configuration files
that already had "options COMPAT_50".
 1.27 01-Sep-2012  jakllsch branches: 1.27.2;
Rename RT2500USB driver to ural(4) as it was originally in OpenBSD,
as ural(4) and ral(4) do not actually share any code.

Enable ural(4) in hpcarm WZERO3 kernel too, as it will now build.

Fixes PR#43520.
 1.26 17-Aug-2012  abs Ensure all WSDISPLAY_COMPAT_USL entries have same comment
 1.25 31-Mar-2012  nonaka Add support kloader(4) for PXA2X0.
 1.24 10-Mar-2012  joerg P1003_1B_SEMAPHORE is no longer optional.
 1.23 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.22 22-Nov-2011  tls branches: 1.22.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.21 30-Jun-2011  wiz branches: 1.21.2;
dependant -> dependent
 1.20 21-Jun-2011  kiyohara Split pxa2x0_hpc/wzero3.
 1.19 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.18 04-Jan-2011  tsutsui branches: 1.18.2; 1.18.4;
Add options P1003_1B_SEMAPHORE.
 1.17 23-Nov-2010  hannken Remove unused count from pseudo-device md.
 1.16 28-Aug-2010  tsutsui Enable options COMPAT_16 for old distributed.net client binaries.
 1.15 12-Aug-2010  tsutsui Add acphy(4), which can be found with aue(4).
 1.14 08-Aug-2010  tsutsui branches: 1.14.2;
Add options PXA2X0_LCD_WRITETHROUGH to improve console speed.
 1.13 31-Jul-2010  tsutsui Add atapibus and atapi devices. My USB DVD multi drive requires them.
 1.12 31-Jul-2010  tsutsui Add uaudio(4).
 1.11 21-Jul-2010  tsutsui Make FONT_VT220L8x16 default for aesthetics.

XXX1: Is it better to use FONT_VT220ISO8x16?
XXX2: Should we change the default font from FONT_BOLT8x16 in MI wsfont.c?
 1.10 05-Jul-2010  tsutsui Add upgt(4) for WS003SH/WS004SH internal WLAN.
 1.9 26-Jun-2010  tsutsui If options RTC_OFFSET is not specified use bootinfo->timezone passed
by hpcboot.exe as well as other hpc* ports. Noticed by uwe@.
Also comment out options RTC_OFFSET=0 lines and note about this
in kernel config files. Tested on WS003SH.

XXX: dup code among pxa2x0_hpc_machdep.c and sa11x0_hpc_machdep.c
 1.8 25-Jun-2010  tsutsui Add several USB Ethernet devices.
 1.7 25-Jun-2010  tsutsui Enable options DDB, which is enabled in other kernels.
 1.6 25-Jun-2010  tsutsui Set options RTC_OFFSET=-540 since Windows Mobile stores localtime
into the RTC and we can assume most W-ZERO3 users live in JST timezone.

XXX: Probably it would be better to allow a kernel getting RTC_OFFSET value
XXX: via bootinfo set by boot(8) or boot.cfg(5).
 1.5 30-May-2010  nonaka Added keypad driver for WS011SH.
 1.4 09-May-2010  nonaka branches: 1.4.2;
Added touchpad driver for WS007SH.
 1.3 09-May-2010  nonaka Added 2 options for X.
 1.2 24-Apr-2010  nonaka branches: 1.2.2;
The capacity of RAM is decided according to the model.
 1.1 17-Apr-2010  nonaka Added Sharp W-ZERO3 series support.
 1.2.2.4 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.2.2.3 17-Aug-2010  uebayasi Sync with HEAD.
 1.2.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.2.2.1 24-Apr-2010  uebayasi file WZERO3 was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.4.2.5 21-Apr-2011  rmind sync with head
 1.4.2.4 05-Mar-2011  rmind sync with head
 1.4.2.3 03-Jul-2010  rmind sync with head
 1.4.2.2 30-May-2010  rmind sync with head
 1.4.2.1 09-May-2010  rmind file WZERO3 was added on branch rmind-uvmplock on 2010-05-30 05:16:50 +0000
 1.14.2.3 09-Oct-2010  yamt sync with head
 1.14.2.2 11-Aug-2010  yamt sync with head.
 1.14.2.1 08-Aug-2010  yamt file WZERO3 was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.18.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.18.2.1 06-Jun-2011  jruoho Sync with HEAD.
 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 17-Apr-2012  yamt sync with head
 1.22.2.3 05-Apr-2012  mrg sync to latest -current.
 1.22.2.2 11-Mar-2012  mrg sync to latest -current
 1.22.2.1 18-Feb-2012  mrg merge to -current.
 1.27.2.4 03-Dec-2017  jdolecek update from HEAD
 1.27.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.27.2.2 23-Jun-2013  tls resync from head
 1.27.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.33.2.1 28-Aug-2013  rmind sync with head
 1.34.4.1 10-Aug-2014  tls Rebase.
 1.37.2.4 28-Aug-2017  skrll Sync with HEAD
 1.37.2.3 05-Feb-2017  skrll Sync with HEAD
 1.37.2.2 22-Sep-2015  skrll Sync with HEAD
 1.37.2.1 06-Apr-2015  skrll Sync with HEAD
 1.39.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.44.4.4 21-Apr-2020  martin Sync with HEAD
 1.44.4.3 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.44.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.44.4.1 10-Jun-2019  christos Sync with HEAD
 1.44.2.2 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.44.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.50.2.1 25-Jan-2020  ad Sync with head.
 1.52.2.1 20-Apr-2020  bouyer Sync with HEAD
 1.66 31-Mar-2012  nonaka Add support kloader(4) for PXA2X0.
 1.65 17-Apr-2010  nonaka branches: 1.65.8; 1.65.12;
Added Sharp W-ZERO3 series support.
 1.64 27-Apr-2008  matt branches: 1.64.20; 1.64.22;
Merge kernel changes in matt-armv6 to HEAD.
 1.63 20-Feb-2008  drochner branches: 1.63.6; 1.63.8; 1.63.10;
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.62 03-Dec-2007  ad 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.61 08-Jan-2007  ichiro branches: 1.61.6; 1.61.20; 1.61.22; 1.61.24; 1.61.30;
move devices entry to MD/conf/files.*
catch up to current kernel configuration
 1.60 07-Oct-2006  peter Backout audio changes that crept in (not ready yet).
 1.59 07-Oct-2006  peter Add support for touches on the HP hard icons, mostly copied from hpcsh but
also with support for raw kbd (for X).

No objection on port-hpcarm.
 1.58 10-May-2006  rjs branches: 1.58.8; 1.58.10;
Remove majors.arm32.
 1.57 07-May-2006  rjs Put back full majors.hpcarm.
 1.56 07-May-2006  rjs Remove majors.hpcarm.
 1.55 04-Mar-2006  peter branches: 1.55.2; 1.55.4; 1.55.6;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.54 03-Jan-2006  peter branches: 1.54.2; 1.54.4;
* Improve description header.
* Fix a typo.
* Remove unneeded includes.
 1.53 11-Dec-2005  christos branches: 1.53.2;
merge ktrace-lwp.
 1.52 23-Oct-2005  peter Use arm/arm32/stubs.c instead of hpcarm/hpcarm/stubs.c to reduce
duplicated code. PR/17346 from Kevin Lo. ok by ichiro@
 1.51 28-Jun-2005  drochner branches: 1.51.2; 1.51.4;
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.50 28-May-2004  tsarna Refactor tpcalib and hpc* ports to make tpcalib MI, as discussed on tech-kern.
 1.49 08-Aug-2003  bsh split StrongArm companion chip (sacc) driver so that we can support
sacc on other platforms than hpcarm (evbarm for example).

codes specific to hpcarm are extracted and moved to hpcarm/dev/.
 1.48 26-Oct-2002  jdolecek branches: 1.48.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.47 16-Sep-2002  manu Initial APM support (enough to get battery level)
 1.46 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.45 19-Jul-2002  ichiro make compile "IPAQ"
 1.44 19-Jul-2002  ichiro move sa11x0 to under arch/arm
make compile
 1.43 19-Jul-2002  toshii Support jornada720 touchpanel.
 1.42 16-Apr-2002  thorpej branches: 1.42.2;
* Move the mii_bitbang attribute into dev/mii/files.mii
* Pull in dev/mii/files.mii from conf/files, rather than playing
the magic "files include order" dance in N machine-dependent
configuration definitions.
 1.41 13-Apr-2002  bjh21 Remove bogus dependency on options HPCARM.
 1.40 25-Mar-2002  thorpej Use the generic ARM procfs_machdep.c
 1.39 25-Mar-2002  thorpej Use the generic ARM process_machdep.c
 1.38 25-Mar-2002  thorpej Use the generic 32-bit ARM setstack.S
 1.37 25-Mar-2002  thorpej Use the common 32-bit ARM setcpsr.S
 1.36 24-Mar-2002  thorpej Use the generic 32-bit ARM fault.c
 1.35 16-Mar-2002  toshii Discard hpcarm copies of fusu.S and mem.c and use arm/arm32 versions.
 1.34 30-Jan-2002  thorpej Now that there is a generic SA-11x0 CPU sleep routine, use the
shared arm32 cpuswitch.S.
 1.33 20-Dec-2001  thorpej * 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.32 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.31 27-Nov-2001  thorpej Blah, hpcarm also has its own intr.c
 1.30 26-Nov-2001  thorpej Oops, don't use the generic spl.S; hpcarm provides its own.
 1.29 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.28 24-Nov-2001  thorpej The ARM, Ltd. floating point emulator has moved to arch/arm.
 1.27 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.26 09-Sep-2001  toshii branches: 1.26.4;
Use arm/arm32/vm_machdep.c instead of hpcarm one.
 1.25 03-Sep-2001  matt branches: 1.25.2;
Switch hpcarm to common arm32 conf.c ; (small changes to vm_machdep.c to
make it compile under ELF)
 1.24 01-Aug-2001  ichiro add entry of Atmel microcontroller and uda1341 codec
 1.23 29-Jul-2001  toshii Make hpcarm kernel build after arm/arm32 file move.
 1.22 10-Jul-2001  ichiro ipaqlcd attach to ipaqbus
 1.21 10-Jul-2001  ichiro add ipaqbus and ipaqpcic
 1.20 23-Jun-2001  toshii branches: 1.20.2;
Add support for jornada720 keyboard and some LCD parameter controls.
The code is somewhat incomplete, but is quite functional.
 1.19 18-Jun-2001  bjh21 Merge arm32/dev/bus_space_notimpl.S and hpcarm/hpcarm/bus_space_notimpl.S
into arm/arm/bus_space_notimpl.S. They were identical anyway.

This file has no excuse for being in assembler, but I'll leave that for another
day.
 1.18 01-Jun-2001  toshii Add support for jornada720's framebuffer.

The functionality is almost same as bivideo, and hardware rasops and
power saving are not yet supported.
 1.17 30-May-2001  toshii Use sys/arch/arm/arm/blockio.S.

Actually, these functions aren't used by hpcarm but is necessary to be
able to link sys/arch/arm/mainbus thing.
 1.16 22-May-2001  toshii Implement generic soft interrupt for hpcarm.
 1.15 06-May-2001  bjh21 Move "defopt PMAP_DEBUG" into files.arm, since it's used by code in arch/arm.
 1.14 06-May-2001  bjh21 Move cpufunc stuff from arm32/arm32 to arm/arm. The only change involved is
to add recognition of the SA-1100 and SA-1110 for compatibility with hpcarm
(which is now using this code as well).
 1.13 31-Mar-2001  toshii Reorder so that basic devices attach first.
 1.12 14-Mar-2001  toshii Use hpc/hpc/disksubr.c.
 1.11 10-Mar-2001  toshii branches: 1.11.2;
Add sacc, sacpcic, and sagpcic.
 1.10 10-Mar-2001  toshii hpcarm/hpcarm/ast.c is no longer.
 1.9 05-Mar-2001  bjh21 Move undefined.c from sys/arch/{arm32/arm32,hpcarm/hpcarm} to sys/arch/arm/arm
in preparation for making it usable on arm26 as well.
 1.8 04-Mar-2001  matt branches: 1.8.2;
Move compat_13_machdep.c, strstr.c, copystr.S, bcopyinout.S, and
bcopy_page.S to arm/arm32 and remove port-local copies.
 1.7 27-Feb-2001  bjh21 Move "options ARMFPE" to files.arm, so generic ARM files can use it.
 1.6 25-Feb-2001  bjh21 Remove CPU_* options (they're in files.arm now -- for some reason I missed
this lot in the last commit).
 1.5 25-Feb-2001  toshii Use MI md_root.c.
 1.4 24-Feb-2001  reinoud Moved the mainbus files to the arm/conf/file.arm from the arm32 and the
hpcarm/conf/files.hpcarm
 1.3 24-Feb-2001  reinoud Repaired a syntax fault in the files.[hpcarm,arm32]
 1.2 24-Feb-2001  reinoud Part 2 of merge.... the dissapearance of mainbus from arm32 and hpcarm;
these parts were a 100% the same and i've included the extensions made by
hpcarm in the tree.
Checked for occurence of MD parts; none found.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.8.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.8.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.11.2.4 21-Apr-2001  bouyer Sync with HEAD
 1.11.2.3 27-Mar-2001  bouyer Sync with HEAD.
 1.11.2.2 12-Mar-2001  bouyer Sync with HEAD.
 1.11.2.1 10-Mar-2001  bouyer file files.hpcarm was added on branch thorpej_scsipi on 2001-03-12 13:28:19 +0000
 1.20.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.20.2.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.20.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.20.2.4 11-Feb-2002  jdolecek Sync w/ -current.
 1.20.2.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.20.2.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.20.2.1 03-Aug-2001  lukem update to -current
 1.25.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.26.4.10 11-Nov-2002  nathanw Catch up to -current
 1.26.4.9 18-Oct-2002  nathanw Catch up to -current.
 1.26.4.8 17-Sep-2002  nathanw Catch up to -current.
 1.26.4.7 01-Aug-2002  nathanw Catch up to -current.
 1.26.4.6 20-Jun-2002  nathanw Catch up to -current.
 1.26.4.5 17-Apr-2002  nathanw Catch up to -current.
 1.26.4.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.26.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.26.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.26.4.1 09-Sep-2001  nathanw file files.hpcarm was added on branch nathanw_sa on 2002-01-08 00:24:50 +0000
 1.42.2.3 21-Jul-2002  gehenna catch up with -current.
 1.42.2.2 17-May-2002  gehenna Remove old block majors list.
 1.42.2.1 16-May-2002  gehenna Include the list of block/character major numbers.
 1.48.6.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.48.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.48.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.48.6.1 03-Aug-2004  skrll Sync with HEAD
 1.51.4.1 26-Oct-2005  yamt sync with head
 1.51.2.5 27-Feb-2008  yamt sync with head.
 1.51.2.4 07-Dec-2007  yamt sync with head
 1.51.2.3 26-Feb-2007  yamt sync with head.
 1.51.2.2 30-Dec-2006  yamt sync with head.
 1.51.2.1 21-Jun-2006  yamt sync with head.
 1.53.2.1 15-Jan-2006  yamt sync with head.
 1.54.4.2 01-Jun-2006  kardel Sync with head.
 1.54.4.1 22-Apr-2006  simonb Sync with head.
 1.54.2.1 09-Sep-2006  rpaulo sync with head
 1.55.6.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.55.4.1 11-May-2006  elad sync with head
 1.55.2.1 24-May-2006  yamt sync with head.
 1.58.10.1 22-Oct-2006  yamt sync with head
 1.58.8.2 12-Jan-2007  ad Sync with head.
 1.58.8.1 18-Nov-2006  ad Sync with head.
 1.61.30.1 08-Dec-2007  mjf Sync with HEAD.
 1.61.24.2 23-Mar-2008  matt sync with HEAD
 1.61.24.1 09-Jan-2008  matt sync with HEAD
 1.61.22.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.61.20.3 28-Feb-2008  rjs Sync with HEAD.
 1.61.20.2 26-Dec-2007  rjs Sync with HEAD.
 1.61.20.1 06-Oct-2007  rjs Switch to new interrupt code.
 1.61.6.1 03-Dec-2007  ad Sync with HEAD.
 1.63.10.2 11-Aug-2010  yamt sync with head.
 1.63.10.1 16-May-2008  yamt sync with head.
 1.63.8.1 18-May-2008  yamt sync with head.
 1.63.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.64.22.1 30-May-2010  rmind sync with head
 1.64.20.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.65.12.1 05-Apr-2012  mrg sync to latest -current.
 1.65.8.1 17-Apr-2012  yamt sync with head
 1.1 06-Aug-2011  kiyohara Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.5 31-Mar-2012  nonaka Add support kloader(4) for PXA2X0.
 1.4 21-Jun-2011  kiyohara branches: 1.4.2; 1.4.6;
Split pxa2x0_hpc/wzero3.
 1.3 30-May-2010  nonaka branches: 1.3.2;
Added keypad driver for WS011SH.
 1.2 09-May-2010  nonaka branches: 1.2.2;
Added touchpad driver for WS007SH.
 1.1 17-Apr-2010  nonaka branches: 1.1.2;
Added Sharp W-ZERO3 series support.
 1.1.2.3 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.2.1 17-Apr-2010  uebayasi file files.pxa2x0 was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.2.2.3 03-Jul-2010  rmind sync with head
 1.2.2.2 30-May-2010  rmind sync with head
 1.2.2.1 09-May-2010  rmind file files.pxa2x0 was added on branch rmind-uvmplock on 2010-05-30 05:16:50 +0000
 1.3.2.2 11-Aug-2010  yamt sync with head.
 1.3.2.1 30-May-2010  yamt file files.pxa2x0 was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.4.6.1 05-Apr-2012  mrg sync to latest -current.
 1.4.2.1 17-Apr-2012  yamt sync with head
 1.3 01-Oct-2021  rin G/C unused over a decade.
 1.2 01-Oct-2021  rin Comment out hpcarm/spl.S, which was superseded by arm32/spl.S.

No functional changes; We had two source files for spl.o, but correct
file was chosen by config(1).
 1.1 17-Apr-2010  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added Sharp W-ZERO3 series support.
 1.1.6.2 11-Aug-2010  yamt sync with head.
 1.1.6.1 17-Apr-2010  yamt file files.sa11x0 was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.1.4.2 30-May-2010  rmind sync with head
 1.1.4.1 17-Apr-2010  rmind file files.sa11x0 was added on branch rmind-uvmplock on 2010-05-30 05:16:50 +0000
 1.1.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.2.1 17-Apr-2010  uebayasi file files.sa11x0 was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.1 21-Jun-2011  kiyohara Split pxa2x0_hpc/wzero3.
 1.18 29-Jun-2021  nia Remove uscanner(4) driver

This exists for compatibility with a Linux interface which was apparently
deprecated in Linux 2.6. There are various mailing list threads going
back to 2004 where the usefulness of this driver is discussed, but
the conclusion is that scanner software has all moved to using ugen(4)
instead, and enabling this driver will not help you scan things.
 1.17 04-Apr-2020  jdolecek branches: 1.17.8;
mark nsmb major obsolete
 1.16 29-Jan-2020  maya remove urio(4), a driver for the Rio500 MP3 player.

At this point it is highly unlikely this 1999 device still has users,
but it still comes up in the context of maxv's USB-fuzzing (and any device
could pretend to be a urio(4)), so it's best to get rid of it.

Renamed all major entries to obsolete, as was done in previous removals.

This still requires an update to sanitizers, but they're located in
"external", perhaps it should be first committed upstream?

Proposed on tech-kern a month ago.
 1.15 28-Jan-2019  dholland branches: 1.15.6;
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.14 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.13 23-Apr-2015  pgoyette branches: 1.13.16; 1.13.18;
Update device dependency information - the sysmon major device now depends on the sysmon module itself, not on the individual components.
 1.12 30-Jun-2011  wiz branches: 1.12.12; 1.12.30;
dependant -> dependent
 1.11 06-Mar-2010  plunky use a MI major number for uhso(4) driver
(requested by mrg)
 1.10 06-Mar-2010  plunky add major device for usho(4) driver
 1.9 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.8 31-Dec-2007  ad branches: 1.8.6; 1.8.10; 1.8.16; 1.8.18;
Remove systrace. Ok core@.
 1.7 24-Nov-2006  wiz branches: 1.7.24; 1.7.28; 1.7.34; 1.7.42;
s/independant/independent/, from Zafer.
 1.6 14-May-2006  elad branches: 1.6.6; 1.6.10; 1.6.12; 1.6.14;
integrate kauth.
 1.5 09-May-2006  yamt add a missing #.
 1.4 07-May-2006  rjs Put back full majors.hpcarm.
 1.3 07-May-2006  rjs A device node for apm is already declared in majors.arm32.
 1.2 07-May-2006  rjs Add entries for all devices.
 1.1 04-Mar-2006  peter branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.1.8.3 01-Jun-2006  kardel Sync with head.
 1.1.8.2 22-Apr-2006  simonb Sync with head.
 1.1.8.1 04-Mar-2006  simonb file majors.hpcarm was added on branch simonb-timecounters on 2006-04-22 11:37:28 +0000
 1.1.6.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.1.4.1 11-May-2006  elad sync with head
 1.1.2.1 24-May-2006  yamt sync with head.
 1.6.14.1 10-Dec-2006  yamt sync with head.
 1.6.12.2 09-Sep-2006  rpaulo sync with head
 1.6.12.1 14-May-2006  rpaulo file majors.hpcarm was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:39:38 +0000
 1.6.10.1 12-Jan-2007  ad Sync with head.
 1.6.6.4 21-Jan-2008  yamt sync with head
 1.6.6.3 30-Dec-2006  yamt sync with head.
 1.6.6.2 21-Jun-2006  yamt sync with head.
 1.6.6.1 14-May-2006  yamt file majors.hpcarm was added on branch yamt-lazymbuf on 2006-06-21 14:51:44 +0000
 1.7.42.1 02-Jan-2008  bouyer Sync with HEAD
 1.7.34.1 18-Feb-2008  mjf Sync with HEAD.
 1.7.28.1 09-Jan-2008  matt sync with HEAD
 1.7.24.1 28-Feb-2008  rjs Sync with HEAD.
 1.8.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.8.16.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.8.10.1 04-May-2009  yamt sync with head.
 1.8.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.12.30.1 06-Jun-2015  skrll Sync with HEAD
 1.12.12.1 03-Dec-2017  jdolecek update from HEAD
 1.13.18.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.13.18.1 10-Jun-2019  christos Sync with HEAD
 1.13.16.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.15.6.1 29-Feb-2020  ad Sync with head.
 1.17.8.1 01-Aug-2021  thorpej Sync with HEAD.
 1.9 26-Jun-2021  rin Set VMSWAP_DEFAULT_PLAINTEXT for hpcarm and hpcmips, that suffer from
slow CPU as well as memory shortage.

For hpcsh, this option is already enabled by std.sh3.
 1.8 27-Jan-2008  chris branches: 1.8.114;
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.7 11-Dec-2005  christos branches: 1.7.46; 1.7.50; 1.7.56;
merge ktrace-lwp.
 1.6 17-Sep-2005  yamt include "conf/std".
 1.5 22-May-2003  thorpej branches: 1.5.2; 1.5.18;
Don't need ARM32_PMAP_NEW option any more.
 1.4 03-May-2003  thorpej Switch to the new pmap.
 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 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 08-Jan-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file std.hpcarm was added on branch thorpej_scsipi on 2001-03-12 13:28:19 +0000
 1.5.18.2 04-Feb-2008  yamt sync with head.
 1.5.18.1 21-Jun-2006  yamt sync with head.
 1.5.2.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.7.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.7.50.1 23-Mar-2008  matt sync with HEAD
 1.7.46.1 28-Feb-2008  rjs Sync with HEAD.
 1.8.114.1 01-Aug-2021  thorpej Sync with HEAD.
 1.1 17-Apr-2010  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added Sharp W-ZERO3 series support.
 1.1.6.2 11-Aug-2010  yamt sync with head.
 1.1.6.1 17-Apr-2010  yamt file std.pxa2x0 was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.1.4.2 30-May-2010  rmind sync with head
 1.1.4.1 17-Apr-2010  rmind file std.pxa2x0 was added on branch rmind-uvmplock on 2010-05-30 05:16:50 +0000
 1.1.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.2.1 17-Apr-2010  uebayasi file std.pxa2x0 was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.1 17-Apr-2010  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added Sharp W-ZERO3 series support.
 1.1.6.2 11-Aug-2010  yamt sync with head.
 1.1.6.1 17-Apr-2010  yamt file std.sa11x0 was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.1.4.2 30-May-2010  rmind sync with head
 1.1.4.1 17-Apr-2010  rmind file std.sa11x0 was added on branch rmind-uvmplock on 2010-05-30 05:16:50 +0000
 1.1.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.2.1 17-Apr-2010  uebayasi file std.sa11x0 was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.10 04-Mar-2006  peter Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.9 16-Dec-2005  christos branches: 1.9.4; 1.9.6;
PR/32312: Arnaud Degroote: apm on hpcarm ( NetBSD-current ) doesn"t compile
 1.8 11-Dec-2005  christos merge ktrace-lwp.
 1.7 23-Oct-2005  peter - Use ANSI function decls.
- Add static, KNF.
- Print a newline in the attach routine for pretty dmesg output.
 1.6 20-Jan-2003  simonb branches: 1.6.2; 1.6.18; 1.6.20;
The Double-Semi-Colon Police.
 1.5 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.4 07-Oct-2002  jdolecek branches: 1.4.2; 1.4.4;
g/c empty apmpoll(), use nopoll() instead
 1.3 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 16-Sep-2002  manu Initial APM support (enough to get battery level)
 1.4.4.3 11-Nov-2002  nathanw Catch up to -current
 1.4.4.2 18-Oct-2002  nathanw Catch up to -current.
 1.4.4.1 07-Oct-2002  nathanw file apm.c was added on branch nathanw_sa on 2002-10-18 02:36:59 +0000
 1.4.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.4.2.1 07-Oct-2002  jdolecek file apm.c was added on branch kqueue on 2002-10-10 18:32:50 +0000
 1.6.20.1 26-Oct-2005  yamt sync with head
 1.6.18.1 21-Jun-2006  yamt sync with head.
 1.6.2.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.9.6.1 22-Apr-2006  simonb Sync with head.
 1.9.4.1 09-Sep-2006  rpaulo sync with head
 1.4 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.3 24-Apr-2021  thorpej branches: 1.3.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.2 20-Nov-2011  kiyohara branches: 1.2.64;
Remove a white-space and a Tab.
 1.1 06-Aug-2011  kiyohara branches: 1.1.2;
Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.2.64.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.3.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 02-Aug-2001  ichiro branches: 1.2.2; 1.2.8; 1.2.126; 1.2.128; 1.2.130;
implement rx/tx protocol routine of atmel microcontroller.
 1.1 31-Jul-2001  ichiro iPAQ uses Atmel microcontroller to service a few peripheral devices
(Touch panel, Battery status, button events, and others status)
 1.2.130.1 16-May-2008  yamt sync with head.
 1.2.128.1 18-May-2008  yamt sync with head.
 1.2.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 02-Aug-2001  ichiro implement rx/tx protocol routine of atmel microcontroller.
 1.2.8.1 02-Aug-2001  ichiro file ipaq_atmel.h was added on branch nathanw_sa on 2001-08-02 18:51:02 +0000
 1.2.2.2 03-Aug-2001  lukem update to -current
 1.2.2.1 02-Aug-2001  lukem file ipaq_atmel.h was added on branch kqueue on 2001-08-03 04:11:32 +0000
 1.19 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.18 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.17 24-Apr-2021  thorpej branches: 1.17.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.16 19-Jul-2011  dyoung branches: 1.16.68;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.15 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.14 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.13 28-Sep-2006  rjs branches: 1.13.52; 1.13.54; 1.13.56;
ANSIfy and fix missed proc -> lwp conversion.
 1.12 26-Sep-2006  rjs Make it compile with gcc4.
 1.11 25-Mar-2006  peter branches: 1.11.8; 1.11.10;
The sa11x0 include files live in arm/sa11x0 these days.
Use an actual buffer to store the sample, not just a pointer.

From Arnaud Lacombe on port-hpcarm.
 1.10 04-Mar-2006  peter branches: 1.10.2; 1.10.4; 1.10.6;
s/u_intN_t/uintN_t/
 1.9 11-Dec-2005  christos branches: 1.9.4; 1.9.6;
merge ktrace-lwp.
 1.8 26-Aug-2005  drochner s/locdesc_t/int/g
 1.7 30-Jun-2005  drochner branches: 1.7.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.6 15-Jul-2003  lukem __KERNEL_RCSID()
 1.5 02-Oct-2002  thorpej branches: 1.5.6;
Use CFATTACH_DECL().
 1.4 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.3 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.2 02-Aug-2001  ichiro branches: 1.2.2; 1.2.8;
implement rx/tx protocol routine of atmel microcontroller.
 1.1 01-Aug-2001  ichiro implement a atmelgpio.c
this is initial version, only frame.
 1.2.8.2 18-Oct-2002  nathanw Catch up to -current.
 1.2.8.1 02-Aug-2001  nathanw file ipaq_atmelgpio.c was added on branch nathanw_sa on 2002-10-18 02:36:59 +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 03-Aug-2001  lukem update to -current
 1.2.2.1 02-Aug-2001  lukem file ipaq_atmelgpio.c was added on branch kqueue on 2001-08-03 04:11:32 +0000
 1.5.6.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.6.1 03-Aug-2004  skrll Sync with HEAD
 1.7.2.2 30-Dec-2006  yamt sync with head.
 1.7.2.1 21-Jun-2006  yamt sync with head.
 1.9.6.1 22-Apr-2006  simonb Sync with head.
 1.9.4.1 09-Sep-2006  rpaulo sync with head
 1.10.6.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.10.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.10.2.1 01-Apr-2006  yamt sync with head.
 1.11.10.1 22-Oct-2006  yamt sync with head
 1.11.8.1 18-Nov-2006  ad Sync with head.
 1.13.56.2 20-Jun-2009  yamt sync with head
 1.13.56.1 16-May-2008  yamt sync with head.
 1.13.54.1 18-May-2008  yamt sync with head.
 1.13.52.1 02-Jun-2008  mjf Sync with HEAD.
 1.16.68.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.16.68.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.16.68.4 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.16.68.3 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.16.68.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.16.68.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.17.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.4 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 04-Mar-2006  peter branches: 1.2.68; 1.2.70; 1.2.72;
s/u_intN_t/uintN_t/
 1.1 02-Aug-2001  ichiro branches: 1.1.2; 1.1.8; 1.1.40; 1.1.54; 1.1.56;
implement rx/tx protocol routine of atmel microcontroller.
 1.1.56.1 22-Apr-2006  simonb Sync with head.
 1.1.54.1 09-Sep-2006  rpaulo sync with head
 1.1.40.1 21-Jun-2006  yamt sync with head.
 1.1.8.2 02-Aug-2001  ichiro implement rx/tx protocol routine of atmel microcontroller.
 1.1.8.1 02-Aug-2001  ichiro file ipaq_atmelvar.h was added on branch nathanw_sa on 2001-08-02 18:51:01 +0000
 1.1.2.2 03-Aug-2001  lukem update to -current
 1.1.2.1 02-Aug-2001  lukem file ipaq_atmelvar.h was added on branch kqueue on 2001-08-03 04:11:32 +0000
 1.2.72.2 20-Jun-2009  yamt sync with head
 1.2.72.1 16-May-2008  yamt sync with head.
 1.2.70.1 18-May-2008  yamt sync with head.
 1.2.68.1 02-Jun-2008  mjf Sync with HEAD.
 1.8 07-Sep-2025  andvar Fix various typos, mainly in comments.
 1.7 18-May-2022  andvar s/yhe/the/
 1.6 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.5 15-Jul-2001  ichiro branches: 1.5.2; 1.5.8; 1.5.126; 1.5.128; 1.5.130;
initial commit UDA1341 CODEC
 1.4 15-Jul-2001  ichiro add definition I/Opins of UDA1341
 1.3 15-Jul-2001  ichiro enable extended gpio operation
 1.2 13-Jul-2001  ichiro The definiton which overlapped was erased.
 1.1 10-Jul-2001  ichiro Separation of SA-11x0 GPIOs and iPAQ specific GPIOs.
 1.5.130.1 16-May-2008  yamt sync with head.
 1.5.128.1 18-May-2008  yamt sync with head.
 1.5.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.5.8.2 15-Jul-2001  ichiro initial commit UDA1341 CODEC
 1.5.8.1 15-Jul-2001  ichiro file ipaq_gpioreg.h was added on branch nathanw_sa on 2001-07-15 20:19:32 +0000
 1.5.2.2 03-Aug-2001  lukem update to -current
 1.5.2.1 15-Jul-2001  lukem file ipaq_gpioreg.h was added on branch kqueue on 2001-08-03 04:11:32 +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 19-Jul-2011  dyoung branches: 1.19.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.18 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.17 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.16 04-Mar-2007  christos branches: 1.16.40; 1.16.42; 1.16.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.15 28-Sep-2006  rjs branches: 1.15.4;
ANSIfy and fix missed proc -> lwp conversion.
 1.14 25-Mar-2006  peter branches: 1.14.8; 1.14.10;
The sa11x0 include files live in arm/sa11x0 these days.
 1.13 11-Dec-2005  christos branches: 1.13.4; 1.13.6; 1.13.8; 1.13.10; 1.13.12;
merge ktrace-lwp.
 1.12 12-Dec-2004  abs branches: 1.12.10;
Fix comments regarding configration bounaries
 1.11 15-Jul-2003  lukem __KERNEL_RCSID()
 1.10 02-Oct-2002  thorpej branches: 1.10.6;
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 17-Mar-2002  atatat Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
 1.6 27-Nov-2001  thorpej Use <machine/intr.h> rather than <machine/irqhandler.h>
 1.5 23-Nov-2001  thorpej Use <arm/cpufunc.h>, not <machine/cpufunc.h>.
 1.4 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.3 22-Jul-2001  takemura branches: 1.3.2; 1.3.8;
You must set 'HPCFB_SWAP_*' if bytes are stored in reverse order, i.e.
little endian like order, however, usage of 'HPCFB_SWAP_*' was widely
misunderstood because it reminded you of 'RI_BSWAP' in raster operation.
Please note that 'RI_BSWAP' indicate that frame buffer byte order is different
from natural order of system while 'HPCFB_REVORDER_*' is independent of
system byte order.
 1.2 15-Jul-2001  ichiro enable extended gpio operation
 1.1 10-Jul-2001  ichiro moved sa11x0_lcd* to dev/ipaq_lcd*
 1.3.8.4 18-Oct-2002  nathanw Catch up to -current.
 1.3.8.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.3.8.1 22-Jul-2001  nathanw file ipaq_lcd.c was added on branch nathanw_sa on 2002-01-08 00:24:51 +0000
 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 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.2 03-Aug-2001  lukem update to -current
 1.3.2.1 22-Jul-2001  lukem file ipaq_lcd.c was added on branch kqueue on 2001-08-03 04:11:32 +0000
 1.10.6.4 18-Dec-2004  skrll Sync with HEAD.
 1.10.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.10.6.1 03-Aug-2004  skrll Sync with HEAD
 1.12.10.3 03-Sep-2007  yamt sync with head.
 1.12.10.2 30-Dec-2006  yamt sync with head.
 1.12.10.1 21-Jun-2006  yamt sync with head.
 1.13.12.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.13.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.13.8.1 01-Apr-2006  yamt sync with head.
 1.13.6.1 22-Apr-2006  simonb Sync with head.
 1.13.4.1 09-Sep-2006  rpaulo sync with head
 1.14.10.1 22-Oct-2006  yamt sync with head
 1.14.8.1 18-Nov-2006  ad Sync with head.
 1.15.4.1 12-Mar-2007  rmind Sync with HEAD.
 1.16.44.2 20-Jun-2009  yamt sync with head
 1.16.44.1 16-May-2008  yamt sync with head.
 1.16.42.1 18-May-2008  yamt sync with head.
 1.16.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.19.12.1 03-Dec-2017  jdolecek update from 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 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 21-Jul-2022  andvar fix typos in comments and log messages, mainly s/intrrupt/interrupt/.
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 10-Jul-2001  ichiro branches: 1.1.2; 1.1.8; 1.1.126; 1.1.128; 1.1.130;
moved sa11x0_lcd* to dev/ipaq_lcd*
 1.1.130.1 16-May-2008  yamt sync with head.
 1.1.128.1 18-May-2008  yamt sync with head.
 1.1.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.8.2 10-Jul-2001  ichiro moved sa11x0_lcd* to dev/ipaq_lcd*
 1.1.8.1 10-Jul-2001  ichiro file ipaq_lcdreg.h was added on branch nathanw_sa on 2001-07-10 18:09:34 +0000
 1.1.2.2 03-Aug-2001  lukem update to -current
 1.1.2.1 10-Jul-2001  lukem file ipaq_lcdreg.h was added on branch kqueue on 2001-08-03 04:11:32 +0000
 1.4 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.3 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 10-Jul-2001  ichiro branches: 1.1.2; 1.1.8; 1.1.126; 1.1.128; 1.1.130;
moved sa11x0_lcd* to dev/ipaq_lcd*
 1.1.130.2 20-Jun-2009  yamt sync with head
 1.1.130.1 16-May-2008  yamt sync with head.
 1.1.128.1 18-May-2008  yamt sync with head.
 1.1.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.8.2 10-Jul-2001  ichiro moved sa11x0_lcd* to dev/ipaq_lcd*
 1.1.8.1 10-Jul-2001  ichiro file ipaq_lcdvar.h was added on branch nathanw_sa on 2001-07-10 18:09:34 +0000
 1.1.2.2 03-Aug-2001  lukem update to -current
 1.1.2.1 10-Jul-2001  lukem file ipaq_lcdvar.h was added on branch kqueue on 2001-08-03 04:11:32 +0000
 1.24 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.23 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.22 24-Apr-2021  thorpej branches: 1.22.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.21 26-Jul-2011  dyoung branches: 1.21.68;
Don't set the iobase and iosize members of pcmciabus_attach_args because
they're not used in any meaningful way.
 1.20 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.19 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.18 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.17 17-Oct-2007  garbled branches: 1.17.16; 1.17.18; 1.17.20;
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.16 09-Jul-2007  ad branches: 1.16.6; 1.16.10;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.15 28-Sep-2006  rjs branches: 1.15.8; 1.15.10; 1.15.16;
ANSIfy.
 1.14 11-Dec-2005  christos branches: 1.14.20; 1.14.22;
merge ktrace-lwp.
 1.13 28-Jun-2005  drochner branches: 1.13.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.12 15-Jul-2003  lukem __KERNEL_RCSID()
 1.11 02-Oct-2002  thorpej branches: 1.11.6;
Use CFATTACH_DECL().
 1.10 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.9 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.8 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.7 20-Jul-2002  ichiro change path of include file
 1.6 01-Aug-2001  ichiro branches: 1.6.2; 1.6.8; 1.6.16;
add initialization of GPDR pin direction to ipaqpcic_init(sc).
add judgment of complete of the Card (SAPCIC_STATUS_READY)
 1.5 15-Jul-2001  ichiro enable extended gpio operation
 1.4 11-Jul-2001  ichiro I delete unused include file
 1.3 10-Jul-2001  toshii oops. two cookies are too much. use pcictag_cookie.
 1.2 10-Jul-2001  ichiro use sapcic_cookie
 1.1 10-Jul-2001  ichiro add iPAQ virtual bus and PCIC of iPAQ
 1.6.16.1 21-Jul-2002  gehenna catch up with -current.
 1.6.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.6.8.2 01-Aug-2002  nathanw Catch up to -current.
 1.6.8.1 01-Aug-2001  nathanw file ipaq_pcic.c was added on branch nathanw_sa on 2002-08-01 02:41:43 +0000
 1.6.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.6.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.6.2.2 03-Aug-2001  lukem update to -current
 1.6.2.1 01-Aug-2001  lukem file ipaq_pcic.c was added on branch kqueue on 2001-08-03 04:11:32 +0000
 1.11.6.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.11.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.11.6.1 03-Aug-2004  skrll Sync with HEAD
 1.13.2.2 03-Sep-2007  yamt sync with head.
 1.13.2.1 30-Dec-2006  yamt sync with head.
 1.14.22.1 22-Oct-2006  yamt sync with head
 1.14.20.1 18-Nov-2006  ad Sync with head.
 1.15.16.1 03-Oct-2007  garbled Sync with HEAD
 1.15.10.1 11-Jul-2007  mjf Sync with head.
 1.15.8.1 15-Jul-2007  ad Sync with head.
 1.16.10.1 06-Nov-2007  matt sync with HEAD
 1.16.6.1 06-Oct-2007  rjs Switch to new interrupt code.
 1.17.20.2 20-Jun-2009  yamt sync with head
 1.17.20.1 16-May-2008  yamt sync with head.
 1.17.18.1 18-May-2008  yamt sync with head.
 1.17.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.21.68.1 23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.22.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 01-Aug-2001  ichiro branches: 1.2.2; 1.2.8; 1.2.126; 1.2.128; 1.2.130;
add more register of DUAL PCMCIA SLEEVE for iPAQ
 1.1 10-Jul-2001  ichiro add iPAQ virtual bus and PCIC of iPAQ
 1.2.130.1 16-May-2008  yamt sync with head.
 1.2.128.1 18-May-2008  yamt sync with head.
 1.2.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 01-Aug-2001  ichiro add more register of DUAL PCMCIA SLEEVE for iPAQ
 1.2.8.1 01-Aug-2001  ichiro file ipaq_pcicreg.h was added on branch nathanw_sa on 2001-08-01 06:14:32 +0000
 1.2.2.2 03-Aug-2001  lukem update to -current
 1.2.2.1 01-Aug-2001  lukem file ipaq_pcicreg.h was added on branch kqueue on 2001-08-03 04:11:32 +0000
 1.26 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.25 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.24 24-Apr-2021  thorpej branches: 1.24.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.23 19-Jul-2011  dyoung branches: 1.23.68;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.22 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.21 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.20 29-Sep-2006  cube branches: 1.20.24; 1.20.52; 1.20.54; 1.20.56;
A local change crept in when it wasn't meant to, I suppose. [hi rjs!]
 1.19 28-Sep-2006  rjs ANSIfy and fix missed proc -> lwp conversion.
 1.18 11-Apr-2006  peter branches: 1.18.8; 1.18.10;
Add missing disclaimer.
 1.17 11-Dec-2005  christos branches: 1.17.4; 1.17.6; 1.17.8; 1.17.10; 1.17.12;
merge ktrace-lwp.
 1.16 26-Aug-2005  drochner s/locdesc_t/int/g
 1.15 30-Jun-2005  drochner branches: 1.15.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.14 15-Jul-2003  lukem __KERNEL_RCSID()
 1.13 02-Oct-2002  thorpej branches: 1.13.6;
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 20-Jul-2002  ichiro change path of include file
 1.8 01-Aug-2001  ichiro branches: 1.8.2; 1.8.8; 1.8.16;
i mistake
reverse a change
 1.7 01-Aug-2001  ichiro add entry of Atmel microcontroller and uda1341 codec
 1.6 15-Jul-2001  ichiro Mapping the SSP registers
 1.5 15-Jul-2001  ichiro enable extended gpio operation
 1.4 13-Jul-2001  ichiro The definiton which overlapped was erased.
 1.3 11-Jul-2001  ichiro cosmetic change, add more comment,
delete unused include file
 1.2 10-Jul-2001  ichiro I missed to add bus_space_tag_t mapping
 1.1 10-Jul-2001  ichiro add iPAQ virtual bus and PCIC of iPAQ
 1.8.16.1 21-Jul-2002  gehenna catch up with -current.
 1.8.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.8.8.2 01-Aug-2002  nathanw Catch up to -current.
 1.8.8.1 01-Aug-2001  nathanw file ipaq_saip.c was added on branch nathanw_sa on 2002-08-01 02:41:44 +0000
 1.8.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.8.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.8.2.2 03-Aug-2001  lukem update to -current
 1.8.2.1 01-Aug-2001  lukem file ipaq_saip.c was added on branch kqueue on 2001-08-03 04:11:32 +0000
 1.13.6.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.13.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.13.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.13.6.1 03-Aug-2004  skrll Sync with HEAD
 1.15.2.2 30-Dec-2006  yamt sync with head.
 1.15.2.1 21-Jun-2006  yamt sync with head.
 1.17.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.17.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.17.8.1 24-May-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.10.1 22-Oct-2006  yamt sync with head
 1.18.8.1 18-Nov-2006  ad Sync with head.
 1.20.56.2 20-Jun-2009  yamt sync with head
 1.20.56.1 16-May-2008  yamt sync with head.
 1.20.54.1 18-May-2008  yamt sync with head.
 1.20.52.1 02-Jun-2008  mjf Sync with HEAD.
 1.20.24.1 07-Oct-2007  rjs Pass address of EGPIO as device attribute.
 1.23.68.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.23.68.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.23.68.4 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.23.68.3 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.23.68.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.23.68.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.24.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.7 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.6 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.5 11-Apr-2006  peter branches: 1.5.62; 1.5.64; 1.5.66;
Add missing disclaimer.
 1.4 04-Mar-2006  peter branches: 1.4.2; 1.4.4; 1.4.6;
s/u_intN_t/uintN_t/
 1.3 15-Jul-2001  ichiro branches: 1.3.2; 1.3.8; 1.3.40; 1.3.54; 1.3.56;
add handle of sc_ssph
 1.2 15-Jul-2001  ichiro enable extended gpio operation
 1.1 10-Jul-2001  ichiro add iPAQ virtual bus and PCIC of iPAQ
 1.3.56.1 22-Apr-2006  simonb Sync with head.
 1.3.54.1 09-Sep-2006  rpaulo sync with head
 1.3.40.1 21-Jun-2006  yamt sync with head.
 1.3.8.2 15-Jul-2001  ichiro add handle of sc_ssph
 1.3.8.1 15-Jul-2001  ichiro file ipaq_saipvar.h was added on branch nathanw_sa on 2001-07-15 17:12:12 +0000
 1.3.2.2 03-Aug-2001  lukem update to -current
 1.3.2.1 15-Jul-2001  lukem file ipaq_saipvar.h was added on branch kqueue on 2001-08-03 04:11:32 +0000
 1.4.6.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.4.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.4.2.1 24-May-2006  yamt sync with head.
 1.5.66.2 20-Jun-2009  yamt sync with head
 1.5.66.1 16-May-2008  yamt sync with head.
 1.5.64.1 18-May-2008  yamt sync with head.
 1.5.62.1 02-Jun-2008  mjf Sync with HEAD.
 1.8 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.7 24-Apr-2021  thorpej branches: 1.7.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.6 29-May-2009  rjs branches: 1.6.78;
Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 07-Oct-2006  peter branches: 1.4.24; 1.4.52; 1.4.54; 1.4.56;
Remove the config hook for handling the lcd light, this is now handled by
the powerhooks.
 1.3 27-Jun-2006  peter branches: 1.3.4; 1.3.6; 1.3.8;
Hide the bit invertion/shifting of values received from and send to the MCU
inside the j720ssp_readwrite function. This simplifies the calls to this
function a little.
 1.2 12-Jun-2006  peter branches: 1.2.2; 1.2.4;
Don't pass the size of struct device to CFATTACH_DECL because it's obviously
too small! Use the softc instead. And while here, remove sc_ih from the
softc, it's not used at all.
 1.1 04-Mar-2006  peter branches: 1.1.2; 1.1.8; 1.1.10;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.1.10.1 19-Jun-2006  chap Sync with head.
 1.1.8.2 22-Apr-2006  simonb Sync with head.
 1.1.8.1 04-Mar-2006  simonb file j720kbd.c was added on branch simonb-timecounters on 2006-04-22 11:37:28 +0000
 1.1.2.2 11-Aug-2006  yamt sync with head
 1.1.2.1 26-Jun-2006  yamt sync with head.
 1.2.4.3 30-Dec-2006  yamt sync with head.
 1.2.4.2 21-Jun-2006  yamt sync with head.
 1.2.4.1 12-Jun-2006  yamt file j720kbd.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:44 +0000
 1.2.2.1 13-Jul-2006  gdamore Merge from HEAD.
 1.3.8.1 22-Oct-2006  yamt sync with head
 1.3.6.2 09-Sep-2006  rpaulo sync with head
 1.3.6.1 27-Jun-2006  rpaulo file j720kbd.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:39:38 +0000
 1.3.4.1 18-Nov-2006  ad Sync with head.
 1.4.56.2 20-Jun-2009  yamt sync with head
 1.4.56.1 16-May-2008  yamt sync with head.
 1.4.54.1 18-May-2008  yamt sync with head.
 1.4.52.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.24.1 06-Oct-2007  rjs Switch to new interrupt code.
 1.6.78.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.7.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.12 04-Mar-2006  peter Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.11 11-Dec-2005  christos branches: 1.11.4; 1.11.6;
merge ktrace-lwp.
 1.10 13-Mar-2004  bjh21 branches: 1.10.16;
Remove needless includes of <dev/pckbc/wskbdmap_mfii.h>.
 1.9 19-Dec-2003  manu fixes for Brazilian keyboard from Rafael Diniz <rafael2k@terra.com.br>
http://mail-index.netbsd.org/port-hpcarm/2003/12/18/0000.html
 1.8 15-Dec-2003  manu Brazilian keymap, submitted by Rafael Diniz
http://mail-index.netbsd.org/port-hpcarm/2003/12/14/0000.html
 1.7 15-Sep-2003  uwe US keydesc corrections from Bryan Vyhmeister (bsd at hub3 dot net).
Tested by Julian Coleman <jdc@netbsd>.
 1.6 15-Jul-2003  lukem __KERNEL_RCSID()
 1.5 27-Aug-2002  manu branches: 1.5.6;
Correctly map altgr on a french keyboard
 1.4 21-Jul-2002  manu Added a french keymap, but the altgr key does not work yet (to be fixed later)
 1.3 18-Jan-2002  toshii branches: 1.3.8;
Add back a missing key mapping for Japanese jornada720.
 1.2 20-Jul-2001  hpeyerl branches: 1.2.6;
make slash, backslash, question, and pipe (bar?) keys work on US Jornada
keyboard.

We still don't have {}[]`~ since these require the 'fn' key modifier. Same
with num-lock, caps-lock or funky british currency symbols.
 1.1 23-Jun-2001  toshii branches: 1.1.2;
Add support for jornada720 keyboard and some LCD parameter controls.
The code is somewhat incomplete, but is quite functional.
 1.1.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.2.1 03-Aug-2001  lukem update to -current
 1.2.6.4 27-Aug-2002  nathanw Catch up to -current.
 1.2.6.3 01-Aug-2002  nathanw Catch up to -current.
 1.2.6.2 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 20-Jul-2001  nathanw file j720kbdmap.c was added on branch nathanw_sa on 2002-02-28 04:09:49 +0000
 1.3.8.1 31-Aug-2002  gehenna catch up with -current.
 1.5.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.6.1 03-Aug-2004  skrll Sync with HEAD
 1.10.16.1 21-Jun-2006  yamt sync with head.
 1.11.6.1 22-Apr-2006  simonb Sync with head.
 1.11.4.1 09-Sep-2006  rpaulo sync with head
 1.5 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 27-Jun-2006  peter branches: 1.3.6; 1.3.60; 1.3.62; 1.3.64;
Hide the bit invertion/shifting of values received from and send to the MCU
inside the j720ssp_readwrite function. This simplifies the calls to this
function a little.
 1.2 27-Jun-2006  peter Invert the brightness/contrast values so that higher values will
give more brightness/contrast instead of less.

No objection on port-hpcarm.
 1.1 04-Mar-2006  peter branches: 1.1.2; 1.1.8; 1.1.12; 1.1.14;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 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 04-Mar-2006  yamt file j720lcd.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:44 +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 04-Mar-2006  simonb file j720lcd.c was added on branch simonb-timecounters on 2006-04-22 11:37:28 +0000
 1.1.2.1 11-Aug-2006  yamt sync with head
 1.3.64.2 20-Jun-2009  yamt sync with head
 1.3.64.1 16-May-2008  yamt sync with head.
 1.3.62.1 18-May-2008  yamt sync with head.
 1.3.60.1 02-Jun-2008  mjf Sync with HEAD.
 1.3.6.2 09-Sep-2006  rpaulo sync with head
 1.3.6.1 27-Jun-2006  rpaulo file j720lcd.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:39:38 +0000
 1.9 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.8 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.7 19-Aug-2010  tsutsui Fix device_t/softc split botches. PR port-hpcarm/43780
 1.6 29-May-2009  rjs branches: 1.6.2; 1.6.4;
Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.5 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4 04-Mar-2006  peter branches: 1.4.68; 1.4.70; 1.4.72;
Use ANSI functions decls. KNF.
 1.3 04-Mar-2006  peter Match all Jornada 7xx models.
 1.2 11-Dec-2005  christos branches: 1.2.4; 1.2.6;
merge ktrace-lwp.
 1.1 08-Aug-2003  bsh branches: 1.1.4; 1.1.18;
split StrongArm companion chip (sacc) driver so that we can support
sacc on other platforms than hpcarm (evbarm for example).

codes specific to hpcarm are extracted and moved to hpcarm/dev/.
 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 08-Aug-2003  skrll file j720pcic.c was added on branch ktrace-lwp on 2004-08-03 10:35:04 +0000
 1.2.6.1 22-Apr-2006  simonb Sync with head.
 1.2.4.1 09-Sep-2006  rpaulo sync with head
 1.4.72.3 09-Oct-2010  yamt sync with head
 1.4.72.2 20-Jun-2009  yamt sync with head
 1.4.72.1 16-May-2008  yamt sync with head.
 1.4.70.1 18-May-2008  yamt sync with head.
 1.4.68.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.4.1 05-Mar-2011  rmind sync with head
 1.6.2.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.7 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.6 24-Apr-2021  thorpej branches: 1.6.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.5 29-May-2009  rjs branches: 1.5.78;
Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 07-Oct-2006  peter branches: 1.3.52; 1.3.54; 1.3.56;
Listen for "suspend button" events and do a suspend request to hpcapm when
we receive such event.

No objection on port-hpcarm.
 1.2 27-Jun-2006  peter branches: 1.2.4; 1.2.6; 1.2.8;
Hide the bit invertion/shifting of values received from and send to the MCU
inside the j720ssp_readwrite function. This simplifies the calls to this
function a little.
 1.1 04-Mar-2006  peter branches: 1.1.2; 1.1.8; 1.1.12; 1.1.14;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 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 04-Mar-2006  yamt file j720pwr.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:44 +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 04-Mar-2006  simonb file j720pwr.c was added on branch simonb-timecounters on 2006-04-22 11:37:28 +0000
 1.1.2.1 11-Aug-2006  yamt sync with head
 1.2.8.1 22-Oct-2006  yamt sync with head
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 27-Jun-2006  rpaulo file j720pwr.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:39:38 +0000
 1.2.4.1 18-Nov-2006  ad Sync with head.
 1.3.56.2 20-Jun-2009  yamt sync with head
 1.3.56.1 16-May-2008  yamt sync with head.
 1.3.54.1 18-May-2008  yamt sync with head.
 1.3.52.1 02-Jun-2008  mjf Sync with HEAD.
 1.5.78.1 23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.6.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.34 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.33 24-Apr-2021  thorpej branches: 1.33.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.32 29-May-2009  rjs branches: 1.32.78;
Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.31 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.30 27-Jun-2006  peter branches: 1.30.58; 1.30.60; 1.30.62;
Hide the bit invertion/shifting of values received from and send to the MCU
inside the j720ssp_readwrite function. This simplifies the calls to this
function a little.
 1.29 04-Mar-2006  peter branches: 1.29.2; 1.29.10;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.28 11-Dec-2005  christos branches: 1.28.4; 1.28.6;
merge ktrace-lwp.
 1.27 10-Nov-2005  peter Add an obviously missing break in a switch statement.
Adjusting brightness and contrast now works!
 1.26 23-Oct-2005  peter Add a dummy WSKBDIO_GETLEDS, to make "wsconsctl -ka" work.
 1.25 23-Oct-2005  peter Remove the DEBUG define, this should be set in the config file.
 1.24 28-Jun-2005  drochner branches: 1.24.2; 1.24.4;
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.23 02-Jun-2005  uwe Use __UNCONST to pass default calibration data to tpcalib_ioctl().
 1.22 28-May-2004  tsarna Refactor tpcalib and hpc* ports to make tpcalib MI, as discussed on tech-kern.
 1.21 27-Oct-2003  mycroft Add a default: to a case statement.
 1.20 27-Oct-2003  mycroft In j720ssp_kthread(), move the tsleep() to the end of the loop.
 1.19 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.18 15-Jul-2003  lukem __KERNEL_RCSID()
 1.17 03-Jan-2003  takemura branches: 1.17.2;
Added new ioctl command, WSMOUSEIO_GETID to tell touch panel identifier
for tpctl(8).
 1.16 07-Nov-2002  manu Removed debug messages
 1.15 05-Oct-2002  chs add missing protos.
 1.14 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.13 29-Sep-2002  bsh avoid warning when NAPM==0
 1.12 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.11 27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.10 18-Sep-2002  manu - missing bits of apm
- KNF
 1.9 13-Sep-2002  manu fix touchpanel broken behavior:
- when moving the stylus, the cursor was updated only when the screen was
released
- when moving the stylus for too long, the kernel crashed

This was caused by improper delays in SSP read and write, and by interrupt
hammering while the screen is touched). Both led to the machine handling
interrupts all the time and been unable to schedule the X server, therefore
the lack of cursor refresh.

The problem is fixed by
- masking touchpanel interrupts as soon as we are already handling them
- creating a kernel thread (j720ssp) that takes care of keyboard and
touchpanel I/O, instead of doing it in a softintr.
- reducing delays in j720ssp_readwrite operations from 5ms to 0.1ms.

NB: If the delay in j720ssp_readwrite operation is lowered to 0.1, then
switching on the screen using the power key pushes brightness to maximum.
In order to avoid this, we introduce a wait argument to j720ssp_readwrite,
which specify how many microseconds we have to wait. j720ssp_readwrite is
called with wait = 100 everywhere except in j720lcdparam where it is called
with wait = 500. That way it works.
 1.8 22-Jul-2002  manu Implements WSKBDIO_GTYPE
 1.7 19-Jul-2002  ichiro move sa11x0 to under arch/arm
make compile
 1.6 19-Jul-2002  toshii Support jornada720 touchpanel.
 1.5 17-Mar-2002  atatat branches: 1.5.4;
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
 1.4 02-Feb-2002  uch bootinfo.h, config_hook.h, platid.h are moved to hpc/include
 1.3 28-Dec-2001  toshii Allow jornada720 LCD and keyboard to be used as a boot console.
 1.2 29-Jun-2001  toshii branches: 1.2.2; 1.2.8;
Fix autoconf related botch: do printf("\n") in attach funcs rather than
in cfprint.
 1.1 23-Jun-2001  toshii Add support for jornada720 keyboard and some LCD parameter controls.
The code is somewhat incomplete, but is quite functional.
 1.2.8.9 07-Jan-2003  thorpej Sync with HEAD.
 1.2.8.8 11-Nov-2002  nathanw Catch up to -current
 1.2.8.7 18-Oct-2002  nathanw Catch up to -current.
 1.2.8.6 17-Sep-2002  nathanw Catch up to -current.
 1.2.8.5 01-Aug-2002  nathanw Catch up to -current.
 1.2.8.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.8.3 28-Feb-2002  nathanw Catch up to -current.
 1.2.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.2.8.1 29-Jun-2001  nathanw file j720ssp.c was added on branch nathanw_sa on 2002-01-08 00:24:51 +0000
 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 11-Feb-2002  jdolecek Sync w/ -current.
 1.2.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.4.2 31-Aug-2002  gehenna catch up with -current.
 1.5.4.1 21-Jul-2002  gehenna catch up with -current.
 1.17.2.6 11-Dec-2005  christos Sync with head.
 1.17.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.17.2.4 24-Jan-2005  skrll Adapt to branch.
 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.24.4.1 26-Oct-2005  yamt sync with head
 1.24.2.2 30-Dec-2006  yamt sync with head.
 1.24.2.1 21-Jun-2006  yamt sync with head.
 1.28.6.1 22-Apr-2006  simonb Sync with head.
 1.28.4.1 09-Sep-2006  rpaulo sync with head
 1.29.10.1 13-Jul-2006  gdamore Merge from HEAD.
 1.29.2.1 11-Aug-2006  yamt sync with head
 1.30.62.2 20-Jun-2009  yamt sync with head
 1.30.62.1 16-May-2008  yamt sync with head.
 1.30.60.1 18-May-2008  yamt sync with head.
 1.30.58.1 02-Jun-2008  mjf Sync with HEAD.
 1.32.78.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.32.78.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.32.78.4 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.32.78.3 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.32.78.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.32.78.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.33.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.4 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 27-Jun-2006  peter branches: 1.2.6; 1.2.60; 1.2.62; 1.2.64;
Hide the bit invertion/shifting of values received from and send to the MCU
inside the j720ssp_readwrite function. This simplifies the calls to this
function a little.
 1.1 04-Mar-2006  peter branches: 1.1.2; 1.1.8; 1.1.12; 1.1.14;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 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 04-Mar-2006  yamt file j720sspvar.h was added on branch yamt-lazymbuf on 2006-06-21 14:51:44 +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 04-Mar-2006  simonb file j720sspvar.h was added on branch simonb-timecounters on 2006-04-22 11:37:28 +0000
 1.1.2.1 11-Aug-2006  yamt sync with head
 1.2.64.2 20-Jun-2009  yamt sync with head
 1.2.64.1 16-May-2008  yamt sync with head.
 1.2.62.1 18-May-2008  yamt sync with head.
 1.2.60.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 27-Jun-2006  rpaulo file j720sspvar.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:39:38 +0000
 1.15 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.14 30-Aug-2021  rin Fix build without WSDISPLAY_COMPAT_RAWKBD.
 1.13 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.12 24-Apr-2021  thorpej branches: 1.12.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.11 25-Feb-2014  pooka branches: 1.11.44;
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
 1.10 29-May-2009  rjs branches: 1.10.12; 1.10.22; 1.10.26;
Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.9 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.8 26-Oct-2007  peter branches: 1.8.16; 1.8.18; 1.8.20;
Call callout_init before callout_stop.
 1.7 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.6 12-Jul-2007  he branches: 1.6.6; 1.6.8; 1.6.10; 1.6.14;
Adapt to the new signature of callout_init().
 1.5 04-Mar-2007  christos branches: 1.5.2; 1.5.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.4 12-Nov-2006  plunky branches: 1.4.4;
Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
 1.3 07-Oct-2006  peter Add support for touches on the HP hard icons, mostly copied from hpcsh but
also with support for raw kbd (for X).

No objection on port-hpcarm.
 1.2 27-Jun-2006  peter branches: 1.2.4; 1.2.6; 1.2.8;
Hide the bit invertion/shifting of values received from and send to the MCU
inside the j720ssp_readwrite function. This simplifies the calls to this
function a little.
 1.1 04-Mar-2006  peter branches: 1.1.2; 1.1.8; 1.1.12; 1.1.14;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.1.14.5 27-Oct-2007  yamt sync with head.
 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 04-Mar-2006  yamt file j720tp.c was added on branch yamt-lazymbuf on 2006-06-21 14:51:44 +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 04-Mar-2006  simonb file j720tp.c was added on branch simonb-timecounters on 2006-04-22 11:37:28 +0000
 1.1.2.1 11-Aug-2006  yamt sync with head
 1.2.8.2 10-Dec-2006  yamt sync with head.
 1.2.8.1 22-Oct-2006  yamt sync with head
 1.2.6.2 09-Sep-2006  rpaulo sync with head
 1.2.6.1 27-Jun-2006  rpaulo file j720tp.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:39:38 +0000
 1.2.4.1 18-Nov-2006  ad Sync with head.
 1.4.4.1 12-Mar-2007  rmind Sync with HEAD.
 1.5.10.1 03-Oct-2007  garbled Sync with HEAD
 1.5.2.2 03-Dec-2007  ad Sync with HEAD.
 1.5.2.1 15-Jul-2007  ad Sync with head.
 1.6.14.1 13-Nov-2007  bouyer Sync with HEAD
 1.6.10.1 06-Nov-2007  matt sync with HEAD
 1.6.8.1 28-Oct-2007  joerg Sync with HEAD.
 1.6.6.2 01-Nov-2007  rjs Sync with HEAD.
 1.6.6.1 06-Oct-2007  rjs Switch to new interrupt code.
 1.8.20.2 20-Jun-2009  yamt sync with head
 1.8.20.1 16-May-2008  yamt sync with head.
 1.8.18.1 18-May-2008  yamt sync with head.
 1.8.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.10.26.1 18-May-2014  rmind sync with head
 1.10.22.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.12.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.11.44.1 02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.12.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 25-Feb-2001  toshii Use MI md_root.c.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2 23-Apr-2016  skrll Merge nick-nhusb

- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
- kern/48308
- uhub status notification improvements
- umass(4) probe fix (applied to HEAD already)
- ohci(4) short transfer fix
 1.1 06-Aug-2011  kiyohara branches: 1.1.12; 1.1.28; 1.1.30; 1.1.34;
Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.1.34.1 06-Sep-2016  skrll First pass at netbsd-7 updated with USB code from HEAD
 1.1.30.1 03-Dec-2014  skrll The grand renaming of structure members.

No functional change.
 1.1.28.1 05-Apr-2017  snj Pull up following revision(s) (requested by skrll in ticket #1395):
share/man/man4/axe.4: netbsd-7-nhusb
share/man/man4/axen.4: netbsd-7-nhusb
share/man/man4/cdce.4: netbsd-7-nhusb
share/man/man4/uaudio.4: netbsd-7-nhusb
share/man/man4/ucom.4: netbsd-7-nhusb
share/man/man4/uep.4: netbsd-7-nhusb
share/man/man4/urtw.4: netbsd-7-nhusb
share/man/man4/usb.4: netbsd-7-nhusb
share/man/man4/uyap.4: netbsd-7-nhusb
share/man/man4/xhci.4: netbsd-7-nhusb
share/man/man9/usbdi.9: netbsd-7-nhusb
sys/arch/amd64/conf/ALL: netbsd-7-nhusb
sys/arch/amd64/conf/GENERIC: netbsd-7-nhusb
sys/arch/amiga/dev/slhci_zbus.c: netbsd-7-nhusb
sys/arch/arm/allwinner/awin_otg.c: netbsd-7-nhusb
sys/arch/arm/allwinner/awin_usb.c: netbsd-7-nhusb
sys/arch/arm/amlogic/amlogic_dwctwo.c: netbsd-7-nhusb
sys/arch/arm/at91/at91ohci.c: netbsd-7-nhusb
sys/arch/arm/broadcom/bcm2835_dwctwo.c: netbsd-7-nhusb
sys/arch/arm/broadcom/bcm53xx_usb.c: netbsd-7-nhusb
sys/arch/arm/ep93xx/epohci.c: netbsd-7-nhusb
sys/arch/arm/gemini/obio_ehci.c: netbsd-7-nhusb
sys/arch/arm/imx/files.imx23: netbsd-7-nhusb
sys/arch/arm/imx/imxusb.c: netbsd-7-nhusb
sys/arch/arm/imx/imxusbreg.h: netbsd-7-nhusb
sys/arch/arm/omap/obio_ohci.c: netbsd-7-nhusb
sys/arch/arm/omap/omap3_ehci.c: netbsd-7-nhusb
sys/arch/arm/omap/omapl1x_ohci.c: netbsd-7-nhusb
sys/arch/arm/omap/tiotg.c: netbsd-7-nhusb
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c: netbsd-7-nhusb
sys/arch/arm/samsung/exynos_usb.c: netbsd-7-nhusb
sys/arch/arm/xscale/pxa2x0_ohci.c: netbsd-7-nhusb
sys/arch/arm/zynq/zynq_usb.c: netbsd-7-nhusb
sys/arch/hpcarm/dev/nbp_slhci.c: netbsd-7-nhusb
sys/arch/hpcmips/dev/plumohci.c: netbsd-7-nhusb
sys/arch/i386/conf/ALL: netbsd-7-nhusb
sys/arch/i386/conf/GENERIC: netbsd-7-nhusb
sys/arch/i386/pci/gcscehci.c: netbsd-7-nhusb
sys/arch/luna68k/conf/GENERIC: netbsd-7-nhusb
sys/arch/mips/adm5120/dev/ahci.c: netbsd-7-nhusb
sys/arch/mips/adm5120/dev/ahcivar.h: netbsd-7-nhusb
sys/arch/mips/alchemy/dev/ohci_aubus.c: netbsd-7-nhusb
sys/arch/mips/atheros/dev/ehci_arbus.c: netbsd-7-nhusb
sys/arch/mips/atheros/dev/ohci_arbus.c: netbsd-7-nhusb
sys/arch/mips/conf/files.adm5120: netbsd-7-nhusb
sys/arch/mips/ralink/ralink_ehci.c: netbsd-7-nhusb
sys/arch/mips/ralink/ralink_ohci.c: netbsd-7-nhusb
sys/arch/mips/rmi/rmixl_ehci.c: netbsd-7-nhusb
sys/arch/mips/rmi/rmixl_ohci.c: netbsd-7-nhusb
sys/arch/playstation2/dev/ohci_sbus.c: netbsd-7-nhusb
sys/arch/powerpc/booke/dev/pq3ehci.c: netbsd-7-nhusb
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c: netbsd-7-nhusb
sys/arch/x68k/dev/slhci_intio.c: netbsd-7-nhusb
sys/conf/files: netbsd-7-nhusb
sys/dev/cardbus/ehci_cardbus.c: netbsd-7-nhusb
sys/dev/cardbus/ohci_cardbus.c: netbsd-7-nhusb
sys/dev/cardbus/uhci_cardbus.c: netbsd-7-nhusb
sys/dev/ic/sl811hs.c: netbsd-7-nhusb
sys/dev/ic/sl811hsvar.h: netbsd-7-nhusb
sys/dev/isa/slhci_isa.c: netbsd-7-nhusb
sys/dev/marvell/ehci_mv.c: netbsd-7-nhusb
sys/dev/pci/ehci_pci.c: netbsd-7-nhusb
sys/dev/pci/ohci_pci.c: netbsd-7-nhusb
sys/dev/pci/uhci_pci.c: netbsd-7-nhusb
sys/dev/pci/xhci_pci.c: netbsd-7-nhusb
sys/dev/pcmcia/slhci_pcmcia.c: netbsd-7-nhusb
sys/dev/usb/Makefile.usbdevs: netbsd-7-nhusb
sys/dev/usb/TODO: netbsd-7-nhusb
sys/dev/usb/TODO.usbmp: netbsd-7-nhusb
sys/dev/usb/aubtfwl.c: netbsd-7-nhusb
sys/dev/usb/auvitek.c: netbsd-7-nhusb
sys/dev/usb/auvitek_audio.c: netbsd-7-nhusb
sys/dev/usb/auvitek_dtv.c: netbsd-7-nhusb
sys/dev/usb/auvitek_i2c.c: netbsd-7-nhusb
sys/dev/usb/auvitek_video.c: netbsd-7-nhusb
sys/dev/usb/auvitekvar.h: netbsd-7-nhusb
sys/dev/usb/ehci.c: netbsd-7-nhusb
sys/dev/usb/ehcireg.h: netbsd-7-nhusb
sys/dev/usb/ehcivar.h: netbsd-7-nhusb
sys/dev/usb/emdtv.c: netbsd-7-nhusb
sys/dev/usb/emdtv_dtv.c: netbsd-7-nhusb
sys/dev/usb/emdtv_ir.c: netbsd-7-nhusb
sys/dev/usb/emdtvvar.h: netbsd-7-nhusb
sys/dev/usb/ezload.c: netbsd-7-nhusb
sys/dev/usb/ezload.h: netbsd-7-nhusb
sys/dev/usb/files.usb: netbsd-7-nhusb
sys/dev/usb/hid.c: netbsd-7-nhusb
sys/dev/usb/hid.h: netbsd-7-nhusb
sys/dev/usb/if_athn_usb.c: netbsd-7-nhusb
sys/dev/usb/if_athn_usb.h: netbsd-7-nhusb
sys/dev/usb/if_atu.c: netbsd-7-nhusb
sys/dev/usb/if_atureg.h: netbsd-7-nhusb
sys/dev/usb/if_aue.c: netbsd-7-nhusb
sys/dev/usb/if_auereg.h: netbsd-7-nhusb
sys/dev/usb/if_axe.c: netbsd-7-nhusb
sys/dev/usb/if_axen.c: netbsd-7-nhusb
sys/dev/usb/if_axenreg.h: netbsd-7-nhusb
sys/dev/usb/if_axereg.h: netbsd-7-nhusb
sys/dev/usb/if_cdce.c: netbsd-7-nhusb
sys/dev/usb/if_cdcereg.h: netbsd-7-nhusb
sys/dev/usb/if_cue.c: netbsd-7-nhusb
sys/dev/usb/if_cuereg.h: netbsd-7-nhusb
sys/dev/usb/if_kue.c: netbsd-7-nhusb
sys/dev/usb/if_kuereg.h: netbsd-7-nhusb
sys/dev/usb/if_otus.c: netbsd-7-nhusb
sys/dev/usb/if_otusvar.h: netbsd-7-nhusb
sys/dev/usb/if_rum.c: netbsd-7-nhusb
sys/dev/usb/if_rumreg.h: netbsd-7-nhusb
sys/dev/usb/if_rumvar.h: netbsd-7-nhusb
sys/dev/usb/if_run.c: netbsd-7-nhusb
sys/dev/usb/if_runvar.h: netbsd-7-nhusb
sys/dev/usb/if_smsc.c: netbsd-7-nhusb
sys/dev/usb/if_smscreg.h: netbsd-7-nhusb
sys/dev/usb/if_smscvar.h: netbsd-7-nhusb
sys/dev/usb/if_udav.c: netbsd-7-nhusb
sys/dev/usb/if_udavreg.h: netbsd-7-nhusb
sys/dev/usb/if_upgt.c: netbsd-7-nhusb
sys/dev/usb/if_upgtvar.h: netbsd-7-nhusb
sys/dev/usb/if_upl.c: netbsd-7-nhusb
sys/dev/usb/if_ural.c: netbsd-7-nhusb
sys/dev/usb/if_uralreg.h: netbsd-7-nhusb
sys/dev/usb/if_uralvar.h: netbsd-7-nhusb
sys/dev/usb/if_url.c: netbsd-7-nhusb
sys/dev/usb/if_urlreg.h: netbsd-7-nhusb
sys/dev/usb/if_urndis.c: netbsd-7-nhusb
sys/dev/usb/if_urndisreg.h: netbsd-7-nhusb
sys/dev/usb/if_urtw.c: netbsd-7-nhusb
sys/dev/usb/if_urtwn.c: netbsd-7-nhusb
sys/dev/usb/if_urtwn_data.h: netbsd-7-nhusb
sys/dev/usb/if_urtwnreg.h: netbsd-7-nhusb
sys/dev/usb/if_urtwnvar.h: netbsd-7-nhusb
sys/dev/usb/if_urtwreg.h: netbsd-7-nhusb
sys/dev/usb/if_zyd.c: netbsd-7-nhusb
sys/dev/usb/if_zydreg.h: netbsd-7-nhusb
sys/dev/usb/irmce.c: netbsd-7-nhusb
sys/dev/usb/moscom.c: netbsd-7-nhusb
sys/dev/usb/motg.c: netbsd-7-nhusb
sys/dev/usb/motgvar.h: netbsd-7-nhusb
sys/dev/usb/ohci.c: netbsd-7-nhusb
sys/dev/usb/ohcireg.h: netbsd-7-nhusb
sys/dev/usb/ohcivar.h: netbsd-7-nhusb
sys/dev/usb/pseye.c: netbsd-7-nhusb
sys/dev/usb/slurm.c: netbsd-7-nhusb
sys/dev/usb/stuirda.c: netbsd-7-nhusb
sys/dev/usb/u3g.c: netbsd-7-nhusb
sys/dev/usb/uark.c: netbsd-7-nhusb
sys/dev/usb/uatp.c: netbsd-7-nhusb
sys/dev/usb/uaudio.c: netbsd-7-nhusb
sys/dev/usb/uberry.c: netbsd-7-nhusb
sys/dev/usb/ubsa.c: netbsd-7-nhusb
sys/dev/usb/ubsa_common.c: netbsd-7-nhusb
sys/dev/usb/ubsavar.h: netbsd-7-nhusb
sys/dev/usb/ubt.c: netbsd-7-nhusb
sys/dev/usb/uchcom.c: netbsd-7-nhusb
sys/dev/usb/ucom.c: netbsd-7-nhusb
sys/dev/usb/ucomvar.h: netbsd-7-nhusb
sys/dev/usb/ucycom.c: netbsd-7-nhusb
sys/dev/usb/udl.c: netbsd-7-nhusb
sys/dev/usb/udl.h: netbsd-7-nhusb
sys/dev/usb/udsbr.c: netbsd-7-nhusb
sys/dev/usb/udsir.c: netbsd-7-nhusb
sys/dev/usb/uep.c: netbsd-7-nhusb
sys/dev/usb/uftdi.c: netbsd-7-nhusb
sys/dev/usb/uftdireg.h: netbsd-7-nhusb
sys/dev/usb/ugen.c: netbsd-7-nhusb
sys/dev/usb/ugensa.c: netbsd-7-nhusb
sys/dev/usb/uhci.c: netbsd-7-nhusb
sys/dev/usb/uhcireg.h: netbsd-7-nhusb
sys/dev/usb/uhcivar.h: netbsd-7-nhusb
sys/dev/usb/uhid.c: netbsd-7-nhusb
sys/dev/usb/uhidev.c: netbsd-7-nhusb
sys/dev/usb/uhidev.h: netbsd-7-nhusb
sys/dev/usb/uhmodem.c: netbsd-7-nhusb
sys/dev/usb/uhso.c: netbsd-7-nhusb
sys/dev/usb/uhub.c: netbsd-7-nhusb
sys/dev/usb/uipad.c: netbsd-7-nhusb
sys/dev/usb/uipaq.c: netbsd-7-nhusb
sys/dev/usb/uirda.c: netbsd-7-nhusb
sys/dev/usb/uirdavar.h: netbsd-7-nhusb
sys/dev/usb/ukbd.c: netbsd-7-nhusb
sys/dev/usb/ukbdmap.c: netbsd-7-nhusb
sys/dev/usb/ukyopon.c: netbsd-7-nhusb
sys/dev/usb/ukyopon.h: netbsd-7-nhusb
sys/dev/usb/ulpt.c: netbsd-7-nhusb
sys/dev/usb/umass.c: netbsd-7-nhusb
sys/dev/usb/umass_isdata.c: netbsd-7-nhusb
sys/dev/usb/umass_isdata.h: netbsd-7-nhusb
sys/dev/usb/umass_quirks.c: netbsd-7-nhusb
sys/dev/usb/umass_quirks.h: netbsd-7-nhusb
sys/dev/usb/umass_scsipi.c: netbsd-7-nhusb
sys/dev/usb/umass_scsipi.h: netbsd-7-nhusb
sys/dev/usb/umassvar.h: netbsd-7-nhusb
sys/dev/usb/umcs.c: netbsd-7-nhusb
sys/dev/usb/umct.c: netbsd-7-nhusb
sys/dev/usb/umidi.c: netbsd-7-nhusb
sys/dev/usb/umidi_quirks.c: netbsd-7-nhusb
sys/dev/usb/umidi_quirks.h: netbsd-7-nhusb
sys/dev/usb/umodem.c: netbsd-7-nhusb
sys/dev/usb/umodem_common.c: netbsd-7-nhusb
sys/dev/usb/umodemvar.h: netbsd-7-nhusb
sys/dev/usb/ums.c: netbsd-7-nhusb
sys/dev/usb/uplcom.c: netbsd-7-nhusb
sys/dev/usb/urio.c: netbsd-7-nhusb
sys/dev/usb/urio.h: netbsd-7-nhusb
sys/dev/usb/usb.c: netbsd-7-nhusb
sys/dev/usb/usb.h: netbsd-7-nhusb
sys/dev/usb/usb_mem.c: netbsd-7-nhusb
sys/dev/usb/usb_mem.h: netbsd-7-nhusb
sys/dev/usb/usb_quirks.c: netbsd-7-nhusb
sys/dev/usb/usb_quirks.h: netbsd-7-nhusb
sys/dev/usb/usb_subr.c: netbsd-7-nhusb
sys/dev/usb/usbdevices.config: netbsd-7-nhusb
sys/dev/usb/usbdevs: netbsd-7-nhusb
sys/dev/usb/usbdevs.h: netbsd-7-nhusb
sys/dev/usb/usbdevs_data.h: netbsd-7-nhusb
sys/dev/usb/usbdi.c: netbsd-7-nhusb
sys/dev/usb/usbdi.h: netbsd-7-nhusb
sys/dev/usb/usbdi_util.c: netbsd-7-nhusb
sys/dev/usb/usbdi_util.h: netbsd-7-nhusb
sys/dev/usb/usbdivar.h: netbsd-7-nhusb
sys/dev/usb/usbhid.h: netbsd-7-nhusb
sys/dev/usb/usbhist.h: netbsd-7-nhusb
sys/dev/usb/usbroothub.c: netbsd-7-nhusb
sys/dev/usb/usbroothub.h: netbsd-7-nhusb
sys/dev/usb/usbroothub_subr.c: delete
sys/dev/usb/usbroothub_subr.h: delete
sys/dev/usb/uscanner.c: netbsd-7-nhusb
sys/dev/usb/uslsa.c: netbsd-7-nhusb
sys/dev/usb/usscanner.c: netbsd-7-nhusb
sys/dev/usb/ustir.c: netbsd-7-nhusb
sys/dev/usb/uthum.c: netbsd-7-nhusb
sys/dev/usb/utoppy.c: netbsd-7-nhusb
sys/dev/usb/uts.c: netbsd-7-nhusb
sys/dev/usb/uvideo.c: netbsd-7-nhusb
sys/dev/usb/uvisor.c: netbsd-7-nhusb
sys/dev/usb/uvscom.c: netbsd-7-nhusb
sys/dev/usb/uyap.c: netbsd-7-nhusb
sys/dev/usb/uyap_firmware.h: netbsd-7-nhusb
sys/dev/usb/uyurex.c: netbsd-7-nhusb
sys/dev/usb/x1input_rdesc.h: netbsd-7-nhusb
sys/dev/usb/xhci.c: netbsd-7-nhusb
sys/dev/usb/xhcireg.h: netbsd-7-nhusb
sys/dev/usb/xhcivar.h: netbsd-7-nhusb
sys/dev/usb/xinput_rdesc.h: netbsd-7-nhusb
sys/external/bsd/common/conf/files.linux: netbsd-7-nhusb
sys/external/bsd/common/include/linux/err.h: netbsd-7-nhusb
sys/external/bsd/common/include/linux/kernel.h: netbsd-7-nhusb
sys/external/bsd/common/include/linux/workqueue.h: netbsd-7-nhusb
sys/external/bsd/common/linux/linux_work.c: netbsd-7-nhusb
sys/external/bsd/drm2/dist/drm/radeon/atombios_encoders.c: netbsd-7-nhusb
sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_encoders.c: netbsd-7-nhusb
sys/external/bsd/drm2/drm/files.drmkms: netbsd-7-nhusb
sys/external/bsd/drm2/i915drm/files.i915drmkms: netbsd-7-nhusb
sys/external/bsd/drm2/include/linux/err.h: delete
sys/external/bsd/drm2/include/linux/workqueue.h: delete
sys/external/bsd/drm2/linux/files.drmkms_linux: netbsd-7-nhusb
sys/external/bsd/drm2/linux/linux_work.c: delete
sys/external/bsd/dwc2/dwc2.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dwc2.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dwc2var.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dwctwo2netbsd: netbsd-7-nhusb
sys/external/bsd/dwc2/conf/files.dwc2: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_core.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_core.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_coreintr.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcd.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcd.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdddma.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdintr.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hw.h: netbsd-7-nhusb
sys/modules/drmkms_linux/Makefile: netbsd-7-nhusb
sys/modules/i915drmkms/Makefile: netbsd-7-nhusb
sys/rump/dev/lib/libugenhc/ugenhc.c: netbsd-7-nhusb
sys/rump/dev/lib/libusb/Makefile: netbsd-7-nhusb
sys/rump/dev/lib/libusb/USB.ioconf: netbsd-7-nhusb
sys/rump/dev/lib/libusb/usb_at_ugenhc.c: delete
sys/rump/dev/lib/libusb/opt/opt_usb.h: delete
sys/rump/dev/lib/libusb/opt/opt_usbverbose.h: delete
sys/sys/mbuf.h: netbsd-7-nhusb
usr.sbin/usbdevs/usbdevs.8: netbsd-7-nhusb
usr.sbin/usbdevs/usbdevs.c: netbsd-7-nhusb
Merge netbsd-7-nhusb:
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
- kern/48308
- uhub status notification improvements
- umass(4) probe fix (applied to HEAD already)
- ohci(4) short transfer fix
- Change the SOFTINT level from NET to SERIAL for the USB softint handler.
This gives the callback a chance of running when another softint handler
at SOFTINT_NET has blocked holding a lock, e.g. softnet_lock and most of
the network stack.
- kern/49065 - ifconfig tun0 ... sequence locks up system / lockup:
softnet_lock held across usb xfr
- kern/50491 - unkillable wait in usbd_transfer while using usmsc0
on raspberry pi 2
- kern/51395 - USB Ethernet makes xhci hang
- Various improvements to slhci(4)
- Various improvements to dwc2(4)
 1.1.12.1 03-Dec-2017  jdolecek update from HEAD
 1.7 15-Sep-2025  thorpej Encapsulate what's needed to attach an I2C bus into a iicbus_attach()
inline.
 1.6 18-Jun-2022  andvar fix typos in word "functions" in comments, mainly s/fuctions/functions/.
 1.5 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.4 24-Apr-2021  thorpej branches: 1.4.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.3 22-Dec-2019  thorpej branches: 1.3.10;
Cleanup i2c bus acquire / release, centralizing all of the logic into
iic_acquire_bus() / iic_release_bus(). "acquire" and "release" hooks
no longer need to be provided by back-end controller drivers (only if
they need special handling, e.g. powering on the i2c controller).
This results in the removal of a bunch of rendundant code from each
back-end controller driver.

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().
 1.2 14-Feb-2016  chs branches: 1.2.18;
zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
 1.1 06-Aug-2011  kiyohara branches: 1.1.12; 1.1.30;
Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.1.30.1 19-Mar-2016  skrll Sync with HEAD
 1.1.12.1 03-Dec-2017  jdolecek update from HEAD
 1.2.18.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.3.10.1 23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.4.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.2 24-Apr-2021  thorpej branches: 1.2.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.1 06-Aug-2011  kiyohara branches: 1.1.68;
Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.1.68.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.2.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 21-Jan-2012  nonaka fix my license notice.
 1.1 06-Aug-2011  kiyohara branches: 1.1.2; 1.1.6;
Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.1.6.1 18-Feb-2012  mrg merge to -current.
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.1 06-Aug-2011  kiyohara Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.5 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.4 24-Apr-2021  thorpej branches: 1.4.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.3 16-Jun-2018  thorpej branches: 1.3.16;
More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
all of the logic for direct-config matching. If it returns true,
the driver returns the match result (which may be 0). If it returns
false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
lower-indexed "compatible" device property are more-specific matches,
and return a better match quality accordingly.
 1.2 16-Jun-2012  kiyohara branches: 1.2.38;
Add '\n' to revision string.
 1.1 06-Aug-2011  kiyohara branches: 1.1.2;
Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.1.2.1 30-Oct-2012  yamt sync with head
 1.2.38.1 25-Jun-2018  pgoyette Sync with HEAD
 1.3.16.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.3.16.4 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.3.16.3 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.3.16.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.3.16.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.4.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.1 06-Aug-2011  kiyohara Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.1 06-Aug-2011  kiyohara Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.1 06-Aug-2011  kiyohara Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.15 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.14 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.13 24-Apr-2021  thorpej branches: 1.13.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.12 19-Jul-2011  dyoung branches: 1.12.68;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.11 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.10 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.9 08-Jan-2008  matt branches: 1.9.6; 1.9.8; 1.9.10;
As of this commit, all arm32 kernel now build.
 1.8 09-Jul-2006  peter branches: 1.8.30; 1.8.34; 1.8.40; 1.8.48;
Nit: The silicon revision level is in bits 7:4, so we must right shift
by 4 bits. Also removed an unneeded include.
 1.7 27-Jun-2006  peter Minor KNF, correct some comments.
 1.6 04-Mar-2006  peter branches: 1.6.2; 1.6.10;
s/u_intN_t/uintN_t/
 1.5 04-Mar-2006  peter Match all Jornada 7xx models.
 1.4 11-Dec-2005  christos branches: 1.4.4; 1.4.6;
merge ktrace-lwp.
 1.3 23-Oct-2005  peter - Use ANSI function decls.
- KNF.
 1.2 30-Jun-2005  drochner branches: 1.2.2; 1.2.4;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.1 08-Aug-2003  bsh branches: 1.1.4;
split StrongArm companion chip (sacc) driver so that we can support
sacc on other platforms than hpcarm (evbarm for example).

codes specific to hpcarm are extracted and moved to hpcarm/dev/.
 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 08-Aug-2003  skrll file sacc_hpcarm.c was added on branch ktrace-lwp on 2004-08-03 10:35:04 +0000
 1.2.4.1 26-Oct-2005  yamt sync with head
 1.2.2.3 21-Jan-2008  yamt sync with head
 1.2.2.2 30-Dec-2006  yamt sync with head.
 1.2.2.1 21-Jun-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.10.1 13-Jul-2006  gdamore Merge from HEAD.
 1.6.2.1 11-Aug-2006  yamt sync with head
 1.8.48.1 08-Jan-2008  bouyer Sync with HEAD
 1.8.40.1 18-Feb-2008  mjf Sync with HEAD.
 1.8.34.1 09-Jan-2008  matt sync with HEAD
 1.8.30.2 28-Feb-2008  rjs Sync with HEAD.
 1.8.30.1 06-Oct-2007  rjs Switch to new interrupt code.
 1.9.10.2 20-Jun-2009  yamt sync with head
 1.9.10.1 16-May-2008  yamt sync with head.
 1.9.8.1 18-May-2008  yamt sync with head.
 1.9.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.12.68.3 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.12.68.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.12.68.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.13.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.4 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.3 27-Jun-2006  peter branches: 1.3.62;
"AUTHOR" is really meant here, not "REGENTS".
Eleminate some use of #ifdef SED_DEBUG.
 1.2 04-Mar-2006  peter branches: 1.2.2; 1.2.10;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.1 23-Jun-2001  toshii branches: 1.1.8; 1.1.40; 1.1.54; 1.1.56;
Move sed1356_softc definition to a header file. Setup a backlight
power control hook.
 1.1.56.1 22-Apr-2006  simonb Sync with head.
 1.1.54.1 09-Sep-2006  rpaulo sync with head
 1.1.40.2 30-Dec-2006  yamt sync with head.
 1.1.40.1 21-Jun-2006  yamt sync with head.
 1.1.8.2 23-Jun-2001  toshii Move sed1356_softc definition to a header file. Setup a backlight
power control hook.
 1.1.8.1 23-Jun-2001  toshii file sed1356var.h was added on branch nathanw_sa on 2001-06-23 09:13:07 +0000
 1.2.10.1 13-Jul-2006  gdamore Merge from HEAD.
 1.2.2.1 11-Aug-2006  yamt sync with head
 1.3.62.1 20-Jun-2009  yamt sync with head
 1.29 28-May-2022  andvar fix various typos, mainly in comments.
 1.28 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.27 24-Apr-2021  thorpej branches: 1.27.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.26 27-Oct-2012  chs branches: 1.26.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.25 19-Jul-2011  dyoung branches: 1.25.2; 1.25.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.24 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.23 12-Jun-2008  rafal device_private_lookup()-ification so that hpcarm (at jeast Jornada 72x)
kernels build.
 1.22 04-Mar-2007  christos branches: 1.22.40; 1.22.42; 1.22.44; 1.22.46; 1.22.48;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.21 24-Sep-2006  jmcneill branches: 1.21.4;
Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
 1.20 27-Jun-2006  peter branches: 1.20.4; 1.20.6;
"AUTHOR" is really meant here, not "REGENTS".
Eleminate some use of #ifdef SED_DEBUG.
 1.19 26-May-2006  blymn branches: 1.19.2;
Clean up bogus whitespace
 1.18 04-Mar-2006  peter branches: 1.18.2; 1.18.8;
Cleanup:
- Apply static.
- KNF.
- Wrap long lines, unwrap short lines.

No functional changes.
 1.17 04-Mar-2006  peter Only compile in debug strings when SED_DEBUG is defined.
 1.16 04-Mar-2006  peter Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.15 11-Dec-2005  christos branches: 1.15.4; 1.15.6;
merge ktrace-lwp.
 1.14 12-Dec-2004  abs branches: 1.14.10;
Fix comments regarding configration bounaries
 1.13 15-Jul-2003  lukem __KERNEL_RCSID()
 1.12 02-Oct-2002  thorpej branches: 1.12.6;
Use CFATTACH_DECL().
 1.11 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.10 17-Mar-2002  atatat Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
 1.9 28-Dec-2001  toshii Allow jornada720 LCD and keyboard to be used as a boot console.
 1.8 22-Jul-2001  takemura branches: 1.8.6;
You must set 'HPCFB_SWAP_*' if bytes are stored in reverse order, i.e.
little endian like order, however, usage of 'HPCFB_SWAP_*' was widely
misunderstood because it reminded you of 'RI_BSWAP' in raster operation.
Please note that 'RI_BSWAP' indicate that frame buffer byte order is different
from natural order of system while 'HPCFB_REVORDER_*' is independent of
system byte order.
 1.7 16-Jul-2001  hpeyerl "infomation" -> "information"
 1.6 07-Jul-2001  ichiro branches: 1.6.2;
bzero->memset, bcopy->memcpy
 1.5 29-Jun-2001  toshii Fix autoconf related botch: do printf("\n") in attach funcs rather than
in cfprint.
 1.4 23-Jun-2001  toshii Move sed1356_softc definition to a header file. Setup a backlight
power control hook.
 1.3 22-Jun-2001  toshii Don't include <machine/autoconf.h>, which should not be necessary.
Moreover, hpcarm doesn't have such a header file.
 1.2 16-Jun-2001  toshii Don't set HPCFB_SWAP_BYTE (if little endian).
 1.1 01-Jun-2001  toshii Add support for jornada720's framebuffer.

The functionality is almost same as bivideo, and hardware rasops and
power saving are not yet supported.
 1.6.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.6.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.1 03-Aug-2001  lukem update to -current
 1.8.6.4 18-Oct-2002  nathanw Catch up to -current.
 1.8.6.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.8.6.2 08-Jan-2002  nathanw Catch up to -current.
 1.8.6.1 22-Jul-2001  nathanw file sed_saip.c was added on branch nathanw_sa on 2002-01-08 00:24:51 +0000
 1.12.6.5 24-Jan-2005  skrll Adapt to branch.
 1.12.6.4 18-Dec-2004  skrll Sync with HEAD.
 1.12.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.12.6.1 03-Aug-2004  skrll Sync with HEAD
 1.14.10.3 03-Sep-2007  yamt sync with head.
 1.14.10.2 30-Dec-2006  yamt sync with head.
 1.14.10.1 21-Jun-2006  yamt sync with head.
 1.15.6.2 01-Jun-2006  kardel 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.18.8.1 19-Jun-2006  chap Sync with head.
 1.18.2.2 11-Aug-2006  yamt sync with head
 1.18.2.1 26-Jun-2006  yamt sync with head.
 1.19.2.1 13-Jul-2006  gdamore Merge from HEAD.
 1.20.6.1 22-Oct-2006  yamt sync with head
 1.20.4.1 18-Nov-2006  ad Sync with head.
 1.21.4.1 12-Mar-2007  rmind Sync with HEAD.
 1.22.48.1 18-Jun-2008  simonb Sync with head.
 1.22.46.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.22.44.2 20-Jun-2009  yamt sync with head
 1.22.44.1 04-May-2009  yamt sync with head.
 1.22.42.1 17-Jun-2008  yamt sync with head.
 1.22.40.1 29-Jun-2008  mjf Sync with HEAD.
 1.25.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.25.2.1 30-Oct-2012  yamt sync with head
 1.26.52.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.27.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.18 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.17 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.16 24-Apr-2021  thorpej branches: 1.16.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.15 19-Jul-2011  dyoung branches: 1.15.68;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.14 29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.13 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.12 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.11 28-Apr-2008  martin branches: 1.11.8; 1.11.14;
Remove clause 3 and 4 from TNF licenses
 1.10 25-Mar-2006  peter branches: 1.10.62; 1.10.64; 1.10.66;
The sa11x0 include files live in arm/sa11x0 these days.
 1.9 04-Mar-2006  peter branches: 1.9.2; 1.9.4; 1.9.6;
s/u_intN_t/uintN_t/
 1.8 11-Dec-2005  christos branches: 1.8.4; 1.8.6;
merge ktrace-lwp.
 1.7 26-Aug-2005  drochner s/locdesc_t/int/g
 1.6 30-Jun-2005  drochner branches: 1.6.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.5 15-Jul-2003  lukem __KERNEL_RCSID()
 1.4 02-Oct-2002  thorpej branches: 1.4.6;
Use CFATTACH_DECL().
 1.3 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.2 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 15-Jul-2001  ichiro branches: 1.1.2; 1.1.8;
initial commit UDA1341 CODEC
 1.1.8.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.8.1 15-Jul-2001  nathanw file uda1341.c was added on branch nathanw_sa on 2002-10-18 02:37:00 +0000
 1.1.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.1.2.2 03-Aug-2001  lukem update to -current
 1.1.2.1 15-Jul-2001  lukem file uda1341.c was added on branch kqueue on 2001-08-03 04:11:33 +0000
 1.4.6.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.6.1 03-Aug-2004  skrll Sync with HEAD
 1.6.2.1 21-Jun-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.9.6.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.9.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.9.2.1 01-Apr-2006  yamt sync with head.
 1.10.66.3 20-Jun-2009  yamt sync with head
 1.10.66.2 04-May-2009  yamt sync with head.
 1.10.66.1 16-May-2008  yamt sync with head.
 1.10.64.1 18-May-2008  yamt sync with head.
 1.10.62.1 02-Jun-2008  mjf Sync with HEAD.
 1.11.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.11.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.15.68.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.15.68.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.15.68.4 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.15.68.3 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.15.68.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.15.68.1 20-Mar-2021  thorpej The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
tag-value variadic arguments that can be passed to the various
config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
Noticed several incorrect usages along the way, which will be
audited in a future commit.
 1.16.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 15-Jul-2001  ichiro branches: 1.2.2; 1.2.8; 1.2.126; 1.2.128; 1.2.130;
initial commit UDA1341 CODEC
 1.1 15-Jul-2001  ichiro UDA1341TS economy audio CODEC for portable applications.
This is used for iPAQ CODEC.
 1.2.130.1 16-May-2008  yamt sync with head.
 1.2.128.1 18-May-2008  yamt sync with head.
 1.2.126.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.8.2 15-Jul-2001  ichiro initial commit UDA1341 CODEC
 1.2.8.1 15-Jul-2001  ichiro file uda1341.h was added on branch nathanw_sa on 2001-07-15 20:19:33 +0000
 1.2.2.2 03-Aug-2001  lukem update to -current
 1.2.2.1 15-Jul-2001  lukem file uda1341.h was added on branch kqueue on 2001-08-03 04:11:33 +0000
 1.12 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.11 24-Apr-2021  thorpej branches: 1.11.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.10 21-Nov-2020  thorpej branches: 1.10.2;
malloc(9) -> kmem(9)
 1.9 10-Nov-2019  chs branches: 1.9.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.8 27-Oct-2012  chs branches: 1.8.38;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.7 21-Jan-2012  nonaka branches: 1.7.6;
fix my license notice.
 1.6 19-Jul-2011  dyoung branches: 1.6.2; 1.6.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.5 30-May-2010  nonaka branches: 1.5.2; 1.5.4;
Use callout_schedule(9).
 1.4 23-May-2010  nonaka Added WS020SH keymap.
 1.3 24-Apr-2010  nonaka branches: 1.3.2;
Oops, the direction of the shift is opposite.
 1.2 24-Apr-2010  nonaka nuke sc_stable_count.
 1.1 17-Apr-2010  nonaka Added Sharp W-ZERO3 series support.
 1.3.2.3 17-Aug-2010  uebayasi Sync with HEAD.
 1.3.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.3.2.1 24-Apr-2010  uebayasi file wzero3_kbd.c was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.5.4.2 11-Aug-2010  yamt sync with head.
 1.5.4.1 30-May-2010  yamt file wzero3_kbd.c was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.5.2.3 03-Jul-2010  rmind sync with head
 1.5.2.2 30-May-2010  rmind sync with head
 1.5.2.1 30-May-2010  rmind file wzero3_kbd.c was added on branch rmind-uvmplock on 2010-05-30 05:16:51 +0000
 1.6.6.1 18-Feb-2012  mrg merge to -current.
 1.6.2.2 30-Oct-2012  yamt sync with head
 1.6.2.1 17-Apr-2012  yamt sync with head
 1.7.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.8.38.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.9.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.10.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.11.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.6 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.5 24-Apr-2021  thorpej branches: 1.5.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.4 27-Oct-2012  chs branches: 1.4.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.3 21-Jan-2012  nonaka branches: 1.3.6;
fix my license notice.
 1.2 19-Jul-2011  dyoung branches: 1.2.2; 1.2.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.1 30-May-2010  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added keypad driver for WS011SH.
 1.1.6.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.6.1 30-May-2010  uebayasi file wzero3_keypad.c was added on branch uebayasi-xip on 2010-08-17 06:44:26 +0000
 1.1.4.2 11-Aug-2010  yamt sync with head.
 1.1.4.1 30-May-2010  yamt file wzero3_keypad.c was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.1.2.2 03-Jul-2010  rmind sync with head
 1.1.2.1 30-May-2010  rmind file wzero3_keypad.c was added on branch rmind-uvmplock on 2010-07-03 01:19:18 +0000
 1.2.6.1 18-Feb-2012  mrg merge to -current.
 1.2.2.2 30-Oct-2012  yamt sync with head
 1.2.2.1 17-Apr-2012  yamt sync with head
 1.3.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.4.52.1 23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.5.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.8 28-May-2022  andvar fix various typos, mainly in comments.
 1.7 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.6 24-Apr-2021  thorpej branches: 1.6.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.5 27-Oct-2012  chs branches: 1.5.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.4 21-Jan-2012  nonaka branches: 1.4.6;
fix my license notice.
 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 hpcarm/bus.h obsolete.
 1.2 09-Dec-2010  uebayasi Fix DEBUG build.
 1.1 17-Apr-2010  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added Sharp W-ZERO3 series support.
 1.1.6.2 11-Aug-2010  yamt sync with head.
 1.1.6.1 17-Apr-2010  yamt file wzero3_lcd.c was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.1.4.3 05-Mar-2011  rmind sync with head
 1.1.4.2 30-May-2010  rmind sync with head
 1.1.4.1 17-Apr-2010  rmind file wzero3_lcd.c was added on branch rmind-uvmplock on 2010-05-30 05:16:51 +0000
 1.1.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.2.1 17-Apr-2010  uebayasi file wzero3_lcd.c was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.3.6.1 18-Feb-2012  mrg merge to -current.
 1.3.2.2 30-Oct-2012  yamt sync with head
 1.3.2.1 17-Apr-2012  yamt sync with head
 1.4.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.5.52.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.6.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.4 21-Jan-2012  nonaka fix my license notice.
 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 hpcarm/bus.h obsolete.
 1.2 23-May-2010  nonaka branches: 1.2.2; 1.2.4;
Added Support SD card insert/remove detection for WS020SH.
 1.1 17-Apr-2010  nonaka branches: 1.1.2;
Added Sharp W-ZERO3 series support.
 1.1.2.3 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.2.1 17-Apr-2010  uebayasi file wzero3_mci.c was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.2.4.2 11-Aug-2010  yamt sync with head.
 1.2.4.1 23-May-2010  yamt file wzero3_mci.c was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.2.2.2 30-May-2010  rmind sync with head
 1.2.2.1 23-May-2010  rmind file wzero3_mci.c was added on branch rmind-uvmplock on 2010-05-30 05:16:51 +0000
 1.3.6.1 18-Feb-2012  mrg merge to -current.
 1.3.2.1 17-Apr-2012  yamt sync with head
 1.7 21-Jan-2012  nonaka fix my license notice.
 1.6 30-May-2010  nonaka branches: 1.6.2; 1.6.10; 1.6.14;
Added keypad driver for WS011SH.
 1.5 23-May-2010  nonaka branches: 1.5.2;
Added some WS020SH specific parameters.
 1.4 22-May-2010  nonaka Added touchpad driver for WS011SH.
 1.3 13-May-2010  nonaka Added touchpad driver for WS003SH.
 1.2 09-May-2010  nonaka Added touchpad driver for WS007SH.
 1.1 17-Apr-2010  nonaka branches: 1.1.2;
Added Sharp W-ZERO3 series support.
 1.1.2.3 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.2.1 17-Apr-2010  uebayasi file wzero3_reg.h was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.5.2.3 03-Jul-2010  rmind sync with head
 1.5.2.2 30-May-2010  rmind sync with head
 1.5.2.1 23-May-2010  rmind file wzero3_reg.h was added on branch rmind-uvmplock on 2010-05-30 05:16:51 +0000
 1.6.14.1 18-Feb-2012  mrg merge to -current.
 1.6.10.1 17-Apr-2012  yamt sync with head
 1.6.2.2 11-Aug-2010  yamt sync with head.
 1.6.2.1 30-May-2010  yamt file wzero3_reg.h was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.5 21-Jan-2012  nonaka fix my license notice.
 1.4 30-May-2010  nonaka branches: 1.4.2; 1.4.4; 1.4.12; 1.4.16;
Added keypad driver for WS011SH.
 1.3 22-May-2010  nonaka branches: 1.3.2;
Added touchpad driver for WS011SH.
 1.2 13-May-2010  nonaka Added touchpad driver for WS003SH.
 1.1 09-May-2010  nonaka Added touchpad driver for WS007SH.
 1.3.2.3 03-Jul-2010  rmind sync with head
 1.3.2.2 30-May-2010  rmind sync with head
 1.3.2.1 22-May-2010  rmind file wzero3_ssp.c was added on branch rmind-uvmplock on 2010-05-30 05:16:51 +0000
 1.4.16.1 18-Feb-2012  mrg merge to -current.
 1.4.12.1 17-Apr-2012  yamt sync with head
 1.4.4.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.4.4.1 30-May-2010  uebayasi file wzero3_ssp.c was added on branch uebayasi-xip on 2010-08-17 06:44:26 +0000
 1.4.2.2 11-Aug-2010  yamt sync with head.
 1.4.2.1 30-May-2010  yamt file wzero3_ssp.c was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.5 21-Jan-2012  nonaka fix my license notice.
 1.4 30-May-2010  nonaka branches: 1.4.2; 1.4.4; 1.4.12; 1.4.16;
Added keypad driver for WS011SH.
 1.3 22-May-2010  nonaka branches: 1.3.2;
Added touchpad driver for WS011SH.
 1.2 13-May-2010  nonaka Added touchpad driver for WS003SH.
 1.1 09-May-2010  nonaka Added touchpad driver for WS007SH.
 1.3.2.3 03-Jul-2010  rmind sync with head
 1.3.2.2 30-May-2010  rmind sync with head
 1.3.2.1 22-May-2010  rmind file wzero3_sspvar.h was added on branch rmind-uvmplock on 2010-05-30 05:16:51 +0000
 1.4.16.1 18-Feb-2012  mrg merge to -current.
 1.4.12.1 17-Apr-2012  yamt sync with head
 1.4.4.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.4.4.1 30-May-2010  uebayasi file wzero3_sspvar.h was added on branch uebayasi-xip on 2010-08-17 06:44:27 +0000
 1.4.2.2 11-Aug-2010  yamt sync with head.
 1.4.2.1 30-May-2010  yamt file wzero3_sspvar.h was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.11 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.10 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.9 24-Apr-2021  thorpej branches: 1.9.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.8 27-Oct-2012  chs branches: 1.8.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.7 21-Jan-2012  nonaka branches: 1.7.6;
fix my license notice.
 1.6 19-Jul-2010  tsutsui branches: 1.6.2; 1.6.4; 1.6.12; 1.6.16;
- in max1233_readpos(), add some DELAY() after starting A/D so that
output values of touchscreen position are more stable on my WS003SH
- also tidy up read and calc ops in max1233_readpos()
- turn DAC on in max1233_init() as well as max1233_resume()
 1.5 30-May-2010  nonaka Added keypad driver for WS011SH.
 1.4 22-May-2010  nonaka branches: 1.4.2;
Added touchpad driver for WS011SH.
 1.3 15-May-2010  nonaka tune ADC Averaging Control parameter.
 1.2 13-May-2010  nonaka Added touchpad driver for WS003SH.
 1.1 09-May-2010  nonaka Added touchpad driver for WS007SH.
 1.4.2.4 05-Mar-2011  rmind sync with head
 1.4.2.3 03-Jul-2010  rmind sync with head
 1.4.2.2 30-May-2010  rmind sync with head
 1.4.2.1 22-May-2010  rmind file wzero3_tp.c was added on branch rmind-uvmplock on 2010-05-30 05:16:51 +0000
 1.6.16.1 18-Feb-2012  mrg merge to -current.
 1.6.12.2 30-Oct-2012  yamt sync with head
 1.6.12.1 17-Apr-2012  yamt sync with head
 1.6.4.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.6.4.1 19-Jul-2010  uebayasi file wzero3_tp.c was added on branch uebayasi-xip on 2010-08-17 06:44:27 +0000
 1.6.2.2 11-Aug-2010  yamt sync with head.
 1.6.2.1 19-Jul-2010  yamt file wzero3_tp.c was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.7.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.8.52.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.9.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.1 17-Apr-2010  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added Sharp W-ZERO3 series support.
 1.1.6.2 11-Aug-2010  yamt sync with head.
 1.1.6.1 17-Apr-2010  yamt file wzero3_usb.c was added on branch yamt-nfs-mp on 2010-08-11 22:52:05 +0000
 1.1.4.2 30-May-2010  rmind sync with head
 1.1.4.1 17-Apr-2010  rmind file wzero3_usb.c was added on branch rmind-uvmplock on 2010-05-30 05:16:51 +0000
 1.1.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.2.1 17-Apr-2010  uebayasi file wzero3_usb.c was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.2 06-Mar-2001  matt branches: 1.2.8;
Move arm32/arm32/ast.c to arm/arm32/ast.c
 1.1 23-Feb-2001  ichiro branches: 1.1.2;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.2.8.2 06-Mar-2001  matt Move arm32/arm32/ast.c to arm/arm32/ast.c
 1.2.8.1 06-Mar-2001  matt file ast.c was added on branch nathanw_sa on 2001-03-06 07:52:38 +0000
 1.24 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.23 16-Jun-2017  jdolecek dumpconf(void) long doesn't exist, remove the prototype

PR kern/39714 by Henning Petersen
 1.22 27-Oct-2012  chs branches: 1.22.14;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.21 01-Sep-2012  matt branches: 1.21.2;
Move things around for <arm/arm32/machdep.h>
 1.20 29-Jul-2012  mlelstv 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.19 21-Jun-2011  kiyohara branches: 1.19.2; 1.19.8;
Add bicons to constab.
 1.18 17-Apr-2010  nonaka Added Sharp W-ZERO3 series support.
 1.17 13-Jun-2008  rafal branches: 1.17.16; 1.17.18;
Let hpcarm kernels boot again after the merge of the armv6 branch. Fixes
PR port-hpcarm/38591

XXX: There is still a hard hang that I've seen on both shark and hpcarm in
the process exit path; I don't know much beyond that yet.
 1.16 12-Feb-2008  joerg branches: 1.16.6; 1.16.8; 1.16.10; 1.16.12; 1.16.14;
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.15 26-Mar-2006  peter branches: 1.15.34; 1.15.38; 1.15.44;
Use TAILQ_FOREACH.
 1.14 11-Dec-2005  christos branches: 1.14.4; 1.14.6; 1.14.8; 1.14.10; 1.14.12;
merge ktrace-lwp.
 1.13 23-Oct-2005  peter - Remove __P.
- Use ANSI function decls.
- Put some debug information into #ifdef DEBUG.
 1.12 02-Jun-2005  uwe branches: 1.12.2; 1.12.4;
Constify.
 1.11 23-Oct-2004  thorpej Centralize the declaration of booted_device and booted_partition.
 1.10 15-Jul-2003  lukem __KERNEL_RCSID()
 1.9 16-Jun-2003  thorpej branches: 1.9.2;
Rename IPL_IMP -> IPL_VM.
 1.8 06-Sep-2002  gehenna Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.

- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.

- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
 1.7 13-Jul-2002  toshii Recognize hpcboot's "b=xx" option, which specifies the root device to use.
 1.6 31-May-2002  toshii Add a missing config_hook_init call.
 1.5 27-Nov-2001  thorpej branches: 1.5.4; 1.5.8; 1.5.10;
Use <machine/intr.h> rather than <machine/irqhandler.h>
 1.4 09-Sep-2001  toshii branches: 1.4.4;
#include "sacom.h" for constab[].
 1.3 03-Sep-2001  matt branches: 1.3.2;
Move constab from conf.c to autoconf.c (since conf.c is going away shortly).
 1.2 13-May-2001  bjh21 branches: 1.2.2;
Use get_bootconf_option() to find boot options, rather than home-grown
strstr()-based hacks.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file autoconf.c was added on branch thorpej_scsipi on 2001-03-12 13:28:19 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -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 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.3.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.4.4.5 17-Sep-2002  nathanw Catch up to -current.
 1.4.4.4 01-Aug-2002  nathanw Catch up to -current.
 1.4.4.3 20-Jun-2002  nathanw Catch up to -current.
 1.4.4.2 08-Jan-2002  nathanw Catch up to -current.
 1.4.4.1 09-Sep-2001  nathanw file autoconf.c was added on branch nathanw_sa on 2002-01-08 00:24:52 +0000
 1.5.10.1 04-Jun-2002  lukem Pull up revision 1.6 (requested by toshii in ticket #136):
Add a missing config_hook_init call.
 1.5.8.3 16-Jul-2002  gehenna catch up with -current.
 1.5.8.2 14-Jul-2002  gehenna catch up with -current.
 1.5.8.1 17-May-2002  gehenna Replace the access to devsw table and the hard-coded major with devsw API.
 1.5.4.1 17-Mar-2002  thorpej IPL_IMP -> IPL_VM
 1.9.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.9.2.4 02-Nov-2004  skrll Sync with HEAD.
 1.9.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.9.2.1 03-Aug-2004  skrll Sync with HEAD
 1.12.4.1 26-Oct-2005  yamt sync with head
 1.12.2.2 27-Feb-2008  yamt sync with head.
 1.12.2.1 21-Jun-2006  yamt sync with head.
 1.14.12.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.14.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.14.8.1 01-Apr-2006  yamt sync with head.
 1.14.6.1 22-Apr-2006  simonb Sync with head.
 1.14.4.1 09-Sep-2006  rpaulo sync with head
 1.15.44.1 18-Feb-2008  mjf Sync with HEAD.
 1.15.38.1 23-Mar-2008  matt sync with HEAD
 1.15.34.1 28-Feb-2008  rjs Sync with HEAD.
 1.16.14.1 18-Jun-2008  simonb Sync with head.
 1.16.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.16.10.2 11-Aug-2010  yamt sync with head.
 1.16.10.1 04-May-2009  yamt sync with head.
 1.16.8.1 17-Jun-2008  yamt sync with head.
 1.16.6.1 29-Jun-2008  mjf Sync with HEAD.
 1.17.18.1 30-May-2010  rmind sync with head
 1.17.16.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.19.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.19.2.1 30-Oct-2012  yamt sync with head
 1.21.2.2 03-Dec-2017  jdolecek update from HEAD
 1.21.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.22.14.1 28-Aug-2017  skrll Sync with HEAD
 1.2 04-Mar-2001  matt Move compat_13_machdep.c, strstr.c, copystr.S, bcopyinout.S, and
bcopy_page.S to arm/arm32 and remove port-local copies.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2 04-Mar-2001  matt Move compat_13_machdep.c, strstr.c, copystr.S, bcopyinout.S, and
bcopy_page.S to arm/arm32 and remove port-local copies.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2 30-May-2001  toshii branches: 1.2.8;
Use sys/arch/arm/arm/blockio.S.

Actually, these functions aren't used by hpcarm but is necessary to be
able to link sys/arch/arm/mainbus thing.
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file blockio.S was added on branch thorpej_scsipi on 2001-03-12 13:28:19 +0000
 1.2.8.2 30-May-2001  toshii Use sys/arch/arm/arm/blockio.S.

Actually, these functions aren't used by hpcarm but is necessary to be
able to link sys/arch/arm/mainbus thing.
 1.2.8.1 30-May-2001  toshii file blockio.S was added on branch nathanw_sa on 2001-05-30 14:39:20 +0000
 1.2 18-Jun-2001  bjh21 branches: 1.2.8;
Merge arm32/dev/bus_space_notimpl.S and hpcarm/hpcarm/bus_space_notimpl.S
into arm/arm/bus_space_notimpl.S. They were identical anyway.

This file has no excuse for being in assembler, but I'll leave that for another
day.
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file bus_space_notimpl.S was added on branch thorpej_scsipi on 2001-03-12 13:28:19 +0000
 1.2.8.2 18-Jun-2001  bjh21 Merge arm32/dev/bus_space_notimpl.S and hpcarm/hpcarm/bus_space_notimpl.S
into arm/arm/bus_space_notimpl.S. They were identical anyway.

This file has no excuse for being in assembler, but I'll leave that for another
day.
 1.2.8.1 18-Jun-2001  bjh21 file bus_space_notimpl.S was added on branch nathanw_sa on 2001-06-18 22:26:19 +0000
 1.6 03-Sep-2001  matt branches: 1.6.6;
Switch hpcarm to common arm32 conf.c ; (small changes to vm_machdep.c to
make it compile under ELF)
 1.5 03-Sep-2001  matt Move constab from conf.c to autoconf.c (since conf.c is going away shortly).
 1.4 03-Sep-2001  matt Sync hpcarm & arm32 conf.c (this entails shifting the i4b major numbers
up by one on arm32 and and adding notdef entries on hpcarm).
 1.3 31-Mar-2001  toshii branches: 1.3.2;
Remove cons_init(com), which prevents compiling in com_pcmcia.c.
 1.2 03-Mar-2001  bjh21 branches: 1.2.2; 1.2.4;
Remove support for /dev/cpu*. This code has never done anything useful anyway.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.3 21-Apr-2001  bouyer Sync with HEAD
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 03-Mar-2001  bouyer file conf.c was added on branch thorpej_scsipi on 2001-03-12 13:28:19 +0000
 1.2.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.3.2.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.6.6.2 03-Sep-2001  matt Switch hpcarm to common arm32 conf.c ; (small changes to vm_machdep.c to
make it compile under ELF)
 1.6.6.1 03-Sep-2001  matt file conf.c was added on branch nathanw_sa on 2001-09-03 19:38:15 +0000
 1.2 04-Mar-2001  matt Move compat_13_machdep.c, strstr.c, copystr.S, bcopyinout.S, and
bcopy_page.S to arm/arm32 and remove port-local copies.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.4 06-May-2001  bjh21 branches: 1.4.8;
Move cpufunc stuff from arm32/arm32 to arm/arm. The only change involved is
to add recognition of the SA-1100 and SA-1110 for compatibility with hpcarm
(which is now using this code as well).
 1.3 09-Mar-2001  toshii branches: 1.3.2;
Make it compile again after arm, arm32 changes.
 1.2 25-Feb-2001  bjh21 branches: 1.2.2;
Move arm32 ports over to using <arm/armreg.h>, so <cpu.h> mostly contains
NetBSD-specific definitions.

This also entails some changes to the way CPU identification is done. I hope
I've got it right.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.3.2.2 12-Mar-2001  bouyer Sync with HEAD.
 1.3.2.1 09-Mar-2001  bouyer file cpufunc.c was added on branch thorpej_scsipi on 2001-03-12 13:28:20 +0000
 1.4.8.2 06-May-2001  bjh21 Move cpufunc stuff from arm32/arm32 to arm/arm. The only change involved is
to add recognition of the SA-1100 and SA-1110 for compatibility with hpcarm
(which is now using this code as well).
 1.4.8.1 06-May-2001  bjh21 file cpufunc.c was added on branch nathanw_sa on 2001-05-06 18:01:45 +0000
 1.2 06-May-2001  bjh21 branches: 1.2.8;
Move cpufunc stuff from arm32/arm32 to arm/arm. The only change involved is
to add recognition of the SA-1100 and SA-1110 for compatibility with hpcarm
(which is now using this code as well).
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file cpufunc_asm.S was added on branch thorpej_scsipi on 2001-03-12 13:28:20 +0000
 1.2.8.2 06-May-2001  bjh21 Move cpufunc stuff from arm32/arm32 to arm/arm. The only change involved is
to add recognition of the SA-1100 and SA-1110 for compatibility with hpcarm
(which is now using this code as well).
 1.2.8.1 06-May-2001  bjh21 file cpufunc_asm.S was added on branch nathanw_sa on 2001-05-06 18:01:45 +0000
 1.4 30-Jan-2002  thorpej Now that there is a generic SA-11x0 CPU sleep routine, use the
shared arm32 cpuswitch.S.
 1.3 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.2 17-Apr-2001  toshii branches: 1.2.2; 1.2.8;
Use idle mode in process waiting idle loop.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.3 21-Apr-2001  bouyer Sync with HEAD
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file cpuswitch.S was added on branch thorpej_scsipi on 2001-03-12 13:28:20 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.2.8.3 28-Feb-2002  nathanw Catch up to -current.
 1.2.8.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.2.8.1 17-Apr-2001  thorpej file cpuswitch.S was added on branch nathanw_sa on 2001-11-15 17:46:26 +0000
 1.2.2.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.2 04-Mar-2001  matt Remove local copies of these since they are now shared and are
in arm/arm32
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2 04-Mar-2001  matt Remove local copies of these since they are now shared and are
in arm/arm32
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3 04-Mar-2001  matt Remove local copies of these since they are now shared and are
in arm/arm32
 1.2 25-Feb-2001  bjh21 Move arm32 ports over to using <arm/armreg.h>, so <cpu.h> mostly contains
NetBSD-specific definitions.

This also entails some changes to the way CPU identification is done. I hope
I've got it right.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2 20-Dec-2001  thorpej * 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 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.1.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file exception.S was added on branch thorpej_scsipi on 2001-03-12 13:28:20 +0000
 1.14 24-Mar-2002  thorpej Use the generic 32-bit ARM fault.c
 1.13 27-Nov-2001  thorpej Use <machine/intr.h> rather than <machine/irqhandler.h>
 1.12 23-Nov-2001  thorpej No need to pull in <machine/pte.h> directly.
 1.11 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.10 19-Jul-2001  wiz branches: 1.10.6;
Fix typo (`information' has an 'r').
 1.9 29-Jun-2001  toshii branches: 1.9.2;
KASSERT current_intr_depth == 0 before uvm_fault.
 1.8 29-Jun-2001  toshii Catch up long ago arm32 change: vm_offset_t -> {p,v}addr_t.
 1.7 19-Jun-2001  wiz `existent', not `existant'
 1.6 02-Jun-2001  bjh21 Now that cpu_dataabt_fixup() can fail, print slightly more useful information
(address and disassembly of the instruction that aborted) when it does so.
 1.5 02-Jun-2001  chs replace vm_map{,_entry}_t with struct vm_map{,_entry} *.
 1.4 21-Mar-2001  toshii Make this compile again.
 1.3 15-Mar-2001  chs eliminate the KERN_* error codes in favor of the traditional E* codes.
the mapping is:

KERN_SUCCESS 0
KERN_INVALID_ADDRESS EFAULT
KERN_PROTECTION_FAILURE EACCES
KERN_NO_SPACE ENOMEM
KERN_INVALID_ARGUMENT EINVAL
KERN_FAILURE various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE ENOMEM
KERN_NOT_RECEIVER <unused>
KERN_NO_ACCESS <unused>
KERN_PAGES_LOCKED <unused>
 1.2 28-Feb-2001  bjh21 branches: 1.2.2; 1.2.4;
PCB convergence, part the first:
Move the pointer to the current user trapframe from struct mdproc to struct
pcb (as on arm26). Only tested by compiling kernels on arm32 and
hpcarm (dnard seems to be incomplete anyway). Someone should try running one.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.3 27-Mar-2001  bouyer Sync with HEAD.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 28-Feb-2001  bouyer file fault.c was added on branch thorpej_scsipi on 2001-03-12 13:28:20 +0000
 1.2.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.2.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.9.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.9.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.9.2.1 03-Aug-2001  lukem update to -current
 1.10.6.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.10.6.3 08-Jan-2002  nathanw Catch up to -current.
 1.10.6.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.10.6.1 19-Jul-2001  thorpej file fault.c was added on branch nathanw_sa on 2001-11-15 17:46:26 +0000
 1.2 16-Mar-2002  toshii Discard hpcarm copies of fusu.S and mem.c and use arm/arm32 versions.
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file fusu.S was added on branch thorpej_scsipi on 2001-03-12 13:28:20 +0000
 1.8 20-Sep-2008  tsutsui 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.7 27-Apr-2008  matt branches: 1.7.2; 1.7.6;
Merge kernel changes in matt-armv6 to HEAD.
 1.6 20-Dec-2001  thorpej branches: 1.6.94; 1.6.118; 1.6.120; 1.6.122;
* 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.5 09-Sep-2001  toshii branches: 1.5.4;
Don't define pcb_* register macros.
pcb_sp macro conflicts with sys/netinet6/ipsec.c.
 1.4 27-Aug-2001  chris branches: 1.4.2;
Remove unused entries from the pcb. This is with a long term view of merging the arm26 and arm32 pcb's.
 1.3 04-Mar-2001  bjh21 branches: 1.3.4; 1.3.6;
Make "options ARMFPE" work again.
Mostly due to Richard Earnshaw.
 1.2 28-Feb-2001  bjh21 PCB convergence, part the first:
Move the pointer to the current user trapframe from struct mdproc to struct
pcb (as on arm26). Only tested by compiling kernels on arm32 and
hpcarm (dnard seems to be incomplete anyway). Someone should try running one.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.6.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.3.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.3.4.1 04-Mar-2001  bouyer file genassym.cf was added on branch thorpej_scsipi on 2001-03-12 13:28:20 +0000
 1.4.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.5.4.3 08-Jan-2002  nathanw Catch up to -current.
 1.5.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.5.4.1 09-Sep-2001  thorpej file genassym.cf was added on branch nathanw_sa on 2001-11-15 17:46:26 +0000
 1.6.122.2 04-May-2009  yamt sync with head.
 1.6.122.1 16-May-2008  yamt sync with head.
 1.6.120.1 18-May-2008  yamt sync with head.
 1.6.118.2 28-Sep-2008  mjf Sync with HEAD.
 1.6.118.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.94.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.6.1 19-Oct-2008  haad Sync with HEAD.
 1.7.2.1 10-Oct-2008  skrll Sync with HEAD.
 1.106 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.105 16-Mar-2018  ryo branches: 1.105.2;
fix compile error with options BOOT_DUMP
 1.104 13-Sep-2014  matt branches: 1.104.18;
Use paddr_t for msgbufphys
 1.103 02-Mar-2014  joerg Mark cpu_reset as dead and add an explicit __builtin_unreachable for a
terminal function call for clang's noreturn diagnostic.
 1.102 18-Aug-2013  matt Fix <arm/locore.h> lossage
 1.101 29-Jul-2012  matt branches: 1.101.2; 1.101.4;
Fix more -fno-common fallout.
Move more variables to common locations.
 1.100 31-Mar-2012  nonaka Add support kloader(4) for PXA2X0.
 1.99 14-Nov-2010  uebayasi branches: 1.99.8; 1.99.12;
Include sys/pmf.h for pmf(9) API.
 1.98 29-Apr-2010  nonaka WS003SH is normally reseted.
 1.97 17-Apr-2010  nonaka Added Sharp W-ZERO3 series support.
 1.96 02-Mar-2010  pooka branches: 1.96.2;
Remove unnecessary #ifdef NFS.
 1.95 26-Dec-2009  uebayasi branches: 1.95.2;
Use cpu_* prefix to call cpu_* functions (setttb() -> cpu_setttb()); no
functional changes.
 1.94 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.93 26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.92 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.91 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.90 19-Dec-2008  pgoyette branches: 1.90.2;
Store config(1)'s root filesystem type as a text string rather than
embedding the address of its xxx_mountroot() in swapnetbsd.c. This
permits booting of kernels with hard-wired filesystem type even if the
filesystem is in a loadable module (ie, not linked into the kernel
image).

Discussed on current-users. Tested on amd64 and i386 with both hard-
wired and '?' filesystem times, and on both modular and monolithic
kernels.

Thanks to pooka@ for code review and suggestions.

Addresses my PR kern/40167
 1.89 30-Nov-2008  martin 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.88 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.87 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.86 13-Jun-2008  rafal branches: 1.86.2; 1.86.4;
Let hpcarm kernels boot again after the merge of the armv6 branch. Fixes
PR port-hpcarm/38591

XXX: There is still a hard hang that I've seen on both shark and hpcarm in
the process exit path; I don't know much beyond that yet.
 1.85 27-Apr-2008  matt branches: 1.85.2; 1.85.4;
Merge kernel changes in matt-armv6 to HEAD.
 1.84 20-Apr-2008  rafal branches: 1.84.2;
Enlarge the number of L2PTs used for mapping the kernel since our kernels
have gotten fatter with age and even the stock kernels were bigger than the
code could handle.

Thanks to Jason Mitchell for sending me a Jornada 720 so I could actually
test this.
 1.83 19-Jan-2008  chris branches: 1.83.6; 1.83.8;
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.82 07-Oct-2006  peter branches: 1.82.24; 1.82.28; 1.82.34; 1.82.42;
Some cleanup in the comments, simplify some code.
 1.81 07-Oct-2006  peter Add sleep function holder and call it in machine_sleep (from hpcsh).
 1.80 07-Oct-2006  peter Remove an unused function.
 1.79 11-Apr-2006  peter branches: 1.79.8; 1.79.10;
Implement pmap_devmap on hpcarm to map I/O registers that are used
in early start-up stage. Change the virtual address for UART #3 to
the physical address in the configuration files.
While here, implement the sa11x0_bs_unmap function.

Reviewed by Toru Nishimura (on port-arm).
 1.78 27-Feb-2006  peter branches: 1.78.2; 1.78.4; 1.78.6;
Add (empty) machine_standby and machine_sleep functions, which will be
needed for hpcapm(4).
 1.77 21-Feb-2006  is Prototype for fakecninit().
 1.76 26-Jan-2006  peter branches: 1.76.2; 1.76.4;
Use BOOT_FLAG() to parse the boot arguments.
Initialize boothowto to 0.
 1.75 11-Dec-2005  christos branches: 1.75.2;
merge ktrace-lwp.
 1.74 23-Oct-2005  peter - Remove __P.
- Use ANSI function decls.
- Tweak some comments.
- Fix a few typos.
- KNF.
 1.73 02-Jun-2005  uwe branches: 1.73.2; 1.73.4;
Rename local var to avoid shadowing.
 1.72 12-Dec-2004  abs Fix comments slighly
 1.71 06-Aug-2004  rearnsha Remove declaration of db_trapper (since we now use db_machine_init).
 1.70 16-Sep-2003  agc Make the number of 4K DRAM pages into a CPP definition, so that it can be
set from a kernel configuration file. Proposed by Brett Lymn on port-hpcarm.
 1.69 15-Jul-2003  lukem __KERNEL_RCSID()
 1.68 22-May-2003  thorpej branches: 1.68.2;
Move KERNEL_VM_SIZE into the C files where its used.
 1.67 21-May-2003  thorpej Move KERNEL_VM_BASE inside where it is used (it won't be there for long).
 1.66 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.65 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.64 03-May-2003  thorpej Remove old pmap support for platforms which have fully switched over.
 1.63 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.62 02-May-2003  toshii Make it compile without ARM32_PMAP_NEW defined.
Fixes PR kern/21397 by Jachym Holecek.
 1.61 02-May-2003  toshii Use db_machine_init.
 1.60 26-Apr-2003  ragge Call ksyms_init() instead of ddb_init() in case of
NKSYMS || defined(DDB) || defined(LKM)
 1.59 26-Apr-2003  toshii Make it boot with ARM32_PMAP_NEW defined.
 1.58 26-Apr-2003  toshii Fix a comment; 0x40000 isn't 1MB.
Use KERNEL_BASE instead of 0xc0000000. No functional change.
 1.57 26-Apr-2003  toshii Some line folding cleanups.
Kill an unused variable.
 1.56 02-Apr-2003  thorpej Use PAGE_SIZE rather than NBPG.
 1.55 05-Oct-2002  chs add missing protos.
 1.54 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.53 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.52 21-Aug-2002  thorpej Do cached memory access to L1 tables, making sure to write-back the
cache after any L1 table modifications.
 1.51 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.50 30-Jul-2002  thorpej Move the uvm_setpagesize() call to platform-dependent code in preparation
for other changes to pmap_bootstrap().
 1.49 19-Jul-2002  ichiro move sa11x0 to under arch/arm
make compile
 1.48 13-Jul-2002  toshii Recognize hpcboot's "b=xx" option, which specifies the root device to use.
 1.47 03-May-2002  rjs branches: 1.47.2; 1.47.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.46 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.45 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.44 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.43 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.42 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.41 25-Mar-2002  thorpej * Fix use of pmap_curmaxkvaddr.
* Use the PTP hint in the pmap.
 1.40 24-Mar-2002  thorpej Use vtopte() instead of pmap_pte().
 1.39 23-Mar-2002  thorpej * Change all uses of KERNEL_SPACE_START to KERNEL_BASE.
* Delete now unused KERNEL_SPACE_START.
 1.38 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.37 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.36 23-Feb-2002  toshii Remove a bogus pmap_map_entry call.
 1.35 22-Feb-2002  thorpej Fix the "va" argument to pmap_map_entry() when mapping kernel_ptpt.
 1.34 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.33 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.32 21-Feb-2002  thorpej Always pass the L1 table to pmap_map_chunk(). This allows pmap_map_chunk()
to perform some error checking.
 1.31 21-Feb-2002  thorpej map_chunk() -> pmap_map_chunk(), and move it to pmap.c
 1.30 20-Feb-2002  thorpej map_pagetable() -> pmap_link_l2pt(), and move it to pmap.c
 1.29 20-Feb-2002  thorpej Collapse map_entry{,ro,nc}() into a single pmap_map_entry() that
takes a prot and a "cacheable" indicator.
 1.28 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.27 01-Feb-2002  uch bootinfo.h, config_hook.h, platid.h are moved to hpc/include
 1.26 30-Jan-2002  thorpej sa11x0_idle_mem is now an extern.
 1.25 28-Dec-2001  toshii Allow jornada720 LCD and keyboard to be used as a boot console.
 1.24 27-Nov-2001  thorpej Use <machine/intr.h> rather than <machine/irqhandler.h>
 1.23 23-Nov-2001  thorpej Use <arm/undefined.h> instead of <machine/undefined.h>.
 1.22 23-Nov-2001  thorpej No need to pull in <machine/pte.h> directly.
 1.21 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.20 09-Nov-2001  thorpej branches: 1.20.2;
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.19 09-Nov-2001  thorpej Remove unnecessary prototypes for zero_page_read{only,write}().
 1.18 02-Aug-2001  toshii branches: 1.18.4;
Don't assume KERNEL_TEXT_BASE >= 0xc0080000.
 1.17 29-Jul-2001  toshii Make hpcarm kernel build after arm/arm32 file move.
 1.16 28-Jul-2001  chris A couple of tidy ups to pmap:
pmap_t -> struct pmap * in pmap.c and pmap.h
kernel_pmap -> pmap_kernel() everywhere.

Compiled and booted on riscpc and cats.
 1.15 29-Jun-2001  toshii branches: 1.15.2;
Catch up long ago arm32 change: vm_offset_t -> {p,v}addr_t.
 1.14 19-Jun-2001  wiz `response', not `responce'
 1.13 01-Jun-2001  toshii Nuke FRAMEBUF_{HW_,}BASE. This hack does no good.
 1.12 01-Jun-2001  toshii Move some low-level code (SVC mode switching and PID address translation
disabling) which was written using inlined asm in initarm() to just after
the kernel entry point.
 1.11 17-Apr-2001  toshii Map a page needed for entering idle mode.
Also, use zero memory at physaddr 0xe0000000 to clean D cache.
 1.10 17-Apr-2001  toshii Initialize platid in hpc_machdep().
 1.9 06-Apr-2001  toshii Fix a couple of bugs including kernel_pt_table[] range overflow.

I thought some incompatiblity with gcc-2.95.3 prevented booting,
but the actual reason was this silly overflow.
 1.8 23-Mar-2001  toshii Handle bootargs passed by hpcboot.
Change stack pointer initialization.
 1.7 22-Mar-2001  toshii Handle ELF symbol table.
 1.6 13-Mar-2001  bjh21 Update to use install_coproc_handler_static(), since install_coproc_handler()
isn't safe this early.

XXX hpcarm should use db_machine_init() to do this.
 1.5 09-Mar-2001  toshii branches: 1.5.2;
Make it compile again after arm, arm32 changes.
 1.4 25-Feb-2001  bjh21 branches: 1.4.2;
Move arm32 ports over to using <arm/armreg.h>, so <cpu.h> mostly contains
NetBSD-specific definitions.

This also entails some changes to the way CPU identification is done. I hope
I've got it right.
 1.3 24-Feb-2001  toshii Remove unneeded hardcoded IO mappings.
 1.2 23-Feb-2001  ichiro delete local-ID for cvs
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.4.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.4.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.5.2.4 21-Apr-2001  bouyer Sync with HEAD
 1.5.2.3 27-Mar-2001  bouyer Sync with HEAD.
 1.5.2.2 12-Mar-2001  bouyer Sync with HEAD.
 1.5.2.1 09-Mar-2001  bouyer file hpc_machdep.c was added on branch thorpej_scsipi on 2001-03-12 13:28:20 +0000
 1.15.2.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.15.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.15.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.15.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.15.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.15.2.1 03-Aug-2001  lukem update to -current
 1.18.4.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.20.2.9 18-Oct-2002  nathanw Catch up to -current.
 1.20.2.8 27-Aug-2002  thorpej Sync with -current.
 1.20.2.7 01-Aug-2002  nathanw Catch up to -current.
 1.20.2.6 20-Jun-2002  nathanw Catch up to -current.
 1.20.2.5 17-Apr-2002  nathanw Catch up to -current.
 1.20.2.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.20.2.3 28-Feb-2002  nathanw Catch up to -current.
 1.20.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.20.2.1 09-Nov-2001  nathanw file hpc_machdep.c was added on branch nathanw_sa on 2002-01-08 00:24:52 +0000
 1.47.4.2 14-Feb-2003  he Revert pull-up of revision 1.52 (requested by rearnsha in ticket #1170):
Revert cached memory access to L1 tables, this causes instability
on the release branch.
 1.47.4.1 21-Nov-2002  he Pull up revision 1.52 (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.47.2.3 31-Aug-2002  gehenna catch up with -current.
 1.47.2.2 21-Jul-2002  gehenna catch up with -current.
 1.47.2.1 16-Jul-2002  gehenna catch up with -current.
 1.68.2.6 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.68.2.5 18-Dec-2004  skrll Sync with HEAD.
 1.68.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.68.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.68.2.2 12-Aug-2004  skrll Sync with HEAD.
 1.68.2.1 03-Aug-2004  skrll Sync with HEAD
 1.73.4.1 26-Oct-2005  yamt sync with head
 1.73.2.3 21-Jan-2008  yamt sync with head
 1.73.2.2 30-Dec-2006  yamt sync with head.
 1.73.2.1 21-Jun-2006  yamt sync with head.
 1.75.2.2 01-Mar-2006  yamt sync with head.
 1.75.2.1 01-Feb-2006  yamt sync with head.
 1.76.4.1 22-Apr-2006  simonb Sync with head.
 1.76.2.1 09-Sep-2006  rpaulo sync with head
 1.78.6.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.78.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.78.2.1 24-May-2006  yamt sync with head.
 1.79.10.1 22-Oct-2006  yamt sync with head
 1.79.8.1 18-Nov-2006  ad Sync with head.
 1.82.42.1 20-Jan-2008  bouyer Sync with HEAD
 1.82.34.1 18-Feb-2008  mjf Sync with HEAD.
 1.82.28.2 23-Mar-2008  matt sync with HEAD
 1.82.28.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.82.24.2 28-Feb-2008  rjs Sync with HEAD.
 1.82.24.1 31-Oct-2007  rjs Remove io.h.
 1.83.8.2 17-Jun-2008  yamt sync with head.
 1.83.8.1 18-May-2008  yamt sync with head.
 1.83.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.83.6.2 29-Jun-2008  mjf Sync with HEAD.
 1.83.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.84.2.5 11-Aug-2010  yamt sync with head.
 1.84.2.4 11-Mar-2010  yamt sync with head
 1.84.2.3 19-Aug-2009  yamt sync with head.
 1.84.2.2 04-May-2009  yamt sync with head.
 1.84.2.1 16-May-2008  yamt sync with head.
 1.85.4.1 18-Jun-2008  simonb Sync with head.
 1.85.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.86.4.2 03-Mar-2009  skrll Sync with HEAD.
 1.86.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.86.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.90.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.95.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.96.2.2 05-Mar-2011  rmind sync with head
 1.96.2.1 30-May-2010  rmind sync with head
 1.99.12.1 05-Apr-2012  mrg sync to latest -current.
 1.99.8.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.99.8.2 30-Oct-2012  yamt sync with head
 1.99.8.1 17-Apr-2012  yamt sync with head
 1.101.4.2 18-May-2014  rmind sync with head
 1.101.4.1 28-Aug-2013  rmind sync with head
 1.101.2.2 03-Dec-2017  jdolecek update from HEAD
 1.101.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.104.18.1 22-Mar-2018  pgoyette Synch with HEAD, resolve conflicts
 1.105.2.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.20 01-Oct-2021  rin G/C unused over a decade.
 1.19 27-Jul-2012  matt Remove safepri and use IPL_SAFEPRI instead. This may be defined in a MD
header file (if not, a value of 0 is assmued).
 1.18 20-Dec-2010  matt branches: 1.18.8;
Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
 1.17 17-Apr-2010  nonaka Added Sharp W-ZERO3 series support.
 1.16 19-Nov-2008  matt branches: 1.16.6; 1.16.8;
Use <sys/atomic.h> not <machine/atomic.h>
Cleanup some code which is not used in case it is un-ifdef'ed.
 1.15 03-Dec-2007  ad branches: 1.15.14; 1.15.18; 1.15.24; 1.15.26;
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.14 17-Oct-2007  garbled branches: 1.14.2;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.13 08-Aug-2007  tsutsui branches: 1.13.2;
Fix typo in debug printf.
 1.12 01-Jul-2007  toshii branches: 1.12.4; 1.12.6; 1.12.8;
Quick and dirty fix for hpcarm build failure, using hpcarm specific
softintr code for now.
 1.11 21-Dec-2006  yamt branches: 1.11.6; 1.11.8; 1.11.12; 1.11.14;
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.10 11-Dec-2005  christos branches: 1.10.20; 1.10.22;
merge ktrace-lwp.
 1.9 23-Oct-2005  peter - Merge Interrupt/SPL related stuff from hpcarm/hpcarm/stubs.c.
PR/17346 from Kevin Lo. ok by ichiro@
- Remove __P.
- Use ANSI functions decls.
- Minor KNF.
 1.8 15-Jul-2003  lukem branches: 1.8.16; 1.8.18;
__KERNEL_RCSID()
 1.7 19-Oct-2002  bsh branches: 1.7.6;
make atomic_{set,clear}_bit() inline for arm32 ports, and
add <machine/atomic.h> for them.
 1.6 05-Oct-2002  chs add missing protos.
 1.5 27-Nov-2001  thorpej Use <machine/intr.h> rather than <machine/irqhandler.h>
 1.4 20-Jun-2001  toshii branches: 1.4.2; 1.4.8;
Define __HAVE_GENERIC_SOFT_INTERRUPTS, and nuke traditional softserial and
softclock.
 1.3 22-May-2001  toshii Implement generic soft interrupt for hpcarm.
 1.2 30-Apr-2001  toshii setsoftast is a macro now.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file intr.c was added on branch thorpej_scsipi on 2001-03-12 13:28:21 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.8.4 11-Nov-2002  nathanw Catch up to -current
 1.4.8.3 18-Oct-2002  nathanw Catch up to -current.
 1.4.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.4.8.1 20-Jun-2001  nathanw file intr.c was added on branch nathanw_sa on 2002-01-08 00:24:53 +0000
 1.4.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.7.6.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.7.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.7.6.1 03-Aug-2004  skrll Sync with HEAD
 1.8.18.1 26-Oct-2005  yamt sync with head
 1.8.16.4 07-Dec-2007  yamt sync with head
 1.8.16.3 03-Sep-2007  yamt sync with head.
 1.8.16.2 30-Dec-2006  yamt sync with head.
 1.8.16.1 21-Jun-2006  yamt sync with head.
 1.10.22.6 18-Dec-2006  yamt ipl_to_spl: add missing IPL_STATCLOCK.
 1.10.22.5 18-Dec-2006  yamt ipl_to_spl: include ipl number in panic messages.
 1.10.22.4 09-Oct-2006  yamt add missing IPL_NONE case.
 1.10.22.3 21-Sep-2006  yamt implement splraiseipl for hpcarm, shark, and acorn32.
 1.10.22.2 21-Sep-2006  yamt revert the previous which was committed unintentionally.
 1.10.22.1 21-Sep-2006  yamt *** empty log message ***
 1.10.20.1 12-Jan-2007  ad Sync with head.
 1.11.14.1 03-Oct-2007  garbled Sync with HEAD
 1.11.12.1 19-Apr-2007  thorpej Convert to the new atomic ops API.
 1.11.8.1 11-Jul-2007  mjf Sync with head.
 1.11.6.4 03-Dec-2007  ad Sync with HEAD.
 1.11.6.3 03-Dec-2007  ad Sync with HEAD.
 1.11.6.2 20-Aug-2007  ad Sync with HEAD.
 1.11.6.1 15-Jul-2007  ad Sync with head.
 1.12.8.2 09-Dec-2007  jmcneill Sync with HEAD.
 1.12.8.1 09-Aug-2007  jmcneill Sync with HEAD.
 1.12.6.1 07-Oct-2007  rjs Remove old files.
 1.12.4.1 15-Aug-2007  skrll Sync with HEAD.
 1.13.2.2 09-Jan-2008  matt sync with HEAD
 1.13.2.1 06-Nov-2007  matt sync with HEAD
 1.14.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.15.26.1 19-Jan-2009  skrll Sync with HEAD.
 1.15.24.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.15.18.2 11-Aug-2010  yamt sync with head.
 1.15.18.1 04-May-2009  yamt sync with head.
 1.15.14.1 17-Jan-2009  mjf Sync with HEAD.
 1.16.8.2 05-Mar-2011  rmind sync with head
 1.16.8.1 30-May-2010  rmind sync with head
 1.16.6.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.18.8.1 30-Oct-2012  yamt sync with head
 1.3 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.2 02-Mar-2014  joerg Mark cpu_reset as dead and add an explicit __builtin_unreachable for a
terminal function call for clang's noreturn diagnostic.
 1.1 31-Mar-2012  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Add support kloader(4) for PXA2X0.
 1.1.8.1 18-May-2014  rmind sync with head
 1.1.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.4.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.1.4.2 17-Apr-2012  yamt sync with head
 1.1.4.1 31-Mar-2012  yamt file kloader_machdep.c was added on branch yamt-pagecache on 2012-04-17 00:06:24 +0000
 1.1.2.2 05-Apr-2012  mrg sync to latest -current.
 1.1.2.1 31-Mar-2012  mrg file kloader_machdep.c was added on branch jmcneill-usbmp on 2012-04-05 21:33:14 +0000
 1.2 11-Oct-2021  rin G/C unused CPWAIT().
 1.1 31-Mar-2012  nonaka branches: 1.1.2; 1.1.4;
Add support kloader(4) for PXA2X0.
 1.1.4.2 17-Apr-2012  yamt sync with head
 1.1.4.1 31-Mar-2012  yamt file kloader_pxa2x0.S was added on branch yamt-pagecache on 2012-04-17 00:06:24 +0000
 1.1.2.2 05-Apr-2012  mrg sync to latest -current.
 1.1.2.1 31-Mar-2012  mrg file kloader_pxa2x0.S was added on branch jmcneill-usbmp on 2012-04-05 21:33:15 +0000
 1.21 27-Jun-2025  andvar Fix various typos, mainly in comments.
 1.20 28-Aug-2020  skrll branches: 1.20.26;
Fix typo in comment
 1.19 14-Jul-2019  skrll Spell initarm correctly in comments
 1.18 02-Mar-2014  joerg branches: 1.18.30;
Be explicit about the double register use.
 1.17 01-Mar-2014  joerg Modernize asm syntax
 1.16 22-Feb-2014  matt Trim include files
 1.15 02-Dec-2013  joerg Don't use cpsr_all/spsr_all with mrs, it doesn't take a mask.
 1.14 26-Aug-2013  matt Don't include <arm/arm32/pte.h> and <arm/pmap.h>
Use the values from getassym.h
 1.13 31-Mar-2012  nonaka branches: 1.13.2; 1.13.4;
Add support kloader(4) for PXA2X0.
 1.12 17-Apr-2010  nonaka branches: 1.12.8; 1.12.12;
Added Sharp W-ZERO3 series support.
 1.11 19-Jan-2008  chris branches: 1.11.10; 1.11.30; 1.11.32;
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.10 08-Jan-2008  matt As of this commit, all arm32 kernel now build.
 1.9 11-Dec-2005  christos branches: 1.9.46; 1.9.50; 1.9.56; 1.9.64;
merge ktrace-lwp.
 1.8 13-Feb-2004  wiz branches: 1.8.16;
Uppercase CPU, plural is CPUs.
 1.7 19-Oct-2002  bsh branches: 1.7.6;
make atomic_{set,clear}_bit() inline for arm32 ports, and
add <machine/atomic.h> for them.
 1.6 14-Oct-2002  bjh21 Continue the " - . - 8" purge. Specifically:

add rd, pc, #foo - . - 8 -> adr rd, foo
ldr rd, [pc, #foo - . - 8] -> ldr rd, foo

Also, when saving the return address for a function pointer call, use
"mov lr, pc" just before the call unless the return address is somewhere
other than just after the call site.

Finally, a few obvious little micro-optimisations like using LDR directly
rather than ADR followed by LDR, and loading directly into PC rather than
bouncing via R0.
 1.5 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.4 20-Dec-2001  thorpej * 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 01-Jun-2001  toshii branches: 1.3.2; 1.3.8;
Move some low-level code (SVC mode switching and PID address translation
disabling) which was written using inlined asm in initarm() to just after
the kernel entry point.
 1.2 23-Mar-2001  toshii Handle bootargs passed by hpcboot.
Change stack pointer initialization.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.3 27-Mar-2001  bouyer Sync with HEAD.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file locore.S was added on branch thorpej_scsipi on 2001-03-12 13:28:21 +0000
 1.1.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.3.8.5 11-Nov-2002  nathanw Catch up to -current
 1.3.8.4 18-Oct-2002  nathanw Catch up to -current.
 1.3.8.3 28-Feb-2002  nathanw Catch up to -current.
 1.3.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.3.8.1 01-Jun-2001  nathanw file locore.S was added on branch nathanw_sa on 2002-01-08 00:24:53 +0000
 1.3.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.3.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.7.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.7.6.1 03-Aug-2004  skrll Sync with HEAD
 1.8.16.1 21-Jan-2008  yamt sync with head
 1.9.64.2 20-Jan-2008  bouyer Sync with HEAD
 1.9.64.1 08-Jan-2008  bouyer Sync with HEAD
 1.9.56.1 18-Feb-2008  mjf Sync with HEAD.
 1.9.50.2 23-Mar-2008  matt sync with HEAD
 1.9.50.1 09-Jan-2008  matt sync with HEAD
 1.9.46.1 28-Feb-2008  rjs Sync with HEAD.
 1.11.32.1 30-May-2010  rmind sync with head
 1.11.30.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.11.10.1 11-Aug-2010  yamt sync with head.
 1.12.12.1 05-Apr-2012  mrg sync to latest -current.
 1.12.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.12.8.1 17-Apr-2012  yamt sync with head
 1.13.4.2 18-May-2014  rmind sync with head
 1.13.4.1 28-Aug-2013  rmind sync with head
 1.13.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.18.30.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.20.26.1 02-Aug-2025  perseant Sync with HEAD
 1.13 29-Jul-2001  toshii branches: 1.13.6;
Make hpcarm kernel build after arm/arm32 file move.
 1.12 28-Jul-2001  chris A couple of tidy ups to pmap:
pmap_t -> struct pmap * in pmap.c and pmap.h
kernel_pmap -> pmap_kernel() everywhere.

Compiled and booted on riscpc and cats.
 1.11 29-Jun-2001  toshii branches: 1.11.2;
Catch up long ago arm32 change: vm_offset_t -> {p,v}addr_t.
 1.10 02-Jun-2001  chs replace vm_map{,_entry}_t with struct vm_map{,_entry} *.
 1.9 13-May-2001  bjh21 Move get_bootconf_option() into a new file, sys/arch/arm/arm/bootconfig.c,
since it's in no way machine-dependent. It's not really ARM-specific either,
but I don't think it's useful enough to be made part of the MI kernel.
 1.8 24-Apr-2001  thorpej Sprinkle pmap_update() calls after calls to:
- pmap_enter()
- pmap_remove()
- pmap_protect()
- pmap_kenter_pa()
- pmap_kremove()
as described in pmap(9).

These calls are relatively conservative. It may be possible to
optimize these a little more.
 1.7 23-Mar-2001  toshii Support machdep.booted_kernel sysctl.
 1.6 15-Mar-2001  chs eliminate the KERN_* error codes in favor of the traditional E* codes.
the mapping is:

KERN_SUCCESS 0
KERN_INVALID_ADDRESS EFAULT
KERN_PROTECTION_FAILURE EACCES
KERN_NO_SPACE ENOMEM
KERN_INVALID_ARGUMENT EINVAL
KERN_FAILURE various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE ENOMEM
KERN_NOT_RECEIVER <unused>
KERN_NO_ACCESS <unused>
KERN_PAGES_LOCKED <unused>
 1.5 09-Mar-2001  toshii branches: 1.5.2;
Make it compile again after arm, arm32 changes.
 1.4 04-Mar-2001  bjh21 branches: 1.4.2;
Merge setregs() from sys/arch/arm32/arm32/machdep.c,
sys/arch/hpcarm/hpcarm/machdep.c and sys/arch/arm26/arm26/vm_machdep.c
into sys/arch/arm/arm/arm_machdep.c.
 1.3 28-Feb-2001  bjh21 PCB convergence, part the first:
Move the pointer to the current user trapframe from struct mdproc to struct
pcb (as on arm26). Only tested by compiling kernels on arm32 and
hpcarm (dnard seems to be incomplete anyway). Someone should try running one.
 1.2 25-Feb-2001  toshii Use MI md_root.c.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.4.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.4.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.5.2.3 27-Mar-2001  bouyer Sync with HEAD.
 1.5.2.2 12-Mar-2001  bouyer Sync with HEAD.
 1.5.2.1 09-Mar-2001  bouyer file machdep.c was added on branch thorpej_scsipi on 2001-03-12 13:28:21 +0000
 1.11.2.1 03-Aug-2001  lukem update to -current
 1.13.6.2 29-Jul-2001  toshii Make hpcarm kernel build after arm/arm32 file move.
 1.13.6.1 29-Jul-2001  toshii file machdep.c was added on branch nathanw_sa on 2001-07-29 15:21:35 +0000
 1.7 16-Mar-2002  toshii Discard hpcarm copies of fusu.S and mem.c and use arm/arm32 versions.
 1.6 27-Feb-2002  christos - Use DEV_ constants, instead of documenting the numbers!
- Delete cdev_decl(mm); where appropriate, and other hand-crufting [hi powerpc!]
 1.5 10-Sep-2001  chris branches: 1.5.4;
Update pmap_update to now take the updated pmap as an argument.
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.

Currently this is a no-op on most platforms, so they should see no difference.

Reviewed by Jason.
 1.4 07-Jul-2001  ichiro branches: 1.4.2; 1.4.4;
bzero->memset, bcopy->memcpy
 1.3 29-Jun-2001  toshii Catch up long ago arm32 change: vm_offset_t -> {p,v}addr_t.
 1.2 24-Apr-2001  thorpej Sprinkle pmap_update() calls after calls to:
- pmap_enter()
- pmap_remove()
- pmap_protect()
- pmap_kenter_pa()
- pmap_kremove()
as described in pmap(9).

These calls are relatively conservative. It may be possible to
optimize these a little more.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file mem.c was added on branch thorpej_scsipi on 2001-03-12 13:28:21 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.4.2 10-Oct-2001  fvdl Convert all remaining devices.
 1.4.4.1 01-Oct-2001  fvdl Catch up with -current.
 1.4.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.4.2.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.5.4.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.5.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.5.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.5.4.1 10-Sep-2001  thorpej file mem.c was added on branch nathanw_sa on 2001-11-15 17:46:26 +0000
 1.4 09-Sep-2023  andvar fix DEVMAP_ENTRY list termination symbol.

Makes hpcarm NETBOOKPRO config build again.
 1.3 21-Apr-2023  skrll Trailing whitespace
 1.2 20-Apr-2023  skrll Provide a shared pmap_devmap implementation and convert all pmap_devmap
arrays to use DEVMAP_ENTRY{,_END}
 1.1 06-Aug-2011  kiyohara Add support for PSIONTEKLOGIX NETBOOK PRO.
 1.2 04-Mar-2001  matt Remove local copies of these since they are now shared and are
in arm/arm32
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.5 25-Mar-2002  thorpej Use the generic ARM process_machdep.c
 1.4 23-Nov-2001  thorpej Use <arm/cpus.h>, not <machine/cpus.h>
 1.3 07-Jul-2001  ichiro branches: 1.3.2; 1.3.8;
bzero->memset, bcopy->memcpy
 1.2 28-Feb-2001  bjh21 branches: 1.2.4;
PCB convergence, part the first:
Move the pointer to the current user trapframe from struct mdproc to struct
pcb (as on arm26). Only tested by compiling kernels on arm32 and
hpcarm (dnard seems to be incomplete anyway). Someone should try running one.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 28-Feb-2001  bouyer file process_machdep.c was added on branch thorpej_scsipi on 2001-03-12 13:28:21 +0000
 1.3.8.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.3.8.3 08-Jan-2002  nathanw Catch up to -current.
 1.3.8.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.3.8.1 07-Jul-2001  thorpej file process_machdep.c was added on branch nathanw_sa on 2001-11-15 17:46:27 +0000
 1.3.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2 25-Mar-2002  thorpej Use the generic ARM procfs_machdep.c
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file procfs_machdep.c was added on branch thorpej_scsipi on 2001-03-12 13:28:22 +0000
 1.33 12-Oct-2023  skrll Fix non-DIAGNOSTIC builds
 1.32 03-Aug-2023  mrg ignore "-Warray-bounds" for various low level platform code that knows
how something is setup but technically is undefined behaviour. the
most common here is "extern int end;" and then using offsets of "&end"
that are outside the bounds of this 4-byte integer.

these uses are almost certainly all OK in reality.

found by GCC 12.
 1.31 20-Apr-2023  skrll Provide a shared pmap_devmap implementation and convert all pmap_devmap
arrays to use DEVMAP_ENTRY{,_END}
 1.30 17-Aug-2021  andvar branches: 1.30.4;
fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.
 1.29 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.28 18-Apr-2020  skrll Trailing whitespace
 1.27 16-Jul-2019  skrll branches: 1.27.8;
Consistently use vaddr_t as initarm and friends return type.

Makes no difference to binaries except for aarch64 where it's required
 1.26 16-Jul-2019  skrll KNF
 1.25 28-Oct-2018  skrll Fix a commit
 1.24 06-Nov-2017  christos branches: 1.24.2; 1.24.4;
Cleanup and clarify the ELFSIZE mess:

We now have 2 variables automatically set in elf_machdep.h:

ARCH_ELFSIZE: the size for userland binaries
KERN_ELFSIZE: the size for the kernel binaries

DB_ELFSIZE has been deleted and KERN_ELFSIZE should have always the
same values DB_ELFSIZE used to have.

In sys/exec_elf.h, if ELFSIZE is not set, it is set to KERN_ELFSIZE
for the kernel and ARCH_ELFSIZE for userland. These defaults should
eliminate the need for most manual ELFSIZE setting.
 1.23 22-Dec-2016  cherry switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.
 1.22 13-Sep-2014  matt branches: 1.22.2; 1.22.4;
Use paddr_t for msgbufphys
 1.21 11-Mar-2014  ozaki-r Remove unused variable found by gcc 4.8
 1.20 26-Aug-2013  matt Include <arm/locore.h>
 1.19 22-Sep-2012  matt branches: 1.19.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.18 16-Aug-2012  matt branches: 1.18.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.17 03-Aug-2012  matt include <arm/arm32/machdep.h>
 1.16 29-Jul-2012  matt Fix more -fno-common fallout.
Move more variables to common locations.
 1.15 31-Mar-2012  nonaka Add support kloader(4) for PXA2X0.
 1.14 05-Mar-2012  nonaka increase kernel VM space.
fixed problem can't boot on WS011SH (probably other 128MB RAM model too).
 1.13 19-Jul-2011  dyoung branches: 1.13.2; 1.13.6; 1.13.8;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.12 30-Jun-2011  wiz dependant -> dependent
 1.11 23-Jun-2011  nonaka Delete unused define.
 1.10 21-Jun-2011  kiyohara Split pxa2x0_hpc/wzero3.
 1.9 14-Jun-2011  kiyohara Remove not effective call for pxa2x0_*_bootstrap().
 1.8 26-Jun-2010  tsutsui branches: 1.8.2; 1.8.8;
If options RTC_OFFSET is not specified use bootinfo->timezone passed
by hpcboot.exe as well as other hpc* ports. Noticed by uwe@.
Also comment out options RTC_OFFSET=0 lines and note about this
in kernel config files. Tested on WS003SH.

XXX: dup code among pxa2x0_hpc_machdep.c and sa11x0_hpc_machdep.c
 1.7 13-May-2010  nonaka branches: 1.7.2;
Added touchpad driver for WS003SH.
 1.6 09-May-2010  nonaka Added touchpad driver for WS007SH.
 1.5 29-Apr-2010  nonaka branches: 1.5.2;
fix indent.
 1.4 29-Apr-2010  nonaka use platid_match().
 1.3 29-Apr-2010  nonaka WS003SH is normally reseted.
 1.2 24-Apr-2010  nonaka The capacity of RAM is decided according to the model.
 1.1 17-Apr-2010  nonaka Added Sharp W-ZERO3 series support.
 1.5.2.3 17-Aug-2010  uebayasi Sync with HEAD.
 1.5.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.5.2.1 29-Apr-2010  uebayasi file pxa2x0_hpc_machdep.c was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.7.2.3 03-Jul-2010  rmind sync with head
 1.7.2.2 30-May-2010  rmind sync with head
 1.7.2.1 13-May-2010  rmind file pxa2x0_hpc_machdep.c was added on branch rmind-uvmplock on 2010-05-30 05:16:51 +0000
 1.8.8.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.8.2.2 11-Aug-2010  yamt sync with head.
 1.8.2.1 26-Jun-2010  yamt file pxa2x0_hpc_machdep.c was added on branch yamt-nfs-mp on 2010-08-11 22:52:06 +0000
 1.13.8.1 08-Mar-2012  riz Pull up following revision(s) (requested by nonaka in ticket #94):
sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c: revision 1.14
increase kernel VM space.
fixed problem can't boot on WS011SH (probably other 128MB RAM model too).
 1.13.6.2 05-Apr-2012  mrg sync to latest -current.
 1.13.6.1 06-Mar-2012  mrg sync to -current
 1.13.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.13.2.2 30-Oct-2012  yamt sync with head
 1.13.2.1 17-Apr-2012  yamt sync with head
 1.18.2.3 03-Dec-2017  jdolecek update from HEAD
 1.18.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.18.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.19.2.2 18-May-2014  rmind sync with head
 1.19.2.1 28-Aug-2013  rmind sync with head
 1.22.4.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.22.2.1 05-Feb-2017  skrll Sync with HEAD
 1.24.4.3 21-Apr-2020  martin Sync with HEAD
 1.24.4.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.24.4.1 10-Jun-2019  christos Sync with HEAD
 1.24.2.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.27.8.1 20-Apr-2020  bouyer Sync with HEAD
 1.30.4.1 14-Oct-2023  martin Pull up following revision(s) (requested by skrll in ticket #411):

sys/arch/evbarm/nslu2/nslu2_machdep.c: revision 1.41
sys/arch/evbarm/gumstix/gumstix_machdep.c: revision 1.75
sys/arch/evbarm/iq80321/iq80321_machdep.c: revision 1.66
sys/arch/iyonix/iyonix/iyonix_machdep.c: revision 1.34
sys/arch/zaurus/zaurus/machdep.c: revision 1.52
sys/arch/evbarm/g42xxeb/g42xxeb_machdep.c: revision 1.41
sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c: revision 1.33
sys/arch/evbarm/iq80310/iq80310_machdep.c: revision 1.96
sys/arch/evbarm/adi_brh/brh_machdep.c: revision 1.53
sys/arch/arm/include/arm32/pmap.h: revision 1.177
sys/arch/evbarm/viper/viper_machdep.c: revision 1.34
sys/arch/evbarm/iyonix/iyonix_machdep.c: revision 1.5
sys/arch/evbarm/npwr_fc/npwr_fc_machdep.c: revision 1.30
sys/arch/evbarm/hdl_g/hdlg_machdep.c: revision 1.35
sys/arch/arm/arm32/pmap.c: revision 1.440
sys/arch/evbarm/lubbock/lubbock_machdep.c: revision 1.45
sys/arch/evbarm/ixdp425/ixdp425_machdep.c: revision 1.47

Fix non-DIAGNOSTIC builds
 1.23 03-Aug-2023  mrg ignore "-Warray-bounds" for various low level platform code that knows
how something is setup but technically is undefined behaviour. the
most common here is "extern int end;" and then using offsets of "&end"
that are outside the bounds of this 4-byte integer.

these uses are almost certainly all OK in reality.

found by GCC 12.
 1.22 20-Apr-2023  skrll Provide a shared pmap_devmap implementation and convert all pmap_devmap
arrays to use DEVMAP_ENTRY{,_END}
 1.21 11-Oct-2021  rin alloc_pages: panic if allocating beyond KERNEL_TEXT_BASE.
 1.20 11-Oct-2021  rin Wrap multi-line macros with ``do { } while(0)''.
 1.19 11-Oct-2021  rin Fix build with DEBUG_BEFOREMMU.
 1.18 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.17 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.16 18-Apr-2020  skrll Trailing whitespace
 1.15 16-Jul-2019  skrll branches: 1.15.8;
Consistently use vaddr_t as initarm and friends return type.

Makes no difference to binaries except for aarch64 where it's required
 1.14 16-Jul-2019  skrll KNF
 1.13 28-Oct-2018  skrll Fix a commit
 1.12 06-Nov-2017  christos branches: 1.12.2; 1.12.4;
Cleanup and clarify the ELFSIZE mess:

We now have 2 variables automatically set in elf_machdep.h:

ARCH_ELFSIZE: the size for userland binaries
KERN_ELFSIZE: the size for the kernel binaries

DB_ELFSIZE has been deleted and KERN_ELFSIZE should have always the
same values DB_ELFSIZE used to have.

In sys/exec_elf.h, if ELFSIZE is not set, it is set to KERN_ELFSIZE
for the kernel and ARCH_ELFSIZE for userland. These defaults should
eliminate the need for most manual ELFSIZE setting.
 1.11 22-Dec-2016  cherry switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.
 1.10 13-Sep-2014  matt branches: 1.10.2; 1.10.4;
Use paddr_t for msgbufphys
 1.9 10-Mar-2014  skrll Avoid unused variable warning by borrowing sa1_cache_clean_addr briefly
 1.8 18-Aug-2013  matt Fix <arm/locore.h> lossage
 1.7 22-Sep-2012  matt branches: 1.7.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.6 16-Aug-2012  matt branches: 1.6.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.5 29-Jul-2012  matt Fix more -fno-common fallout.
Move more variables to common locations.
 1.4 31-Mar-2012  nonaka Add support kloader(4) for PXA2X0.
 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 hpcarm/bus.h obsolete.
 1.2 26-Jun-2010  tsutsui branches: 1.2.2;
If options RTC_OFFSET is not specified use bootinfo->timezone passed
by hpcboot.exe as well as other hpc* ports. Noticed by uwe@.
Also comment out options RTC_OFFSET=0 lines and note about this
in kernel config files. Tested on WS003SH.

XXX: dup code among pxa2x0_hpc_machdep.c and sa11x0_hpc_machdep.c
 1.1 17-Apr-2010  nonaka branches: 1.1.2; 1.1.4;
Added Sharp W-ZERO3 series support.
 1.1.4.3 03-Jul-2010  rmind sync with head
 1.1.4.2 30-May-2010  rmind sync with head
 1.1.4.1 17-Apr-2010  rmind file sa11x0_hpc_machdep.c was added on branch rmind-uvmplock on 2010-05-30 05:16:51 +0000
 1.1.2.3 17-Aug-2010  uebayasi Sync with HEAD.
 1.1.2.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.2.1 17-Apr-2010  uebayasi file sa11x0_hpc_machdep.c was added on branch uebayasi-xip on 2010-04-30 14:39:25 +0000
 1.2.2.2 11-Aug-2010  yamt sync with head.
 1.2.2.1 26-Jun-2010  yamt file sa11x0_hpc_machdep.c was added on branch yamt-nfs-mp on 2010-08-11 22:52:06 +0000
 1.3.6.1 05-Apr-2012  mrg sync to latest -current.
 1.3.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.3.2.2 30-Oct-2012  yamt sync with head
 1.3.2.1 17-Apr-2012  yamt sync with head
 1.6.2.3 03-Dec-2017  jdolecek update from HEAD
 1.6.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.7.2.2 18-May-2014  rmind sync with head
 1.7.2.1 28-Aug-2013  rmind sync with head
 1.10.4.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.10.2.1 05-Feb-2017  skrll Sync with HEAD
 1.12.4.3 21-Apr-2020  martin Sync with HEAD
 1.12.4.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.12.4.1 10-Jun-2019  christos Sync with HEAD
 1.12.2.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.15.8.1 20-Apr-2020  bouyer Sync with HEAD
 1.2 25-Mar-2002  thorpej Use the common 32-bit ARM setcpsr.S
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file setcpsr.S was added on branch thorpej_scsipi on 2001-03-12 13:28:22 +0000
 1.2 25-Mar-2002  thorpej Use the generic 32-bit ARM setstack.S
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file setstack.S was added on branch thorpej_scsipi on 2001-03-12 13:28:22 +0000
 1.18 21-Nov-2020  thorpej Fix paste-o in last.
 1.17 21-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.16 10-Nov-2019  chs branches: 1.16.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.15 02-Dec-2013  joerg branches: 1.15.30;
Don't use cpsr_all/spsr_all with mrs, it doesn't take a mask.
 1.14 28-Apr-2008  martin branches: 1.14.34; 1.14.44; 1.14.50;
Remove clause 3 and 4 from TNF licenses
 1.13 21-Dec-2006  yamt branches: 1.13.20; 1.13.44; 1.13.46; 1.13.48;
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.12 24-Dec-2005  perry branches: 1.12.20; 1.12.22;
bare asm -> __asm
 1.11 11-Dec-2005  christos merge ktrace-lwp.
 1.10 23-Oct-2005  peter Minor KNF.
 1.9 01-Jan-2005  toshii branches: 1.9.10; 1.9.12;
While processing soft interrupts, don't call splx()/lowerspl() when
unnecessary, as they call dosoftints().
 1.8 15-Jul-2003  lukem __KERNEL_RCSID()
 1.7 05-Oct-2002  chs branches: 1.7.6;
add missing protos.
 1.6 27-Nov-2001  thorpej Use <machine/intr.h> rather than <machine/irqhandler.h>
 1.5 23-Nov-2001  thorpej Use <arm/cpufunc.h>, not <machine/cpufunc.h>.
 1.4 20-Jun-2001  toshii branches: 1.4.2; 1.4.4; 1.4.10;
Fix type for softintr handlers.
 1.3 07-Jun-2001  toshii Sprinkle some volatile keywords around inline asm so that the optimizer
doesn't reorder critical section codes.
 1.2 23-May-2001  toshii Optimize softintr_dispatch by replacing SetCPSR calls by inlined asm.
Result is ~1% improvement in ping -f rate.
 1.1 22-May-2001  toshii Implement generic soft interrupt for hpcarm.
 1.4.10.3 18-Oct-2002  nathanw Catch up to -current.
 1.4.10.2 08-Jan-2002  nathanw Catch up to -current.
 1.4.10.1 20-Jun-2001  nathanw file softintr.c was added on branch nathanw_sa on 2002-01-08 00:24:53 +0000
 1.4.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.7.6.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.7.6.4 17-Jan-2005  skrll Sync with HEAD.
 1.7.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.7.6.1 03-Aug-2004  skrll Sync with HEAD
 1.9.12.1 26-Oct-2005  yamt sync with head
 1.9.10.2 30-Dec-2006  yamt sync with head.
 1.9.10.1 21-Jun-2006  yamt sync with head.
 1.12.22.3 21-Sep-2006  yamt implement splraiseipl for hpcarm, shark, and acorn32.
 1.12.22.2 21-Sep-2006  yamt revert the previous which was committed unintentionally.
 1.12.22.1 21-Sep-2006  yamt *** empty log message ***
 1.12.20.1 12-Jan-2007  ad Sync with head.
 1.13.48.1 16-May-2008  yamt sync with head.
 1.13.46.1 18-May-2008  yamt sync with head.
 1.13.44.1 02-Jun-2008  mjf Sync with HEAD.
 1.13.20.1 07-Oct-2007  rjs Remove old files.
 1.14.50.1 18-May-2014  rmind sync with head
 1.14.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.14.34.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.15.30.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.16.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.8 01-Oct-2021  rin G/C unused over a decade.
 1.7 02-Dec-2013  joerg Don't use cpsr_all/spsr_all with mrs, it doesn't take a mask.
 1.6 08-Jan-2008  matt branches: 1.6.44; 1.6.54; 1.6.60;
As of this commit, all arm32 kernel now build.
 1.5 26-Nov-2001  thorpej branches: 1.5.32; 1.5.90; 1.5.94; 1.5.100; 1.5.108;
Use <arm/arm32/psl.h>, not <machine/psl.h>.
 1.4 14-May-2001  toshii branches: 1.4.2; 1.4.8;
Abandon disabled_mask and spl_mask, and use only current_spl_level to
manage interrupt masking.

This change is necessary for straightforward implementation of coming IPL
support for cascaded intrs, and it should not impair performance.
 1.3 17-Apr-2001  toshii Fix a bug crept in the previous revision. Call dosoftints() after
reenabling interrupts.
 1.2 31-Mar-2001  toshii Protect spl changing functions from interrupts.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.3 21-Apr-2001  bouyer Sync with HEAD
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file spl.S was added on branch thorpej_scsipi on 2001-03-12 13:28:22 +0000
 1.1.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.4.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.4.8.1 14-May-2001  nathanw file spl.S was added on branch nathanw_sa on 2002-01-08 00:24:53 +0000
 1.4.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.108.1 08-Jan-2008  bouyer Sync with HEAD
 1.5.100.1 18-Feb-2008  mjf Sync with HEAD.
 1.5.94.1 09-Jan-2008  matt sync with HEAD
 1.5.90.1 07-Oct-2007  rjs Remove old files.
 1.5.32.1 21-Jan-2008  yamt sync with head
 1.6.60.1 18-May-2014  rmind sync with head
 1.6.54.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.44.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 04-Mar-2001  matt Move compat_13_machdep.c, strstr.c, copystr.S, bcopyinout.S, and
bcopy_page.S to arm/arm32 and remove port-local copies.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.19 23-Oct-2005  peter Use arm/arm32/stubs.c instead of hpcarm/hpcarm/stubs.c to reduce
duplicated code. PR/17346 from Kevin Lo. ok by ichiro@
 1.18 15-Jul-2003  lukem branches: 1.18.16; 1.18.18;
__KERNEL_RCSID()
 1.17 23-Jun-2003  he branches: 1.17.2;
Follow up the rename of _SPL_IMP to _SPL_VM.
 1.16 16-Jun-2003  thorpej Rename IPL_IMP -> IPL_VM.
 1.15 02-Apr-2003  thorpej Use PAGE_SIZE rather than NBPG.
 1.14 25-Mar-2003  chris duplicate the changes from arm/arm32/stubs.c's dumpsys to remove pmap_map
usage.
Seems this file should really be split into the hpcarm specific bits
so it shares stubs.c with the other arm32 ports.

Pointed out by H�vard
 1.13 05-Oct-2002  chs add missing protos.
 1.12 27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.11 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.10 24-Mar-2002  thorpej branches: 1.10.2;
Make this compile again.
 1.9 06-Mar-2002  tsutsui branches: 1.9.2;
Change type of dumpmag to u_int32_t since it is actually
a 32bit unsigned magic number.
As per discussion on tech-kern, and fixes port-sparc64/11949.
 1.8 27-Nov-2001  thorpej Use <machine/intr.h> rather than <machine/irqhandler.h>
 1.7 12-Aug-2001  jdolecek branches: 1.7.6;
Move _insque()/_remque() to libkern. Once remaining uses would
be converted to <sys/queue.h> macros, _insque()/_remque() would be eliminated
altogether.
 1.6 29-Jun-2001  toshii branches: 1.6.2;
Catch up long ago arm32 change: vm_offset_t -> {p,v}addr_t.
 1.5 20-Jun-2001  toshii Add IPL_SOFT* interrupt levels.

XXX These's no point in having two copies of intr masks (spl_masks and
XXX imask). This needs to be fixed.
 1.4 22-May-2001  toshii Implement generic soft interrupt for hpcarm.
 1.3 22-May-2001  toshii Nuke current_mask.
 1.2 31-Mar-2001  toshii Increase spl_masks[] size by one and set the extra element to 0.
irq_entry accesses here.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.3 21-Apr-2001  bouyer Sync with HEAD
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file stubs.c was added on branch thorpej_scsipi on 2001-03-12 13:28:22 +0000
 1.1.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.6.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.6.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.6.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.2.1 25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.7.6.5 18-Oct-2002  nathanw Catch up to -current.
 1.7.6.4 17-Sep-2002  nathanw Catch up to -current.
 1.7.6.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.7.6.2 08-Jan-2002  nathanw Catch up to -current.
 1.7.6.1 12-Aug-2001  nathanw file stubs.c was added on branch nathanw_sa on 2002-01-08 00:24:53 +0000
 1.9.2.1 17-Mar-2002  thorpej IPL_IMP -> IPL_VM
 1.10.2.1 19-May-2002  gehenna Replace the access to devsw table and the hard-coded majors with devsw API.
 1.17.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.17.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.17.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.17.2.1 03-Aug-2004  skrll Sync with HEAD
 1.18.18.1 26-Oct-2005  yamt sync with head
 1.18.16.1 21-Jun-2006  yamt sync with head.
 1.2 04-Mar-2001  matt Remove local copies of these since they are now shared and are
in arm/arm32
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3 04-Mar-2001  matt Remove local copies of these since they are now shared and are
in arm/arm32
 1.2 28-Feb-2001  bjh21 PCB convergence, part the first:
Move the pointer to the current user trapframe from struct mdproc to struct
pcb (as on arm26). Only tested by compiling kernels on arm32 and
hpcarm (dnard seems to be incomplete anyway). Someone should try running one.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3 05-Mar-2001  bjh21 branches: 1.3.8;
Move undefined.c from sys/arch/{arm32/arm32,hpcarm/hpcarm} to sys/arch/arm/arm
in preparation for making it usable on arm26 as well.
 1.2 28-Feb-2001  bjh21 branches: 1.2.2;
PCB convergence, part the first:
Move the pointer to the current user trapframe from struct mdproc to struct
pcb (as on arm26). Only tested by compiling kernels on arm32 and
hpcarm (dnard seems to be incomplete anyway). Someone should try running one.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.3.8.2 05-Mar-2001  bjh21 Move undefined.c from sys/arch/{arm32/arm32,hpcarm/hpcarm} to sys/arch/arm/arm
in preparation for making it usable on arm26 as well.
 1.3.8.1 05-Mar-2001  bjh21 file undefined.c was added on branch nathanw_sa on 2001-03-05 23:06:17 +0000
 1.8 09-Sep-2001  toshii branches: 1.8.4;
Use arm/arm32/vm_machdep.c instead of hpcarm one.
 1.7 03-Sep-2001  matt branches: 1.7.2;
Switch hpcarm to common arm32 conf.c ; (small changes to vm_machdep.c to
make it compile under ELF)
 1.6 29-Jun-2001  toshii branches: 1.6.2;
Catch up long ago arm32 change: vm_offset_t -> {p,v}addr_t.
 1.5 02-Jun-2001  chs replace vm_map{,_entry}_t with struct vm_map{,_entry} *.
 1.4 24-Apr-2001  thorpej Sprinkle pmap_update() calls after calls to:
- pmap_enter()
- pmap_remove()
- pmap_protect()
- pmap_kenter_pa()
- pmap_kremove()
as described in pmap(9).

These calls are relatively conservative. It may be possible to
optimize these a little more.
 1.3 28-Feb-2001  bjh21 branches: 1.3.2; 1.3.4;
PCB convergence, part the first:
Move the pointer to the current user trapframe from struct mdproc to struct
pcb (as on arm26). Only tested by compiling kernels on arm32 and
hpcarm (dnard seems to be incomplete anyway). Someone should try running one.
 1.2 26-Feb-2001  bjh21 This file doesn't need <machine/cpus.h>.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.3.4.1 28-Feb-2001  bouyer file vm_machdep.c was added on branch thorpej_scsipi on 2001-03-12 13:28:22 +0000
 1.3.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.6.2.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.7.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.8.4.2 09-Sep-2001  toshii Use arm/arm32/vm_machdep.c instead of hpcarm one.
 1.8.4.1 09-Sep-2001  toshii file vm_machdep.c was added on branch nathanw_sa on 2001-09-09 09:59:25 +0000
 1.2 23-Jun-2011  nonaka Remove noneed platid_match() in consinit().
 1.1 21-Jun-2011  kiyohara Split pxa2x0_hpc/wzero3.
 1.31 23-Jul-2014  alnsn Rename sljitarch.h to sljit_machdep.h.
 1.30 17-Jun-2014  alnsn Add sljit support to arm.
 1.29 02-May-2013  matt branches: 1.29.8;
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 hpcarm/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.30; 1.24.36;
Merge newlock2 to head.
 1.23 26-Jul-2006  drochner branches: 1.23.4;
don't install <machine/db_machdep.h>, this is kernel only
 1.22 11-Dec-2005  christos branches: 1.22.4; 1.22.8;
merge ktrace-lwp.
 1.21 08-May-2004  kleink branches: 1.21.12;
Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.
 1.20 17-Jan-2003  thorpej branches: 1.20.2;
Merge the nathanw_sa branch.
 1.19 26-Nov-2002  lukem Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.
 1.18 16-Sep-2002  manu Initial APM support (enough to get battery level)
 1.17 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.16 26-Nov-2001  thorpej branches: 1.16.8;
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.15 24-Nov-2001  thorpej Sanitize hpcarm includes somewhat, make them more like other ARM ports.
 1.14 24-Nov-2001  thorpej No need to install bootconfig.h
 1.13 23-Nov-2001  thorpej No longer need <machine/undefined.h>.
 1.12 23-Nov-2001  thorpej Don't need a <machine/profileio.h> on these platforms.
 1.11 23-Nov-2001  thorpej No longer need <machine/pte.h>.
 1.10 23-Nov-2001  thorpej No longer need <machine/cpus.h>
 1.9 03-Sep-2001  matt branches: 1.9.6;
Add a merged <pcb.h> for arm26/arm32.
 1.8 15-Apr-2001  kleink branches: 1.8.2;
Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.7 15-Apr-2001  kleink Add definitions of C99 specified-width integer type limits.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.6 14-Apr-2001  kleink Add definitions of C99 integer constant macros.
Tidy Makefiles up a little.
 1.5 14-Apr-2001  kleink Add definitions of C99 minimum-width and greatest-width integer types.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.4 06-Apr-2001  toshii There is no /usr/include/hpcarm/disklabel_acorn.h.
 1.3 24-Feb-2001  ichiro branches: 1.3.2; 1.3.4;
add profile.h,profileio.h
 1.2 24-Feb-2001  ichiro i forgot writing some include files in Makefile
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3.4.3 21-Apr-2001  bouyer Sync with HEAD
 1.3.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.3.4.1 24-Feb-2001  bouyer file Makefile was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.3.2.2 21-Jun-2001  nathanw Catch up to -current.
 1.3.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.8.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.8.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.8.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.2.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.9.6.6 11-Dec-2002  thorpej Sync with HEAD.
 1.9.6.5 18-Oct-2002  nathanw Catch up to -current.
 1.9.6.4 13-Aug-2002  nathanw Catch up to -current.
 1.9.6.3 08-Jan-2002  nathanw Catch up to -current.
 1.9.6.2 14-Nov-2001  thorpej ARM-specific mcontext support. From Klaus Klein <kleink@netbsd.org>.
 1.9.6.1 03-Sep-2001  thorpej file Makefile was added on branch nathanw_sa on 2001-11-14 20:53:12 +0000
 1.16.8.1 31-Aug-2002  gehenna catch up with -current.
 1.20.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.20.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.20.2.1 03-Aug-2004  skrll Sync with HEAD
 1.21.12.3 21-Jan-2008  yamt sync with head
 1.21.12.2 26-Feb-2007  yamt sync with head.
 1.21.12.1 30-Dec-2006  yamt sync with head.
 1.22.8.1 11-Aug-2006  yamt sync with head
 1.22.4.1 09-Sep-2006  rpaulo sync with head
 1.23.4.1 01-Feb-2007  ad Header file cleanup.
 1.24.36.1 20-Jan-2008  bouyer Sync with HEAD
 1.24.30.1 18-Feb-2008  mjf Sync with HEAD.
 1.24.24.1 23-Mar-2008  matt sync with HEAD
 1.24.20.1 28-Feb-2008  rjs Sync with HEAD.
 1.27.12.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 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.29.8.1 10-Aug-2014  tls Rebase.
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file ansi.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file aout_machdep.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.6 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.5 04-Mar-2006  peter branches: 1.5.68; 1.5.70; 1.5.72;
Split the Jornada 7xx drivers for the touch-panel, keyboard, lcd control
and power management into multiple files. This removes some dirty hacks
and improves the quality of the code.

- j720kbd.c - keyboard driver
* Converted to use the hpckbd(4) interface.
* Remove the old keymap file since it's no longer used.

- j720lcd.c - lcd brightness/control/power control

- j720pwr.c - power management
* Converted to use the hpcapm(4) interface.
* Fix the battery charge status. The values are non-linear so in order
to display a reasonable charge status we use a few charge points in
a table and interpolate between that.

- j720tp.c - touch-panel driver

- j720ssp.c - SSP port (on the SA-1110)

Many thanks to cube@ and uwe@ for providing useful feedback and reviewing
the changes.
 1.4 11-Dec-2005  christos branches: 1.4.4; 1.4.6;
merge ktrace-lwp.
 1.3 11-May-2004  he branches: 1.3.12;
Provide multiple include protection. Fixes build problem in kdump.
 1.2 19-Sep-2002  manu branches: 1.2.2; 1.2.4; 1.2.10;
More definitions to get apmd building (but it is not functionnal yet)
 1.1 16-Sep-2002  manu Initial APM support (enough to get battery level)
 1.2.10.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.10.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.10.1 03-Aug-2004  skrll Sync with HEAD
 1.2.4.2 18-Oct-2002  nathanw Catch up to -current.
 1.2.4.1 19-Sep-2002  nathanw file apmvar.h was added on branch nathanw_sa on 2002-10-18 02:37:02 +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 19-Sep-2002  jdolecek file apmvar.h was added on branch kqueue on 2002-10-10 18:32:52 +0000
 1.3.12.1 21-Jun-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.72.1 16-May-2008  yamt sync with head.
 1.5.70.1 18-May-2008  yamt sync with head.
 1.5.68.1 02-Jun-2008  mjf Sync with HEAD.
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file asm.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.2 26-Sep-2020  skrll G/C arm/atomic.h
 1.1 19-Oct-2002  bsh branches: 1.1.2; 1.1.72;
make atomic_{set,clear}_bit() inline for arm32 ports, and
add <machine/atomic.h> for them.
 1.1.72.1 19-Apr-2007  thorpej Convert to the new atomic ops API.
 1.1.2.2 11-Nov-2002  nathanw Catch up to -current
 1.1.2.1 19-Oct-2002  nathanw file atomic.h was added on branch nathanw_sa on 2002-11-11 21:58:39 +0000
 1.8 26-Oct-2006  bjh21 boot_file is not used by generic NetBSD/arm code, and its type varies by
MACHINE. Thus, move it out of <arm/bootconfig.h> and put it into
<machine/bootconfig.h> on those MACHINEs (cats, hpcarm, and shark) where
it's used outside the file in which it's defined.
 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 23-Oct-2005  peter - Remove __P.
- Remove var names in function declaration.
 1.4 02-Jun-2005  uwe branches: 1.4.2; 1.4.4;
Catch up with constification.
 1.3 13-Jul-2002  toshii branches: 1.3.6;
Recognize hpcboot's "b=xx" option, which specifies the root device to use.
 1.2 10-Apr-2002  thorpej branches: 1.2.2;
Eliminate all #ifdef HPCARM, and delete the option.
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.2 01-Aug-2002  nathanw Catch up to -current.
 1.1.10.1 17-Apr-2002  nathanw Catch up to -current.
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file bootconfig.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.2.2.1 16-Jul-2002  gehenna catch up with -current.
 1.3.6.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.4.1 26-Oct-2005  yamt sync with head
 1.4.2.2 30-Dec-2006  yamt sync with head.
 1.4.2.1 21-Jun-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.2 01-Feb-2002  uch bootinfo.h, config_hook.h, platid.h are moved to hpc/include
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.1.6.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file bootinfo.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file bswap.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.4 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/bus.h obsolete.
 1.3 18-Jun-2001  bjh21 branches: 1.3.8;
Move <arm/arm32/bus.h> to <arm/bus.h>, since it looks like it's going to be
necessary on arm26 as well.
 1.2 23-Feb-2001  reinoud branches: 1.2.2; 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file bus.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.2.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.8.2 18-Jun-2001  bjh21 Move <arm/arm32/bus.h> to <arm/bus.h>, since it looks like it's going to be
necessary on arm26 as well.
 1.3.8.1 18-Jun-2001  bjh21 file bus.h was added on branch nathanw_sa on 2001-06-18 21:37:35 +0000
 1.1 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark hpcarm/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 hpcarm/bus.h obsolete.
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file cdefs.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.9 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.8 09-Sep-2001  toshii branches: 1.8.4; 1.8.12;
Readd sacom to cdevsw.
 1.7 04-Sep-2001  wiz branches: 1.7.2;
Fix typos (CONS instead of CONF, and specifc instead of specific).
 1.6 03-Sep-2001  matt Add a merged <pcb.h> for arm26/arm32.
 1.5 26-Mar-2001  lukem branches: 1.5.2;
- add dev_noimpl(xxx,yyy) macro to replace "(dev_type_xxx((*))) yyy",
and use appropriately

- create more helper macros:
. cdev__xyz_init(c,n), such as cdev__ocri_init() for
/* open, close, read, ioctl */, etc.
. cdev__xRy_init(c,n), where nullop is used instead of enodev to dummy out
method `R' and the comments now read /* xxx (read) yyy */ instead
. cdev__xyz_t_init(c,n,t) - as per cdev__xyz_init, but sets d_type = t
as well

- use seltrue instead of dev_noimpl(poll,*), as (IIRC) cdevsw.d_poll should
always DTRT WRT returning a valid result. (a few devices previously
incorrectly returned ENODEV)

- use dev_noimpl(stop,enodev) instead of dev_noimpl(stop,nullop) if tty
== 0, because it doesn't matter if dev_type_stop isn't implemented in that
case, and it allows the use of the cdev__xyz_init macros. certain ports
(sparc,sparc64,x68k) used the nullop method for dev_type_stop in a few
drivers, whereas everything else uses enodev

- ensure that the comments are accurate WRT the behaviour of a given entry
 1.4 21-Mar-2001  lukem now that duplicated stuff has been moved to sys/conf.h, remove unnecessary
defs for: lpt, joy, pc
 1.3 04-Mar-2001  bjh21 branches: 1.3.2; 1.3.4;
Remove redundant cdev_decl(cpu).
 1.2 03-Mar-2001  bjh21 Remove support for /dev/cpu*. This code has never done anything useful anyway.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3.4.3 27-Mar-2001  bouyer Sync with HEAD.
 1.3.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.3.4.1 04-Mar-2001  bouyer file conf.h was added on branch thorpej_scsipi on 2001-03-12 13:28:23 +0000
 1.3.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.5.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.5.2.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.7.2.1 01-Oct-2001  fvdl Catch up with -current.
 1.8.12.1 19-May-2002  gehenna Remove port-dependent conf.h.
 1.8.4.2 17-Sep-2002  nathanw Catch up to -current.
 1.8.4.1 09-Sep-2001  nathanw file conf.h was added on branch nathanw_sa on 2002-09-17 21:14:45 +0000
 1.2 01-Feb-2002  uch bootinfo.h, config_hook.h, platid.h are moved to hpc/include
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.1.6.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file config_hook.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file cpu.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.3 24-Nov-2001  thorpej Sanitize hpcarm includes somewhat, make them more like other ARM ports.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file cpufunc.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.3 23-Nov-2001  thorpej No longer need <machine/cpus.h>
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file cpus.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.4 06-Nov-2017  christos Cleanup and clarify the ELFSIZE mess:

We now have 2 variables automatically set in elf_machdep.h:

ARCH_ELFSIZE: the size for userland binaries
KERN_ELFSIZE: the size for the kernel binaries

DB_ELFSIZE has been deleted and KERN_ELFSIZE should have always the
same values DB_ELFSIZE used to have.

In sys/exec_elf.h, if ELFSIZE is not set, it is set to KERN_ELFSIZE
for the kernel and ARCH_ELFSIZE for userland. These defaults should
eliminate the need for most manual ELFSIZE setting.
 1.3 20-Mar-2001  toshii branches: 1.3.8; 1.3.174;
hpcarm kernel is ELF.
 1.2 23-Feb-2001  reinoud branches: 1.2.2; 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.3 27-Mar-2001  bouyer Sync with HEAD.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file db_machdep.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.2.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.3.174.1 03-Dec-2017  jdolecek update from HEAD
 1.3.8.2 20-Mar-2001  toshii hpcarm kernel is ELF.
 1.3.8.1 20-Mar-2001  toshii file db_machdep.h was added on branch nathanw_sa on 2001-03-20 18:01:50 +0000
 1.10 07-May-2013  matt Make all ports use a common disklabel.h with MAXPARTITIONS set to 16.
Only RAW_PART varies between ports.
 1.9 30-Aug-2011  bouyer branches: 1.9.2; 1.9.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.8 17-Jul-2010  tsutsui Bump MAXPARTITIONS from 8 to 16 using __HAVE_OLD_DISKLABEL compat method
as i386 and hpcmips. PR port-hpcarm/18256
 1.7 23-Nov-2009  pooka branches: 1.7.2; 1.7.4;
If cpu_disklabel includes struct dkbad, define __HAVE_DISKLABEL_DKBAD.
This allows use of subr_disk_mbr on all archs. Default to it for
the rump disk component. No functional change for regular kernels.
(The other option would've been to include dkbad in disklabels
everywhere, but arguably this approach has less possible side-effects,
especially given that wedges and related magic will take over the
world any second now).
 1.6 11-Dec-2005  christos branches: 1.6.78;
merge ktrace-lwp.
 1.5 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.4 08-Oct-2003  lukem Overhaul MBR handling (part 1):

<sys/bootblock.h>:
* Added definitions for the Master Boot Record (MBR) used by
a variety of systems (primarily i386), including the format
of the BIOS Parameter Block (BPB).
This information was cribbed from a variety of sources
including <sys/disklabel_mbr.h> which this is a superset of.

As part of this, some data structure elements and #defines
were renamed to be more "namespace friendly" and consistent
with other bootblocks and MBR documentation.
Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
* Deprecated in favor of <sys/bootblock.h> (the latter is more
"host tool" friendly).

amd64 & i386:
* Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
be consistent with the naming convention of the msdosfs tools.

* Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
and it's confusing to have two functionally equivalent bootblocks,
especially given that "ufs" has multiple meanings (it could be
a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

* Rework pbr.S (the first sector of bootxx_*):
+ Ensure that BPB (bytes 11..89) and the partition table
(bytes 446..509) do not contain code.
+ Add support for booting from FAT partitions if BOOT_FROM_FAT
is defined. (Only set for bootxx_msdos).
+ Remove "dummy" partition 3; if people want to installboot(8)
these to the start of the disk they can use fdisk(8) to
create a real MBR partition table...
+ Compile with TERSE_ERROR so it fits because of the above.
Whilst this is less user friendly, I feel it's important
to have a valid partition table and BPB in the MBR/PBR.

* Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
with other platforms.

* Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
we can boot off FAT partitions.

* Crank version of /usr/mdec/boot to 3.1, and fix some of the other
entries in the version file.

installboot(8) (i386):
* Read the existing MBR of the filesystem and retain the BIOS
Parameter Block (BPB) in bytes 11..89 and the MBR partition
table in bytes 446..509. (Previously installboot(8) would
trash those two sections of the MBR.)

mbrlabel(8):
* Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
 1.3 10-May-2003  thorpej branches: 1.3.2;
Remove redundant bounds_check_with_label() prototype.
 1.2 14-Mar-2001  toshii branches: 1.2.8;
Use hpc/hpc/disksubr.c.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.3 27-Mar-2001  bouyer Sync with HEAD.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file disklabel.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.1.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.2.8.2 14-Mar-2001  toshii Use hpc/hpc/disksubr.c.
 1.2.8.1 14-Mar-2001  toshii file disklabel.h was added on branch nathanw_sa on 2001-03-14 14:47:42 +0000
 1.3.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 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.6.78.2 11-Aug-2010  yamt sync with head.
 1.6.78.1 11-Mar-2010  yamt sync with head
 1.7.4.1 05-Mar-2011  rmind sync with head
 1.7.2.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.9.12.1 23-Jun-2013  tls resync from head
 1.9.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 14-Mar-2001  toshii branches: 1.2.8;
Use hpc/hpc/disksubr.c.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.3 27-Mar-2001  bouyer Sync with HEAD.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file disklabel_acorn.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.1.2.1 09-Apr-2001  nathanw Catch up with -current.
 1.2.8.2 14-Mar-2001  toshii Use hpc/hpc/disksubr.c.
 1.2.8.1 14-Mar-2001  toshii file disklabel_acorn.h was added on branch nathanw_sa on 2001-03-14 14:47:43 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file elf_machdep.h was added on branch thorpej_scsipi on 2001-03-12 13:28:24 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file endian.h was added on branch thorpej_scsipi on 2001-03-12 13:28:25 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file endian_machdep.h was added on branch thorpej_scsipi on 2001-03-12 13:28:25 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file float.h was added on branch thorpej_scsipi on 2001-03-12 13:28:25 +0000
 1.2 11-Jan-2013  matt Remove FPA specific header.
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.166; 1.1.176;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.176.1 25-Feb-2013  tls resync with head
 1.1.166.1 23-Jan-2013  yamt sync with head
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file fp.h was added on branch thorpej_scsipi on 2001-03-12 13:28:25 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file frame.h was added on branch thorpej_scsipi on 2001-03-12 13:28:25 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file ieee.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file ieeefp.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.1 14-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
Add definitions of C99 integer constant macros.
 1.1.12.2 14-Apr-2001  kleink Add definitions of C99 integer constant macros.
 1.1.12.1 14-Apr-2001  kleink file int_const.h was added on branch nathanw_sa on 2001-04-14 22:38:38 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 14-Apr-2001  bouyer file int_const.h was added on branch thorpej_scsipi on 2001-04-21 17:53:35 +0000
 1.1 15-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.2 15-Apr-2001  kleink Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.1 15-Apr-2001  kleink file int_fmtio.h was added on branch nathanw_sa on 2001-04-15 17:13:11 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 15-Apr-2001  bouyer file int_fmtio.h was added on branch thorpej_scsipi on 2001-04-21 17:53:35 +0000
 1.1 15-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
Add definitions of C99 specified-width integer type limits.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.2 15-Apr-2001  kleink Add definitions of C99 specified-width integer type limits.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.1 15-Apr-2001  kleink file int_limits.h was added on branch nathanw_sa on 2001-04-15 15:29:07 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 15-Apr-2001  bouyer file int_limits.h was added on branch thorpej_scsipi on 2001-04-21 17:53:35 +0000
 1.1 14-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
Add definitions of C99 minimum-width and greatest-width integer types.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.2 14-Apr-2001  kleink Add definitions of C99 minimum-width and greatest-width integer types.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.1 14-Apr-2001  kleink file int_mwgwtypes.h was added on branch nathanw_sa on 2001-04-14 12:19:54 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 14-Apr-2001  bouyer file int_mwgwtypes.h was added on branch thorpej_scsipi on 2001-04-21 17:53:35 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file int_types.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.22 05-Jun-2021  christos there is no SPL_SOFT
 1.21 27-Jul-2020  skrll branches: 1.21.6; 1.21.10;
Don't remove the _LKM #ifdefs, but do s/_LKM/_MODULE/
 1.20 23-Jul-2020  skrll unidef -U_LKM
 1.19 04-Feb-2014  matt _setsoftintr is long dead. reap any leftovers from arm.
 1.18 28-Jul-2012  matt branches: 1.18.2; 1.18.4;
Remove IPL_SAFEPRI
 1.17 27-Jul-2012  matt Remove safepri and use IPL_SAFEPRI instead. This may be defined in a MD
header file (if not, a value of 0 is assmued).
 1.16 10-Jun-2012  skrll Remove unused __NEWINTR defines
 1.15 13-Nov-2010  uebayasi branches: 1.15.8;
sys/device.h is not suitable for such low-level definitions.
 1.14 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.13 17-Apr-2010  nonaka Added Sharp W-ZERO3 series support.
 1.12 27-Apr-2008  matt branches: 1.12.20; 1.12.22;
Merge kernel changes in matt-armv6 to HEAD.
 1.11 03-Dec-2007  ad branches: 1.11.14; 1.11.16; 1.11.18;
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.10 17-Oct-2007  garbled branches: 1.10.2;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.9 01-Jul-2007  toshii branches: 1.9.6; 1.9.8; 1.9.10;
Quick and dirty fix for hpcarm build failure, using hpcarm specific
softintr code for now.
 1.8 21-Dec-2006  yamt branches: 1.8.6; 1.8.8; 1.8.14;
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.7 16-Jun-2003  thorpej branches: 1.7.18; 1.7.48; 1.7.50;
Rename IPL_IMP -> IPL_VM.
 1.6 26-Nov-2001  thorpej branches: 1.6.4;
Use <arm/arm32/psl.h> rather than <machine/psl.h>.
 1.5 20-Jun-2001  toshii branches: 1.5.2; 1.5.8;
Add IPL_SOFT* interrupt levels.
Fix type for softintr handlers.
 1.4 22-May-2001  toshii Implement generic soft interrupt for hpcarm.
 1.3 15-May-2001  toshii Change _ARM32_*_H_ to _HPCARM_*_H_.
 1.2 30-Apr-2001  toshii Pull in <machine/psl.h> for spl* definitions.
(same as arm32/include/intr.h rev 1.5)
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file intr.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.5.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.5.8.1 20-Jun-2001  nathanw file intr.h was added on branch nathanw_sa on 2002-01-08 00:24:54 +0000
 1.5.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.4.1 17-Mar-2002  thorpej IPL_IMP -> IPL_VM
 1.7.50.1 23-Oct-2006  yamt add IPL_STATCLOCK, IPL_SCHED, IPL_LOCK.
 1.7.48.1 12-Jan-2007  ad Sync with head.
 1.7.18.3 07-Dec-2007  yamt sync with head
 1.7.18.2 03-Sep-2007  yamt sync with head.
 1.7.18.1 30-Dec-2006  yamt sync with head.
 1.8.14.1 03-Oct-2007  garbled Sync with HEAD
 1.8.8.1 11-Jul-2007  mjf Sync with head.
 1.8.6.2 03-Dec-2007  ad Sync with HEAD.
 1.8.6.1 15-Jul-2007  ad Sync with head.
 1.9.10.3 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.9.10.2 09-Jan-2008  matt sync with HEAD
 1.9.10.1 06-Nov-2007  matt sync with HEAD
 1.9.8.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.9.6.2 26-Dec-2007  rjs Sync with HEAD.
 1.9.6.1 06-Oct-2007  rjs Switch to new interrupt code.
 1.10.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.11.18.2 11-Aug-2010  yamt sync with head.
 1.11.18.1 16-May-2008  yamt sync with head.
 1.11.16.1 18-May-2008  yamt sync with head.
 1.11.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.12.22.3 05-Mar-2011  rmind sync with head
 1.12.22.2 03-Jul-2010  rmind sync with head
 1.12.22.1 30-May-2010  rmind sync with head
 1.12.20.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.12.20.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.15.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.15.8.1 30-Oct-2012  yamt sync with head
 1.18.4.1 18-May-2014  rmind sync with head
 1.18.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.10.1 06-Jun-2021  cjep sync with head
 1.21.6.1 17-Jun-2021  thorpej Sync w/ HEAD.
 1.3 11-Dec-2005  christos branches: 1.3.46;
merge ktrace-lwp.
 1.2 23-Oct-2005  peter Fix a typo.
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.26; 1.1.42; 1.1.44;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.44.1 26-Oct-2005  yamt sync with head
 1.1.42.1 21-Jun-2006  yamt sync with head.
 1.1.26.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file io.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.3.46.1 07-Oct-2007  rjs Remove old files.
 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 24-Nov-2001  thorpej branches: 1.1.2; 1.1.4; 1.1.36; 1.1.94; 1.1.98; 1.1.104; 1.1.112;
Sanitize hpcarm includes somewhat, make them more like other ARM ports.
 1.1.112.1 20-Jan-2008  bouyer Sync with HEAD
 1.1.104.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.98.1 23-Mar-2008  matt sync with HEAD
 1.1.94.1 28-Feb-2008  rjs Sync with HEAD.
 1.1.36.1 21-Jan-2008  yamt sync with head
 1.1.4.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.1 24-Nov-2001  thorpej file ipkdb.h was added on branch kqueue on 2002-01-10 19:43:40 +0000
 1.1.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.1.2.1 24-Nov-2001  nathanw file ipkdb.h was added on branch nathanw_sa on 2002-01-08 00:24:54 +0000
 1.9 13-Jun-2008  rafal Let hpcarm kernels boot again after the merge of the armv6 branch. Fixes
PR port-hpcarm/38591

XXX: There is still a hard hang that I've seen on both shark and hpcarm in
the process exit path; I don't know much beyond that yet.
 1.8 27-Apr-2008  matt branches: 1.8.2; 1.8.4;
Merge kernel changes in matt-armv6 to HEAD.
 1.7 11-Dec-2005  christos branches: 1.7.50; 1.7.74; 1.7.76; 1.7.78;
merge ktrace-lwp.
 1.6 23-Oct-2005  peter - Remove __P.
- Remove var names in function declaration.
 1.5 12-Apr-2002  thorpej branches: 1.5.10; 1.5.26; 1.5.28;
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.4 20-Dec-2001  thorpej * 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 30-May-2001  mrg branches: 1.3.2; 1.3.8;
use _KERNEL_OPT
 1.2 15-May-2001  toshii Change _ARM32_*_H_ to _HPCARM_*_H_.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file irqhandler.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.8.3 17-Apr-2002  nathanw Catch up to -current.
 1.3.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.3.8.1 30-May-2001  nathanw file irqhandler.h was added on branch nathanw_sa on 2002-01-08 00:24:54 +0000
 1.3.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.28.1 26-Oct-2005  yamt sync with head
 1.5.26.1 21-Jun-2006  yamt sync with head.
 1.5.10.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.7.78.2 04-May-2009  yamt sync with head.
 1.7.78.1 16-May-2008  yamt sync with head.
 1.7.76.2 17-Jun-2008  yamt sync with head.
 1.7.76.1 18-May-2008  yamt sync with head.
 1.7.74.2 29-Jun-2008  mjf Sync with HEAD.
 1.7.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.50.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.8.4.1 18-Jun-2008  simonb Sync with head.
 1.8.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 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 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file katelib.h was added on branch thorpej_scsipi on 2001-03-12 13:28:26 +0000
 1.4 06-Sep-2020  riastradh Fix some more uvm header fallout. Add include guards while here.
 1.3 15-Dec-2019  tsutsui Remove clause 3 and 4 leftovers from TNF licenses in more sources.

Confirmed by martin@ in PR/54760.
 1.2 11-Jun-2015  matt branches: 1.2.18; 1.2.22;
Move declaration of avail_start, avail_end to <machine/kloader.h>
 1.1 31-Mar-2012  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.20;
Add support kloader(4) for PXA2X0.
 1.1.20.1 22-Sep-2015  skrll Sync with HEAD
 1.1.6.1 03-Dec-2017  jdolecek update from HEAD
 1.1.4.2 17-Apr-2012  yamt sync with head
 1.1.4.1 31-Mar-2012  yamt file kloader.h was added on branch yamt-pagecache on 2012-04-17 00:06:24 +0000
 1.1.2.2 05-Apr-2012  mrg sync to latest -current.
 1.1.2.1 31-Mar-2012  mrg file kloader.h was added on branch jmcneill-usbmp on 2012-04-05 21:33:15 +0000
 1.2.22.1 18-Dec-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #570):

sys/compat/netbsd32/netbsd32_compat_50_sysv.c: revision 1.3
sys/dev/raidframe/rf_compat50.h: revision 1.6
sys/arch/emips/emips/bus_space.c: revision 1.3
sys/compat/net/if.h: revision 1.5
sys/arch/emips/stand/common/bootinfo.c: revision 1.2
sys/compat/common/sysv_msg_50.c: revision 1.5
sys/compat/common/kern_time_30.c: revision 1.8
sys/arch/emips/stand/common/bootinfo.h: revision 1.2
sys/arch/ia64/include/bus.h: revision 1.4
sys/arch/ia64/ia64/bus_space.c: revision 1.2
sys/compat/common/sysv_shm_50.c: revision 1.5
sys/dev/ic/adw.h: revision 1.15
sys/compat/common/uipc_syscalls_50.c: revision 1.10
sys/arch/emips/ebus/flash_ebus.c: revision 1.22
sys/dev/ic/adv.h: revision 1.15
sys/dev/ic/adwmcode.c: revision 1.18
sys/dev/ic/advlib.c: revision 1.29
sys/arch/hpcarm/include/kloader.h: revision 1.3
sys/dev/usb/uberry.c: revision 1.16
sys/compat/common/sysv_sem_50.c: revision 1.5
sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.43
sys/dev/ic/advlib.h: revision 1.21
sys/dev/ic/adv.c: revision 1.50
sys/compat/netinet6/in6_var.h: revision 1.5
sys/arch/hpc/stand/hpcboot/arm/arm_sa1100_asm.asm: revision 1.2
sys/arch/emips/include/loadfile_machdep.h: revision 1.3
sys/arch/emips/stand/common/prom_iface.c: revision 1.7
sys/dev/ic/adw.c: revision 1.56
sys/dev/ic/adwmcode.h: revision 1.12
sys/dev/ic/advmcode.c: revision 1.10
sys/arch/emips/ebus/ace_ebus.c: revision 1.22
sys/compat/netbsd32/netbsd32_compat_60.c: revision 1.5
sys/dev/raidframe/rf_compat50.c: revision 1.13
sys/arch/x68k/dev/intiovar.h: revision 1.15
sys/dev/usb/uipad.c: revision 1.8
sys/arch/zaurus/include/kloader.h: revision 1.3
sys/arch/emips/stand/common/bootxx.c: revision 1.2
sys/dev/ic/adwlib.h: revision 1.23
sys/dev/ic/adwlib.c: revision 1.44
sys/compat/netbsd32/netbsd32_compat_16.c: revision 1.3
sys/arch/amigappc/include/intr.h: revision 1.27
sys/arch/x68k/dev/mfp.c: revision 1.27
sys/arch/arm/at91/at91dbgu.c: revision 1.17
sys/dev/ic/advmcode.h: revision 1.7
sys/compat/ultrix/ultrix_exec.h: revision 1.7
sys/compat/common/vfs_syscalls_50.c: revision 1.24
sys/arch/mips/cavium/octeon_dma.c: revision 1.3
sys/arch/hpc/stand/hpcboot/arm/arm_pxa2x0_asm.asm: revision 1.2

Remove clause 3 and 4 from TNF licenses.
Ok'ed by martin@ in PR/54760.

Remove clause 3 and 4 leftovers from TNF licenses in more sources.
Confirmed by martin@ in PR/54760.
 1.2.18.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file limits.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file lock.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +0000
 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:40 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file math.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +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.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:06:37 +0000
 1.1 04-Aug-2014  martin branches: 1.1.2; 1.1.6;
Add missing netbsd32_machdep.h file
 1.1.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.1 04-Aug-2014  tls file netbsd32_machdep.h was added on branch tls-maxphys on 2014-08-20 00:03:03 +0000
 1.1.2.2 10-Aug-2014  tls Rebase.
 1.1.2.1 04-Aug-2014  tls file netbsd32_machdep.h was added on branch tls-earlyentropy on 2014-08-10 06:53:58 +0000
 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 04-Mar-2001  matt branches: 1.4.4; 1.4.6; 1.4.10;
Only define MACHINE & MACHINE_ARCH in port-dependent param.h.
Everything else (since it's common) is from <arm/arm32/param.h>
 1.3 26-Feb-2001  reinoud Putting param.h back into hpcarm's include
 1.2 23-Feb-2001  reinoud Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.4.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.4.6.1 16-Mar-2002  jdolecek Catch up with -current.
 1.4.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.4.4.1 04-Mar-2001  bouyer file param.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +0000
 1.3 03-Sep-2001  matt branches: 1.3.6;
Add a merged <pcb.h> for arm26/arm32.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.6.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file pcb.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +0000
 1.3.6.2 03-Sep-2001  matt Add a merged <pcb.h> for arm26/arm32.
 1.3.6.1 03-Sep-2001  matt file pcb.h was added on branch nathanw_sa on 2001-09-03 19:20:30 +0000
 1.2 01-Feb-2002  uch bootinfo.h, config_hook.h, platid.h are moved to hpc/include
 1.1 23-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.1.6.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file platid.h was added on branch thorpej_scsipi on 2001-03-12 13:28:27 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file platid_generated.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file platid_mask.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +0000
 1.3 23-Nov-2001  thorpej Extra whitespace removal.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 08-Jan-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file pmap.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +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.202; 1.1.204;
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.204.1 10-Jun-2019  christos Sync with HEAD
 1.1.202.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:35:28 +0000
 1.1.4.2 31-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-31 13:44: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 02:18:13 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file proc.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +0000
 1.1 24-Feb-2001  ichiro branches: 1.1.4;
add profile.h,profileio.h
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 24-Feb-2001  bouyer file profile.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +0000
 1.2 23-Nov-2001  thorpej Don't need a <machine/profileio.h> on these platforms.
 1.1 24-Feb-2001  ichiro branches: 1.1.4; 1.1.6; 1.1.10;
add profile.h,profileio.h
 1.1.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.1.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 24-Feb-2001  bouyer file profileio.h was added on branch thorpej_scsipi on 2001-03-12 13:28:28 +0000
 1.3 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.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file psl.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +0000
 1.3 23-Nov-2001  thorpej No longer need <machine/pte.h>.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file pte.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file ptrace.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file reg.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +0000
 1.2 23-Feb-2001  reinoud branches: 1.2.4;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file rtc.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +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:06:37 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file setjmp.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file signal.h was added on branch thorpej_scsipi on 2001-03-12 13:28:29 +0000
 1.1 23-Jul-2014  alnsn branches: 1.1.2; 1.1.6;
Rename sljitarch.h to sljit_machdep.h.
 1.1.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.1 23-Jul-2014  tls file sljit_machdep.h was added on branch tls-maxphys on 2014-08-20 00:03:03 +0000
 1.1.2.2 10-Aug-2014  tls Rebase.
 1.1.2.1 23-Jul-2014  tls file sljit_machdep.h was added on branch tls-earlyentropy on 2014-08-10 06:53:58 +0000
 1.2 23-Jul-2014  alnsn Rename sljitarch.h to sljit_machdep.h.
 1.1 17-Jun-2014  alnsn Add sljit support to arm.
 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 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file stdarg.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +0000
 1.3 14-Jul-2001  matt branches: 1.3.6;
Make <sysarch.h> valid for all arm platforms. Adjust/remove port-specific
includes as required.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.6.1 03-Aug-2001  lukem update to -current
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file sysarch.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +0000
 1.3.6.2 14-Jul-2001  matt Make <sysarch.h> valid for all arm platforms. Adjust/remove port-specific
includes as required.
 1.3.6.1 14-Jul-2001  matt file sysarch.h was added on branch nathanw_sa on 2001-07-14 00:23:12 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file trap.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +0000
 1.16 26-Jan-2017  christos provide __HAVE_COMPAT_NETBSD32 and fix multiple include protection consistently.
 1.15 07-May-2013  matt branches: 1.15.12; 1.15.16; 1.15.20;
Make all ports use a common disklabel.h with MAXPARTITIONS set to 16.
Only RAW_PART varies between ports.
 1.14 17-Jul-2010  tsutsui branches: 1.14.8; 1.14.18;
Bump MAXPARTITIONS from 8 to 16 using __HAVE_OLD_DISKLABEL compat method
as i386 and hpcmips. PR port-hpcarm/18256
 1.13 20-Jan-2008  joerg branches: 1.13.10; 1.13.30; 1.13.32;
Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
 1.12 17-Oct-2007  garbled branches: 1.12.2; 1.12.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.11 14-Jul-2007  ad branches: 1.11.6; 1.11.10;
Generic soft interrupts are mandatory.
 1.10 23-Oct-2006  peter branches: 1.10.8; 1.10.16;
Enable MI todr(9) and timecounter on hpcarm.
 1.9 03-Sep-2006  bjh21 branches: 1.9.2; 1.9.4;
Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere.
 1.8 11-Dec-2005  christos branches: 1.8.4; 1.8.8;
merge ktrace-lwp.
 1.7 06-Aug-2003  bsh branches: 1.7.16;
add __GENERIC_SOFT_INTERRUPTS_ALL_LEVELS to machine/types.h for
following ports:

acorn26, amiga, hpcarm, sparc, sparc64

This was proposed by Martin Husemann at teck-kern@ in May to properly
test whether softintr can be established for all IPL, or only for
IPL_SOFT*. OKed by acorn26, hpcarm and sparc port masters.
 1.6 28-Feb-2002  simonb branches: 1.6.16;
Use "#define<tab>".
 1.5 22-Nov-2001  thorpej 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.4 20-Jun-2001  toshii branches: 1.4.2; 1.4.8;
Define __HAVE_GENERIC_SOFT_INTERRUPTS, and nuke traditional softserial and
softclock.
 1.3 23-Feb-2001  bjh21 branches: 1.3.4;
__HAVE_NWSCONS and __HAVE_DEVICE_REGISTER are MACHINE-dependent.
 1.2 23-Feb-2001  reinoud Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.3.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.3.4.1 23-Feb-2001  bouyer file types.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +0000
 1.4.8.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.4.8.2 08-Jan-2002  nathanw Catch up to -current.
 1.4.8.1 20-Jun-2001  nathanw file types.h was added on branch nathanw_sa on 2002-01-08 00:24:55 +0000
 1.4.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.4.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.6.16.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.16.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.16.1 03-Aug-2004  skrll Sync with HEAD
 1.7.16.3 21-Jan-2008  yamt sync with head
 1.7.16.2 03-Sep-2007  yamt sync with head.
 1.7.16.1 30-Dec-2006  yamt sync with head.
 1.8.8.1 14-Sep-2006  yamt sync with head.
 1.8.4.1 09-Sep-2006  rpaulo sync with head
 1.9.4.1 10-Dec-2006  yamt sync with head.
 1.9.2.1 18-Nov-2006  ad Sync with head.
 1.10.16.1 03-Oct-2007  garbled Sync with HEAD
 1.10.8.1 15-Jul-2007  ad Sync with head.
 1.11.10.2 23-Mar-2008  matt sync with HEAD
 1.11.10.1 06-Nov-2007  matt sync with HEAD
 1.11.6.1 28-Feb-2008  rjs Sync with HEAD.
 1.12.8.1 23-Jan-2008  bouyer Sync with HEAD.
 1.12.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.13.32.1 05-Mar-2011  rmind sync with head
 1.13.30.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.13.10.1 11-Aug-2010  yamt sync with head.
 1.14.18.2 03-Dec-2017  jdolecek update from HEAD
 1.14.18.1 23-Jun-2013  tls resync from head
 1.14.8.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.15.20.1 21-Apr-2017  bouyer Sync with HEAD
 1.15.16.1 20-Mar-2017  pgoyette Sync with HEAD
 1.15.12.1 05-Feb-2017  skrll Sync with HEAD
 1.3 23-Nov-2001  thorpej No longer need <machine/undefined.h>.
 1.2 23-Feb-2001  reinoud branches: 1.2.4; 1.2.6; 1.2.10;
Big patch for merging common include files of the new hpcarm tree and the old arm32
tree into the new arm substree. All moved files are relinked with a stub that included
the file from the new location; this might be done better later.
 1.1 23-Feb-2001  ichiro hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.2.10.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.2.4.1 23-Feb-2001  bouyer file undefined.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +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 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file varargs.h was added on branch thorpej_scsipi on 2001-03-12 13:28:30 +0000
 1.33 27-Mar-2019  christos - expose vmparams to userland on arm, like other archs do.
- remove unneeded includes
 1.32 02-Nov-2017  skrll branches: 1.32.4;
ISA exists on more that just shark. Fix a comment about this.
 1.31 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.30 17-Feb-2012  christos branches: 1.30.2; 1.30.16;
expose more for kmemuser
 1.29 06-Nov-2010  uebayasi branches: 1.29.8; 1.29.12;
Remove incomplete, never worked dynamic run-time memory registration
(uvm_page_physload(9)). This functionality will be re-added later.
 1.28 25-Oct-2007  yamt branches: 1.28.40; 1.28.42;
defparam PAGER_MAP_SIZE.
 1.27 11-Dec-2005  christos branches: 1.27.30; 1.27.46; 1.27.48; 1.27.50; 1.27.54;
merge ktrace-lwp.
 1.26 07-Aug-2003  agc branches: 1.26.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.25 22-May-2003  thorpej branches: 1.25.2;
Move KERNEL_VM_SIZE into the C files where its used.
 1.24 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.23 21-May-2003  thorpej Move KERNEL_VM_BASE inside where it is used (it won't be there for long).
 1.22 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.21 03-May-2003  thorpej Remove old pmap support for platforms which have fully switched over.
 1.20 28-Apr-2003  thorpej Don't define APTE_BASE if ARM32_PMAP_NEW is defined; the new pmap
doesn't use it.
 1.19 02-Apr-2003  thorpej Use PAGE_SIZE rather than NBPG.
 1.18 14-Sep-2002  thorpej Back out previous; it breaks binary compatibility between platforms
in the same MACHINE_ARCH.
 1.17 14-Sep-2002  mycroft Move some #defines out of _KERNEL.
 1.16 23-Mar-2002  thorpej * Change all uses of KERNEL_SPACE_START to KERNEL_BASE.
* Delete now unused KERNEL_SPACE_START.
 1.15 23-Mar-2002  thorpej * Fix the definition of KERNEL_BASE.
* Define KERNEL_TEXT_BASE, APTE_BASE, and KERNEL_VM_BASE in terms of
KERNEL_BASE.
 1.14 23-Mar-2002  thorpej Slignt cleanup.
 1.13 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.12 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.11 23-Feb-2002  toshii Make KERNEL_VM_SIZE a little larger so that ubc_init doesn't fail from
ENOMEM.
 1.10 23-Nov-2001  thorpej 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.9 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.8 15-Nov-2001  soren MAXSLP is defined to be a machine-independent scheduling parameter,
so move it into sys/param.h.
 1.7 11-Nov-2001  thorpej branches: 1.7.2;
Pull in common 32-bit ARM VM parameters.
 1.6 11-Aug-2001  chris branches: 1.6.4;
Checking a whole host of pmap changes:
Improved locking (not that we actually use it on a uniprocessor, but one day :)
Removed unneeded splvm's
tweaked pmap_clean_page code to only flush the cache if the page is mapped in the current pmap (based on diff from richard E)
Adopted pv entry allocation mechanism from i386.
Laid framework for returning ptp's when we've finished with them rather than holding onto them till the process exits.
ptp's are now allocated with a uvm object for the pmap, means that we can walk a list to free them off in pmap_release, until they get freed off by pmap_remove.

Also implemented a page zeroing function when the processor is idling. Note that hpcarm may wish to disable this.

I believe this code to be stable, if anyone has any problems please shout up.
 1.5 02-Aug-2001  toshii Change the start address to load the kernel. We have 768k more free
memory now.
 1.4 15-May-2001  toshii branches: 1.4.2;
Change _ARM32_*_H_ to _HPCARM_*_H_.
 1.3 01-May-2001  thorpej Per discussion w/ chuck and chuck, restructure the md page stuff
to use a structure called "vm_page_md", and use __HAVE_VM_PAGE_MD
and __HAVE_PMAP_PHYSSEG.
 1.2 29-Apr-2001  thorpej Add a VM_MDPAGE_MEMBERS macro that defines pmap-specific data for
each vm_page structure. Add a VM_MDPAGE_INIT() macro to init this
data when pages are initialized by UVM. These macros are mandatory,
but ports may #define them to nothing if they are not needed/used.

This deprecates struct pmap_physseg. As a transitional measure,
allow a port to #define PMAP_PHYSSEG so that it can continue to
use it until its pmap is converted to use VM_MDPAGE_MEMBERS.

Use all this stuff to eliminate a lot of extra work in the Alpha
pmap module (it's smaller and faster now). Changes to other pmap
modules will follow.
 1.1 23-Feb-2001  ichiro branches: 1.1.2; 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file vmparam.h was added on branch thorpej_scsipi on 2001-03-12 13:28:31 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.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.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 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.2.2 25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.4.2.1 03-Aug-2001  lukem update to -current
 1.6.4.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.7.2.5 17-Apr-2002  nathanw Catch up to -current.
 1.7.2.4 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.7.2.3 28-Feb-2002  nathanw Catch up to -current.
 1.7.2.2 08-Jan-2002  nathanw Catch up to -current.
 1.7.2.1 11-Nov-2001  nathanw file vmparam.h was added on branch nathanw_sa on 2002-01-08 00:24:55 +0000
 1.25.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.25.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.25.2.1 03-Aug-2004  skrll Sync with HEAD
 1.26.16.1 27-Oct-2007  yamt sync with head.
 1.27.54.1 13-Nov-2007  bouyer Sync with HEAD
 1.27.50.1 06-Nov-2007  matt sync with HEAD
 1.27.48.1 28-Oct-2007  joerg Sync with HEAD.
 1.27.46.1 01-Nov-2007  rjs Sync with HEAD.
 1.27.30.1 03-Dec-2007  ad Sync with HEAD.
 1.28.42.1 05-Mar-2011  rmind sync with head
 1.28.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.29.12.1 18-Feb-2012  mrg merge to -current.
 1.29.8.1 17-Apr-2012  yamt sync with head
 1.30.16.1 06-Apr-2015  skrll Sync with HEAD
 1.30.2.1 03-Dec-2017  jdolecek update from HEAD
 1.32.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:35:04 +0000
 1.1 23-Feb-2001  ichiro branches: 1.1.4;
hpcarm:
kernel for StrongARM-based WinCE PDA machine.
 1.1.4.2 12-Mar-2001  bouyer Sync with HEAD.
 1.1.4.1 23-Feb-2001  bouyer file README was added on branch thorpej_scsipi on 2001-03-12 13:28:34 +0000

RSS XML Feed