Home | History | Annotate | only in /src/sys/arch/mmeye
History log of /src/sys/arch/mmeye
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 13-Sep-1999  itojun branches: 1.1.30;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.30.1 07-Jan-2003  thorpej Sync with HEAD.
 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 13-Sep-1999  itojun branches: 1.1.30;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.30.1 07-Jan-2003  thorpej Sync with HEAD.
 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:12:10 +0000
 1.133 29-Jan-2024  christos PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.
 1.132 12-Feb-2023  abs Add optoion GENERIC.local include to the end of ~all GENERIC configs

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

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

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

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

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

It's only enabled if the kernel enabled bridge AND tap.
Otherwise it's commented out.
 1.128 01-Aug-2020  maxv Remove references to BRIDGE_IPF, it is now compiled in by default.
 1.127 19-Jan-2020  thorpej Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.126 26-Apr-2019  sevan branches: 1.126.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.125 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.124 14-Sep-2017  mrg branches: 1.124.2; 1.124.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.123 13-Sep-2017  sevan Remove support for VERIFIED_EXEC_FP_RMD160, VERIFIED_EXEC_FP_SHA1, and VERIFIED_EXEC_FP_MD5 options.
These algorithms are either broken or on their way to being broken.

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

ok riastradh
 1.122 29-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 3.
 1.121 12-Aug-2015  maxv Remove KMEMSTATS.
 1.120 16-Nov-2014  manu branches: 1.120.2;
Remove unused extended attributes kernel options

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

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

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

There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
 1.117 16-Aug-2014  apb Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
 1.116 30-Jun-2013  rmind branches: 1.116.6;
G/C PFIL_HOOKS from the kernel configs.
 1.115 05-Jun-2013  christos branches: 1.115.2;
remove obsolete networking options
 1.114 27-Apr-2013  christos the bogus number police
 1.113 27-Apr-2013  christos remove confusing numeric locators where they are unused.
 1.112 02-Mar-2013  christos Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it.
 1.111 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.110 17-Oct-2012  apb Add "options COMPAT_60" to all kernel configuration files
that already had "options COMPAT_50".
 1.109 10-Mar-2012  joerg branches: 1.109.2;
P1003_1B_SEMAPHORE is no longer optional.
 1.108 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.107 22-Nov-2011  tls branches: 1.107.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.106 30-Jun-2011  wiz branches: 1.106.2;
dependant -> dependent
 1.105 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.104 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.103 23-Nov-2010  hannken branches: 1.103.2; 1.103.4;
Remove unused count from pseudo-device md.
 1.102 08-May-2010  mrg enable IPFILTER_COMPAT in all kernels that have ipfilter already.
canonicalise several of the ipf option segments in various files
(this mostly means adding commented out IPFILTER_DEFAULT_BLOCK,
or adding commented or uncommented IPFILTER_LOG or IPFILTER_LOOKUP
option statements.)

i built about 20 of these kernels to check, but not all of them.
 1.101 29-Apr-2010  chs enable TMPFS in all GENERICs that have MFS enabled.
 1.100 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.99 05-Dec-2009  pooka branches: 1.99.2; 1.99.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.98 24-Jan-2009  mrg add COMPAT_50 to all the configs with COMPAT_40.
 1.97 24-Nov-2008  ad Remove softdep, pass 1. We are focused on improving journalling.

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

Proposed on tech-kern@.
 1.95 10-Aug-2008  tls branches: 1.95.2;
Add accept filters to GENERIC kernels where they exist.
 1.94 31-Jul-2008  simonb Add "options WAPBL" to standard GENERIC/INSTALL type configs.
 1.93 30-May-2008  tsutsui branches: 1.93.4;
Add options COMPAT_40 to files which have options COMPAT_30.
 1.92 02-Feb-2008  uwe branches: 1.92.6; 1.92.8; 1.92.10; 1.92.12;
Use std.sh3eb and g/c local duplicates.
 1.91 31-Dec-2007  ad Remove systrace. Ok core@.
 1.90 04-Nov-2007  xtraeme branches: 1.90.2; 1.90.8;
Remove System V semaphores and share memory options to set the limits:
SEMMNI, SEMMNS, SEMUME and SHMMAXPGS.

They can be tweaked via sysctl now. Ports that were setting values on
them weren't touched, I only removed the ones that were commented out.
 1.89 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.88 04-Jun-2007  martin branches: 1.88.8; 1.88.10; 1.88.14;
Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
 1.87 11-Nov-2006  jmmv branches: 1.87.2; 1.87.8; 1.87.10; 1.87.16; 1.87.18;
Remove tmpfs's experimental status. OK'ed by core@.
 1.86 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.85 22-Sep-2006  uwe Switch the rest of sh3 ports to todr(9)
Split code to handle on-chip rtc into a separate driver
Eliminate all todr code from clock.c
Move __HAVE_GENERIC_TODR to sh3/include/types.h

Somehow I managed to forget to commit mmeye changes.
Pointed out by he@
 1.84 26-Aug-2006  christos branches: 1.84.2; 1.84.4;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.83 26-Aug-2006  tsutsui Remove obsolete #options VERIFIED_EXEC, found by grep(1).
 1.82 12-Aug-2006  christos Disable SYSTRACE by default on all kernels (discussed with core)
 1.81 28-Jun-2006  liamjfoy branches: 1.81.2;
Add CARP to GENERIC kernel configs. CARP is not enabled by default.

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

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
 1.79 05-Feb-2006  cube branches: 1.79.2; 1.79.4; 1.79.6;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.78 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.77 02-Feb-2006  reinoud branches: 1.77.2;
Add commented out UDF file-system entry in all GENERIC configurations.
 1.76 09-Dec-2005  elad branches: 1.76.2; 1.76.4;
Add (commented out) Veriexec options and pseudo-device to GENERIC kernels,
and remove the i386 GENERIC_VERIEXEC config.
 1.75 07-Dec-2005  tsutsui Adjust comments for options FFS_NO_SNAPSHOT.

XXX: This option should be mentioned in options(4).
 1.74 10-Sep-2005  jmmv Initial addition of tmpfs, an efficient memory file-system. This project
was developed as part of Google's Summer of Code 2005 program. This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.

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

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

OK'ed by my project mentor, William Studenmund (wrstuden@).
 1.73 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.72 19-Aug-2005  christos 64 bit inode changes.
 1.71 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.70 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.69 17-Jul-2005  hubertf Add support for reading cloop2 compressed filesystem image,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
 1.68 07-Jul-2005  tron Add (commented out) IPSEC_NAT_T option.
 1.67 25-Jun-2005  rpaulo branches: 1.67.2;
Add file-system PTYFS (commented out) so that people know its existence.

Ok'ed by Christos Zoulas and Hubert Feyrer.
 1.66 25-Feb-2005  simonb branches: 1.66.2;
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.65 18-Feb-2005  dsl Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.64 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.63 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.62 28-Jan-2005  rumble Sprinkle options UFS_DIRHASH on GENERIC kernels. It's presently
commented out and labeled experimental pending further review and
testing.
 1.61 17-Jan-2005  cube branches: 1.61.2;
Add tap(4) support to a random^Wcarefully chosen set of kernel configs.
All those kernels have a line for both tun and bridge, and if either is
commented out, tap is commented out also. With the exception of i386's
GENERIC_TINY.

XXX: we _need_ some way of making this more simple.
 1.60 10-Nov-2004  christos branches: 1.60.4;
Add COMPAT_BSDPTY to the rest of the config files.
 1.59 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.58 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.57 28-Jun-2004  bouyer Add options P1003_1B_SEMAPHORE
to all GENERIC-like kernel config files where SYSV* options were already
present (commented out if the SYSV* options are commented out).
Fix lib/25897 and lib/25898.
 1.56 26-Jun-2004  abs Add (commented out) ALTQ options to all GENERIC-like files
 1.55 22-Jun-2004  itojun have pf and pflog pseudo-device (commented out).
reviewed by matt, perry, christos
 1.54 18-Jun-2004  christos ptm is now mandatory, depends on pty, and can be disabled with -DNO_DEV_PTM
 1.53 16-Jun-2004  christos Add pseudo-device ptm on all the generic flavored kernels.
 1.52 18-Oct-2003  lukem branches: 1.52.2;
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
 1.51 08-Oct-2003  bouyer Add atabus.
 1.50 26-Apr-2003  ragge branches: 1.50.2;
Add pseudo-device ksyms.
 1.49 10-Apr-2003  christos Bye Bye UCONSOLE
 1.48 27-Feb-2003  perseant Make BRIDGE_IPF an option, and document it. Add it (commented) to GENERIC.
Let brconfig tell whether the bridge is using the ipfilter hook, or not.
 1.47 14-Oct-2002  elric Added commented out cgd(4)s to GENERIC configs.
 1.46 06-Oct-2002  provos add SYSTRACE; approved perry.
 1.45 25-Sep-2002  martti Add one space between "#option" and "<tab>IPFILTER_DEFAULT_BLOCK"
 1.44 20-Sep-2002  martti Added (commented out) IPFILTER_DEFAULT_BLOCK.
 1.43 18-Sep-2002  lukem enable USERCONF by default; it's small and extremely useful to have available.
 1.42 22-Jul-2002  tsutsui Add options BSDDISKLABEL_EI and options COMPAT_MMEYE_OLDLABEL.
 1.41 08-Jul-2002  jdolecek g/c COMPAT_13 - there wasn't any 1.3 release of mmeye. According
to removal log of sys/arch/sh3/sh3/compat_13_machdep.c, COMPAT_13 was trace
of i386 port.
 1.40 17-Jun-2002  lukem branches: 1.40.2;
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.39 25-Apr-2002  atatat branches: 1.39.2; 1.39.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.38 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.37 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.36 24-Mar-2002  uch adapted to new interrupt code and shb changes.
 1.35 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.34 04-Mar-2002  sommerfeld The "gif*" tunnelling interface does everything ipip does.
Move usage example from ipip.4 to gif.4
Excise ipip and stitch up the scars.
 1.33 17-Feb-2002  uch To determine CPU architecture and product, add cpu_arch and cpu_prduct variables.
these are initialized by sh_cpu_init()@sh3/sh3_machdep.c
(see sh3/include/cputypes.h for detail.)
add "options SH3" for SH3 kernel config file.
 1.32 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.31 19-Jan-2002  oster Add new RF_* options for RAIDframe bits that are no longer built by default.

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

Also: bump the number of 'raid' devices from 4 to 8, since 4 seems to
be insufficient in practise.
 1.30 28-Dec-2001  martin Add PPPoE to all generic kernels that should be able to use it.
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
 1.29 14-Dec-2001  gmcgarry Add a blurb to the top of all GENERIC files. This serves three purposes:
- to clarify some terminology
- to clarify the intention of the GENERIC file
- to cross-reference some useful man pages
 1.28 23-Nov-2001  atatat The bridge(4) pseudo-device no longer requires the port to
__HAVE_GENERIC_SOFT_INTERRUPTS, so add it back to all GENERIC configs.
 1.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 01-Sep-2001  atatat Comment out bridge pseudo devices from ports that don't
__HAVE_GENERIC_SOFT_INTERRUPTS. bridge(4) doesn't compile there.
 1.25 01-Sep-2001  atatat Add bridge pseudo devices to GENERIC configs
 1.24 08-Jul-2001  abs branches: 1.24.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.23 30-Jun-2001  darcy Add System V semaphore resource limits to each GENERIC file that has an
option for System V semaphores. It appears that there are no overrides
in the code and each file has the following added.

options SYSVSEM # System V semaphores
+#options SEMMNI=10 # number of semaphore identifiers
+#options SEMMNS=60 # number of semaphores in system
+#options SEMUME=10 # max number of undo entries per process
+#options SEMMNU=30 # number of undo structures in system
options SYSVSHM # System V shared memory

If anyone thinks that this is incorrect for any of these files, please
correct it.

Note - the i386 port was not forgotten. It was done separately.
 1.22 03-Jan-2001  itojun wdog* does not compile due to the lack of WDOG_IRQ.
 1.21 19-Dec-2000  bouyer Add pseudo-device vlan
 1.20 17-Oct-2000  msaitoh fix shpcic* iomem size from 0x4000000 to 0x1000000
 1.19 24-Sep-2000  jdolecek don't specify number of ptys if >= 16 (current default initial number)
pty comments: normalize and g/c what is no longer relevant
 1.18 13-Aug-2000  itojun move "options PULLDOWN_TEST" into sys/sys/mbuf.h (in #ifdef _KERNEL),
as it is no wthe default setting for everyone.

the reason we still use the name "PULLDOWN_TEST" while it is now default:
kame code sharing.
 1.17 27-Jul-2000  mason Moving to a default of 64 PTYs.
 1.16 30-Jun-2000  itojun add PULLDOWN_TEST for all the platforms.
XXX should be moved to somewhere else when stabilized
 1.15 22-Jun-2000  fvdl Remove prefix construction for softdeps. Add SOFTDEP option to GENERIC.
 1.14 14-Jun-2000  veego branches: 1.14.2;
Remove the obsolete config fragments for kernel crypto, because the IPsec
crypto code is now in the kernel source tree.
 1.13 19-Apr-2000  itojun branches: 1.13.2;
add stf pseudo interface (commented out due to possible security risks)
 1.12 22-Mar-2000  cgd add commented out option PCI_CONFIG_DUMP whever there's a PCIVERBOSE.
 1.11 29-Feb-2000  simonb Do the "<space><tab>" thing with the RAID_AUTOCONFIG option.
 1.10 26-Feb-2000  oster Defopt 'RAID_AUTOCONFIG'. Adding 'options RAID_AUTOCONFIG' turns on
the component auto-detection and auto-configuration of RAID sets.
Also, add "#options RAID_AUTOCONFIG" to the GENERIC config files.
 1.9 24-Feb-2000  msaitoh watchdog timer
 1.8 23-Feb-2000  msaitoh remove PMAP_NEW
 1.7 23-Jan-2000  hubertf Add commented out "ident"-command
 1.6 20-Jan-2000  wrstuden Add overlay to kernel configs.
 1.5 21-Nov-1999  itojun bring in content of GENERIC.v6 into GENERIC.
remove GENERIC.v6 file (as it is part of GENERIC now).

"faith" interface is commented out by default as it is not really for
general use.
IPsec items are commented out as well, though we can enable "options IPSEC"
without export-related issue ("options IPSEC" will enable authentication
portion only). We may need to think about it again.

if you have problem compiling with INET6 on archs I do not have access to,
please contact me.

XXX what to do with arch/arm32/SHARK{,.v6}?
 1.4 15-Nov-1999  fvdl Add commented out option SOFTDEP to all GENERIC kernels.
 1.3 14-Sep-1999  tsubai branches: 1.3.2; 1.3.8;
Sync with -current.
XXX root on nfs don't work, though root on wd0 works well.
 1.2 13-Sep-1999  msaitoh remove mainbus pseudo floppy drive
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.3.8.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.8.1 21-Dec-1999  wrstuden Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".
 1.3.2.2 05-Jan-2001  bouyer Sync with HEAD
 1.3.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.13.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.14.2.4 01-May-2001  he Pull up revision 1.21 (via patch, requested by he):
Add pseudo-device vlan.
Make sure "rnd is EXPERIMENTAL" comment is removed.
 1.14.2.3 05-Nov-2000  tv Pullup 1.20 [msaitoh]:
fix shpcic* iomem size from 0x4000000 to 0x1000000
 1.14.2.2 11-Aug-2000  mason Move to default of 64 PTYs in GENERIC kernel config.
Requested by mason, approved by jhawk.
 1.14.2.1 23-Jun-2000  fvdl As on the trunk, update these for the move of ffs_softdep.c into the
kernel source itself. Remove prefix construction, and add the SOFTDEP
option to GENERIC kernels.
 1.24.2.8 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.24.2.7 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.24.2.6 08-Jul-2002  jdolecek sync kqueue branch with -current - mmeye now compiles for real
 1.24.2.5 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.24.2.4 16-Mar-2002  jdolecek Catch up with -current.
 1.24.2.3 11-Feb-2002  jdolecek Sync w/ -current.
 1.24.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.24.2.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.39.4.2 24-Oct-2002  lukem Pull up upgrade to IPfilter 3.4.29 (requested by martti in ticket #905).
Affected files & revisions:

dist/ipf/HISTORY 1.14
dist/ipf/fils.c 1.17-1.21
dist/ipf/ipf.c 1.11-1.13
dist/ipf/ipfs.c 1.8-1.10
dist/ipf/ipft_ef.c 1.6-1.7
dist/ipf/ipft_td.c 1.6-1.7
dist/ipf/ipft_tx.c 1.7-1.8
dist/ipf/ipmon.c 1.12-1.17
dist/ipf/ipnat.c 1.11-1.12
dist/ipf/ipsend/ip_var.h 1.2
dist/ipf/ipsend/ipsend.c 1.8
dist/ipf/ipsend/iptests.c 1.5
dist/ipf/ipt.c 1.8-1.10
dist/ipf/kmem.c 1.8-1.10
dist/ipf/man/ipf.4 1.10
dist/ipf/man/ipf.5 1.8
dist/ipf/man/ipftest.1 1.3
dist/ipf/man/ipmon.8 1.10
dist/ipf/man/ipnat.5 1.9-1.10
dist/ipf/man/ipnat.8 1.4
dist/ipf/misc.c 1.7
dist/ipf/natparse.c 1.10
dist/ipf/parse.c 1.13
dist/ipf/printnat.c 1.8-1.10
dist/ipf/relay.c 1.5-1.6
dist/ipf/rules/example.9 1.2
etc/rc.d/ipnat 1.8
regress/sys/kern/ipf/Makefile 1.3-1.4
regress/sys/kern/ipf/dotest6 1.2
regress/sys/kern/ipf/expected/f13 1.1.1.2
regress/sys/kern/ipf/expected/i12 1.1.1.1
regress/sys/kern/ipf/expected/ni3 1.1.1.1
regress/sys/kern/ipf/expected/ni5 1.2
regress/sys/kern/ipf/input/f13 1.1.1.2
regress/sys/kern/ipf/input/ipv6.1 1.1.1.1
regress/sys/kern/ipf/input/ni3 1.1.1.1
regress/sys/kern/ipf/regress/i12 1.1.1.1
regress/sys/kern/ipf/regress/ipv6.1 1.1.1.1
regress/sys/kern/ipf/regress/ni3.ipf 1.1.1.1
regress/sys/kern/ipf/regress/ni3.nat 1.1.1.1
sys/arch/alpha/conf/ALPHA 1.169,1.171
sys/arch/amiga/conf/GENERIC 1.185-1.186
sys/arch/arc/conf/GENERIC 1.71-1.72
sys/arch/atari/conf/GENERIC.in 1.24-1.25
sys/arch/cats/conf/GENERIC 1.31-1.32
sys/arch/cobalt/conf/GENERIC 1.34-1.35
sys/arch/hp300/conf/GENERIC 1.83-1.84
sys/arch/i386/conf/CARDBUS 1.66-1.67
sys/arch/i386/conf/GENERIC 1.510,1.512
sys/arch/i386/conf/GENERIC_LAPTOP 1.58-1.59
sys/arch/i386/conf/GENERIC_PS2TINY 1.19-1.20
sys/arch/i386/conf/GENERIC_TINY 1.47-1.48
sys/arch/luna68k/conf/GENERIC 1.33-1.33
sys/arch/mac68k/conf/GENERIC 1.130-1.131
sys/arch/mac68k/conf/GENERICSBC 1.21-1.22
sys/arch/mac68k/conf/SMALLRAM 1.4-1.5
sys/arch/macppc/conf/GENERIC 1.142-1.143
sys/arch/mipsco/conf/GENERIC 1.21-1.22
sys/arch/mmeye/conf/GENERIC 1.44-1.45
sys/arch/news68k/conf/GENERIC 1.36-1.37
sys/arch/news68k/conf/GENERIC_TINY 1.18-1.19
sys/arch/newsmips/conf/GENERIC 1.50-1.51
sys/arch/ofppc/conf/GENERIC 1.56-1.57
sys/arch/pmax/conf/GENERIC 1.103-1.104
sys/arch/prep/conf/GENERIC 1.55-1.56
sys/arch/sbmips/conf/GENERIC 1.11-1.12
sys/arch/sgimips/conf/GENERIC 1.7-1.8
sys/arch/sparc/conf/GENERIC 1.138-1.139
sys/arch/sparc64/conf/GENERIC32 1.46-1.47
sys/arch/vax/conf/GENERIC 1.102-1.103
sys/arch/x68k/conf/ALL 1.55-1.56
sys/arch/x68k/conf/GENERIC 1.80-1.81
sys/lkm/netinet/if_ipl/mln_ipl.c 1.29
sys/netinet/fil.c 1.57-1.58
sys/netinet/ip_auth.c 1.29-1.30
sys/netinet/ip_compat.h 1.30-1.31
sys/netinet/ip_fil.c 1.81-1.86
sys/netinet/ip_fil.h 1.46-1.49
sys/netinet/ip_frag.c 1.33-1.34
sys/netinet/ip_frag.h 1.18
sys/netinet/ip_ftp_pxy.c 1.25-1.26
sys/netinet/ip_h323_pxy.c 1.5-1.6
sys/netinet/ip_log.c 1.22-1.23
sys/netinet/ip_nat.c 1.51-1.53
sys/netinet/ip_nat.h 1.27
sys/netinet/ip_netbios_pxy.c 1.4
sys/netinet/ip_proxy.c 1.35-1.36
sys/netinet/ip_proxy.h 1.18
sys/netinet/ip_state.c 1.41-1.42
sys/netinet/ip_state.h 1.23
sys/netinet/ipl.h 1.14
 1.39.4.1 01-Aug-2002  lukem Pull up revision 1.40 (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.39.2.3 31-Aug-2002  gehenna catch up with -current.
 1.39.2.2 16-Jul-2002  gehenna catch up with -current.
 1.39.2.1 14-Jul-2002  gehenna catch up with -current.
 1.40.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.40.2.2 01-Aug-2002  nathanw Catch up to -current.
 1.40.2.1 17-Jun-2002  nathanw file GENERIC was added on branch nathanw_sa on 2002-08-01 02:42:37 +0000
 1.50.2.10 11-Dec-2005  christos Sync with head.
 1.50.2.9 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.50.2.8 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.50.2.7 15-Feb-2005  skrll Sync with HEAD.
 1.50.2.6 04-Feb-2005  skrll Sync with HEAD.
 1.50.2.5 24-Jan-2005  skrll Sync with HEAD.
 1.50.2.4 14-Nov-2004  skrll Sync with HEAD.
 1.50.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.50.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.50.2.1 03-Aug-2004  skrll Sync with HEAD
 1.52.2.3 15-Jul-2004  he Pull up revision 1.58 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.52.2.2 02-Jul-2004  he Pull up revision 1.57 (requested by bouyer in ticket #573):
Add options P1003_1B_SEMAPHORE to all GENERIC-like kernel
config files where SYSV* options were already present
(commented out if the SYSV* options are commented out).
Fixes PR#25897 and PR#25898.
 1.52.2.1 30-Jun-2004  jdc Pull up revision 1.56 (requested by abs in ticket #567).

Add (commented out) ALTQ options to all GENERIC-like files
 1.60.4.1 29-Apr-2005  kent sync with -current
 1.61.2.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.61.2.1 12-Feb-2005  yamt sync with head.
 1.66.2.2 14-Aug-2005  riz Pull up revision 1.69 (requested by hubertf in ticket #625):
Add support for reading cloop2 compressed filesystem images,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
 1.66.2.1 18-Jul-2005  riz Pull up revision 1.68 (requested by tron in ticket #566):
Add (commented out) IPSEC_NAT_T option.
 1.67.2.6 04-Feb-2008  yamt sync with head.
 1.67.2.5 21-Jan-2008  yamt sync with head
 1.67.2.4 15-Nov-2007  yamt sync with head.
 1.67.2.3 03-Sep-2007  yamt sync with head.
 1.67.2.2 30-Dec-2006  yamt sync with head.
 1.67.2.1 21-Jun-2006  yamt sync with head.
 1.76.4.1 09-Sep-2006  rpaulo sync with head
 1.76.2.1 18-Feb-2006  yamt sync with head.
 1.77.2.1 22-Apr-2006  simonb Sync with head.
 1.79.6.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.79.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.79.2.3 03-Sep-2006  yamt sync with head.
 1.79.2.2 11-Aug-2006  yamt sync with head
 1.79.2.1 01-Apr-2006  yamt sync with head.
 1.80.4.1 13-Jul-2006  gdamore Merge from HEAD.
 1.81.2.2 22-Sep-2006  riz Pull up following revision(s) (requested by tsutsui in ticket #170):
sys/arch/sparc64/conf/GENERIC: revision 1.63
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.55
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.54
sys/arch/next68k/conf/GENERIC: revision 1.105
sys/arch/ews4800mips/conf/GENERIC: revision 1.12
sys/arch/arc/conf/GENERIC: revision 1.142
sys/arch/sun3/conf/GENERIC3X: revision 1.91
sys/arch/amd64/conf/GENERIC: revision 1.105
sys/arch/sun2/conf/GENERIC: revision 1.58
sys/arch/amiga/conf/GENERIC.in: revision 1.55
sys/arch/mac68k/conf/GENERIC: revision 1.175
sys/arch/acorn26/conf/GENERIC: revision 1.46
sys/arch/shark/conf/GENERIC: revision 1.65
sys/arch/cesfic/conf/GENERIC: revision 1.45
sys/arch/sandpoint/conf/GENERIC: revision 1.36
sys/arch/iyonix/conf/GENERIC: revision 1.32
sys/arch/mvme68k/conf/GENERIC: revision 1.69
sys/arch/evbarm/conf/ARMADILLO210: revision 1.3
sys/arch/vax/conf/GENERIC: revision 1.154
sys/arch/mipsco/conf/GENERIC: revision 1.61
sys/arch/evbarm/conf/ARMADILLO9: revision 1.14
sys/arch/cobalt/conf/GENERIC: revision 1.103
sys/arch/ofppc/conf/GENERIC: revision 1.94
sys/arch/hp700/conf/GENERIC: revision 1.69
sys/arch/playstation2/conf/GENERIC: revision 1.8
sys/arch/dreamcast/conf/GENERIC: revision 1.73
sys/arch/news68k/conf/GENERIC: revision 1.81
sys/arch/macppc/conf/GENERIC: revision 1.234
sys/arch/hp300/conf/GENERIC: revision 1.134
sys/arch/mmeye/conf/GENERIC: revision 1.83
sys/arch/ibmnws/conf/GENERIC: revision 1.26
sys/arch/cats/conf/GENERIC: revision 1.109
sys/arch/sparc/conf/GENERIC: revision 1.191
sys/arch/pdp10/conf/GENERIC: revision 1.27
sys/arch/acorn32/conf/GENERIC: revision 1.75
sys/arch/luna68k/conf/GENERIC: revision 1.74
sys/arch/bebox/conf/GENERIC: revision 1.101
sys/arch/pmax/conf/GENERIC: revision 1.148
sys/arch/x68k/conf/GENERIC: revision 1.130
sys/arch/sun3/conf/GENERIC: revision 1.134
sys/arch/prep/conf/GENERIC: revision 1.126
sys/arch/alpha/conf/GENERIC: revision 1.293
sys/arch/newsmips/conf/GENERIC: revision 1.94
sys/arch/netwinder/conf/GENERIC: revision 1.83
sys/arch/hpcsh/conf/GENERIC: revision 1.69
sys/arch/sbmips/conf/GENERIC: revision 1.55
sys/arch/pc532/conf/GENERIC: revision 1.65
sys/arch/hpcmips/conf/GENERIC: revision 1.192
Remove obsolete #options VERIFIED_EXEC, found by grep(1).
 1.81.2.1 14-Aug-2006  tron Pull up following revision(s) (requested by elad in ticket #17):
sys/arch/sparc/conf/KRUPS: revision 1.38
sys/arch/i386/conf/XEN2_DOMU: revision 1.2
sys/arch/i386/conf/GENERIC_LAPTOP: revision 1.197
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.53
sys/arch/evbsh5/conf/SIMULATOR: revision 1.12
sys/arch/sparc/conf/MRCOFFEE: revision 1.17
sys/arch/next68k/conf/GENERIC: revision 1.104
sys/arch/i386/conf/VIRTUALPC: revision 1.44
sys/arch/ews4800mips/conf/GENERIC: revision 1.11
sys/arch/evbsh5/conf/CAYMAN: revision 1.23
sys/arch/arc/conf/GENERIC: revision 1.141
sys/arch/amd64/conf/GENERIC: revision 1.103
sys/arch/sun3/conf/GENERIC3X: revision 1.90
sys/arch/evbarm/conf/HDL_G: revision 1.3
sys/arch/sun2/conf/GENERIC: revision 1.57
sys/arch/news68k/conf/GENERIC_TINY: revision 1.51
sys/arch/evbppc/conf/EXPLORA451: revision 1.27
sys/arch/amiga/conf/GENERIC.in: revision 1.54
sys/arch/mac68k/conf/GENERIC: revision 1.174
sys/arch/acorn26/conf/GENERIC: revision 1.45
sys/arch/shark/conf/GENERIC: revision 1.64
sys/arch/cesfic/conf/GENERIC: revision 1.44
sys/arch/mvme68k/conf/GENERIC: revision 1.68
sys/arch/i386/conf/XEN2_DOM0: revision 1.4
sys/arch/atari/conf/GENERIC.in: revision 1.63
sys/arch/amiga/conf/GENERIC: revision 1.240
sys/arch/i386/conf/LAMB: revision 1.65
sys/arch/i386/conf/GENERIC: revision 1.773
sys/arch/acorn32/conf/EB7500ATX: revision 1.26
sys/arch/x68k/conf/GENERIC: revision 1.128
sys/arch/vax/conf/GENERIC: revision 1.153
sys/arch/atari/conf/ATARITT: revision 1.81
sys/arch/mipsco/conf/GENERIC: revision 1.60
sys/arch/cobalt/conf/GENERIC: revision 1.101
sys/arch/evbarm/conf/ARMADILLO9: revision 1.13
sys/arch/ofppc/conf/GENERIC: revision 1.93
sys/arch/atari/conf/MILAN-PCIIDE: revision 1.51
sys/arch/arc/conf/RPC44: revision 1.26
sys/arch/sparc64/conf/GENERIC: revision 1.59
sys/arch/i386/conf/XEN3_DOMU: revision 1.2
sys/arch/hp700/conf/GENERIC: revision 1.68
sys/arch/atari/conf/MILAN-ISAIDE: revision 1.47
sys/arch/macppc/conf/GENERIC: revision 1.231
sys/arch/dreamcast/conf/GENERIC: revision 1.72
sys/arch/news68k/conf/GENERIC: revision 1.80
sys/arch/hp300/conf/GENERIC: revision 1.133
sys/arch/mmeye/conf/GENERIC: revision 1.82
sys/arch/macppc/conf/MAMBO: revision 1.2
sys/arch/cats/conf/GENERIC: revision 1.107
sys/arch/atari/conf/FALCON: revision 1.79
sys/arch/acorn32/conf/GENERIC: revision 1.71
sys/arch/sparc/conf/GENERIC: revision 1.190
sys/arch/news68k/conf/LIBERO: revision 1.40
sys/arch/amiga/conf/DRACO: revision 1.114
sys/arch/cobalt/conf/INSTALL: revision 1.23
sys/arch/luna68k/conf/GENERIC: revision 1.73
sys/arch/bebox/conf/GENERIC: revision 1.100
sys/arch/pmax/conf/GENERIC: revision 1.147
sys/arch/amiga/conf/WSCONS: revision 1.52
sys/arch/macppc/conf/POWERMAC_G5: revision 1.2
sys/arch/alpha/conf/ALPHA: revision 1.218
sys/arch/sun3/conf/GENERIC: revision 1.133
sys/arch/prep/conf/GENERIC: revision 1.124
sys/arch/alpha/conf/GENERIC: revision 1.291
sys/arch/atari/conf/HADES: revision 1.71
sys/arch/newsmips/conf/GENERIC: revision 1.93
sys/arch/netwinder/conf/GENERIC: revision 1.82
sys/arch/hpcmips/conf/GENERIC: revision 1.190
sys/arch/amiga/conf/AMIGA: revision 1.98
sys/arch/sbmips/conf/GENERIC: revision 1.54
sys/arch/pc532/conf/GENERIC: revision 1.64
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.53
Disable SYSTRACE by default on all kernels (discussed with core)
 1.84.4.2 10-Dec-2006  yamt sync with head.
 1.84.4.1 22-Oct-2006  yamt sync with head
 1.84.2.1 18-Nov-2006  ad Sync with head.
 1.87.18.1 03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.87.16.1 26-Jun-2007  garbled Sync with HEAD.
 1.87.10.1 11-Jul-2007  mjf Sync with head.
 1.87.8.2 03-Dec-2007  ad Sync with HEAD.
 1.87.8.1 09-Jun-2007  ad Sync with head.
 1.87.2.1 05-Jun-2007  bouyer Pull up following revision(s) (requested by martin in ticket #699):
sys/arch/hpcmips/conf/GENERIC: revision 1.196
sys/arch/hp700/conf/GENERIC: revision 1.74
sys/arch/i386/conf/GENERIC: revision 1.831
sys/arch/next68k/conf/GENERIC: revision 1.108
sys/arch/alpha/conf/GENERIC: revision 1.313
sys/arch/arc/conf/GENERIC: revision 1.146
sys/arch/cats/conf/GENERIC: revision 1.115
sys/arch/ews4800mips/conf/GENERIC: revision 1.18
sys/arch/landisk/conf/GENERIC: revision 1.8 via patch
sys/arch/sparc64/conf/GENERIC: revision 1.85
sys/arch/pmax/conf/GENERIC: revision 1.152
sys/arch/iyonix/conf/GENERIC: revision 1.38 via patch
sys/arch/amiga/conf/GENERIC: revision 1.245
sys/arch/vax/conf/GENERIC: revision 1.157
sys/arch/prep/conf/GENERIC: revision 1.135
sys/arch/pc532/conf/GENERIC: revision 1.70
sys/arch/sbmips/conf/GENERIC: revision 1.61
sys/arch/mipsco/conf/GENERIC: revision 1.65
sys/arch/cobalt/conf/GENERIC: revision 1.108
sys/arch/ofppc/conf/GENERIC: revision 1.98
sys/arch/amd64/conf/GENERIC: revision 1.148
sys/arch/acorn26/conf/GENERIC: revision 1.50
sys/arch/dreamcast/conf/GENERIC: revision 1.78
sys/arch/mac68k/conf/GENERIC: revision 1.181
sys/arch/hp300/conf/GENERIC: revision 1.139
sys/arch/mmeye/conf/GENERIC: revision 1.88
sys/arch/news68k/conf/GENERIC: revision 1.88
sys/arch/mvme68k/conf/GENERIC: revision 1.71
sys/arch/acorn32/conf/GENERIC: revision 1.79
sys/arch/sparc/conf/GENERIC: revision 1.199
sys/arch/luna68k/conf/GENERIC: revision 1.78
sys/arch/bebox/conf/GENERIC: revision 1.105
sys/arch/macppc/conf/GENERIC: revision 1.256 via patch
sys/arch/x68k/conf/GENERIC: revision 1.134
sys/arch/sun3/conf/GENERIC: revision 1.138
sys/arch/newsmips/conf/GENERIC: revision 1.98
Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
 1.88.14.1 13-Nov-2007  bouyer Sync with HEAD
 1.88.10.3 23-Mar-2008  matt sync with HEAD
 1.88.10.2 09-Jan-2008  matt sync with HEAD
 1.88.10.1 06-Nov-2007  matt sync with HEAD
 1.88.8.1 04-Nov-2007  jmcneill Sync with HEAD.
 1.90.8.1 02-Jan-2008  bouyer Sync with HEAD
 1.90.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.92.12.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.92.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.92.10.3 11-Aug-2010  yamt sync with head.
 1.92.10.2 11-Mar-2010  yamt sync with head
 1.92.10.1 04-May-2009  yamt sync with head.
 1.92.8.1 04-Jun-2008  yamt sync with head
 1.92.6.3 17-Jan-2009  mjf Sync with HEAD.
 1.92.6.2 28-Sep-2008  mjf Sync with HEAD.
 1.92.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.93.4.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.93.4.1 19-Oct-2008  haad Sync with HEAD.
 1.95.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.95.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.99.4.3 21-Apr-2011  rmind sync with head
 1.99.4.2 05-Mar-2011  rmind sync with head
 1.99.4.1 30-May-2010  rmind sync with head
 1.99.2.2 17-Aug-2010  uebayasi Sync with HEAD.
 1.99.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.103.4.2 05-Mar-2011  bouyer Sync with HEAD
 1.103.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.103.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.106.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.106.2.2 30-Oct-2012  yamt sync with head
 1.106.2.1 17-Apr-2012  yamt sync with head
 1.107.2.2 11-Mar-2012  mrg sync to latest -current
 1.107.2.1 18-Feb-2012  mrg merge to -current.
 1.109.2.4 03-Dec-2017  jdolecek update from HEAD
 1.109.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.109.2.2 23-Jun-2013  tls resync from head
 1.109.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.115.2.1 28-Aug-2013  rmind sync with head
 1.116.6.2 18-Nov-2014  snj Pull up following revision(s) (requested by manu in ticket #251):
sys/arch/acorn26/conf/GENERIC: revision 1.81
sys/arch/acorn32/conf/GENERIC: revision 1.116
sys/arch/alpha/conf/GENERIC: revision 1.362
sys/arch/amd64/conf/ALL: revision 1.23
sys/arch/amd64/conf/GENERIC: revision 1.404
sys/arch/amd64/conf/XEN3_DOM0: revision 1.112
sys/arch/amd64/conf/XEN3_DOMU: revision 1.60
sys/arch/amiga/conf/GENERIC.in: revision 1.129
sys/arch/amiga/conf/GENERIC: revision 1.311
sys/arch/amigappc/conf/GENERIC: revision 1.24
sys/arch/arc/conf/GENERIC: revision 1.184
sys/arch/bebox/conf/GENERIC: revision 1.145
sys/arch/cats/conf/GENERIC: revision 1.155
sys/arch/cesfic/conf/GENERIC: revision 1.65
sys/arch/cobalt/conf/GENERIC: revision 1.147
sys/arch/dreamcast/conf/GENERIC: revision 1.121
sys/arch/emips/conf/GENERIC: revision 1.15
sys/arch/epoc32/conf/GENERIC: revision 1.8
sys/arch/ews4800mips/conf/GENERIC: revision 1.51
sys/arch/hp300/conf/GENERIC: revision 1.190
sys/arch/hpcmips/conf/GENERIC: revision 1.229
sys/arch/hpcsh/conf/GENERIC: revision 1.106
sys/arch/hppa/conf/GENERIC: revision 1.6
sys/arch/i386/conf/ALL: revision 1.389
sys/arch/i386/conf/GENERIC: revision 1.1118
sys/arch/i386/conf/XEN3_DOM0: revision 1.93
sys/arch/i386/conf/XEN3_DOMU: revision 1.65
sys/arch/ibmnws/conf/GENERIC: revision 1.46
sys/arch/iyonix/conf/GENERIC: revision 1.88
sys/arch/landisk/conf/GENERIC: revision 1.45
sys/arch/luna68k/conf/GENERIC: revision 1.119
sys/arch/mac68k/conf/GENERIC: revision 1.220
sys/arch/macppc/conf/GENERIC: revision 1.320
sys/arch/macppc/conf/MAMBO: revision 1.24
sys/arch/macppc/conf/POWERMAC_G5: revision 1.25
sys/arch/mipsco/conf/GENERIC: revision 1.88
sys/arch/mmeye/conf/GENERIC: revision 1.120
sys/arch/mvme68k/conf/GENERIC: revision 1.94
sys/arch/mvmeppc/conf/GENERIC: revision 1.24
sys/arch/netwinder/conf/GENERIC: revision 1.126
sys/arch/news68k/conf/GENERIC: revision 1.125
sys/arch/newsmips/conf/GENERIC: revision 1.129
sys/arch/next68k/conf/GENERIC: revision 1.139
sys/arch/ofppc/conf/GENERIC: revision 1.157
sys/arch/pmax/conf/GENERIC64: revision 1.21
sys/arch/pmax/conf/GENERIC: revision 1.185
sys/arch/prep/conf/GENERIC: revision 1.174
sys/arch/rs6000/conf/GENERIC: revision 1.33
sys/arch/sandpoint/conf/GENERIC: revision 1.88
sys/arch/sbmips/conf/GENERIC: revision 1.101
sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.28
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.104
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.106
sys/arch/shark/conf/GENERIC: revision 1.121
sys/arch/sparc/conf/GENERIC: revision 1.248
sys/arch/sparc/conf/TADPOLE3GX: revision 1.65
sys/arch/sparc64/conf/GENERIC: revision 1.177
sys/arch/sparc64/conf/NONPLUS64: revision 1.44
sys/arch/sun2/conf/GENERIC: revision 1.94
sys/arch/sun3/conf/GENERIC: revision 1.171
sys/arch/vax/conf/GENERIC: revision 1.193
sys/arch/vax/conf/VAX780: revision 1.19
sys/arch/x68k/conf/GENERIC: revision 1.179
sys/arch/zaurus/conf/GENERIC: revision 1.65
sys/ufs/files.ufs: revision 1.38
Remove unused extended attributes kernel options

As Masao Uebayashi pointed to me, UFS_EXTATTR_AUTOSTART, LFS_EXTATTR_AUTOSTART
and UFS_EXTATTR_AUTOCREATE are not used anywhere in the code. Remove them
as they have been obsolete for a long time:
UFS_EXTATTR_AUTOSTART was replaced by mount -o extattr
LFS_EXTATTR_AUTOSTART was created to match obsolete UFS_EXTATTR_AUTOSTART
UFS_EXTATTR_AUTOCREATE was replaced by sysctl vfs.ffs.extattr_autocreate
 1.116.6.1 14-Nov-2014  martin Pull up following revision(s) (requested by manu in ticket #232):
sys/arch/next68k/conf/GENERIC: revision 1.138
sys/arch/cobalt/conf/GENERIC: revision 1.146
sys/arch/mvme68k/conf/GENERIC: revision 1.93
sys/arch/vax/conf/VAX780: revision 1.18
sys/arch/newsmips/conf/GENERIC: revision 1.128
sys/arch/luna68k/conf/GENERIC: revision 1.118
sys/arch/sbmips/conf/GENERIC: revision 1.100
sys/arch/pmax/conf/GENERIC: revision 1.184
sys/arch/alpha/conf/GENERIC: revision 1.361
sys/arch/sparc64/conf/GENERIC: revision 1.176
sys/arch/sun3/conf/GENERIC: revision 1.170
sys/arch/shark/conf/GENERIC: revision 1.120
sys/arch/landisk/conf/GENERIC: revision 1.44
sys/arch/bebox/conf/GENERIC: revision 1.144
sys/arch/sparc64/conf/NONPLUS64: revision 1.43
sys/arch/sandpoint/conf/GENERIC: revision 1.87
sys/arch/emips/conf/GENERIC: revision 1.14
sys/arch/amd64/conf/XEN3_DOM0: revision 1.111
sys/arch/dreamcast/conf/GENERIC: revision 1.120
sys/arch/cesfic/conf/GENERIC: revision 1.64
sys/arch/mmeye/conf/GENERIC: revision 1.119
sys/arch/epoc32/conf/GENERIC: revision 1.7
sys/arch/x68k/conf/GENERIC: revision 1.178
sys/arch/iyonix/conf/GENERIC: revision 1.87
sys/arch/sun2/conf/GENERIC: revision 1.93
sys/arch/ews4800mips/conf/GENERIC: revision 1.50
sys/arch/amd64/conf/XEN3_DOMU: revision 1.59
sys/arch/acorn26/conf/GENERIC: revision 1.80
sys/arch/acorn32/conf/GENERIC: revision 1.115
sys/arch/macppc/conf/POWERMAC_G5: revision 1.24
sys/arch/i386/conf/GENERIC: revision 1.1117
sys/arch/arc/conf/GENERIC: revision 1.183
sys/arch/cats/conf/GENERIC: revision 1.154
sys/arch/amiga/conf/GENERIC.in: revision 1.128
sys/arch/zaurus/conf/GENERIC: revision 1.64
sys/arch/netwinder/conf/GENERIC: revision 1.125
sys/arch/hppa/conf/GENERIC: revision 1.5
sys/arch/mvmeppc/conf/GENERIC: revision 1.23
sys/arch/macppc/conf/GENERIC: revision 1.319
sys/arch/amiga/conf/GENERIC: revision 1.310
sys/arch/pmax/conf/GENERIC64: revision 1.20
sys/arch/macppc/conf/MAMBO: revision 1.23
sys/arch/sgimips/conf/GENERIC32_IP12: revision 1.27
sys/arch/amigappc/conf/GENERIC: revision 1.23
sys/arch/amd64/conf/GENERIC: revision 1.403
sys/arch/ofppc/conf/GENERIC: revision 1.156
sys/arch/mac68k/conf/GENERIC: revision 1.219
sys/arch/i386/conf/XEN3_DOMU: revision 1.64
sys/arch/mipsco/conf/GENERIC: revision 1.87
sys/arch/hp300/conf/GENERIC: revision 1.189
sys/arch/vax/conf/GENERIC: revision 1.192
sys/arch/news68k/conf/GENERIC: revision 1.124
sys/arch/ibmnws/conf/GENERIC: revision 1.45
sys/arch/hpcsh/conf/GENERIC: revision 1.105
sys/arch/sparc/conf/TADPOLE3GX: revision 1.64
sys/arch/i386/conf/XEN3_DOM0: revision 1.92
sys/arch/sparc/conf/GENERIC: revision 1.247
sys/arch/sgimips/conf/GENERIC32_IP3x: revision 1.105
sys/arch/prep/conf/GENERIC: revision 1.173
sys/arch/sgimips/conf/GENERIC32_IP2x: revision 1.103
sys/arch/rs6000/conf/GENERIC: revision 1.32
sys/arch/hpcmips/conf/GENERIC: revision 1.228
Support for UFS1 extended attributes in GENERIC and GENERIC-like kernels
This change just brings UFS1 extended attribute *support* in the kernel,
extended attributes are not enabled unless three conditions are met:
1) filesystem is UFS1 (newfs -O1)
2) .attribute/system and .attribute/user directories are created at fs root
3) filesystem is mounted with -o extattr
Some GENERIC kernels are obviously memory constrained, the extended
attributes options were not enabled for them, but just added commented out.
(kernel were considered memory constrained if QUOTA option was disabled)
 1.120.2.2 28-Aug-2017  skrll Sync with HEAD
 1.120.2.1 22-Sep-2015  skrll Sync with HEAD
 1.124.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.124.4.1 10-Jun-2019  christos Sync with HEAD
 1.124.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.126.4.1 25-Jan-2020  ad Sync with head.
 1.2 29-Feb-2008  jmmv Remove GENERIC.local from the repository

Make all the kernels that currently include their corresponding GENERIC.local
file use the cinclude directive instead of include. This way config(1) will
not complain if the file cannot be found.

After doing this, remove the GENERIC.local files from the repository so that
the user will not see modified files during updates, and local changes to
them cannot end up in the repository by mistake.

Discussed in tech-kern@ earlier this month. No strong objections.
 1.1 13-Sep-1999  itojun branches: 1.1.52; 1.1.114; 1.1.134; 1.1.138;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.138.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.134.1 24-Mar-2008  keiichi sync with head.
 1.1.114.1 23-Mar-2008  matt sync with HEAD
 1.1.52.1 17-Mar-2008  yamt sync with head.
 1.44 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.43 14-Sep-2017  mrg branches: 1.43.2; 1.43.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.42 23-Aug-2014  dholland Systematize (and in many cases, fix) the comments on options COMPAT_NN.

There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
 1.41 19-Feb-2011  kiyohara branches: 1.41.14;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.40 23-Nov-2010  hannken branches: 1.40.2; 1.40.4;
Remove unused count from pseudo-device md.
 1.39 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.38 30-May-2008  tsutsui branches: 1.38.18; 1.38.20;
Add options COMPAT_40 to files which have options COMPAT_30.
 1.37 02-Feb-2008  uwe branches: 1.37.6; 1.37.8; 1.37.10; 1.37.12;
Use std.sh3eb and g/c local duplicates.
 1.36 27-Sep-2006  manu branches: 1.36.28; 1.36.34;
- 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.35 22-Sep-2006  uwe Switch the rest of sh3 ports to todr(9)
Split code to handle on-chip rtc into a separate driver
Eliminate all todr code from clock.c
Move __HAVE_GENERIC_TODR to sh3/include/types.h

Somehow I managed to forget to commit mmeye changes.
Pointed out by he@
 1.34 05-Feb-2006  cube branches: 1.34.14; 1.34.16;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.33 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.32 07-Dec-2005  tsutsui branches: 1.32.2; 1.32.4; 1.32.6;
Adjust comments for options FFS_NO_SNAPSHOT.

XXX: This option should be mentioned in options(4).
 1.31 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.30 19-Aug-2005  christos 64 bit inode changes.
 1.29 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.28 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.27 25-Feb-2005  simonb branches: 1.27.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.26 18-Feb-2005  dsl Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.25 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.24 10-Nov-2004  christos branches: 1.24.4; 1.24.6;
Add COMPAT_BSDPTY to the rest of the config files.
 1.23 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.22 18-Oct-2003  lukem branches: 1.22.2;
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
 1.21 08-Oct-2003  bouyer Add atabus.
 1.20 10-Apr-2003  christos branches: 1.20.2;
Bye Bye UCONSOLE
 1.19 18-Sep-2002  lukem enable USERCONF by default; it's small and extremely useful to have available.
 1.18 22-Jul-2002  tsutsui Add options BSDDISKLABEL_EI and options COMPAT_MMEYE_OLDLABEL.
 1.17 08-Jul-2002  jdolecek track rev. 1.36 of GENERIC:
adapted to new interrupt code and shb changes.

also disable tlphy - no bus_dma, so it doesn't compile
 1.16 08-Jul-2002  jdolecek g/c COMPAT_13 - there wasn't any 1.3 release of mmeye. According
to removal log of sys/arch/sh3/sh3/compat_13_machdep.c, COMPAT_13 was trace
of i386 port.
 1.15 17-Jun-2002  lukem branches: 1.15.2;
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.14 25-Apr-2002  atatat branches: 1.14.2; 1.14.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.13 12-Apr-2002  gmcgarry Add commented-out USERCONF option. Mainly useful for install media
and can be optionally enabled based on miniroot and ramdisk size
requirements.
 1.12 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.11 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.10 17-Feb-2002  uch To determine CPU architecture and product, add cpu_arch and cpu_prduct variables.
these are initialized by sh_cpu_init()@sh3/sh3_machdep.c
(see sh3/include/cputypes.h for detail.)
add "options SH3" for SH3 kernel config file.
 1.9 27-Jan-2002  jdolecek add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
 1.8 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.7 24-Sep-2000  jdolecek branches: 1.7.4;
don't specify number of ptys if >= 16 (current default initial number)
pty comments: normalize and g/c what is no longer relevant
 1.6 22-Mar-2000  cgd add commented out option PCI_CONFIG_DUMP whever there's a PCIVERBOSE.
 1.5 24-Feb-2000  msaitoh watchdog timer
 1.4 23-Feb-2000  msaitoh remove PMAP_NEW
 1.3 14-Sep-1999  tsubai branches: 1.3.2;
Sync with -current.
XXX root on nfs don't work, though root on wd0 works well.
 1.2 13-Sep-1999  msaitoh remove mainbus pseudo floppy drive
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.3.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.7.4.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.7.4.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.7.4.5 08-Jul-2002  jdolecek sync kqueue branch with -current - mmeye now compiles for real
 1.7.4.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.7.4.3 16-Mar-2002  jdolecek Catch up with -current.
 1.7.4.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.7.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.14.4.1 01-Aug-2002  lukem Pull up revision 1.15 (requested by lukem in ticket #312):
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.14.2.3 31-Aug-2002  gehenna catch up with -current.
 1.14.2.2 16-Jul-2002  gehenna catch up with -current.
 1.14.2.1 14-Jul-2002  gehenna catch up with -current.
 1.15.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.15.2.2 01-Aug-2002  nathanw Catch up to -current.
 1.15.2.1 17-Jun-2002  nathanw file MMEYE was added on branch nathanw_sa on 2002-08-01 02:42:38 +0000
 1.20.2.8 11-Dec-2005  christos Sync with head.
 1.20.2.7 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.20.2.6 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.20.2.5 04-Feb-2005  skrll Sync with HEAD.
 1.20.2.4 14-Nov-2004  skrll Sync with HEAD.
 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.22.2.1 15-Jul-2004  he Pull up revision 1.23 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.24.6.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.24.6.1 12-Feb-2005  yamt sync with head.
 1.24.4.1 29-Apr-2005  kent sync with -current
 1.27.4.3 04-Feb-2008  yamt sync with head.
 1.27.4.2 30-Dec-2006  yamt sync with head.
 1.27.4.1 21-Jun-2006  yamt sync with head.
 1.32.6.1 22-Apr-2006  simonb Sync with head.
 1.32.4.1 09-Sep-2006  rpaulo sync with head
 1.32.2.1 18-Feb-2006  yamt sync with head.
 1.34.16.1 22-Oct-2006  yamt sync with head
 1.34.14.1 18-Nov-2006  ad Sync with head.
 1.36.34.1 18-Feb-2008  mjf Sync with HEAD.
 1.36.28.1 23-Mar-2008  matt sync with HEAD
 1.37.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.37.10.2 11-Aug-2010  yamt sync with head.
 1.37.10.1 04-May-2009  yamt sync with head.
 1.37.8.1 04-Jun-2008  yamt sync with head
 1.37.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.38.20.2 05-Mar-2011  rmind sync with head
 1.38.20.1 30-May-2010  rmind sync with head
 1.38.18.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.40.4.1 05-Mar-2011  bouyer Sync with HEAD
 1.40.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.41.14.1 03-Dec-2017  jdolecek update from HEAD
 1.43.4.1 10-Jun-2019  christos Sync with HEAD
 1.43.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.33 29-Jan-2024  christos PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.
 1.32 07-Aug-2022  simonb UFS/LFS dirhash:
- Enable UFS_DIRHASH if the architecture or kernel model specific config
file can use 128MB of RAM or more.
- Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel
and by a number of NetBSD developers for years.
- Add LFS_DIRHASH if LFS was enabled.
- Be somewhat consistent with FS options order.
 1.31 27-Sep-2020  roy vether: Add to kernel configurations

It's only enabled if the kernel enabled bridge AND tap.
Otherwise it's commented out.
 1.30 01-Aug-2020  maxv Remove references to BRIDGE_IPF, it is now compiled in by default.
 1.29 19-Jan-2020  thorpej Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.28 26-Apr-2019  sevan branches: 1.28.4;
Use veriexec.config to reduce duplication
 1.27 13-Apr-2019  isaki Add drvctl to kernel which has audio device.
audiocfg(1) requires drvctl(4).
 1.26 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.25 07-Jun-2018  thorpej branches: 1.25.2;
Revert changes that pinned-down i2c parent specs. The i2c subsystem
has been enhanced to make this unnecessary.
 1.24 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.23 14-Sep-2017  mrg branches: 1.23.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.22 13-Sep-2017  sevan Remove support for VERIFIED_EXEC_FP_RMD160, VERIFIED_EXEC_FP_SHA1, and VERIFIED_EXEC_FP_MD5 options.
These algorithms are either broken or on their way to being broken.

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

ok riastradh
 1.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 24-Aug-2014  jnemeth branches: 1.16.2;
Create an "options MODULAR_DEFAULT_AUTOLOAD" config option and add
it to all kernel configs that contain "options MODULAR". This
option turns on module autoloading by default (which is the current
default). This allows people who don't want module autoloading on
by default to disable it by simply removing/commentting this line.
 1.15 23-Aug-2014  dholland Systematize (and in many cases, fix) the comments on options COMPAT_NN.

There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
 1.14 16-Aug-2014  apb Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
 1.13 30-Jun-2013  rmind branches: 1.13.6;
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 10-Mar-2012  joerg branches: 1.6.2;
P1003_1B_SEMAPHORE is no longer optional.
 1.5 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.4 22-Nov-2011  tls branches: 1.4.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.3 30-Jun-2011  wiz branches: 1.3.2;
dependant -> dependent
 1.2 22-Mar-2011  kiyohara branches: 1.2.4;
Add slhci(4) and some usb devices.
 1.1 19-Feb-2011  kiyohara branches: 1.1.2; 1.1.4;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.1.4.3 21-Apr-2011  rmind sync with head
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 19-Feb-2011  rmind file MMEYE_WLF was added on branch rmind-uvmplock on 2011-03-05 20:51:14 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 19-Feb-2011  bouyer file MMEYE_WLF was added on branch bouyer-quota2 on 2011-03-05 15:09:52 +0000
 1.2.4.2 06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1 22-Mar-2011  jruoho file MMEYE_WLF was added on branch jruoho-x86intr on 2011-06-06 09:06:13 +0000
 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.4.2.2 11-Mar-2012  mrg sync to latest -current
 1.4.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.6.1 15-May-2015  snj Pull up following revision(s) (requested by jnemeth in ticket #762):
share/man/man4/options.4: revision 1.442
sys/arch/amd64/conf/ALL: revision 1.18
sys/arch/amd64/conf/GENERIC: revision 1.396
sys/arch/dreamcast/conf/GENERIC: revision 1.119
sys/arch/epoc32/conf/GENERIC: revision 1.6
sys/arch/evbarm/conf/BCM5301X: revision 1.24
sys/arch/evbarm/conf/BCM56340: revision 1.9
sys/arch/evbarm/conf/IMX23_OLINUXINO: revision 1.9
sys/arch/evbarm/conf/std.beagle: revision 1.13
sys/arch/evbarm/conf/std.kobo: revision 1.2
sys/arch/evbarm/conf/std.netwalker: revision 1.10
sys/arch/evbppc/conf/P2020DS: revision 1.25
sys/arch/evbppc/conf/RB800: revision 1.30
sys/arch/evbppc/conf/TWRP1025: revision 1.18
sys/arch/hp300/conf/GENERIC: revision 1.187
sys/arch/hpcsh/conf/GENERIC: revision 1.104
sys/arch/i386/conf/GENERIC: revision 1.1111
sys/arch/i386/conf/MONOLITHIC: revision 1.17
sys/arch/landisk/conf/GENERIC: revision 1.43
sys/arch/luna68k/conf/GENERIC: revision 1.117
sys/arch/macppc/conf/GENERIC: revision 1.316
sys/arch/macppc/conf/GENERIC_601: revision 1.5
sys/arch/mmeye/conf/MMEYE_WLF: revision 1.16
sys/arch/news68k/conf/GENERIC: revision 1.123
sys/arch/sandpoint/conf/GENERIC: revision 1.85
sys/arch/shark/conf/GENERIC: revision 1.119
sys/arch/sparc/conf/GENERIC: revision 1.246
sys/arch/sparc64/conf/GENERIC: revision 1.174
sys/arch/sun3/conf/GENERIC3X: revision 1.125
sys/arch/sun3/conf/GENERIC: revision 1.169
sys/arch/x68k/conf/GENERIC: revision 1.177
sys/arch/zaurus/conf/GENERIC: revision 1.62
sys/conf/files: revision 1.1099
sys/kern/kern_module.c: revisions 1.98, 1.99
Create an "options MODULAR_DEFAULT_AUTOLOAD" config option and add
it to all kernel configs that contain "options MODULAR". This
option turns on module autoloading by default (which is the current
default). This allows people who don't want module autoloading on
by default to disable it by simply removing/commentting this line.
--
fix typo. (s/MODULE_DEFAULT_AUTOLOAD/MODULAR_DEFAULT_AUTOLOAD/)
 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.23.2.3 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.23.2.2 25-Jun-2018  pgoyette Sync with HEAD
 1.23.2.1 21-May-2018  pgoyette Sync with HEAD
 1.25.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.25.2.1 10-Jun-2019  christos Sync with HEAD
 1.28.4.1 25-Jan-2020  ad Sync with head.
 1.56 29-Jan-2024  christos PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.
 1.55 09-Feb-2023  abs Adjust _all_ cinclude of *.local files

- Ensure always at end
- Use tab rather than spaces
- Add consistent comment
"Pull in optional local configuration - always at end"

The only functional change is that a local file which tried to
override an existing setting (eg with "no foo") would have failed
in some cases before, but now will work
 1.54 19-Jan-2020  thorpej Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.53 01-Aug-2018  maxv branches: 1.53.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.52 14-Sep-2017  mrg branches: 1.52.2; 1.52.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.51 29-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 3.
 1.50 07-Aug-2015  maxv Remove KMEMSTATS.
 1.49 30-Jun-2013  rmind branches: 1.49.8;
G/C PFIL_HOOKS from the kernel configs.
 1.48 27-Apr-2013  christos branches: 1.48.4;
remove confusing numeric locators where they are unused.
 1.47 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.46 22-Nov-2011  tls branches: 1.46.8;

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.45 06-Mar-2011  bouyer branches: 1.45.4;
merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.44 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.43 23-Nov-2010  hannken branches: 1.43.2; 1.43.4;
Remove unused count from pseudo-device md.
 1.42 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.41 05-Dec-2009  pooka branches: 1.41.2; 1.41.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.40 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.39 12-Nov-2008  ad branches: 1.39.4;
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.38 29-Feb-2008  jmmv branches: 1.38.4; 1.38.10; 1.38.12;
Remove GENERIC.local from the repository

Make all the kernels that currently include their corresponding GENERIC.local
file use the cinclude directive instead of include. This way config(1) will
not complain if the file cannot be found.

After doing this, remove the GENERIC.local files from the repository so that
the user will not see modified files during updates, and local changes to
them cannot end up in the repository by mistake.

Discussed in tech-kern@ earlier this month. No strong objections.
 1.37 02-Feb-2008  uwe branches: 1.37.2; 1.37.6;
Use std.sh3eb and g/c local duplicates.
 1.36 22-Sep-2006  uwe branches: 1.36.28; 1.36.34;
Switch the rest of sh3 ports to todr(9)
Split code to handle on-chip rtc into a separate driver
Eliminate all todr code from clock.c
Move __HAVE_GENERIC_TODR to sh3/include/types.h

Somehow I managed to forget to commit mmeye changes.
Pointed out by he@
 1.35 26-Aug-2006  christos branches: 1.35.2; 1.35.4;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.34 05-Feb-2006  cube branches: 1.34.2;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.33 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.32 20-Dec-2005  thorpej branches: 1.32.2; 1.32.4; 1.32.6;
Remove the tablet line discipline.
 1.31 07-Dec-2005  tsutsui Adjust comments for options FFS_NO_SNAPSHOT.

XXX: This option should be mentioned in options(4).
 1.30 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.29 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.28 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.27 18-Feb-2005  dsl branches: 1.27.6;
Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.26 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.25 10-Nov-2004  christos branches: 1.25.4; 1.25.6;
Add COMPAT_BSDPTY to the rest of the config files.
 1.24 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.23 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.22 18-Oct-2003  lukem branches: 1.22.2;
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
 1.21 08-Oct-2003  bouyer Add atabus.
 1.20 10-Apr-2003  christos branches: 1.20.2;
Bye Bye UCONSOLE
 1.19 22-Jul-2002  tsutsui Add options BSDDISKLABEL_EI and options COMPAT_MMEYE_OLDLABEL.
 1.18 08-Jul-2002  jdolecek track rev. 1.36 of GENERIC:
adapted to new interrupt code and shb changes.

also disable tlphy - no bus_dma, so it doesn't compile
 1.17 08-Jul-2002  jdolecek g/c COMPAT_13 - there wasn't any 1.3 release of mmeye. According
to removal log of sys/arch/sh3/sh3/compat_13_machdep.c, COMPAT_13 was trace
of i386 port.
 1.16 17-Jun-2002  lukem branches: 1.16.2;
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.15 25-Apr-2002  atatat branches: 1.15.2; 1.15.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.14 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.13 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.12 17-Feb-2002  uch To determine CPU architecture and product, add cpu_arch and cpu_prduct variables.
these are initialized by sh_cpu_init()@sh3/sh3_machdep.c
(see sh3/include/cputypes.h for detail.)
add "options SH3" for SH3 kernel config file.
 1.11 10-Feb-2002  wiz Update description for icsphy.
 1.10 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.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 20-Nov-2001  lukem - pull in opt_kgdb.h where necessary
- replace opt_kgdb_machdep.h with opt_kgdb.h
- defparam opt_kgdb.h:
KGDB_DEV KGDB_DEVNAME KGDB_DEVADDR KGDB_DEVRATE KGDB_DEVMODE
- move from opt_ddbparam.h to opt_ddb.h:
DDB_FROMCONSOLE DDB_ONPANIC DDB_HISTORY_SIZE DDB_BREAK_CHAR SYMTAB_SPACE
- replace KGDBDEV with KGDB_DEV
- replace KGDBADDR with KGDB_DEVADDR
- replace KGDBMODE with KGDB_DEVMODE
- replace KGDBRATE with KGDB_DEVRATE
- use `9600' instead of `0x2580' for 9600 baud rate
- use correct quotes for options KGDB_DEVNAME="\"com\""
- use correct quotes for options KGDB_DEV="17*256+0"
- remove unnecessary dependancy on Makefile for kgdb_stub.o
- minor whitespace cleanup
 1.7 08-Jul-2001  abs branches: 1.7.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.6 17-Oct-2000  msaitoh fix shpcic* iomem size from 0x4000000 to 0x1000000
 1.5 24-Sep-2000  jdolecek don't specify number of ptys if >= 16 (current default initial number)
pty comments: normalize and g/c what is no longer relevant
 1.4 08-May-2000  augustss branches: 1.4.4;
Add (sometimes commented out) MIIVERBOSE option.
 1.3 07-Jan-2000  msaitoh s/ECOFF/COFF/ (comment only)
 1.2 13-Sep-1999  msaitoh branches: 1.2.2;
remove mainbus pseudo floppy drive
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.4.1 05-Nov-2000  tv Pullup 1.6 [msaitoh]:
fix shpcic* iomem size from 0x4000000 to 0x1000000
 1.7.2.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.7.2.5 08-Jul-2002  jdolecek sync kqueue branch with -current - mmeye now compiles for real
 1.7.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.7.2.3 16-Mar-2002  jdolecek Catch up with -current.
 1.7.2.2 11-Feb-2002  jdolecek Sync w/ -current.
 1.7.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.15.4.1 01-Aug-2002  lukem Pull up revision 1.16 (requested by lukem in ticket #312):
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.15.2.3 31-Aug-2002  gehenna catch up with -current.
 1.15.2.2 16-Jul-2002  gehenna catch up with -current.
 1.15.2.1 14-Jul-2002  gehenna catch up with -current.
 1.16.2.2 01-Aug-2002  nathanw Catch up to -current.
 1.16.2.1 17-Jun-2002  nathanw file MMTA was added on branch nathanw_sa on 2002-08-01 02:42:38 +0000
 1.20.2.8 11-Dec-2005  christos Sync with head.
 1.20.2.7 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.20.2.6 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.20.2.5 04-Feb-2005  skrll Sync with HEAD.
 1.20.2.4 14-Nov-2004  skrll Sync with HEAD.
 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.22.2.1 15-Jul-2004  he Pull up revision 1.23 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.25.6.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.25.6.1 12-Feb-2005  yamt sync with head.
 1.25.4.1 29-Apr-2005  kent sync with -current
 1.27.6.4 17-Mar-2008  yamt sync with head.
 1.27.6.3 04-Feb-2008  yamt sync with head.
 1.27.6.2 30-Dec-2006  yamt sync with head.
 1.27.6.1 21-Jun-2006  yamt sync with head.
 1.32.6.1 22-Apr-2006  simonb Sync with head.
 1.32.4.1 09-Sep-2006  rpaulo sync with head
 1.32.2.1 18-Feb-2006  yamt sync with head.
 1.34.2.1 03-Sep-2006  yamt sync with head.
 1.35.4.1 22-Oct-2006  yamt sync with head
 1.35.2.1 18-Nov-2006  ad Sync with head.
 1.36.34.1 18-Feb-2008  mjf Sync with HEAD.
 1.36.28.1 23-Mar-2008  matt sync with HEAD
 1.37.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.37.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.37.2.1 24-Mar-2008  keiichi sync with head.
 1.38.12.2 28-Apr-2009  skrll Sync with HEAD.
 1.38.12.1 19-Jan-2009  skrll Sync with HEAD.
 1.38.10.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.38.4.3 11-Aug-2010  yamt sync with head.
 1.38.4.2 11-Mar-2010  yamt sync with head
 1.38.4.1 04-May-2009  yamt sync with head.
 1.39.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.41.4.3 21-Apr-2011  rmind sync with head
 1.41.4.2 05-Mar-2011  rmind sync with head
 1.41.4.1 30-May-2010  rmind sync with head
 1.41.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.43.4.2 05-Mar-2011  bouyer Sync with HEAD
 1.43.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.43.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.45.4.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.45.4.1 17-Apr-2012  yamt sync with head
 1.46.8.3 03-Dec-2017  jdolecek update from HEAD
 1.46.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.46.8.1 23-Jun-2013  tls resync from head
 1.48.4.1 28-Aug-2013  rmind sync with head
 1.49.8.2 28-Aug-2017  skrll Sync with HEAD
 1.49.8.1 22-Sep-2015  skrll Sync with HEAD
 1.52.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.52.4.1 10-Jun-2019  christos Sync with HEAD
 1.52.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.53.6.1 25-Jan-2020  ad Sync with head.
 1.60 29-Jan-2024  christos PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.
 1.59 09-Feb-2023  abs Adjust _all_ cinclude of *.local files

- Ensure always at end
- Use tab rather than spaces
- Add consistent comment
"Pull in optional local configuration - always at end"

The only functional change is that a local file which tried to
override an existing setting (eg with "no foo") would have failed
in some cases before, but now will work
 1.58 19-Jan-2020  thorpej Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.57 01-Aug-2018  maxv branches: 1.57.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.56 23-Jun-2018  maya branches: 1.56.2;
Remove commented out MATH_EMULATE from kernel configs that got it
by copying an older i386 config.
 1.55 14-Sep-2017  mrg branches: 1.55.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.54 29-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 3.
 1.53 27-Sep-2016  maya Clean up some commented out x86-specific things.
 1.52 07-Aug-2015  maxv branches: 1.52.2;
Remove KMEMSTATS.
 1.51 30-Jun-2013  rmind branches: 1.51.8;
G/C PFIL_HOOKS from the kernel configs.
 1.50 27-Apr-2013  christos branches: 1.50.4;
remove confusing numeric locators where they are unused.
 1.49 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.48 22-Nov-2011  tls branches: 1.48.8;

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.47 06-Mar-2011  bouyer branches: 1.47.4;
merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.46 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.45 23-Nov-2010  hannken branches: 1.45.2; 1.45.4;
Remove unused count from pseudo-device md.
 1.44 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.43 05-Dec-2009  pooka branches: 1.43.2; 1.43.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.42 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.41 12-Nov-2008  ad branches: 1.41.4;
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.40 29-Feb-2008  jmmv branches: 1.40.4; 1.40.10; 1.40.12;
Remove GENERIC.local from the repository

Make all the kernels that currently include their corresponding GENERIC.local
file use the cinclude directive instead of include. This way config(1) will
not complain if the file cannot be found.

After doing this, remove the GENERIC.local files from the repository so that
the user will not see modified files during updates, and local changes to
them cannot end up in the repository by mistake.

Discussed in tech-kern@ earlier this month. No strong objections.
 1.39 02-Feb-2008  uwe branches: 1.39.2; 1.39.6;
Use std.sh3eb and g/c local duplicates.
 1.38 22-Sep-2006  uwe branches: 1.38.28; 1.38.34;
Switch the rest of sh3 ports to todr(9)
Split code to handle on-chip rtc into a separate driver
Eliminate all todr code from clock.c
Move __HAVE_GENERIC_TODR to sh3/include/types.h

Somehow I managed to forget to commit mmeye changes.
Pointed out by he@
 1.37 26-Aug-2006  christos branches: 1.37.2; 1.37.4;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.36 05-Feb-2006  cube branches: 1.36.2;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.35 04-Feb-2006  rpaulo bpfilter doesn't accept count anymore.
 1.34 20-Dec-2005  thorpej branches: 1.34.2; 1.34.4; 1.34.6;
Remove the tablet line discipline.
 1.33 07-Dec-2005  tsutsui Adjust comments for options FFS_NO_SNAPSHOT.

XXX: This option should be mentioned in options(4).
 1.32 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.31 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.30 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.29 18-Feb-2005  dsl branches: 1.29.6;
Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.28 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.27 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.26 10-Nov-2004  christos branches: 1.26.4; 1.26.6;
Add COMPAT_BSDPTY to the rest of the config files.
 1.25 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.24 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.23 18-Oct-2003  lukem branches: 1.23.2;
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
 1.22 08-Oct-2003  bouyer Add atabus.
 1.21 10-Apr-2003  christos branches: 1.21.2;
Bye Bye UCONSOLE
 1.20 18-Sep-2002  lukem enable USERCONF by default; it's small and extremely useful to have available.
 1.19 22-Jul-2002  tsutsui Add options BSDDISKLABEL_EI and options COMPAT_MMEYE_OLDLABEL.
 1.18 08-Jul-2002  jdolecek track rev. 1.36 of GENERIC:
adapted to new interrupt code and shb changes.

also disable tlphy - no bus_dma, so it doesn't compile
 1.17 08-Jul-2002  jdolecek g/c COMPAT_13 - there wasn't any 1.3 release of mmeye. According
to removal log of sys/arch/sh3/sh3/compat_13_machdep.c, COMPAT_13 was trace
of i386 port.
 1.16 17-Jun-2002  lukem branches: 1.16.2;
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.15 25-Apr-2002  atatat branches: 1.15.2; 1.15.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.14 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.13 02-Apr-2002  lukem Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
 1.12 10-Mar-2002  lukem * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
 1.11 17-Feb-2002  uch To determine CPU architecture and product, add cpu_arch and cpu_prduct variables.
these are initialized by sh_cpu_init()@sh3/sh3_machdep.c
(see sh3/include/cputypes.h for detail.)
add "options SH3" for SH3 kernel config file.
 1.10 10-Feb-2002  wiz Update description for icsphy.
 1.9 27-Jan-2002  jdolecek add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
 1.8 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.7 20-Nov-2001  lukem - pull in opt_kgdb.h where necessary
- replace opt_kgdb_machdep.h with opt_kgdb.h
- defparam opt_kgdb.h:
KGDB_DEV KGDB_DEVNAME KGDB_DEVADDR KGDB_DEVRATE KGDB_DEVMODE
- move from opt_ddbparam.h to opt_ddb.h:
DDB_FROMCONSOLE DDB_ONPANIC DDB_HISTORY_SIZE DDB_BREAK_CHAR SYMTAB_SPACE
- replace KGDBDEV with KGDB_DEV
- replace KGDBADDR with KGDB_DEVADDR
- replace KGDBMODE with KGDB_DEVMODE
- replace KGDBRATE with KGDB_DEVRATE
- use `9600' instead of `0x2580' for 9600 baud rate
- use correct quotes for options KGDB_DEVNAME="\"com\""
- use correct quotes for options KGDB_DEV="17*256+0"
- remove unnecessary dependancy on Makefile for kgdb_stub.o
- minor whitespace cleanup
 1.6 08-Jul-2001  abs branches: 1.6.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.5 17-Oct-2000  msaitoh fix shpcic* iomem size from 0x4000000 to 0x1000000
 1.4 24-Sep-2000  jdolecek don't specify number of ptys if >= 16 (current default initial number)
pty comments: normalize and g/c what is no longer relevant
 1.3 07-Jan-2000  msaitoh branches: 1.3.4;
s/ECOFF/COFF/ (comment only)
 1.2 13-Sep-1999  msaitoh branches: 1.2.2;
remove mainbus pseudo floppy drive
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.3.4.1 05-Nov-2000  tv Pullup 1.5 [msaitoh]:
fix shpcic* iomem size from 0x4000000 to 0x1000000
 1.6.2.7 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.6.2.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.6.2.5 08-Jul-2002  jdolecek sync kqueue branch with -current - mmeye now compiles for real
 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 11-Feb-2002  jdolecek Sync w/ -current.
 1.6.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.15.4.1 01-Aug-2002  lukem Pull up revision 1.16 (requested by lukem in ticket #312):
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.15.2.3 31-Aug-2002  gehenna catch up with -current.
 1.15.2.2 16-Jul-2002  gehenna catch up with -current.
 1.15.2.1 14-Jul-2002  gehenna catch up with -current.
 1.16.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.16.2.2 01-Aug-2002  nathanw Catch up to -current.
 1.16.2.1 17-Jun-2002  nathanw file MMTAICE was added on branch nathanw_sa on 2002-08-01 02:42:38 +0000
 1.21.2.9 11-Dec-2005  christos Sync with head.
 1.21.2.8 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.21.2.7 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.21.2.6 15-Feb-2005  skrll Sync with HEAD.
 1.21.2.5 04-Feb-2005  skrll Sync with HEAD.
 1.21.2.4 14-Nov-2004  skrll Sync with HEAD.
 1.21.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.21.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.21.2.1 03-Aug-2004  skrll Sync with HEAD
 1.23.2.1 15-Jul-2004  he Pull up revision 1.24 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.26.6.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.26.6.1 12-Feb-2005  yamt sync with head.
 1.26.4.1 29-Apr-2005  kent sync with -current
 1.29.6.4 17-Mar-2008  yamt sync with head.
 1.29.6.3 04-Feb-2008  yamt sync with head.
 1.29.6.2 30-Dec-2006  yamt sync with head.
 1.29.6.1 21-Jun-2006  yamt sync with head.
 1.34.6.1 22-Apr-2006  simonb Sync with head.
 1.34.4.1 09-Sep-2006  rpaulo sync with head
 1.34.2.1 18-Feb-2006  yamt sync with head.
 1.36.2.1 03-Sep-2006  yamt sync with head.
 1.37.4.1 22-Oct-2006  yamt sync with head
 1.37.2.1 18-Nov-2006  ad Sync with head.
 1.38.34.1 18-Feb-2008  mjf Sync with HEAD.
 1.38.28.1 23-Mar-2008  matt sync with HEAD
 1.39.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.39.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.39.2.1 24-Mar-2008  keiichi sync with head.
 1.40.12.2 28-Apr-2009  skrll Sync with HEAD.
 1.40.12.1 19-Jan-2009  skrll Sync with HEAD.
 1.40.10.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.40.4.3 11-Aug-2010  yamt sync with head.
 1.40.4.2 11-Mar-2010  yamt sync with head
 1.40.4.1 04-May-2009  yamt sync with head.
 1.41.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.43.4.3 21-Apr-2011  rmind sync with head
 1.43.4.2 05-Mar-2011  rmind sync with head
 1.43.4.1 30-May-2010  rmind sync with head
 1.43.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.45.4.2 05-Mar-2011  bouyer Sync with HEAD
 1.45.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.45.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.47.4.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.47.4.1 17-Apr-2012  yamt sync with head
 1.48.8.3 03-Dec-2017  jdolecek update from HEAD
 1.48.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.48.8.1 23-Jun-2013  tls resync from head
 1.50.4.1 28-Aug-2013  rmind sync with head
 1.51.8.3 28-Aug-2017  skrll Sync with HEAD
 1.51.8.2 05-Oct-2016  skrll Sync with HEAD
 1.51.8.1 22-Sep-2015  skrll Sync with HEAD
 1.52.2.1 04-Nov-2016  pgoyette Sync with HEAD
 1.55.2.2 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.55.2.1 25-Jun-2018  pgoyette Sync with HEAD
 1.56.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.56.2.1 10-Jun-2019  christos Sync with HEAD
 1.57.6.1 25-Jan-2020  ad Sync with head.
 1.20 23-Jun-2018  maya Remove commented out MATH_EMULATE from kernel configs that got it
by copying an older i386 config.
 1.19 19-Feb-2011  kiyohara branches: 1.19.54;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.18 08-Jul-2002  jdolecek branches: 1.18.134; 1.18.140; 1.18.142;
change to be just wrapper around MMTA
 1.17 08-Jul-2002  jdolecek g/c COMPAT_13 - there wasn't any 1.3 release of mmeye. According
to removal log of sys/arch/sh3/sh3/compat_13_machdep.c, COMPAT_13 was trace
of i386 port.
 1.16 17-Jun-2002  lukem branches: 1.16.2;
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.15 25-Apr-2002  atatat branches: 1.15.2; 1.15.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.14 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.13 02-Apr-2002  lukem Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
 1.12 10-Mar-2002  lukem * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
 1.11 17-Feb-2002  uch To determine CPU architecture and product, add cpu_arch and cpu_prduct variables.
these are initialized by sh_cpu_init()@sh3/sh3_machdep.c
(see sh3/include/cputypes.h for detail.)
add "options SH3" for SH3 kernel config file.
 1.10 10-Feb-2002  wiz Update description for icsphy.
 1.9 27-Jan-2002  jdolecek add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
 1.8 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.7 20-Nov-2001  lukem - pull in opt_kgdb.h where necessary
- replace opt_kgdb_machdep.h with opt_kgdb.h
- defparam opt_kgdb.h:
KGDB_DEV KGDB_DEVNAME KGDB_DEVADDR KGDB_DEVRATE KGDB_DEVMODE
- move from opt_ddbparam.h to opt_ddb.h:
DDB_FROMCONSOLE DDB_ONPANIC DDB_HISTORY_SIZE DDB_BREAK_CHAR SYMTAB_SPACE
- replace KGDBDEV with KGDB_DEV
- replace KGDBADDR with KGDB_DEVADDR
- replace KGDBMODE with KGDB_DEVMODE
- replace KGDBRATE with KGDB_DEVRATE
- use `9600' instead of `0x2580' for 9600 baud rate
- use correct quotes for options KGDB_DEVNAME="\"com\""
- use correct quotes for options KGDB_DEV="17*256+0"
- remove unnecessary dependancy on Makefile for kgdb_stub.o
- minor whitespace cleanup
 1.6 08-Jul-2001  abs branches: 1.6.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.5 17-Oct-2000  msaitoh fix shpcic* iomem size from 0x4000000 to 0x1000000
 1.4 24-Sep-2000  jdolecek don't specify number of ptys if >= 16 (current default initial number)
pty comments: normalize and g/c what is no longer relevant
 1.3 07-Jan-2000  msaitoh branches: 1.3.4;
s/ECOFF/COFF/ (comment only)
 1.2 13-Sep-1999  msaitoh branches: 1.2.2;
remove mainbus pseudo floppy drive
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.3.4.1 05-Nov-2000  tv Pullup 1.5 [msaitoh]:
fix shpcic* iomem size from 0x4000000 to 0x1000000
 1.6.2.5 08-Jul-2002  jdolecek sync kqueue branch with -current - mmeye now compiles for real
 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 11-Feb-2002  jdolecek Sync w/ -current.
 1.6.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.15.4.1 01-Aug-2002  lukem Pull up revision 1.16 (requested by lukem in ticket #312):
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.15.2.2 16-Jul-2002  gehenna catch up with -current.
 1.15.2.1 14-Jul-2002  gehenna catch up with -current.
 1.16.2.2 01-Aug-2002  nathanw Catch up to -current.
 1.16.2.1 17-Jun-2002  nathanw file MMTANEW was added on branch nathanw_sa on 2002-08-01 02:42:39 +0000
 1.18.142.1 05-Mar-2011  bouyer Sync with HEAD
 1.18.140.1 06-Jun-2011  jruoho Sync with HEAD.
 1.18.134.1 05-Mar-2011  rmind sync with head
 1.19.54.1 25-Jun-2018  pgoyette Sync with HEAD
 1.58 29-Jan-2024  christos PR/57889: Ricardo Branco: ext2fs does not have user immutable and append
file flags, only system ones. Restrict those to the superuser. Before
the behavior was controlled by EXT2FS_SYSTEM_FLAGS. Make that behavior the
default.
 1.57 24-Sep-2023  andvar disable all phy devices in config, since network is disabled in general.
add SH7708R option from MMTA config, one CPU option is required.
enable pseudo-terminal device, also needed for config to build.

changes fix the kernel config itself, but build fails on locore.S asm code,
will file a PR for that.

P.S. would be good to update descriptions of kernel configs, since all copied
from GENERIC and it is difficult to decipher their purpose and relevance.
 1.56 09-Feb-2023  abs Adjust _all_ cinclude of *.local files

- Ensure always at end
- Use tab rather than spaces
- Add consistent comment
"Pull in optional local configuration - always at end"

The only functional change is that a local file which tried to
override an existing setting (eg with "no foo") would have failed
in some cases before, but now will work
 1.55 19-Jan-2020  thorpej Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
 1.54 01-Aug-2018  maxv branches: 1.54.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.53 14-Sep-2017  mrg branches: 1.53.2; 1.53.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.52 29-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 3.
 1.51 07-Aug-2015  maxv Remove KMEMSTATS.
 1.50 30-Jun-2013  rmind branches: 1.50.8;
G/C PFIL_HOOKS from the kernel configs.
 1.49 27-Apr-2013  christos branches: 1.49.4;
remove confusing numeric locators where they are unused.
 1.48 01-Mar-2013  joerg Retire OSI network stack. OK core@
 1.47 22-Nov-2011  tls branches: 1.47.8;

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.46 06-Mar-2011  bouyer branches: 1.46.4;
merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
 1.45 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.44 23-Nov-2010  hannken branches: 1.44.2; 1.44.4;
Remove unused count from pseudo-device md.
 1.43 16-Apr-2010  pooka Remove unused count (invariably "4") from pseudo-device fss.
 1.42 05-Dec-2009  pooka branches: 1.42.2; 1.42.4;
Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.41 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.40 12-Nov-2008  ad branches: 1.40.4;
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.39 29-Feb-2008  jmmv branches: 1.39.4; 1.39.10; 1.39.12;
Remove GENERIC.local from the repository

Make all the kernels that currently include their corresponding GENERIC.local
file use the cinclude directive instead of include. This way config(1) will
not complain if the file cannot be found.

After doing this, remove the GENERIC.local files from the repository so that
the user will not see modified files during updates, and local changes to
them cannot end up in the repository by mistake.

Discussed in tech-kern@ earlier this month. No strong objections.
 1.38 02-Feb-2008  uwe branches: 1.38.2; 1.38.6;
Use std.sh3eb and g/c local duplicates.
 1.37 22-Sep-2006  uwe branches: 1.37.28; 1.37.34;
Switch the rest of sh3 ports to todr(9)
Split code to handle on-chip rtc into a separate driver
Eliminate all todr code from clock.c
Move __HAVE_GENERIC_TODR to sh3/include/types.h

Somehow I managed to forget to commit mmeye changes.
Pointed out by he@
 1.36 26-Aug-2006  christos branches: 1.36.2; 1.36.4;
PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
 1.35 05-Feb-2006  cube branches: 1.35.2;
Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
 1.34 20-Dec-2005  thorpej branches: 1.34.2; 1.34.4; 1.34.6;
Remove the tablet line discipline.
 1.33 07-Dec-2005  tsutsui Adjust comments for options FFS_NO_SNAPSHOT.

XXX: This option should be mentioned in options(4).
 1.32 19-Aug-2005  christos Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels
 1.31 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.30 30-Jul-2005  yamt add "options VMSWAP" to non INSTALL kernels.
 1.29 18-Feb-2005  dsl branches: 1.29.6;
Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT
 1.28 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.27 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.26 10-Nov-2004  christos branches: 1.26.4; 1.26.6;
Add COMPAT_BSDPTY to the rest of the config files.
 1.25 04-Sep-2004  manu IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
 1.24 15-Jul-2004  atatat Add "options SYSCTL_INCLUDE_DESCR" to a lot of configs, but commented
out in most of them.
 1.23 18-Oct-2003  lukem branches: 1.23.2;
Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use 'atapibus* at atapi?' instead of 'atapibus* at atabus?'
 1.22 08-Oct-2003  bouyer Add atabus.
 1.21 10-Apr-2003  christos branches: 1.21.2;
Bye Bye UCONSOLE
 1.20 18-Sep-2002  lukem enable USERCONF by default; it's small and extremely useful to have available.
 1.19 22-Jul-2002  tsutsui Add options BSDDISKLABEL_EI and options COMPAT_MMEYE_OLDLABEL.
 1.18 08-Jul-2002  jdolecek track rev. 1.36 of GENERIC:
adapted to new interrupt code and shb changes.

also disable tlphy - no bus_dma, so it doesn't compile
 1.17 08-Jul-2002  jdolecek g/c COMPAT_13 - there wasn't any 1.3 release of mmeye. According
to removal log of sys/arch/sh3/sh3/compat_13_machdep.c, COMPAT_13 was trace
of i386 port.
 1.16 17-Jun-2002  lukem branches: 1.16.2;
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.15 25-Apr-2002  atatat branches: 1.15.2; 1.15.4;
Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
 1.14 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.13 02-Apr-2002  lukem Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
 1.12 10-Mar-2002  lukem * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
 1.11 17-Feb-2002  uch To determine CPU architecture and product, add cpu_arch and cpu_prduct variables.
these are initialized by sh_cpu_init()@sh3/sh3_machdep.c
(see sh3/include/cputypes.h for detail.)
add "options SH3" for SH3 kernel config file.
 1.10 10-Feb-2002  wiz Update description for icsphy.
 1.9 27-Jan-2002  jdolecek add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
 1.8 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.7 20-Nov-2001  lukem - pull in opt_kgdb.h where necessary
- replace opt_kgdb_machdep.h with opt_kgdb.h
- defparam opt_kgdb.h:
KGDB_DEV KGDB_DEVNAME KGDB_DEVADDR KGDB_DEVRATE KGDB_DEVMODE
- move from opt_ddbparam.h to opt_ddb.h:
DDB_FROMCONSOLE DDB_ONPANIC DDB_HISTORY_SIZE DDB_BREAK_CHAR SYMTAB_SPACE
- replace KGDBDEV with KGDB_DEV
- replace KGDBADDR with KGDB_DEVADDR
- replace KGDBMODE with KGDB_DEVMODE
- replace KGDBRATE with KGDB_DEVRATE
- use `9600' instead of `0x2580' for 9600 baud rate
- use correct quotes for options KGDB_DEVNAME="\"com\""
- use correct quotes for options KGDB_DEV="17*256+0"
- remove unnecessary dependancy on Makefile for kgdb_stub.o
- minor whitespace cleanup
 1.6 08-Jul-2001  abs branches: 1.6.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.5 17-Oct-2000  msaitoh fix shpcic* iomem size from 0x4000000 to 0x1000000
 1.4 24-Sep-2000  jdolecek don't specify number of ptys if >= 16 (current default initial number)
pty comments: normalize and g/c what is no longer relevant
 1.3 07-Jan-2000  msaitoh branches: 1.3.4;
s/ECOFF/COFF/ (comment only)
 1.2 13-Sep-1999  msaitoh branches: 1.2.2;
remove mainbus pseudo floppy drive
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.3.4.1 05-Nov-2000  tv Pullup 1.5 [msaitoh]:
fix shpcic* iomem size from 0x4000000 to 0x1000000
 1.6.2.7 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.6.2.6 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.6.2.5 08-Jul-2002  jdolecek sync kqueue branch with -current - mmeye now compiles for real
 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 11-Feb-2002  jdolecek Sync w/ -current.
 1.6.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.15.4.1 01-Aug-2002  lukem Pull up revision 1.16 (requested by lukem in ticket #312):
Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
 1.15.2.3 31-Aug-2002  gehenna catch up with -current.
 1.15.2.2 16-Jul-2002  gehenna catch up with -current.
 1.15.2.1 14-Jul-2002  gehenna catch up with -current.
 1.16.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.16.2.2 01-Aug-2002  nathanw Catch up to -current.
 1.16.2.1 17-Jun-2002  nathanw file MMTAROMNEW was added on branch nathanw_sa on 2002-08-01 02:42:39 +0000
 1.21.2.9 11-Dec-2005  christos Sync with head.
 1.21.2.8 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.21.2.7 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.21.2.6 15-Feb-2005  skrll Sync with HEAD.
 1.21.2.5 04-Feb-2005  skrll Sync with HEAD.
 1.21.2.4 14-Nov-2004  skrll Sync with HEAD.
 1.21.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.21.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.21.2.1 03-Aug-2004  skrll Sync with HEAD
 1.23.2.1 15-Jul-2004  he Pull up revision 1.24 (requested by atatat in ticket #663):
Add "options SYSCTL_INCLUDE_DESCR" to a lot of configurations,
but commented out in most of them.
 1.26.6.2 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.26.6.1 12-Feb-2005  yamt sync with head.
 1.26.4.1 29-Apr-2005  kent sync with -current
 1.29.6.4 17-Mar-2008  yamt sync with head.
 1.29.6.3 04-Feb-2008  yamt sync with head.
 1.29.6.2 30-Dec-2006  yamt sync with head.
 1.29.6.1 21-Jun-2006  yamt sync with head.
 1.34.6.1 22-Apr-2006  simonb Sync with head.
 1.34.4.1 09-Sep-2006  rpaulo sync with head
 1.34.2.1 18-Feb-2006  yamt sync with head.
 1.35.2.1 03-Sep-2006  yamt sync with head.
 1.36.4.1 22-Oct-2006  yamt sync with head
 1.36.2.1 18-Nov-2006  ad Sync with head.
 1.37.34.1 18-Feb-2008  mjf Sync with HEAD.
 1.37.28.1 23-Mar-2008  matt sync with HEAD
 1.38.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.38.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.38.2.1 24-Mar-2008  keiichi sync with head.
 1.39.12.2 28-Apr-2009  skrll Sync with HEAD.
 1.39.12.1 19-Jan-2009  skrll Sync with HEAD.
 1.39.10.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.39.4.3 11-Aug-2010  yamt sync with head.
 1.39.4.2 11-Mar-2010  yamt sync with head
 1.39.4.1 04-May-2009  yamt sync with head.
 1.40.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.42.4.3 21-Apr-2011  rmind sync with head
 1.42.4.2 05-Mar-2011  rmind sync with head
 1.42.4.1 30-May-2010  rmind sync with head
 1.42.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.44.4.2 05-Mar-2011  bouyer Sync with HEAD
 1.44.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.44.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.46.4.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.46.4.1 17-Apr-2012  yamt sync with head
 1.47.8.3 03-Dec-2017  jdolecek update from HEAD
 1.47.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.47.8.1 23-Jun-2013  tls resync from head
 1.49.4.1 28-Aug-2013  rmind sync with head
 1.50.8.2 28-Aug-2017  skrll Sync with HEAD
 1.50.8.1 22-Sep-2015  skrll Sync with HEAD
 1.53.4.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.53.4.1 10-Jun-2019  christos Sync with HEAD
 1.53.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.54.6.1 25-Jan-2020  ad Sync with head.
 1.10 03-Jan-2001  itojun share sys/arch/sh3/conf/Makefile.sh3 across sh3-based architectures.
cleanup param.h a bit.
 1.9 17-Dec-2000  jdolecek delete obsolete comment
 1.8 09-May-2000  hubertf Add "install" target, so "make install" after building the kernel
does something useful. The target can be redefined by putting a
install-kernel-${MACHINE_NAME} target that fits your needs into
/etc/mk.conf.
 1.7 09-May-2000  thorpej HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well. Also,
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.
 1.6 01-Feb-2000  tsutsui Revert STRIPPROG -> STRIP
 1.5 24-Jan-2000  tron Add "dependall" target for comfort.
 1.4 19-Jan-2000  tsutsui STRIP -> STRIPPROG
 1.3 21-Sep-1999  tsubai branches: 1.3.2;
Add %INCLUDES.
Compile tcp_input.c with only -O1 to avoid gcc bug.
 1.2 14-Sep-1999  tsubai Sync with -current.
XXX root on nfs don't work, though root on wd0 works well.
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.3.2.2 05-Jan-2001  bouyer Sync with HEAD
 1.3.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.8 06-Jul-2010  mrg remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
 1.7 02-Feb-2008  uwe branches: 1.7.10; 1.7.30; 1.7.32;
Use std.sh3eb and g/c local duplicates.
 1.6 09-Dec-2001  atatat branches: 1.6.12; 1.6.24; 1.6.34; 1.6.94; 1.6.100;
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.5 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.4 23-Oct-2001  thorpej No need to set MACHINE now that config(8) sets it.
 1.3 04-Jan-2001  itojun branches: 1.3.2; 1.3.6;
split MACHINE_ARCH sh3e[lb]. userland build still needs checking.
 1.2 03-Jan-2001  itojun $NetBSD$
 1.1 03-Jan-2001  itojun share sys/arch/sh3/conf/Makefile.sh3 across sh3-based architectures.
cleanup param.h a bit.
 1.3.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.2 05-Jan-2001  bouyer Sync with HEAD
 1.3.2.1 04-Jan-2001  bouyer file Makefile.mmeye.inc was added on branch thorpej_scsipi on 2001-01-05 17:34:48 +0000
 1.6.100.1 18-Feb-2008  mjf Sync with HEAD.
 1.6.94.1 23-Mar-2008  matt sync with HEAD
 1.6.34.1 04-Feb-2008  yamt sync with head.
 1.6.24.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.6.12.2 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.6.12.1 09-Dec-2001  atatat file Makefile.mmeye.inc was added on branch nathanw_sa on 2001-12-09 05:00:48 +0000
 1.7.32.1 05-Mar-2011  rmind sync with head
 1.7.30.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.7.10.1 11-Aug-2010  yamt sync with head.
 1.16 26-Jul-2011  dyoung Build sh3/sh3/sh3_bus_space.c only for mmeye.
 1.15 22-Mar-2011  kiyohara Add slhci(4) and some usb devices.
 1.14 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.13 06-Sep-2002  gehenna branches: 1.13.134; 1.13.140; 1.13.142;
Merge the gehenna-devsw branch into the trunk.

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

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

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

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

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

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

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

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

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
 1.12 16-Apr-2002  thorpej branches: 1.12.2; 1.12.6;
* 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.11 27-Mar-2002  uch All the sh3 ports had an identical procfs_machdep.c, so use a common
file under arch/sh3/sh3.
 1.10 24-Mar-2002  uch add cpu device. sync with shb change.
 1.9 22-Feb-2002  uch New NetBSD/sh3 clock framework.
+ hardclock source is moved from TMU1 to TMU0.
+ SH3/SH4 common kernel support.
+ PCLOCK estimation.
+ remove duplicated code.
 1.8 20-Nov-2001  lukem - replace "defopt" with "defparam" for options which must take a value,
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
 1.7 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.6 23-Apr-2001  uch branches: 1.6.2;
dreamcast clock module was separated.
 1.5 21-Feb-2001  uch branches: 1.5.2;
move disksubr.c define to machine-port.
 1.4 06-Feb-2001  uch move machine-port specific file to machine directory.
for evbsh3, mmeye and dreamcast, use MI md_root.c
 1.3 17-Jan-2001  fvdl Add machdep file for procfs. Currently only used for linux-style
/proc/cpuinfo (only active when procfs is mounted with -o linux).
For ports other than the i386 this currently produces an empty
string.
 1.2 24-Feb-2000  msaitoh variable start address of the main memory (now we can use
the area 2 as main memory with "options IOM_RAM_BEGIN=0x88000000")
 1.1 13-Sep-1999  itojun branches: 1.1.2;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.2.4 12-Mar-2001  bouyer Sync with HEAD.
 1.1.2.3 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.2 18-Jan-2001  bouyer Sync with head (for UBC+NFS fixes, mostly).
 1.1.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.2.1 21-Jun-2001  nathanw Catch up to -current.
 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 16-Mar-2002  jdolecek Catch up with -current.
 1.6.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.12.6.2 17-Sep-2002  nathanw Catch up to -current.
 1.12.6.1 16-Apr-2002  nathanw file files.mmeye was added on branch nathanw_sa on 2002-09-17 21:15:59 +0000
 1.12.2.2 17-May-2002  gehenna Remove old block majors list.
 1.12.2.1 16-May-2002  gehenna Include the list of block/character major numbers.
 1.13.142.1 05-Mar-2011  bouyer Sync with HEAD
 1.13.140.1 06-Jun-2011  jruoho Sync with HEAD.
 1.13.134.2 21-Apr-2011  rmind sync with head
 1.13.134.1 05-Mar-2011  rmind sync with head
 1.9 24-Mar-2002  uch branches: 1.9.4;
adapted to new interrupt code and shb changes.
 1.8 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.7 20-Nov-2001  lukem - replace "defopt" with "defparam" for options which must take a value,
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
 1.6 22-Aug-2001  msaitoh devclass of sci[f] is tty
 1.5 21-Apr-2000  tsubai branches: 1.5.8;
Use dev/ic/com.c.
 1.4 24-Feb-2000  msaitoh watchdog timer
 1.3 16-Sep-1999  msaitoh branches: 1.3.2;
add "device fdc {drive = -1}" for pcmcia
 1.2 13-Sep-1999  msaitoh sh3/sh3/ -> sh3/dev change
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.3.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.8.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.5.8.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.5.8.1 25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.9.4.2 24-Mar-2002  uch adapted to new interrupt code and shb changes.
 1.9.4.1 24-Mar-2002  uch file files.shbus was added on branch nathanw_sa on 2002-03-24 18:21:22 +0000
 1.23 04-Apr-2020  jdolecek mark nsmb major obsolete
 1.22 28-Jan-2019  dholland Systematize handling of removed drivers.

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

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

Note that some of the things now explicitly listed as obsolete are
really ancient history. My scan went back as far as when the majors
files were added. (But not before that.)
 1.21 30-Jun-2011  wiz branches: 1.21.54;
dependant -> dependent
 1.20 02-Feb-2011  kiyohara Assign mojor number to sci and scif.
 1.19 12-Nov-2008  ad branches: 1.19.8; 1.19.10; 1.19.12;
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.18 31-Dec-2007  ad branches: 1.18.6; 1.18.10; 1.18.16; 1.18.18;
Remove systrace. Ok core@.
 1.17 24-Nov-2006  wiz branches: 1.17.28; 1.17.34; 1.17.42;
s/independant/independent/, from Zafer.
 1.16 11-Dec-2005  christos branches: 1.16.20; 1.16.22;
merge ktrace-lwp.
 1.15 17-Sep-2005  yamt make VMSWAP optional again.
 1.14 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.13 30-Jul-2005  yamt defflag VMSWAP.
 1.12 10-May-2005  jdolecek branches: 1.12.2;
assign major for nsmb(4)
 1.11 10-Dec-2003  jmc Change reference at bottom from sys/dev/majors to sys/conf/majors to match
reality
 1.10 24-Oct-2003  jdolecek add major for 'ses' for archs which have the other scsi devices
 1.9 10-Oct-2003  jdolecek reassing majors for crypto and pf to use the newly defined MI major
range
 1.8 10-Oct-2003  jdolecek update the comment - the space for machine-dependant majors
is reduced to 0-143
follows discussion on tech-kern
 1.7 05-Oct-2003  jdolecek Add some framework for MI assignment of device majors - add sys/dev/majors
which is automatically included during kernel config, and add comments
to individual machine-dependant majors.* files to assign new MI majors
in MI file.

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

Follows recent discussion on tech-kern@
 1.6 22-Aug-2003  itojun create /dev/crypto
 1.5 27-Jul-2003  itojun reserve cdev major # for PF. ok'ed by technical-exec
 1.4 25-Apr-2003  ragge branches: 1.4.2;
Add ksyms device major.
 1.3 04-Oct-2002  elric branches: 1.3.2;
assign majors for raw and cooked cgd's.
 1.2 06-Sep-2002  gehenna Merge the gehenna-devsw branch into the trunk.

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

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

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

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

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

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

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

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

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
 1.1 16-May-2002  gehenna branches: 1.1.2; 1.1.4;
file majors.mmeye was initially added on branch gehenna-devsw.
 1.1.4.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.4.1 17-Sep-2002  nathanw Catch up to -current.
 1.1.2.3 14-Jul-2002  gehenna catch up with -current.
 1.1.2.2 30-May-2002  gehenna Add $NetBSD$
 1.1.2.1 16-May-2002  gehenna Add the list of block/character majors.
 1.3.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.3.2.1 04-Oct-2002  jdolecek file majors.mmeye was added on branch kqueue on 2002-10-10 18:34:15 +0000
 1.4.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.4.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.2.1 03-Aug-2004  skrll Sync with HEAD
 1.12.2.3 21-Jan-2008  yamt sync with head
 1.12.2.2 30-Dec-2006  yamt sync with head.
 1.12.2.1 21-Jun-2006  yamt sync with head.
 1.16.22.1 10-Dec-2006  yamt sync with head.
 1.16.20.1 12-Jan-2007  ad Sync with head.
 1.17.42.1 02-Jan-2008  bouyer Sync with HEAD
 1.17.34.1 18-Feb-2008  mjf Sync with HEAD.
 1.17.28.1 09-Jan-2008  matt sync with HEAD
 1.18.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.18.16.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.18.10.1 04-May-2009  yamt sync with head.
 1.18.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.19.12.1 08-Feb-2011  bouyer Sync with HEAD
 1.19.10.1 06-Jun-2011  jruoho Sync with HEAD.
 1.19.8.1 05-Mar-2011  rmind sync with head
 1.21.54.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.21.54.1 10-Jun-2019  christos Sync with HEAD
 1.5 23-Aug-2015  uebayasi Unfortunately no sh3 kernels (no longer?) use linker scripts, but I dare to
clean up .ctors/.dtors here too.
 1.4 20-Aug-2015  uebayasi Whitespace.
 1.3 20-Nov-2001  lukem branches: 1.3.12; 1.3.168; 1.3.188;
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 06-Feb-2000  msaitoh branches: 1.2.8;
fix the calculation bug for the LMA of bss.
 1.1 13-Sep-1999  itojun branches: 1.1.2;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.8.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.188.1 22-Sep-2015  skrll Sync with HEAD
 1.3.168.1 03-Dec-2017  jdolecek update from HEAD
 1.3.12.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.3.12.1 20-Nov-2001  lukem file sh.x was added on branch nathanw_sa on 2001-11-20 12:56:34 +0000
 1.3 23-Aug-2015  uebayasi Unfortunately no sh3 kernels (no longer?) use linker scripts, but I dare to
clean up .ctors/.dtors here too.
 1.2 20-Nov-2001  lukem branches: 1.2.12; 1.2.168; 1.2.188;
cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.1 13-Sep-1999  itojun branches: 1.1.16;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.16.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.188.1 22-Sep-2015  skrll Sync with HEAD
 1.2.168.1 03-Dec-2017  jdolecek update from HEAD
 1.2.12.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.2.12.1 20-Nov-2001  lukem file sh.x.ICE was added on branch nathanw_sa on 2001-11-20 12:56:34 +0000
 1.3 23-Aug-2015  uebayasi Unfortunately no sh3 kernels (no longer?) use linker scripts, but I dare to
clean up .ctors/.dtors here too.
 1.2 20-Nov-2001  lukem branches: 1.2.12; 1.2.168; 1.2.188;
cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.1 13-Sep-1999  itojun branches: 1.1.16;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.16.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.188.1 22-Sep-2015  skrll Sync with HEAD
 1.2.168.1 03-Dec-2017  jdolecek update from HEAD
 1.2.12.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.2.12.1 20-Nov-2001  lukem file sh.x.RAM was added on branch nathanw_sa on 2001-11-20 12:56:34 +0000
 1.2 20-Nov-2001  lukem branches: 1.2.12;
cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.1 13-Sep-1999  itojun branches: 1.1.16;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.16.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.12.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.2.12.1 20-Nov-2001  lukem file sh.x.ROM was added on branch nathanw_sa on 2001-11-20 12:56:34 +0000
 1.3 23-Aug-2015  uebayasi Unfortunately no sh3 kernels (no longer?) use linker scripts, but I dare to
clean up .ctors/.dtors here too.
 1.2 20-Nov-2001  lukem branches: 1.2.12; 1.2.168; 1.2.188;
cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.1 13-Sep-1999  itojun branches: 1.1.16;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.16.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.188.1 22-Sep-2015  skrll Sync with HEAD
 1.2.168.1 03-Dec-2017  jdolecek update from HEAD
 1.2.12.2 20-Nov-2001  lukem cleanup:
options SPACE TAB
makeoptions TAB
psuedo-device TAB
remove trailing whitespace
replace multiple spaces -> tabs
options "FOO" -> options FOO
options "FOO=bar" -> options FOO=bar
options "FOO=\"bar\"" -> options FOO="\"bar\""
 1.2.12.1 20-Nov-2001  lukem file shl.x was added on branch nathanw_sa on 2001-11-20 12:56:34 +0000
 1.13 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.12 02-Feb-2008  uwe branches: 1.12.32; 1.12.38; 1.12.40;
Use std.sh3eb and g/c local duplicates.
 1.11 17-Mar-2006  uebayasi branches: 1.11.38; 1.11.44;
Stop using linker scripts on all sh3 ports.

The only information to be compensated is text section start address.
The default value is set arch-wise as DEFTEXTADDR. Each kernel config
can override the default value by setting TEXTADDR.

Tested on COMPUTEXEVB (evbsh3).

Reviewed By: uwe
 1.10 11-Dec-2005  christos branches: 1.10.4; 1.10.6; 1.10.8; 1.10.10; 1.10.12;
merge ktrace-lwp.
 1.9 17-Sep-2005  yamt include "conf/std".
 1.8 09-May-2002  uch branches: 1.8.6; 1.8.12; 1.8.28;
IOM_RAM_BEGIN is changed to specify physical address.
 1.7 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.6 03-Jan-2001  itojun branches: 1.6.4;
share sys/arch/sh3/conf/Makefile.sh3 across sh3-based architectures.
cleanup param.h a bit.
 1.5 22-Jun-2000  fvdl Remove prefix construction for softdeps. Add SOFTDEP option to GENERIC.
 1.4 24-Feb-2000  msaitoh branches: 1.4.4;
variable start address of the main memory (now we can use
the area 2 as main memory with "options IOM_RAM_BEGIN=0x88000000")
 1.3 15-Nov-1999  fvdl Add

prefix ../gnu/sys
cinclude "conf/files.softdep"
prefix

to all std.* files, so that soft dependencies can be activated using
"options SOFTDEP".
 1.2 14-Sep-1999  tsubai branches: 1.2.2; 1.2.8;
Sync with -current.
XXX root on nfs don't work, though root on wd0 works well.
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.2.2 05-Jan-2001  bouyer Sync with HEAD
 1.2.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.4.1 23-Jun-2000  fvdl As on the trunk, update these for the move of ffs_softdep.c into the
kernel source itself. Remove prefix construction, and add the SOFTDEP
option to GENERIC kernels.
 1.6.4.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.4.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.28.2 04-Feb-2008  yamt sync with head.
 1.8.28.1 21-Jun-2006  yamt sync with head.
 1.8.12.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.8.6.2 09-May-2002  uch IOM_RAM_BEGIN is changed to specify physical address.
 1.8.6.1 09-May-2002  uch file std.mmeye was added on branch nathanw_sa on 2002-05-09 12:35:45 +0000
 1.10.12.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.10.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.10.8.1 01-Apr-2006  yamt sync with head.
 1.10.6.1 22-Apr-2006  simonb Sync with head.
 1.10.4.1 09-Sep-2006  rpaulo sync with head
 1.11.44.1 18-Feb-2008  mjf Sync with HEAD.
 1.11.38.1 23-Mar-2008  matt sync with HEAD
 1.12.40.1 05-Mar-2011  bouyer Sync with HEAD
 1.12.38.1 06-Jun-2011  jruoho Sync with HEAD.
 1.12.32.1 05-Mar-2011  rmind sync with head
 1.13 08-Dec-2018  thorpej Clean up initialization of com_regs structure, in preparation for
some additional changers.
 1.12 19-Jul-2011  dyoung branches: 1.12.52; 1.12.54;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark mmeye/bus.h obsolete.
 1.11 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.10 02-Feb-2011  kiyohara Use cf_name to match instead of cd_name.
Call com_is_console().
Using bus_space_tag_t and bus_space_handle_t is manners for more machines.
 1.9 28-Apr-2008  martin branches: 1.9.22; 1.9.28; 1.9.30;
Remove clause 3 and 4 from TNF licenses
 1.8 14-Mar-2008  cube branches: 1.8.2; 1.8.4;
Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend). Use proper types and ansify where appropriate.
 1.7 13-Jul-2006  gdamore branches: 1.7.34; 1.7.54; 1.7.58;
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.6 11-Dec-2005  christos branches: 1.6.4; 1.6.8; 1.6.16;
merge ktrace-lwp.
 1.5 15-Jul-2003  lukem branches: 1.5.16;
__KERNEL_RCSID()
 1.4 14-Jun-2003  thorpej branches: 1.4.2;
Also pass a type argument to comcnattach() and com_kgdb_attach().
comspeed() (and thus cominit()) may need this information.
 1.3 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 24-Mar-2002  uch branches: 1.1.6; 1.1.8;
mmeye specific devices are moved to mmeye/dev
 1.1.8.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.8.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.8.1 24-Mar-2002  jdolecek file com_mainbus.c was added on branch kqueue on 2002-06-23 17:38:13 +0000
 1.1.6.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.6.1 24-Mar-2002  nathanw file com_mainbus.c was added on branch nathanw_sa on 2002-10-18 02:38:55 +0000
 1.4.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.2.1 03-Aug-2004  skrll Sync with HEAD
 1.5.16.2 17-Mar-2008  yamt sync with head.
 1.5.16.1 30-Dec-2006  yamt sync with head.
 1.6.16.1 16-Jun-2006  gdamore Conver mmeye com_mainbus.c to new com framework.
 1.6.8.1 11-Aug-2006  yamt sync with head
 1.6.4.1 09-Sep-2006  rpaulo sync with head
 1.7.58.2 02-Jun-2008  mjf Sync with HEAD.
 1.7.58.1 03-Apr-2008  mjf Sync with HEAD.
 1.7.54.1 24-Mar-2008  keiichi sync with head.
 1.7.34.1 23-Mar-2008  matt sync with HEAD
 1.8.4.1 16-May-2008  yamt sync with head.
 1.8.2.1 18-May-2008  yamt sync with head.
 1.9.30.2 05-Mar-2011  bouyer Sync with HEAD
 1.9.30.1 08-Feb-2011  bouyer Sync with HEAD
 1.9.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.9.22.1 05-Mar-2011  rmind sync with head
 1.12.54.1 10-Jun-2019  christos Sync with HEAD
 1.12.52.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.1 19-Feb-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 19-Feb-2011  jruoho file if_ne_mainbus.c was added on branch jruoho-x86intr on 2011-06-06 09:06:13 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 19-Feb-2011  rmind file if_ne_mainbus.c was added on branch rmind-uvmplock on 2011-03-05 20:51:14 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 19-Feb-2011  bouyer file if_ne_mainbus.c was added on branch bouyer-quota2 on 2011-03-05 15:09:53 +0000
 1.27 13-Feb-2024  andvar s/enqueing/enqueuing/ in debug messages (took a bait from recent Nick's commit)
s/occaision/occasion/ in comment.
 1.26 29-Sep-2023  andvar Remove h->sock from DPRINTF arguments, it is leftover from shpcic_handle, removed
when code was moved to mmeye specific device code in 2002.
Add const for *width_names[] definition.
Redefine ioaddr in mmeyepcmcia_chip_io_alloc() and calculate in advance, since
DPRINTF() expects it as one of the arguments. This code was simplified with mmEye-WL
added support in 2011, but broke debug code.

Fixes MMEYEPCMCIADEBUG enabled build.
 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 21-Nov-2020  thorpej branches: 1.23.2;
malloc(9) -> kmem(9)
 1.22 27-Oct-2012  chs branches: 1.22.50;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.21 26-Jul-2011  dyoung branches: 1.21.2; 1.21.12;
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 mmeye/bus.h obsolete.
 1.19 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.18 02-Feb-2011  kiyohara Remove unused macros.
 1.17 02-Feb-2011  kiyohara Add socket_settype of struct pcmcia_chip_functions. Always need it.
 1.16 02-Feb-2011  kiyohara Change to static functions.
 1.15 16-Mar-2009  dsl branches: 1.15.4; 1.15.6; 1.15.8;
ANSIfy functions with function-pointer arguments
 1.14 17-Oct-2007  garbled branches: 1.14.20; 1.14.28; 1.14.34;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.13 09-Jul-2007  ad branches: 1.13.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.12 04-Mar-2007  christos branches: 1.12.2; 1.12.4; 1.12.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.11 24-Dec-2005  perry branches: 1.11.26;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.10 11-Dec-2005  christos merge ktrace-lwp.
 1.9 28-Jun-2005  drochner branches: 1.9.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.8 28-Dec-2003  christos make the printf statement a complete line.
 1.7 15-Jul-2003  lukem __KERNEL_RCSID()
 1.6 01-Jan-2003  thorpej branches: 1.6.2;
Use aprint_normal() for cfprint routines.
 1.5 02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.4 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.3 27-Sep-2002  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 01-Jun-2002  lukem branches: 1.2.2; 1.2.4;
SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
 1.1 24-Mar-2002  uch branches: 1.1.2;
mmeye specific devices are moved to mmeye/dev
 1.1.2.1 14-Jul-2002  gehenna catch up with -current.
 1.2.4.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.4.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.4.1 01-Jun-2002  jdolecek file mmeyepcmcia.c was added on branch kqueue on 2002-06-23 17:38:14 +0000
 1.2.2.3 03-Jan-2003  thorpej Sync with HEAD.
 1.2.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.2.2.1 01-Jun-2002  nathanw file mmeyepcmcia.c was added on branch nathanw_sa on 2002-10-18 02:38:56 +0000
 1.6.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.6.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.2.1 03-Aug-2004  skrll Sync with HEAD
 1.9.2.2 03-Sep-2007  yamt sync with head.
 1.9.2.1 21-Jun-2006  yamt sync with head.
 1.11.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.12.10.1 03-Oct-2007  garbled Sync with HEAD
 1.12.4.1 11-Jul-2007  mjf Sync with head.
 1.12.2.1 15-Jul-2007  ad Sync with head.
 1.13.10.1 06-Nov-2007  matt sync with HEAD
 1.14.34.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.14.28.1 28-Apr-2009  skrll Sync with HEAD.
 1.14.20.1 04-May-2009  yamt sync with head.
 1.15.8.2 05-Mar-2011  bouyer Sync with HEAD
 1.15.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.15.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.15.4.1 05-Mar-2011  rmind sync with head
 1.21.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.21.2.1 30-Oct-2012  yamt sync with head
 1.22.50.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.23.2.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.24.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 02-Feb-2011  kiyohara Indent.
 1.1 24-Mar-2002  uch branches: 1.1.6; 1.1.8; 1.1.142; 1.1.148; 1.1.150;
mmeye specific devices are moved to mmeye/dev
 1.1.150.1 08-Feb-2011  bouyer Sync with HEAD
 1.1.148.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.142.1 05-Mar-2011  rmind sync with head
 1.1.8.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.8.1 24-Mar-2002  jdolecek file mmeyepcmciareg.h was added on branch kqueue on 2002-06-23 17:38:14 +0000
 1.1.6.2 24-Mar-2002  uch mmeye specific devices are moved to mmeye/dev
 1.1.6.1 24-Mar-2002  uch file mmeyepcmciareg.h was added on branch nathanw_sa on 2002-03-24 18:08:47 +0000
 1.6 15-Sep-2025  thorpej Encapsulate what's needed to attach an I2C bus into a iicbus_attach()
inline.
 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 27-Dec-2019  msaitoh branches: 1.3.10;
s/recive/receive/ in comment.
 1.2 22-Dec-2019  thorpej 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.1 19-Feb-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8; 1.1.62;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.1.62.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 19-Feb-2011  jruoho file rtciic.c was added on branch jruoho-x86intr on 2011-06-06 09:06:13 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 19-Feb-2011  rmind file rtciic.c was added on branch rmind-uvmplock on 2011-03-05 20:51:14 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 19-Feb-2011  bouyer file rtciic.c was added on branch bouyer-quota2 on 2011-03-05 15:09:53 +0000
 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.7 09-Sep-2019  jdolecek adjust several missed drivers for wdcprobe() changes of ATA NCQ branch

for dreamcast g1 just drop the custom reset function, it doesn't seem to do
anything useful over the generic variant

PR kern/54538 by Izumi Tsutsui
 1.6 20-Oct-2017  jdolecek branches: 1.6.4; 1.6.8;
move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init()
and ata_channel_destroy() respectively, to make attachment code simpler,
and to make it easier to spot special queue manipulation like cmdide(4)

on topic of PR kern/52606
 1.5 07-Oct-2017  jdolecek adapt the rest of wdc attachments for NCQ branch merge
 1.4 31-Jul-2012  bouyer branches: 1.4.2;
Apply back changes that were reverted on Jul 24 and Jul 26 (general ata/wdc
cleanup and SATA PMP support), now that I'm back to fix the fallouts.
 1.3 26-Jul-2012  jakllsch Revert, with intention of restoring in a less invasive way, the SATA Port
Multiplier code.

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

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

Thanks to:
- Protocase (http://www.protocase.com/) which provided a system
with lots of controllers, SATA PMP and drive slots
- Conservation Genomics Laboratory, Department of Biology, New Mexico State
University for hosting the above system
- Brook Milligan, who set up remote access and has been very responsive
when SATA cable move was needed
 1.1 19-Feb-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8; 1.1.10;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.1.10.1 30-Oct-2012  yamt sync with head
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 19-Feb-2011  jruoho file wdc_mainbus.c was added on branch jruoho-x86intr on 2011-06-06 09:06:13 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 19-Feb-2011  rmind file wdc_mainbus.c was added on branch rmind-uvmplock on 2011-03-05 20:51:14 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 19-Feb-2011  bouyer file wdc_mainbus.c was added on branch bouyer-quota2 on 2011-03-05 15:09:53 +0000
 1.4.2.1 03-Dec-2017  jdolecek update from HEAD
 1.6.8.1 23-Sep-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #232):

sys/arch/evbppc/mpc85xx/wdc_obio.c: revision 1.7
sys/arch/dreamcast/dev/g1/wdc_g1.c: revision 1.4
sys/arch/dreamcast/dev/g1/wdc_g1.c: revision 1.5
sys/arch/mmeye/dev/wdc_mainbus.c: revision 1.7
sys/dev/ic/wdcvar.h: revision 1.99
sys/dev/ic/wdc.c: revision 1.292
sys/arch/mips/adm5120/dev/wdc_extio.c: revision 1.11

adjust several missed drivers for wdcprobe() changes of ATA NCQ branch
for dreamcast g1 just drop the custom reset function, it doesn't seem to do
anything useful over the generic variant

PR kern/54538 by Izumi Tsutsui

Restore interface to pass a MD reset function to MI wdcprobe().

Fixes silent hang on G1IDE on Dreamcast. PR kern/54538
Should be pulled up to netbsd-9 with the previous changes.
 1.6.4.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.28 30-Nov-2024  christos 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.27 12-Jul-2018  maxv branches: 1.27.36;
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.26 25-Aug-2016  christos branches: 1.26.14; 1.26.16;
fenv.h for sh
 1.25 19-Jul-2011  dyoung branches: 1.25.12; 1.25.30;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark mmeye/bus.h obsolete.
 1.24 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.23 09-Feb-2007  ad Merge newlock2 to head.
 1.22 26-Jul-2006  drochner branches: 1.22.4;
don't install <machine/db_machdep.h>, this is kernel only
 1.21 11-Dec-2005  christos branches: 1.21.4; 1.21.8;
merge ktrace-lwp.
 1.20 08-May-2004  kleink branches: 1.20.12;
Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.
 1.19 08-Mar-2004  jmc Sync up w. other sh3 ports and don't install trap.h
 1.18 17-Jan-2003  thorpej branches: 1.18.2;
Merge the nathanw_sa branch.
 1.17 26-Nov-2002  lukem Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.
 1.16 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.15 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.14 02-May-2002  uch branches: 1.14.2; 1.14.6;
remove obsolete header file (shbvar.h)
 1.13 08-Mar-2002  uch remove unneeded code and files.
 1.12 19-Sep-2001  chs don't install loadfile_machdep.h. standalone programs should
include it directly from the kernel source tree.
 1.11 15-Apr-2001  kleink branches: 1.11.2; 1.11.4;
Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.10 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.9 14-Apr-2001  kleink Add definitions of C99 integer constant macros.
Tidy Makefiles up a little.
 1.8 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.7 26-Jun-2000  kleink branches: 1.7.2;
Add <machine/int_types.h>, which provides namespace-pure definitions
of exact-width integer types.
 1.6 29-Apr-2000  thorpej Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED. These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case). Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.

These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
 1.5 17-Mar-2000  tron Install "machineendian_machdep.h".
 1.4 24-Feb-2000  msaitoh variable start address of the main memory (now we can use
the area 2 as main memory with "options IOM_RAM_BEGIN=0x88000000")
 1.3 17-Jan-2000  kleink Add NAN constant glue for sh3.
 1.2 07-Jan-2000  msaitoh machine/exec_coff.h -> sys/exec_coff.h
 1.1 13-Sep-1999  itojun branches: 1.1.2;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.7.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.11.4.1 01-Oct-2001  fvdl Catch up with -current.
 1.11.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.11.2.4 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.11.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.11.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.11.2.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.14.6.5 11-Dec-2002  thorpej Sync with HEAD.
 1.14.6.4 17-Sep-2002  nathanw Catch up to -current.
 1.14.6.3 13-Aug-2002  nathanw Catch up to -current.
 1.14.6.2 20-Jun-2002  thorpej Machine-dependent kernel portion of {get,set}context(). From
Klaus Klein.
 1.14.6.1 02-May-2002  thorpej file Makefile was added on branch nathanw_sa on 2002-06-20 23:00:48 +0000
 1.14.2.2 31-Aug-2002  gehenna catch up with -current.
 1.14.2.1 19-May-2002  gehenna Remove port-dependent conf.h.
 1.18.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.18.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.18.2.1 03-Aug-2004  skrll Sync with HEAD
 1.20.12.2 26-Feb-2007  yamt sync with head.
 1.20.12.1 30-Dec-2006  yamt sync with head.
 1.21.8.1 11-Aug-2006  yamt sync with head
 1.21.4.1 09-Sep-2006  rpaulo sync with head
 1.22.4.1 01-Feb-2007  ad Header file cleanup.
 1.25.30.1 05-Oct-2016  skrll Sync with HEAD
 1.25.12.1 03-Dec-2017  jdolecek update from HEAD
 1.26.16.1 10-Jun-2019  christos Sync with HEAD
 1.26.14.1 28-Jul-2018  pgoyette Sync with HEAD
 1.27.36.1 02-Aug-2025  perseant Sync with HEAD
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.5 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark mmeye/bus.h obsolete.
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 11-Dec-2005  christos branches: 1.3.74; 1.3.76; 1.3.78;
merge ktrace-lwp.
 1.2 05-Jun-2005  he Adapt to building with -Wcast-qual. Regrettably we have to use
__UNCONST() in one sysctl_lookup() invocation (for now).
 1.1 24-Mar-2002  uch branches: 1.1.6; 1.1.8; 1.1.14;
add autoconf.h for new mainbus driver.
 1.1.14.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.8.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.8.1 24-Mar-2002  jdolecek file autoconf.h was added on branch kqueue on 2002-06-23 17:38:14 +0000
 1.1.6.2 24-Mar-2002  uch add autoconf.h for new mainbus driver.
 1.1.6.1 24-Mar-2002  uch file autoconf.h was added on branch nathanw_sa on 2002-03-24 18:28:14 +0000
 1.3.78.1 16-May-2008  yamt sync with head.
 1.3.76.1 18-May-2008  yamt sync with head.
 1.3.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.3 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.2 08-Mar-2002  uch branches: 1.2.8; 1.2.90; 1.2.96; 1.2.98;
remove unneeded code and files.
 1.1 13-Sep-1999  itojun branches: 1.1.16;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.16.1 16-Mar-2002  jdolecek Catch up with -current.
 1.2.98.1 05-Mar-2011  bouyer Sync with HEAD
 1.2.96.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.90.1 05-Mar-2011  rmind sync with head
 1.2.8.2 08-Mar-2002  uch remove unneeded code and files.
 1.2.8.1 08-Mar-2002  uch file bootinfo.h was added on branch nathanw_sa on 2002-03-08 13:22:14 +0000
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.4 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark mmeye/bus.h obsolete.
 1.3 23-Mar-2011  tsutsui bus_dma_segment_t should be a structure, not a pointer.
 1.2 22-Mar-2011  kiyohara Add dummy bus_dma(9) stuff.
 1.1 13-Sep-1999  itojun branches: 1.1.164; 1.1.170;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.170.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.164.1 21-Apr-2011  rmind sync with head
 1.1 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark mmeye/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 mmeye/bus.h obsolete.
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.5 06-Sep-2002  gehenna Merge the gehenna-devsw branch into the trunk.

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

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

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

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

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

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

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

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

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
 1.4 27-Feb-2002  christos branches: 1.4.8; 1.4.12;
- define other DEV_ constants that the local port uses.
- delete cdev_decl(mm) since <sys/conf.h> does it.
 1.3 26-Mar-2001  lukem branches: 1.3.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.2 24-Feb-2000  msaitoh branches: 1.2.6;
watchdog timer
 1.1 13-Sep-1999  itojun branches: 1.1.2;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.2.2 27-Mar-2001  bouyer Sync with HEAD.
 1.1.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.6.1 09-Apr-2001  nathanw Catch up with -current.
 1.3.2.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.3.2.1 16-Mar-2002  jdolecek Catch up with -current.
 1.4.12.2 17-Sep-2002  nathanw Catch up to -current.
 1.4.12.1 27-Feb-2002  nathanw file conf.h was added on branch nathanw_sa on 2002-09-17 21:16:00 +0000
 1.4.8.1 19-May-2002  gehenna Remove port-dependent conf.h.
 1.5 04-Mar-2002  uch branches: 1.5.10;
CTL_MACHDEP definitions are integrated into sh3/include/cpu.h again.
 1.4 03-Mar-2002  uch machine dependent sysctl are moved to machine/cpu.h
dreamcast, hpcsh ... CPU_CONSDEV
mmeye, evbsh3 ... CPU_CONSDEV, CPU_LOADANDRESET
 1.3 24-Dec-1999  msaitoh branches: 1.3.8;
back to previous one (suggested by cgd)
 1.2 21-Dec-1999  msaitoh move sysctl definitions into ${MACHINE}/include/cpu.h
 1.1 13-Sep-1999  itojun branches: 1.1.2; 1.1.8;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.3.8.1 16-Mar-2002  jdolecek Catch up with -current.
 1.5.10.2 04-Mar-2002  uch CTL_MACHDEP definitions are integrated into sh3/include/cpu.h again.
 1.5.10.1 04-Mar-2002  uch file cpu.h was added on branch nathanw_sa on 2002-03-04 14:36:16 +0000
 1.2 03-Mar-2002  uch branches: 1.2.8;
SR related parts moved to psl.h. cpufunc.h segments.h are removed.
kernel mode checking is only SR.MD. no check stack pointer.
 1.1 13-Sep-1999  itojun branches: 1.1.16;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.16.1 16-Mar-2002  jdolecek Catch up with -current.
 1.2.8.2 03-Mar-2002  uch SR related parts moved to psl.h. cpufunc.h segments.h are removed.
kernel mode checking is only SR.MD. no check stack pointer.
 1.2.8.1 03-Mar-2002  uch file cpufunc.h was added on branch nathanw_sa on 2002-03-03 14:31:31 +0000
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.4 30-Aug-2011  bouyer Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 12-Jun-2005  dyoung Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/. That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such. I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
 1.1 13-Sep-1999  itojun branches: 1.1.36;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.36.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.3 17-Mar-2000  mycroft In the `MY THAT'S GROSS' department...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
 1.2 16-Mar-2000  mycroft Foolish consistency. Mainly, always use underscores and sys/endian.h.
 1.1 13-Sep-1999  itojun branches: 1.1.2;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1 17-Mar-2000  mycroft branches: 1.1.6;
In the `MY THAT'S GROSS' department...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
 1.1.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.6.1 17-Mar-2000  bouyer file endian_machdep.h was added on branch thorpej_scsipi on 2000-11-20 20:14:49 +0000
 1.2 07-Jan-2000  msaitoh machine/exec_coff.h -> sys/exec_coff.h
 1.1 13-Sep-1999  itojun branches: 1.1.2;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.2.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.1 25-Aug-2016  christos branches: 1.1.2; 1.1.4; 1.1.18;
fenv.h for sh
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 25-Aug-2016  jdolecek file fenv.h was added on branch tls-maxphys on 2017-12-03 11:36:29 +0000
 1.1.4.2 05-Oct-2016  skrll Sync with HEAD
 1.1.4.1 25-Aug-2016  skrll file fenv.h was added on branch nick-nhusb on 2016-10-05 20:55:33 +0000
 1.1.2.2 14-Sep-2016  pgoyette Sync with HEAD
 1.1.2.1 25-Aug-2016  pgoyette file fenv.h was added on branch pgoyette-localcount on 2016-09-14 03:04:17 +0000
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 14-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.22;
Add definitions of C99 integer constant macros.
 1.1.22.2 14-Apr-2001  kleink Add definitions of C99 integer constant macros.
 1.1.22.1 14-Apr-2001  kleink file int_const.h was added on branch nathanw_sa on 2001-04-14 22:38:40 +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:54:06 +0000
 1.1 15-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.22;
Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.22.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.22.1 15-Apr-2001  kleink file int_fmtio.h was added on branch nathanw_sa on 2001-04-15 17:13:14 +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:54:06 +0000
 1.1 15-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.22;
Add definitions of C99 specified-width integer type limits.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.22.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.22.1 15-Apr-2001  kleink file int_limits.h was added on branch nathanw_sa on 2001-04-15 15:29:09 +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:54:07 +0000
 1.1 14-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.22;
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.22.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.22.1 14-Apr-2001  kleink file int_mwgwtypes.h was added on branch nathanw_sa on 2001-04-14 12:19:58 +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:54:07 +0000
 1.1 26-Jun-2000  kleink branches: 1.1.2;
Add <machine/int_types.h>, which provides namespace-pure definitions
of exact-width integer types.
 1.1.2.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.2.1 26-Jun-2000  bouyer file int_types.h was added on branch thorpej_scsipi on 2000-11-20 20:14:49 +0000
 1.13 02-Nov-2021  ryo In order to prevent _mcount() from being recursively called when built with COPTS=-O0,
sprinkle `__always_inline' to make _mcount() be generated as a single function.
 1.12 19-Apr-2018  christos s/static inline/static __inline/g for consistency.
 1.11 19-Feb-2011  kiyohara branches: 1.11.54;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.10 28-Apr-2008  martin branches: 1.10.22; 1.10.28; 1.10.30;
Remove clause 3 and 4 from TNF licenses
 1.9 03-Dec-2007  ad branches: 1.9.14; 1.9.16; 1.9.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.8 16-Feb-2007  ad branches: 1.8.6; 1.8.22; 1.8.24; 1.8.30;
Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
 1.7 09-Feb-2007  ad Merge newlock2 to head.
 1.6 21-Dec-2006  yamt 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.5 24-Mar-2002  uch branches: 1.5.6; 1.5.28; 1.5.58; 1.5.60;
adapted to new interrupt code and shb changes.
 1.4 22-Feb-2002  uch branches: 1.4.4;
New NetBSD/sh3 clock framework.
+ hardclock source is moved from TMU1 to TMU0.
+ SH3/SH4 common kernel support.
+ PCLOCK estimation.
+ remove duplicated code.
 1.3 13-Apr-2000  msaitoh branches: 1.3.8;
move the Interrput Priority Level (IPL_*) definitions into MD part.
 1.2 24-Feb-2000  msaitoh multiple interrputs!!!
 1.1 13-Sep-1999  itojun branches: 1.1.2;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.3.8.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.8.1 16-Mar-2002  jdolecek Catch up with -current.
 1.4.4.1 17-Mar-2002  thorpej IPL_IMP -> IPL_VM
 1.5.60.1 10-Dec-2006  yamt implement splraiseipl and makeiplcookie for mmeye.
 1.5.58.2 01-Feb-2007  ad Get sh3 compiling.
 1.5.58.1 12-Jan-2007  ad Sync with head.
 1.5.28.3 07-Dec-2007  yamt sync with head
 1.5.28.2 26-Feb-2007  yamt sync with head.
 1.5.28.1 30-Dec-2006  yamt sync with head.
 1.5.6.2 24-Mar-2002  uch adapted to new interrupt code and shb changes.
 1.5.6.1 24-Mar-2002  uch file intr.h was added on branch nathanw_sa on 2002-03-24 18:21:23 +0000
 1.8.30.1 08-Dec-2007  mjf Sync with HEAD.
 1.8.24.1 09-Jan-2008  matt sync with HEAD
 1.8.22.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.8.6.1 03-Dec-2007  ad Sync with HEAD.
 1.9.18.1 16-May-2008  yamt sync with head.
 1.9.16.1 18-May-2008  yamt sync with head.
 1.9.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.10.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.10.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.10.22.1 05-Mar-2011  rmind sync with head
 1.11.54.1 22-Apr-2018  pgoyette Sync with HEAD
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.7 06-Aug-2014  joerg Consistently define WARN in a way that passes format string checks, i.e.
always uses the same number of arguments as given in the format string.
 1.6 23-Feb-2011  he branches: 1.6.14; 1.6.28;
Since this port doesn't build its "stand" binaries with _STANDALONE
defined, put in declarations of alloc() and dealloc() which are now
used instead of malloc() / free(), so that the stand/ binaries build again.
 1.5 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.4 28-Apr-2008  martin branches: 1.4.22; 1.4.28; 1.4.30;
Remove clause 3 and 4 from TNF licenses
 1.3 25-Jan-2006  christos branches: 1.3.72; 1.3.74; 1.3.76;
free -> dealloc
unsigned -> size_t for alloc/dealloc
 1.2 31-Oct-2001  thorpej branches: 1.2.12; 1.2.34; 1.2.46;
Split elf32 vs. elf64 handling in loadfile(), including support for
each separately and explicitly. BOOT_ELF is now BOOT_ELF32 and
BOOT_ELF64, and ELFSIZE should no longer be defined in loadfile_machdep.h.
 1.1 13-Sep-1999  itojun branches: 1.1.16; 1.1.18;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.18.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.1.16.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.46.1 01-Feb-2006  yamt sync with head.
 1.2.34.1 21-Jun-2006  yamt sync with head.
 1.2.12.2 31-Oct-2001  thorpej Split elf32 vs. elf64 handling in loadfile(), including support for
each separately and explicitly. BOOT_ELF is now BOOT_ELF32 and
BOOT_ELF64, and ELFSIZE should no longer be defined in loadfile_machdep.h.
 1.2.12.1 31-Oct-2001  thorpej file loadfile_machdep.h was added on branch nathanw_sa on 2001-10-31 17:20:48 +0000
 1.3.76.1 16-May-2008  yamt sync with head.
 1.3.74.1 18-May-2008  yamt sync with head.
 1.3.72.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.4.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.4.22.1 05-Mar-2011  rmind sync with head
 1.6.28.1 10-Aug-2014  tls Rebase.
 1.6.14.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1 29-Apr-2000  thorpej branches: 1.1.6;
Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED. These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case). Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.

These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
 1.1.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.6.1 29-Apr-2000  bouyer file lock.h was added on branch thorpej_scsipi on 2000-11-20 20:14:50 +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:56 +0000
 1.1 17-Jan-2000  kleink branches: 1.1.6;
Add NAN constant glue for sh3.
 1.1.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.6.1 17-Jan-2000  bouyer file math.h was added on branch thorpej_scsipi on 2000-11-20 20:14:50 +0000
 1.2 17-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.1 20-Jun-2002  thorpej branches: 1.1.2;
file mcontext.h was initially added on branch nathanw_sa.
 1.1.2.1 20-Jun-2002  thorpej Machine-dependent kernel portion of {get,set}context(). From
Klaus Klein.
 1.6 11-May-2013  kiyohara Add extern.
 1.5 19-Feb-2011  kiyohara branches: 1.5.4; 1.5.14;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.4 24-Mar-2002  uch branches: 1.4.6; 1.4.140; 1.4.146; 1.4.148;
adapted to new interrupt code and shb changes.
 1.3 17-Sep-1999  tsubai branches: 1.3.16;
s/ _MMEYE_H_/ _MMEYE_MMEYE_H_/
 1.2 16-Sep-1999  msaitoh remove sh3/include/mmeye.h
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.3.16.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.148.1 05-Mar-2011  bouyer Sync with HEAD
 1.4.146.1 06-Jun-2011  jruoho Sync with HEAD.
 1.4.140.1 05-Mar-2011  rmind sync with head
 1.4.6.2 24-Mar-2002  uch adapted to new interrupt code and shb changes.
 1.4.6.1 24-Mar-2002  uch file mmeye.h was added on branch nathanw_sa on 2002-03-24 18:21:24 +0000
 1.5.14.1 23-Jun-2013  tls resync from head
 1.5.4.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.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:07:33 +0000
 1.11 11-Dec-2005  christos merge ktrace-lwp.
 1.10 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.9 10-Mar-2002  uch branches: 1.9.8; 1.9.14;
common part are moved to sh3/include/param.h
 1.8 26-Feb-2002  simonb Purge CLSIZE, CLSIZELOG2 and MCLOFSET.
Be consistant in the way that MSIZE, MCLSHIFT, MCLBYTES and NMBCLUSTERS
are defined.
Remove old VM constants from cesfic port.
Bump MSIZE to 256 on mipsco (the only one that wasn't already 256).
 1.7 04-Jan-2001  itojun branches: 1.7.4;
split MACHINE_ARCH sh3e[lb]. userland build still needs checking.
 1.6 03-Jan-2001  itojun share sys/arch/sh3/conf/Makefile.sh3 across sh3-based architectures.
cleanup param.h a bit.
 1.5 30-Jun-2000  itojun raise MSIZE from 128 to 256.
- for sizeof(void *) == 8 arch, this is mandatory. MHLEN is too small
already (less than 80) and there are chances for unwanted packet loss due
to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
(even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
extension header)

portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.
 1.4 24-Feb-2000  msaitoh branches: 1.4.4;
variable start address of the main memory (now we can use
the area 2 as main memory with "options IOM_RAM_BEGIN=0x88000000")
 1.3 11-Feb-2000  thorpej Update for the NKMEMPAGES changes.
 1.2 04-Dec-1999  ragge CL* discarding.
 1.1 13-Sep-1999  itojun branches: 1.1.2; 1.1.8;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.8.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.8.1 21-Dec-1999  wrstuden Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".
 1.1.2.2 05-Jan-2001  bouyer Sync with HEAD
 1.1.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.4.1 23-Jul-2000  itojun pullup from main trunc (approved by releng-1-5)

raise MSIZE from 128 to 256.
- for sizeof(void *) == 8 arch, this is mandatory. MHLEN is too small
already (less than 80) and there are chances for unwanted packet loss due
to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
(even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
extension header)

portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.

1.1 -> 1.2 syssrc/sys/arch/amigappc/include/param.h
1.13 -> 1.14 syssrc/sys/arch/arc/include/param.h
1.1 -> 1.2 syssrc/sys/arch/arm26/include/param.h
1.17 -> 1.18 syssrc/sys/arch/arm32/include/param.h
1.6 -> 1.7 syssrc/sys/arch/bebox/include/param.h
1.4 -> 1.5 syssrc/sys/arch/cobalt/include/param.h
1.4 -> 1.5 syssrc/sys/arch/evbsh3/include/param.h
1.2 -> 1.3 syssrc/sys/arch/hpcmips/include/param.h
1.40 -> 1.41 syssrc/sys/arch/i386/include/param.h
1.7 -> 1.8 syssrc/sys/arch/m68k/include/param.h
1.9 -> 1.10 syssrc/sys/arch/macppc/include/param.h
1.4 -> 1.5 syssrc/sys/arch/mmeye/include/param.h
1.6 -> 1.7 syssrc/sys/arch/newsmips/include/param.h
1.7 -> 1.8 syssrc/sys/arch/ofppc/include/param.h
1.23 -> 1.24 syssrc/sys/arch/pc532/include/param.h
1.32 -> 1.33 syssrc/sys/arch/pmax/include/param.h
1.7 -> 1.8 syssrc/sys/arch/powerpc/include/param.h
1.1 -> 1.2 syssrc/sys/arch/prep/include/param.h
1.1 -> 1.2 syssrc/sys/arch/sgimips/include/param.h
1.3 -> 1.4 syssrc/sys/arch/sh3/include/param.h
1.44 -> 1.45 syssrc/sys/arch/sparc/include/param.h
1.21 -> 1.22 syssrc/sys/arch/sparc64/include/param.h
1.43 -> 1.44 syssrc/sys/arch/vax/include/param.h
 1.7.4.1 16-Mar-2002  jdolecek Catch up with -current.
 1.9.14.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.14.2 18-Sep-2004  skrll Sync with HEAD.
 1.9.14.1 03-Aug-2004  skrll Sync with HEAD
 1.9.8.2 10-Mar-2002  uch common part are moved to sh3/include/param.h
 1.9.8.1 10-Mar-2002  uch file param.h was added on branch nathanw_sa on 2002-03-10 07:45:33 +0000
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2 28-Feb-2002  uch branches: 1.2.10;
Remove unneeded header.
 1.1 13-Sep-1999  itojun branches: 1.1.16;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.16.1 16-Mar-2002  jdolecek Catch up with -current.
 1.2.10.2 28-Feb-2002  uch Remove unneeded header.
 1.2.10.1 28-Feb-2002  uch file pio.h was added on branch nathanw_sa on 2002-02-28 01:52:30 +0000
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 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:37:55 +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:45:26 +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:32 +0000
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 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:07:33 +0000
 1.2 03-Mar-2002  uch branches: 1.2.8;
SR related parts moved to psl.h. cpufunc.h segments.h are removed.
kernel mode checking is only SR.MD. no check stack pointer.
 1.1 13-Sep-1999  itojun branches: 1.1.16;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.16.1 16-Mar-2002  jdolecek Catch up with -current.
 1.2.8.2 03-Mar-2002  uch SR related parts moved to psl.h. cpufunc.h segments.h are removed.
kernel mode checking is only SR.MD. no check stack pointer.
 1.2.8.1 03-Mar-2002  uch file segments.h was added on branch nathanw_sa on 2002-03-03 14:31:32 +0000
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2 24-Feb-2000  msaitoh variable start address of the main memory (now we can use
the area 2 as main memory with "options IOM_RAM_BEGIN=0x88000000")
 1.1 13-Sep-1999  itojun branches: 1.1.2;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.2.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.2 24-Mar-2002  uch branches: 1.2.4;
adapted to new interrupt code and shb changes.
 1.1 13-Sep-1999  itojun branches: 1.1.16;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.16.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.4.2 24-Mar-2002  uch adapted to new interrupt code and shb changes.
 1.2.4.1 24-Mar-2002  uch file shbvar.h was added on branch nathanw_sa on 2002-03-24 18:21:23 +0000
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 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 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 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 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2 07-Feb-2001  uch move VM_PHYSSEG_MAX, VM_NFREELIST, VM_FREELIST_DEFAULT defines to
machine/vmparam.h
 1.1 13-Sep-1999  itojun branches: 1.1.2;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.2.1 11-Feb-2001  bouyer 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:38:02 +0000
 1.10 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.9 29-Jul-2012  mlelstv branches: 1.9.2;
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.8 19-Feb-2011  kiyohara branches: 1.8.4; 1.8.10;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.7 18-Mar-2009  cegger branches: 1.7.4; 1.7.6; 1.7.8;
Ansify function definitions w/o arguments. Generated with sed.
 1.6 28-Apr-2008  martin branches: 1.6.8; 1.6.14;
Remove clause 3 and 4 from TNF licenses
 1.5 11-Dec-2005  christos branches: 1.5.74; 1.5.76; 1.5.78;
merge ktrace-lwp.
 1.4 15-Jul-2003  lukem __KERNEL_RCSID()
 1.3 08-Mar-2002  uch branches: 1.3.10; 1.3.16;
remove unneeded code and files.
 1.2 22-Feb-2002  uch New NetBSD/sh3 clock framework.
+ hardclock source is moved from TMU1 to TMU0.
+ SH3/SH4 common kernel support.
+ PCLOCK estimation.
+ remove duplicated code.
 1.1 06-Feb-2001  uch branches: 1.1.2; 1.1.4; 1.1.6;
move machine-port specific file to machine directory.
for evbsh3, mmeye and dreamcast, use MI md_root.c
 1.1.6.1 16-Mar-2002  jdolecek Catch up with -current.
 1.1.4.2 26-Sep-2001  fvdl * add a VCLONED vnode flag that indicates a vnode representing a cloned
device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
to the specinfo of a cloned vnode. could possibly redirect getattr to
the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
original device, and reassociates it with the specified dev_t. to be
used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
when debugging race conditions that still exist wrt. locking and
revoking vnodes.
* make the locking state of a vnode consistent when passed to
d_open and d_close (unlocked). locked would be better, but has
some deadlock issues
 1.1.4.1 18-Sep-2001  fvdl Various changes to make cloning devices possible:

* Add an extra argument (struct vnode **) to VOP_OPEN. If it is
not NULL, specfs will create a cloned (aliased) vnode during
the call, and return it there. The caller should release and
unlock the original vnode if a new vnode was returned. The
new vnode is returned locked.

* Add a flag field to the cdevsw and bdevsw structures.
DF_CLONING indicates that it wants a new vnode for each
open (XXX is there a better way? devprop?)

* If a device is cloning, always call the close entry
point for a VOP_CLOSE.


Also, rewrite cons.c to do the right thing with vnodes. Use VOPs
rather then direct device entry calls. Suggested by mycroft@

Light to moderate testing done an i386 system (arch doesn't matter
though, these are MI changes).
 1.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 06-Feb-2001  bouyer file autoconf.c was added on branch thorpej_scsipi on 2001-02-11 19:11:10 +0000
 1.3.16.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.16.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.16.1 03-Aug-2004  skrll Sync with HEAD
 1.3.10.2 08-Mar-2002  uch remove unneeded code and files.
 1.3.10.1 08-Mar-2002  uch file autoconf.c was added on branch nathanw_sa on 2002-03-08 13:22:14 +0000
 1.5.78.2 04-May-2009  yamt sync with head.
 1.5.78.1 16-May-2008  yamt sync with head.
 1.5.76.1 18-May-2008  yamt sync with head.
 1.5.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.14.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.8.1 28-Apr-2009  skrll Sync with HEAD.
 1.7.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.7.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.4.1 05-Mar-2011  rmind sync with head
 1.8.10.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.8.4.1 30-Oct-2012  yamt sync with head
 1.9.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.6 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.5 28-Apr-2008  martin branches: 1.5.22; 1.5.28; 1.5.30;
Remove clause 3 and 4 from TNF licenses
 1.4 22-Sep-2006  uwe branches: 1.4.52; 1.4.54; 1.4.56;
Switch the rest of sh3 ports to todr(9)
Split code to handle on-chip rtc into a separate driver
Eliminate all todr code from clock.c
Move __HAVE_GENERIC_TODR to sh3/include/types.h

Somehow I managed to forget to commit mmeye changes.
Pointed out by he@
 1.3 11-Dec-2005  christos branches: 1.3.20; 1.3.22;
merge ktrace-lwp.
 1.2 15-Jul-2003  lukem branches: 1.2.16;
__KERNEL_RCSID()
 1.1 22-Feb-2002  uch branches: 1.1.2; 1.1.8; 1.1.16; 1.1.22;
New NetBSD/sh3 clock framework.
+ hardclock source is moved from TMU1 to TMU0.
+ SH3/SH4 common kernel support.
+ PCLOCK estimation.
+ remove duplicated code.
 1.1.22.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.22.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.22.1 03-Aug-2004  skrll Sync with HEAD
 1.1.16.2 22-Feb-2002  uch New NetBSD/sh3 clock framework.
+ hardclock source is moved from TMU1 to TMU0.
+ SH3/SH4 common kernel support.
+ PCLOCK estimation.
+ remove duplicated code.
 1.1.16.1 22-Feb-2002  uch file clock_machdep.c was added on branch nathanw_sa on 2002-02-22 19:44:02 +0000
 1.1.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.1.8.1 22-Feb-2002  jdolecek file clock_machdep.c was added on branch kqueue on 2002-03-16 15:58:48 +0000
 1.1.2.1 28-Feb-2002  nathanw Catch up to -current.
 1.2.16.1 30-Dec-2006  yamt sync with head.
 1.3.22.1 22-Oct-2006  yamt sync with head
 1.3.20.1 18-Nov-2006  ad 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.5.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.5.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.5.22.1 05-Mar-2011  rmind sync with head
 1.5 21-Apr-2000  tsubai Use dev/ic/com.c.
 1.4 23-Mar-2000  thorpej New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
 1.3 06-Mar-2000  thorpej - Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
 1.2 22-Nov-1999  sommerfeld defopt COM_DEBUG, COM_HAYESP, and COM16650
 1.1 13-Sep-1999  itojun branches: 1.1.2; 1.1.8;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.2.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.2 24-Mar-2002  uch branches: 1.2.4;
mmeye specific devices are moved to mmeye/dev
 1.1 13-Sep-1999  itojun branches: 1.1.16;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.16.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.4.2 24-Mar-2002  uch mmeye specific devices are moved to mmeye/dev
 1.2.4.1 24-Mar-2002  uch file com_sh.c was added on branch nathanw_sa on 2002-03-24 18:08:46 +0000
 1.14 02-Feb-2011  kiyohara Add scif console to constab.
Also include "sci.h".
 1.13 11-Dec-2005  christos branches: 1.13.100; 1.13.106; 1.13.108;
merge ktrace-lwp.
 1.12 15-Jul-2003  lukem __KERNEL_RCSID()
 1.11 26-Oct-2002  jdolecek branches: 1.11.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.10 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.9 19-Jul-2002  thorpej Rename cdev_systrace_init() to cdev_clonemisc_init(), so it can
be properly used by any misc. cloning device. While here, correct
a comment to indicate that "open" is the only entry point and that
everything else is handled with fileops.
 1.8 17-Jun-2002  christos branches: 1.8.2;
MD systrace gluons.
 1.7 12-Jan-2002  manu branches: 1.7.8;
Added clockctl
 1.6 22-Aug-2000  tsubai branches: 1.6.4;
Add a missing entry to chrtoblktbl.
 1.5 19-Apr-2000  tsubai #include <machine/conf.h>.
 1.4 24-Feb-2000  msaitoh watchdog timer
 1.3 14-Sep-1999  tsubai branches: 1.3.2;
Sync with -current.
XXX root on nfs don't work, though root on wd0 works well.
 1.2 13-Sep-1999  msaitoh remove mainbus pseudo floppy drive
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.3.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.4.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.6.4.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.6.4.1 11-Feb-2002  jdolecek Sync w/ -current.
 1.7.8.3 21-Jul-2002  gehenna catch up with -current.
 1.7.8.2 14-Jul-2002  gehenna catch up with -current.
 1.7.8.1 16-May-2002  gehenna Bye block/character device swicth tables.
 1.8.2.4 11-Nov-2002  nathanw Catch up to -current
 1.8.2.3 17-Sep-2002  nathanw Catch up to -current.
 1.8.2.2 01-Aug-2002  nathanw Catch up to -current.
 1.8.2.1 17-Jun-2002  nathanw file conf.c was added on branch nathanw_sa on 2002-08-01 02:42:39 +0000
 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.108.1 08-Feb-2011  bouyer Sync with HEAD
 1.13.106.1 06-Jun-2011  jruoho Sync with HEAD.
 1.13.100.1 05-Mar-2011  rmind sync with head
 1.6 24-Feb-2002  uch branches: 1.6.10;
Move common exception vector and scheduler code to
sh3/sh3/exception_vector.S and sh3/sh3/locore_subr.S. exception
vectors are installed by sh_cpu_init(). machine/locore.S contains
kernel entry, interrupt handler, and some MD code.
 1.5 29-Jun-2000  mrg branches: 1.5.4;
remove include of <vm/vm.h>.
 1.4 26-May-2000  thorpej Introduce a new process state distinct from SRUN called SONPROC
which indicates that the process is actually running on a
processor. Test against SONPROC as appropriate rather than
combinations of SRUN and curproc. Update all context switch code
to properly set SONPROC when the process becomes the current
process on the CPU.
 1.3 19-Apr-2000  tsubai Sync with evbsh3.
 1.2 14-Sep-1999  tsubai branches: 1.2.2;
Sync with -current.
XXX root on nfs don't work, though root on wd0 works well.
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.4.1 16-Mar-2002  jdolecek Catch up with -current.
 1.6.10.2 24-Feb-2002  uch Move common exception vector and scheduler code to
sh3/sh3/exception_vector.S and sh3/sh3/locore_subr.S. exception
vectors are installed by sh_cpu_init(). machine/locore.S contains
kernel entry, interrupt handler, and some MD code.
 1.6.10.1 24-Feb-2002  uch file genassym.cf was added on branch nathanw_sa on 2002-02-24 18:19:43 +0000
 1.15 29-Sep-2023  andvar reorder includes alphabetically.
remove sh4 specific includes, since mmeye version doesn't have sh4 code.
missed in previous commit, despite mentioning that in commit message.
 1.14 28-Sep-2023  andvar apply few commits from uwe in evbsh3/locore.S to mmeye counterpart:
1) Wrap _ROM_START in #ifdef ROMIMAGE to match its use.
2) Use symbolic constants for SR init values.
3) Don't write SR twice.
reduces diff between two mainly to SH4 specific code and few other lines.
NFCI
(confirmed with uwe by email)

Additionally:
rearrange includes alphabetically and remove sh3/mmu_sh4.h, since SH4 specific
code is missing.
 1.13 24-Sep-2023  andvar Nix trailing whitespace.
 1.12 24-Sep-2023  andvar unify ROMIMAGE specific assembler code between evbsh3 and mmeye.

fixes mmeye ROMIMAGE enabled build and in turn MMTAROMNEW kernel config.
patch checked by martin. PR port-mmeye/57627.
 1.11 19-Feb-2011  kiyohara Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.10 07-Oct-2006  tsutsui branches: 1.10.78; 1.10.84; 1.10.86;
Add kernel_text symbol for pmap(1). Closes PR kern/19877.
 1.9 11-Dec-2005  christos branches: 1.9.20; 1.9.22;
merge ktrace-lwp.
 1.8 31-May-2005  chs branches: 1.8.2;
remove vestigal {,e}intr{names,cnt} symbols now that vmstat doesn't need them.
 1.7 04-Jan-2004  wiz Spell controller with two ls. Inspired by miod@openbsd.
 1.6 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.5 09-May-2002  uch branches: 1.5.6; 1.5.12;
IOM_RAM_BEGIN is changed to specify physical address.
 1.4 24-Mar-2002  uch adapted to new interrupt code and shb changes.
 1.3 17-Mar-2002  uch adapt to kernel stack treatment changes.
 1.2 28-Feb-2002  uch branches: 1.2.2; 1.2.8;
Change foo_r0_r1 macro in sh3/locore.h to foo(Rn, Rm)
 1.1 24-Feb-2002  uch Move common exception vector and scheduler code to
sh3/sh3/exception_vector.S and sh3/sh3/locore_subr.S. exception
vectors are installed by sh_cpu_init(). machine/locore.S contains
kernel entry, interrupt handler, and some MD code.
 1.2.8.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.8.2 16-Mar-2002  jdolecek Catch up with -current.
 1.2.8.1 28-Feb-2002  jdolecek file locore.S was added on branch kqueue on 2002-03-16 15:58:48 +0000
 1.2.2.3 20-Jun-2002  nathanw Catch up to -current.
 1.2.2.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.2.2.1 28-Feb-2002  nathanw Catch up to -current.
 1.5.12.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.12.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.12.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.12.1 03-Aug-2004  skrll Sync with HEAD
 1.5.6.2 09-May-2002  uch IOM_RAM_BEGIN is changed to specify physical address.
 1.5.6.1 09-May-2002  uch file locore.S was added on branch nathanw_sa on 2002-05-09 12:35:46 +0000
 1.8.2.1 30-Dec-2006  yamt sync with head.
 1.9.22.1 22-Oct-2006  yamt sync with head
 1.9.20.1 18-Nov-2006  ad Sync with head.
 1.10.86.1 05-Mar-2011  bouyer Sync with HEAD
 1.10.84.1 06-Jun-2011  jruoho Sync with HEAD.
 1.10.78.1 05-Mar-2011  rmind sync with head
 1.26 24-Feb-2002  uch branches: 1.26.10;
Move common exception vector and scheduler code to
sh3/sh3/exception_vector.S and sh3/sh3/locore_subr.S. exception
vectors are installed by sh_cpu_init(). machine/locore.S contains
kernel entry, interrupt handler, and some MD code.
 1.25 22-Feb-2002  uch setjmp,longjmp are moved to sh3/locore_subr.S
 1.24 19-Feb-2002  uch Clean up functions
disable_intr, enable_intr, disable_interrupt, enable_interrupt,
disable_ext_intr, enable_ext_intr.
New functions:
for external interrupt:
_cpu_intr_suspend and _cpu_intr_resume.
for exception:
_cpu_exception_suspend and _cpu_exception_resume.
 1.23 27-Oct-2001  msaitoh Fix incorrect kernelmode check in INTRENTRY macro.
Broken INTRENTRY causes CPU reset when sigaltstack is used.
 1.22 10-Aug-2001  msaitoh branches: 1.22.4;
fix a ldtlb handling bug:

- set to PTE{H,L,A} and call LDTLB must do atomically.
- never call LDTLB when it's unnecessary.

Broken kernel oocasionally causes cpu reset when /etc/security is called.
Now fix this problem.
 1.21 05-Feb-2001  thorpej branches: 1.21.4;
Rename the CLI/STI/ECLI/ESTI macros to more descriptive names,
and add comments to describe exactly what they do (because it's
not totally obvious at a glance, due to the number juggling necessary
to frob the correct bits in SR):

CLI -> EXCEPT_DISABLE (sets SR.BL)
STI -> EXCEPT_ENABLE (clears SR.BL)

ECLI -> INTR_DISABLE (sets SR.I[0-3])
ESTI -> INTR_ENABLE (clears SR.I[0-3])
 1.20 08-Sep-2000  tsubai DDB single step and stack trace support.
 1.19 30-Aug-2000  tsubai Cosmetic changes.
 1.18 30-Aug-2000  tsubai Scheduler locking changes.
 1.17 07-Jun-2000  msaitoh branches: 1.17.2;
remove extra NOPs because "bf" and "bt" instruction have no delayed slot.
 1.16 31-May-2000  thorpej Add a comment on single-processor systems about p_cpu being initialized
by fork1().
 1.15 31-May-2000  nisimura Minor comment adjustments. cpu_switch has an argument of struct proc *.
 1.14 26-May-2000  thorpej branches: 1.14.2;
First sweep at scheduler state cleanup. Collect MI scheduler
state into global and per-CPU scheduler state:

- Global state: sched_qs (run queues), sched_whichqs (bitmap
of non-empty run queues), sched_slpque (sleep queues).
NOTE: These may collectively move into a struct schedstate
at some point in the future.

- Per-CPU state, struct schedstate_percpu: spc_runtime
(time process on this CPU started running), spc_flags
(replaces struct proc's p_schedflags), and
spc_curpriority (usrpri of processes on this CPU).

- Every platform must now supply a struct cpu_info and
a curcpu() macro. Simplify existing cpu_info declarations
where appropriate.

- All references to per-CPU scheduler state now made through
curcpu(). NOTE: this will likely be adjusted in the future
after further changes to struct proc are made.

Tested on i386 and Alpha. Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.
 1.13 26-May-2000  tsubai Simplify SONPROC change. (and now compiles)
 1.12 26-May-2000  thorpej Introduce a new process state distinct from SRUN called SONPROC
which indicates that the process is actually running on a
processor. Test against SONPROC as appropriate rather than
combinations of SRUN and curproc. Update all context switch code
to properly set SONPROC when the process becomes the current
process on the CPU.
 1.11 24-Feb-2000  msaitoh variable start address of the main memory (now we can use
the area 2 as main memory with "options IOM_RAM_BEGIN=0x88000000")
 1.10 24-Feb-2000  msaitoh multiple interrputs!!!
 1.9 12-Jan-2000  msaitoh use _C_LABEL()
 1.8 26-Dec-1999  msaitoh use _C_LABEL()
 1.7 21-Dec-1999  msaitoh fix the usage of .align 2
 1.6 21-Dec-1999  msaitoh ".align 2" for mova instruction
 1.5 22-Sep-1999  tsubai branches: 1.5.2; 1.5.8;
Don't set sr[BL] to 1 in cpu_switch().
Optimizations.
 1.4 17-Sep-1999  tsubai Small optimization.
 1.3 16-Sep-1999  msaitoh cleanup
 1.2 14-Sep-1999  tsubai Sync with -current.
XXX root on nfs don't work, though root on wd0 works well.
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.5.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.5.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.5.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.14.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.17.2.1 25-Nov-2001  he Pull up revision 1.22 (requested by msaitoh):
Fix LDTLB handling bug.
 1.21.4.3 16-Mar-2002  jdolecek Catch up with -current.
 1.21.4.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.21.4.1 25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.22.4.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.26.10.2 24-Feb-2002  uch Move common exception vector and scheduler code to
sh3/sh3/exception_vector.S and sh3/sh3/locore_subr.S. exception
vectors are installed by sh_cpu_init(). machine/locore.S contains
kernel entry, interrupt handler, and some MD code.
 1.26.10.1 24-Feb-2002  uch file locore.s was added on branch nathanw_sa on 2002-02-24 18:19:43 +0000
 1.59 13-Jul-2025  andvar s/externel/external/ in comments, also use plural for interrupts.
 1.58 05-Feb-2024  andvar branches: 1.58.2;
triple "r" typos, mainly s/interrrupt/interrupt/ in comments and one definition.
 1.57 08-Nov-2013  christos fix unused variable warning
 1.56 27-Oct-2012  chs branches: 1.56.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.55 19-Feb-2011  kiyohara branches: 1.55.4; 1.55.14;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.54 19-Jan-2011  he branches: 1.54.2;
Need <machine/pcb.h> for struct pcb definition.
 1.53 20-Dec-2010  matt branches: 1.53.2;
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.52 27-Nov-2009  rmind branches: 1.52.4;
- 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.51 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.50 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.49 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.48 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.47 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.46 30-Nov-2008  martin branches: 1.46.4;
As discussed on tech-kern: mutex_init is too heavyweight for early bootstrap
phases, so move the initialization of the ksyms mutex back into main via
a function called ksyms_init. Rename the existing (but quite different)
ksyms_init* variations into ksyms_addsyms_elf() and ksyms_addsyms_explicit()
and adapt machdep code accordingly.
 1.45 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.44 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.43 28-Apr-2008  martin branches: 1.43.6; 1.43.8;
Remove clause 3 and 4 from TNF licenses
 1.42 07-Jan-2008  uwe branches: 1.42.6; 1.42.8; 1.42.10;
Now that sh3 has didicated interrupt stack we can check for cpu_intr_p
with simple sp comparison, so we can drop ci_idepth.
 1.41 03-Dec-2007  ad branches: 1.41.6;
Interrupt handling changes, in discussion since February:

- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
 1.40 17-Oct-2007  garbled branches: 1.40.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.39 27-May-2007  uwe branches: 1.39.8; 1.39.10;
Need to use atop() when adjusting kernend for ksyms.
XXX: This code has obviously bit-rotted.

Pointed out by Anders Gavare on port-sh3.
 1.38 24-Dec-2005  perry branches: 1.38.30; 1.38.32; 1.38.38;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.37 11-Dec-2005  christos merge ktrace-lwp.
 1.36 05-Jun-2005  he branches: 1.36.2;
Adapt to building with -Wcast-qual. Regrettably we have to use
__UNCONST() in one sysctl_lookup() invocation (for now).
 1.35 24-Mar-2004  atatat Tango on sysctl_createv() and flags. The flags have all been renamed,
and sysctl_createv() now uses more arguments.
 1.34 04-Jan-2004  wiz Spell controller with two ls. Inspired by miod@openbsd.
 1.33 04-Dec-2003  atatat Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded. Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment. I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.
 1.32 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.31 15-Jul-2003  lukem __KERNEL_RCSID()
 1.30 26-Apr-2003  ragge branches: 1.30.2;
Call ksyms_init() instead of ddb_init() in case of
NKSYMS || defined(DDB) || defined(LKM)
 1.29 17-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.28 10-May-2002  uch branches: 1.28.6;
Don't reset to old interrupt level at the exit of interrupt handler.
It didn't ensure the maximum interrupt nest depth.
 1.27 09-May-2002  uch adapt to new pmap.
 1.26 24-Mar-2002  uch adapted to new interrupt code and shb changes.
 1.25 17-Mar-2002  uch cosmetic changes, fix comments.
 1.24 17-Mar-2002  uch adapt to kernel stack treatment changes.
 1.23 10-Mar-2002  uch proc0 and page table intialize routines are moved to sh3_machdep.c
 1.22 08-Mar-2002  uch remove unneeded code and files.
 1.21 03-Mar-2002  uch machine dependent sysctl are moved to machine/cpu.h
dreamcast, hpcsh ... CPU_CONSDEV
mmeye, evbsh3 ... CPU_CONSDEV, CPU_LOADANDRESET
 1.20 28-Feb-2002  uch cpu_dumpconf, reserve_dumppages, dumpsys, cpu_reset are moved to sh3/sh3_machdep.c
 1.19 28-Feb-2002  uch Cleanup register definition
 1.18 24-Feb-2002  uch Move common exception vector and scheduler code to
sh3/sh3/exception_vector.S and sh3/sh3/locore_subr.S. exception
vectors are installed by sh_cpu_init(). machine/locore.S contains
kernel entry, interrupt handler, and some MD code.
 1.17 19-Feb-2002  uch Clean up functions
disable_intr, enable_intr, disable_interrupt, enable_interrupt,
disable_ext_intr, enable_ext_intr.
New functions:
for external interrupt:
_cpu_intr_suspend and _cpu_intr_resume.
for exception:
_cpu_exception_suspend and _cpu_exception_resume.
 1.16 17-Feb-2002  uch sh_cpu_init() is added. its initialize cache, MMU ops appropriately.
machine locore code call this at first.
 1.15 22-Jul-2001  wiz bcopy -> memcpy, bzero -> memset
 1.14 30-May-2001  lukem branches: 1.14.2;
add missing #include "opt_kgdb.h"
 1.13 05-Sep-2000  tsubai branches: 1.13.2;
Preserve symbol table for DDB.
 1.12 24-Aug-2000  msaitoh KNF
 1.11 29-Jun-2000  mrg remove include of <vm/vm.h>.
 1.10 26-Jun-2000  mrg remove/move more mach vm header files:

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

also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.
 1.9 19-Apr-2000  tsubai Sync with evbsh3.
 1.8 20-Mar-2000  msaitoh move MMUCR register definitions into mmureg.h
 1.7 24-Feb-2000  msaitoh variable start address of the main memory (now we can use
the area 2 as main memory with "options IOM_RAM_BEGIN=0x88000000")
 1.6 17-Jan-2000  msaitoh use macros
 1.5 21-Sep-1999  tsubai branches: 1.5.2;
Move common parts of machdep.c to sh3_machdep.c.
 1.4 17-Sep-1999  thorpej Centralize the declaration and clearing of `cold'.
 1.3 16-Sep-1999  msaitoh sync with bscreg.h
 1.2 14-Sep-1999  tsubai Sync with -current.
XXX root on nfs don't work, though root on wd0 works well.
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.5.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.13.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.14.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.14.2.2 16-Mar-2002  jdolecek Catch up with -current.
 1.14.2.1 03-Aug-2001  lukem update to -current
 1.28.6.2 21-Jun-2002  thorpej When calling main(), load the new kernel stack from lwp0.
 1.28.6.1 10-May-2002  thorpej file machdep.c was added on branch nathanw_sa on 2002-06-21 16:59:37 +0000
 1.30.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 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.36.2.4 21-Jan-2008  yamt sync with head
 1.36.2.3 07-Dec-2007  yamt sync with head
 1.36.2.2 03-Sep-2007  yamt sync with head.
 1.36.2.1 21-Jun-2006  yamt sync with head.
 1.38.38.1 26-Jun-2007  garbled Sync with HEAD.
 1.38.32.1 11-Jul-2007  mjf Sync with head.
 1.38.30.3 03-Dec-2007  ad Sync with HEAD.
 1.38.30.2 03-Dec-2007  ad Sync with HEAD.
 1.38.30.1 09-Jun-2007  ad Sync with head.
 1.39.10.1 06-Nov-2007  matt sync with HEAD
 1.39.8.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.40.2.2 18-Feb-2008  mjf Sync with HEAD.
 1.40.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.41.6.1 08-Jan-2008  bouyer Sync with HEAD
 1.42.10.3 11-Mar-2010  yamt sync with head
 1.42.10.2 04-May-2009  yamt sync with head.
 1.42.10.1 16-May-2008  yamt sync with head.
 1.42.8.1 18-May-2008  yamt sync with head.
 1.42.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.42.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.43.8.3 28-Apr-2009  skrll Sync with HEAD.
 1.43.8.2 03-Mar-2009  skrll Sync with HEAD.
 1.43.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.43.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.46.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.52.4.1 05-Mar-2011  rmind sync with head
 1.53.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.54.2.1 05-Mar-2011  bouyer Sync with HEAD
 1.55.14.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.55.14.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.55.4.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.55.4.1 30-Oct-2012  yamt sync with head
 1.56.2.1 18-May-2014  rmind sync with head
 1.58.2.1 02-Aug-2025  perseant Sync with HEAD
 1.11 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.10 24-Apr-2021  thorpej branches: 1.10.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.9 05-Jun-2011  matt branches: 1.9.68;
struct device * -> device_t, struct cfdata * -> cfdata_t
CFATTACH_DECL(*, sizeof(struct device), -> CFATTACH_DECL_NEW(&, 0
 1.8 19-Feb-2011  kiyohara branches: 1.8.2;
Support mmEye-WLF.
Also maybe support mmEye-WL, mmEye2, mmEye2-HS.
 1.7 28-Apr-2008  martin branches: 1.7.22; 1.7.28; 1.7.30;
Remove clause 3 and 4 from TNF licenses
 1.6 11-Dec-2005  christos branches: 1.6.74; 1.6.76; 1.6.78;
merge ktrace-lwp.
 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 24-Mar-2002  uch branches: 1.2.6;
add cpu device. sync with shb change.
 1.1 06-Feb-2001  uch branches: 1.1.2; 1.1.6;
move machine-port specific file to machine directory.
for evbsh3, mmeye and dreamcast, use MI md_root.c
 1.1.6.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.2.2 11-Feb-2001  bouyer Sync with HEAD.
 1.1.2.1 06-Feb-2001  bouyer file mainbus.c was added on branch thorpej_scsipi on 2001-02-11 19:11:11 +0000
 1.2.6.2 18-Oct-2002  nathanw Catch up to -current.
 1.2.6.1 24-Mar-2002  nathanw file mainbus.c was added on branch nathanw_sa on 2002-10-18 02:38:56 +0000
 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.78.1 16-May-2008  yamt sync with head.
 1.6.76.1 18-May-2008  yamt sync with head.
 1.6.74.1 02-Jun-2008  mjf Sync with HEAD.
 1.7.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.7.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.22.2 12-Jun-2011  rmind sync with head
 1.7.22.1 05-Mar-2011  rmind sync with head
 1.8.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.9.68.6 05-Apr-2021  thorpej config_match() -> config_probe() for the straight-forward indirect config
cases. There are still a few odd balls using config_match() which should
be sorted out later.
 1.9.68.5 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.9.68.4 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.9.68.3 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.9.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.9.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.10.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 27-Mar-2002  uch branches: 1.3.4;
All the sh3 ports had an identical procfs_machdep.c, so use a common
file under arch/sh3/sh3.
 1.2 18-Jan-2001  tv branches: 1.2.4;
No-op commit to force update to a non-"-kk" revision.
 1.1 17-Jan-2001  fvdl branches: 1.1.2;
Add machdep file for procfs. Currently only used for linux-style
/proc/cpuinfo (only active when procfs is mounted with -o linux).
For ports other than the i386 this currently produces an empty
string.
 1.1.2.2 18-Jan-2001  bouyer Sync with head (for UBC+NFS fixes, mostly).
 1.1.2.1 17-Jan-2001  bouyer file procfs_machdep.c was added on branch thorpej_scsipi on 2001-01-18 09:22:46 +0000
 1.2.4.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.4.2 27-Mar-2002  uch All the sh3 ports had an identical procfs_machdep.c, so use a common
file under arch/sh3/sh3.
 1.3.4.1 27-Mar-2002  uch file procfs_machdep.c was added on branch nathanw_sa on 2002-03-27 10:44:41 +0000
 1.13 24-Mar-2002  uch branches: 1.13.4;
adapted to new interrupt code and shb changes.
 1.12 17-Mar-2002  uch adapt to kernel stack treatment changes.
 1.11 28-Feb-2002  uch branches: 1.11.4;
Cleanup register definition
 1.10 22-Feb-2002  uch New NetBSD/sh3 clock framework.
+ hardclock source is moved from TMU1 to TMU0.
+ SH3/SH4 common kernel support.
+ PCLOCK estimation.
+ remove duplicated code.
 1.9 19-Feb-2002  uch Clean up functions
disable_intr, enable_intr, disable_interrupt, enable_interrupt,
disable_ext_intr, enable_ext_intr.
New functions:
for external interrupt:
_cpu_intr_suspend and _cpu_intr_resume.
for exception:
_cpu_exception_suspend and _cpu_exception_resume.
 1.8 15-Jan-2001  thorpej branches: 1.8.4;
Make softclock a generic soft interrupt of the API is available,
adding the requisite void * argument to softclock().
 1.7 02-Jul-2000  cgd Kwality control:
* put #includes of opt headers and headers to get protos used by
net/netisr_dispatch.h in net/netisr.h (if !defined(_LOCORE)) (rather than
in netisr_dispatch.h itself, and potentially nowhere, respectively).
* require netisr.h to be included before netisr_dispatch.h.
* minor additional cleanup of both netisr.h and netisr_dispatch.h.
* clean up uses to remove now-unnecessary header file inclusions, and
local prototypes of the fns.
* convert netisr dispatch implementations which didn't use
netisr_dispatch.h (pc532) to use it.
 1.6 21-Apr-2000  tsubai Make this compile.
 1.5 21-Mar-2000  itojun add prototype for ip6intr (not tested).
 1.4 24-Feb-2000  msaitoh multiple interrputs!!!
 1.3 21-Feb-2000  erh Define the DONETISR macro and use netisr_dispatch.h. This is to cut down on code duplication and to standardize the available NETISRs across all ports.
 1.2 17-Sep-1999  thorpej branches: 1.2.2;
Centralize the declaration and clearing of `cold'.
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2.2.2 18-Jan-2001  bouyer Sync with head (for UBC+NFS fixes, mostly).
 1.2.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.8.4.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.8.4.1 16-Mar-2002  jdolecek Catch up with -current.
 1.11.4.1 17-Mar-2002  thorpej IPL_IMP -> IPL_VM
 1.13.4.2 24-Mar-2002  uch adapted to new interrupt code and shb changes.
 1.13.4.1 24-Mar-2002  uch file shb.c was added on branch nathanw_sa on 2002-03-24 18:21:20 +0000
 1.3 03-Mar-2011  kiyohara Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.2 20-Mar-2000  msaitoh branches: 1.2.156; 1.2.162; 1.2.164;
COFF's /sbin/osloader
 1.1 13-Sep-1999  itojun branches: 1.1.2;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.164.1 05-Mar-2011  bouyer Sync with HEAD
 1.2.162.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.156.1 05-Mar-2011  rmind sync with head
 1.2 28-Aug-2016  christos NOPIE here too
 1.1 13-Sep-1999  itojun branches: 1.1.186; 1.1.206;
Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.1.206.1 05-Oct-2016  skrll Sync with HEAD
 1.1.186.1 03-Dec-2017  jdolecek update from HEAD
 1.5 08-Apr-2017  christos centralize vers.c building for standalone programs.
 1.4 16-Jan-2014  christos branches: 1.4.6; 1.4.10; 1.4.14;
eliminate use of bsd.sys.mk from Makefiles
 1.3 12-Jan-2014  tsutsui Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
 1.2 05-Mar-2011  joerg branches: 1.2.2; 1.2.4; 1.2.8; 1.2.10; 1.2.20; 1.2.24;
Use deflate.sh from the right directory. Execute with HOST_SH.
 1.1 03-Mar-2011  kiyohara Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.2.24.1 18-May-2014  rmind sync with head
 1.2.20.2 03-Dec-2017  jdolecek update from HEAD
 1.2.20.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.10.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.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.2.8.1 05-Mar-2011  jruoho file Makefile was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.2.4.2 05-Mar-2011  rmind sync with head
 1.2.4.1 05-Mar-2011  rmind file Makefile was added on branch rmind-uvmplock on 2011-03-05 20:51:15 +0000
 1.2.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.2.2.1 05-Mar-2011  bouyer file Makefile was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.4.14.1 21-Apr-2017  bouyer Sync with HEAD
 1.4.10.1 26-Apr-2017  pgoyette Sync with HEAD
 1.4.6.1 28-Aug-2017  skrll Sync with HEAD
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file boot.c was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file boot.c was added on branch rmind-uvmplock on 2011-03-05 20:51:15 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file boot.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file boot.h was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file boot.h was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file boot.h was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file bootinfo.c was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file bootinfo.c was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file bootinfo.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file bootinfo.h was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file bootinfo.h was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file bootinfo.h was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file clock.c was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file clock.c was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file clock.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file com.c was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file com.c was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file com.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file common.h was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file common.h was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file common.h was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file conf.c was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file conf.c was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file conf.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file cons.c was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file cons.c was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file cons.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file cons.h was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file cons.h was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file cons.h was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file deflate.sh was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file deflate.sh was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file deflate.sh was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file devopen.c was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file devopen.c was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file devopen.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file entry.S was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file entry.S was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file entry.S was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file ns16550.h was added on branch jruoho-x86intr on 2011-06-06 09:06:14 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file ns16550.h was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file ns16550.h was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file prf.c was added on branch jruoho-x86intr on 2011-06-06 09:06:15 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file prf.c was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file prf.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file scif.c was added on branch jruoho-x86intr on 2011-06-06 09:06:15 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file scif.c was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file scif.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file scif.h was added on branch jruoho-x86intr on 2011-06-06 09:06:15 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file scif.h was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file scif.h was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.2 29-Apr-2022  rin Fix fallout from libsa change; stand.h includes <sys/param.h> now.

SCANWAIT and PWAIT are renamed to SCANDELAY and SCANWAIT, respectively,
in order not to redefine PWAIT.

XXX
Too many copies for tgets.c...
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file tgets.c was added on branch jruoho-x86intr on 2011-06-06 09:06:15 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file tgets.c was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file tgets.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file version was added on branch jruoho-x86intr on 2011-06-06 09:06:15 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file version was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file version was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.5 08-Jan-2019  jdolecek no need for <machine/param.h>
 1.4 02-Jan-2015  christos branches: 1.4.16; 1.4.18;
We have three sets of DTYPE_ constants in the kernel:
altq Drop Type
disklabel Disk Type
file Descriptor Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.
 1.3 17-Jul-2011  joerg branches: 1.3.12; 1.3.30;
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.2 04-Jul-2011  mrg convert a cast & structure assignment to a memcpy() to avoid
potential pointer aliasing issues.
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file wd.c was added on branch jruoho-x86intr on 2011-06-06 09:06:15 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file wd.c was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file wd.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.3.30.1 06-Apr-2015  skrll Sync with HEAD
 1.3.12.1 03-Dec-2017  jdolecek update from HEAD
 1.4.18.1 10-Jun-2019  christos Sync with HEAD
 1.4.16.1 18-Jan-2019  pgoyette Synch with HEAD
 1.5 07-Oct-2025  andvar Fix few typos in comments.
 1.4 08-Jan-2019  christos no need for machine/param.h
 1.3 08-Jan-2019  christos Include <sys/param.h> for DEV_BSIZE/DEV_BSHIFT
 1.2 11-Jul-2015  kamil branches: 1.2.16; 1.2.18;
Improve spelling: regsiter -> register

This change is non-functional.

Approved by <riastradh>, <pgoyette>
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8; 1.1.20; 1.1.38;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.38.1 22-Sep-2015  skrll Sync with HEAD
 1.1.20.1 03-Dec-2017  jdolecek update from HEAD
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file wdc.c was added on branch jruoho-x86intr on 2011-06-06 09:06:15 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file wdc.c was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file wdc.c was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.2.18.1 10-Jun-2019  christos Sync with HEAD
 1.2.16.1 18-Jan-2019  pgoyette Synch with HEAD
 1.1 03-Mar-2011  kiyohara branches: 1.1.2; 1.1.4; 1.1.8;
Add support boot. only support SH4 machine(mmEye-WLF and others) now.
 1.1.8.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.8.1 03-Mar-2011  jruoho file wdvar.h was added on branch jruoho-x86intr on 2011-06-06 09:06:15 +0000
 1.1.4.2 05-Mar-2011  rmind sync with head
 1.1.4.1 03-Mar-2011  rmind file wdvar.h was added on branch rmind-uvmplock on 2011-03-05 20:51:16 +0000
 1.1.2.2 05-Mar-2011  bouyer Sync with HEAD
 1.1.2.1 03-Mar-2011  bouyer file wdvar.h was added on branch bouyer-quota2 on 2011-03-05 15:09:54 +0000
 1.3 25-Jan-2016  christos Need _KERNTYPES for round_page() vaddr_t.
 1.2 12-Dec-2001  tv branches: 1.2.12; 1.2.168; 1.2.188;
MKfoo=no -> NOfoo
 1.1 20-Mar-2000  msaitoh branches: 1.1.6; 1.1.10;
COFF's /sbin/osloader
 1.1.10.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.6.1 20-Mar-2000  bouyer file Makefile was added on branch thorpej_scsipi on 2000-11-20 20:14:52 +0000
 1.2.188.1 19-Mar-2016  skrll Sync with HEAD
 1.2.168.1 03-Dec-2017  jdolecek update from HEAD
 1.2.12.2 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.2.12.1 12-Dec-2001  tv file Makefile was added on branch nathanw_sa on 2001-12-12 01:49:47 +0000
 1.7 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.6 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.5 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.4 26-Jun-2000  mrg branches: 1.4.2; 1.4.132; 1.4.140; 1.4.146;
<vm/vm_param.h> -> <uvm/uvm_param.h>
 1.3 22-Mar-2000  msaitoh cleanup(KNF)
 1.2 22-Mar-2000  msaitoh cleanup
- remove unused functions
- KNF
 1.1 20-Mar-2000  msaitoh COFF's /sbin/osloader
 1.4.146.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.140.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.132.1 04-May-2009  yamt sync with head.
 1.4.2.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.2.1 26-Jun-2000  bouyer file osloader.c was added on branch thorpej_scsipi on 2000-11-20 20:14:52 +0000
 1.2 22-Mar-2000  msaitoh cleanup
- remove unused functions
- KNF
 1.1 20-Mar-2000  msaitoh COFF's /sbin/osloader
 1.15 21-Aug-2013  matt Use <bsd.klinks.mk>
 1.14 03-Apr-2006  uebayasi branches: 1.14.100; 1.14.110; 1.14.116;
Oops; put back -ffreestanding to avoid function prototype mismatch.
 1.13 03-Apr-2006  uebayasi Comment about what this is like to prevent future mistake...
 1.12 03-Apr-2006  uebayasi Fix build of this mysterious boot program; a userlevel bootloader run on
NetBSD and boot NetBSD (!).

The program was run from within boot-only, NetBSD-as-bootloader as a userlevel
program, then in-kernel boot code loads another NetBSD image and jumps to
it.
 1.11 26-Jan-2006  he branches: 1.11.2; 1.11.4; 1.11.6; 1.11.8; 1.11.10;
Add alloc.c to resolove dealloc() (now used from loadfile_elf32).
Compile with -D_STANDALONE and -ffresstanding so that alloc.c from
libsa builds.
 1.10 27-Aug-2002  lukem branches: 1.10.22; 1.10.34;
arch/*/stand stuff should be LDSTATIC=-static and not LDSTATIC?=-static.
It doesn't make sense to have standalone stuff dynamically linked just
because an end-user uses LDSTATIC="".
 1.9 07-May-2002  jdolecek branches: 1.9.2; 1.9.6;
some whitespace cleanup
 1.8 02-May-2002  wiz Make sure the machine symlink is there in the dependall step.
 1.7 02-May-2002  wiz Add machine symlink to CLEANFILES.
 1.6 02-May-2002  wiz Since loadfile_machdep.h isn't installed anymore, link the mmeye include
directory into ${.OBJDIR} and find the header file there.
 1.5 12-Dec-2001  tv MKfoo=no -> NOfoo
 1.4 31-Oct-2001  thorpej Need byteorder.c for loadfile_elf*.c
 1.3 31-Oct-2001  thorpej Build the loadfile() a.out, ECOFF, and ELF back-ends as separate
objects.
 1.2 15-Sep-1999  tsubai branches: 1.2.16; 1.2.18;
Use MI loadfile.
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2.18.1 12-Nov-2001  thorpej Sync the thorpej-mips-cache branch with -current.
 1.2.16.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.2.16.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.16.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.9.6.2 27-Aug-2002  nathanw Catch up to -current.
 1.9.6.1 07-May-2002  nathanw file Makefile was added on branch nathanw_sa on 2002-08-27 23:44:53 +0000
 1.9.2.1 31-Aug-2002  gehenna catch up with -current.
 1.10.34.1 01-Feb-2006  yamt sync with head.
 1.10.22.1 21-Jun-2006  yamt sync with head.
 1.11.10.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.11.8.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.11.6.1 11-Apr-2006  yamt sync with head
 1.11.4.1 22-Apr-2006  simonb Sync with head.
 1.11.2.1 09-Sep-2006  rpaulo sync with head
 1.14.116.1 28-Aug-2013  rmind sync with head
 1.14.110.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.14.100.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.6 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.5 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.4 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.3 03-Apr-2006  uebayasi branches: 1.3.66; 1.3.74; 1.3.80;
Fix build of this mysterious boot program; a userlevel bootloader run on
NetBSD and boot NetBSD (!).

The program was run from within boot-only, NetBSD-as-bootloader as a userlevel
program, then in-kernel boot code loads another NetBSD image and jumps to
it.
 1.2 27-Sep-1999  tsubai branches: 1.2.52; 1.2.66; 1.2.68; 1.2.70; 1.2.72; 1.2.74;
Include machine/cpu.h.
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2.74.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.2.72.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.2.70.1 11-Apr-2006  yamt sync with head
 1.2.68.1 22-Apr-2006  simonb Sync with head.
 1.2.66.1 09-Sep-2006  rpaulo sync with head
 1.2.52.1 21-Jun-2006  yamt sync with head.
 1.3.80.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.74.1 28-Apr-2009  skrll Sync with HEAD.
 1.3.66.1 04-May-2009  yamt sync with head.
 1.2 15-Sep-1999  tsubai Use MI loadfile.
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).
 1.2 15-Sep-1999  tsubai Use MI loadfile.
 1.1 13-Sep-1999  itojun Merge in NetBSD/sh3 from cvs.kame.net repository.

Tree structure:
- sys/arch/sh3: sh3 generic code
As commented, in-chip device drivers are put into sys/arch/sh3/dev.
- sys/arch/evbsh3: sh3 evaluation boards (pure sh3 CPU, no fancy external HW)
- sys/arch/mmeye: Brains mmEye, www.brains.co.jp
MI source code includes couple of #ifdef for sh3-coff support.
(sh3 uses coff or elf)

Needs some more improvements, especialy in sys/arch/sh3/conf/files.sh3,
to compile the tree (due to last minute tree structure change).

RSS XML Feed