Home | History | Annotate | only in /src/sys/arch/zaurus
History log of /src/sys/arch/zaurus
RevisionDateAuthorComments
 1.4 25-Oct-2008  apb Use ${TOOL_SED} instead if plain sed in Makefiles.
 1.3 17-Oct-2007  garbled branches: 1.3.16; 1.3.20; 1.3.26;
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.2 09-Aug-2007  nonaka branches: 1.2.2;
build and install zbsdmod.o.
 1.1 17-Dec-2006  peter branches: 1.1.2; 1.1.4; 1.1.6; 1.1.12; 1.1.20; 1.1.24; 1.1.26; 1.1.28;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1.28.1 16-Aug-2007  jmcneill Sync with HEAD.
 1.1.26.1 01-Nov-2007  rjs Sync with HEAD.
 1.1.24.1 15-Aug-2007  skrll Sync with HEAD.
 1.1.20.1 03-Oct-2007  garbled Sync with HEAD
 1.1.12.1 20-Aug-2007  ad Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 17-Dec-2006  ad file Makefile was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 17-Dec-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 17-Dec-2006  yamt file Makefile was added on branch yamt-splraiseipl on 2006-12-18 11:42:05 +0000
 1.2.2.1 06-Nov-2007  matt sync with HEAD
 1.3.26.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.3.20.1 04-May-2009  yamt sync with head.
 1.3.16.1 17-Jan-2009  mjf Sync with HEAD.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file Makefile was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file Makefile was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 29-Jan-2012  tsutsui branches: 1.1.4; 1.1.6;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.1.6.2 17-Apr-2012  yamt sync with head
 1.1.6.1 29-Jan-2012  yamt file C700 was added on branch yamt-pagecache on 2012-04-17 00:07:12 +0000
 1.1.4.2 18-Feb-2012  mrg merge to -current.
 1.1.4.1 29-Jan-2012  mrg file C700 was added on branch jmcneill-usbmp on 2012-02-18 07:33:48 +0000
 1.97 02-Apr-2024  charlotte Mention DKWEDGE_METHOD_TOS in several kernel config files
 1.96 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.95 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.94 09-Feb-2023  abs Ensure GENERIC.local is always at the end of GENERIC

Where a GENERIC config had an existing inclusion of GENERIC.local,
ensure it is always at the end of the file, with a consistent
comment:

# Pull in optional local configuration
cinclude "arch/landisk/conf/GENERIC.local"

This allows GENERIC.local to correctly override all options

(This pass does not affect any GENERIC which did not already have
an include of GENERIC.local)
 1.93 29-Sep-2022  riastradh branches: 1.93.4;
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.92 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.91 20-Jan-2021  nia remove compat_ossaudio from kernel modules

this is only useful with compat_linux and gets autoloaded when
compat_linux is loaded, so there's no reason to bake it into kernels
any more.
 1.90 25-Mar-2020  jdolecek branches: 1.90.4;
remove 'file-system SMBFS' and 'pseudo-device nsmb' from all kernel configs
to prepare for their eventual removal
 1.89 13-Nov-2019  tsutsui Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:
https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.88 02-Nov-2019  tsutsui Put back options WSDISPLAY_COMPAT_RAWKBD. It's required by Xorg server.

Should be pulled up to netbsd-9.
 1.87 21-Aug-2019  msaitoh Fix typo (s/contoller/controller/).
 1.86 26-Jul-2019  martin branches: 1.86.2;
comment out WSDISPLAY_COMPAT_RAWKBD for now, it does not compile
 1.85 29-Mar-2019  christos bye ddb and we fit again.
 1.84 07-Feb-2019  rin Add commented-out modern USB NICs for users easily finding them out.
 1.83 07-Feb-2019  rin Comment out ure(4) and its PHY drivers for now to unbreak build.
 1.82 07-Feb-2019  rin Oops, revert previous.
Combinations between NICs and PHYs are unpredictable...
 1.81 07-Feb-2019  rin Fix kernel size overflow caused by addition of ure(4) and PHY drivers.

Modern USB NICs are useful due to availability in the market, although
they cannot exhibit full performance with ohci(4). Also, some of them
support RX/TX offloading, which can be useful even with ohci(4).

Therefore, rather add modern NICs in usbdevices.config.

Instead, remove PHY drivers that cannot be used with zaurus.

Now, all kernels fits within 5 MiB = 5120 KiB:
- GENERIC 5105K ( 15K free)
- C700 5098K ( 22K free)
- INSTALL 4991K (129K free)
- INSTALL_C700 4681K (439K free)
 1.80 06-Feb-2019  rin Add ure(4) to kernel config files. Also add PHY drivers where necessary.
 1.79 23-Oct-2018  jdolecek remove the 'wd* at umass?' for the non-standardized and rare (extinct?)
In-System Design ATA protocol over Bulk-Only devices from most kernels,
leave only in i386/amd64 ALL; it's unmaintained and likely currently broken,
lack of test hardware makes it impossible to support
 1.78 25-Aug-2018  rin Add (commented out) mue(4) to where appropriate.
Also add MII/PHY drivers for USB NICs if missing.
 1.77 07-Jun-2018  thorpej branches: 1.77.2;
Revert changes that pinned-down i2c parent specs. The i2c subsystem
has been enhanced to make this unnecessary.
 1.76 15-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.75 14-Sep-2017  mrg branches: 1.75.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.74 29-Jul-2017  maxv Remove TCP_COMPAT_42 from the config files. Pass 3.
 1.73 03-Apr-2017  sevan branches: 1.73.6;
Drop NOPORTALGO option which was introduce in r1.69.No other reference exists in src or
history in CVS. The introductory commit was related to sound so assuming it
crept in by mistake.
 1.72 26-Feb-2017  rin Add DKWEDGE_METHOD_RDB option, which is enabled for x86, commented out for
other platforms by default.
 1.71 19-Feb-2017  rin PR kern/51208
Add DISKLABEL_EI option (and also FFS_EI if missing), commented out except for
ALL on amd64 and i386.
 1.70 13-Dec-2016  christos branches: 1.70.2;
wildcard speaker attachments, now that we can handle many of them.
 1.69 10-Dec-2016  christos remove VAUDIOSPEAKER for now, will be done differently.
 1.68 08-Dec-2016  nat Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
 1.67 26-Sep-2015  maxv branches: 1.67.2;
Remove KMEMSTATS. Normally it's ok now.
 1.66 05-Feb-2015  nonaka Added drvctl, putter and PUFFS.
 1.65 16-Nov-2014  manu branches: 1.65.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.64 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.63 19-Sep-2014  christos Disable BSDLABEL and MBR DKWEDGE methods again since sysinst does not work
with wedges.
 1.62 24-Aug-2014  jnemeth 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.61 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.60 18-Aug-2014  christos - Enable Wedge support for MBR/BSDLABEL where it was commented out.
- Add apple partition support where it was missing
- Add comments where missing
 1.59 17-Aug-2014  joerg Reorganize symbol table embedding. The existing option SYMTAB_SPACE is
replaced by the make option COPY_SYMTAB set to any value. The copy of
the symbol table is no longer put into a buffer in kern_ksyms.o, but a
small helper object. This object is build first with a dummy size, then
the kernel is linked to compute the real dimension of the symbol table
buffer. After that, the helper object is rebuild and the kernel linked
again.
 1.58 16-Aug-2014  apb Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
 1.57 03-Aug-2014  martin branches: 1.57.2;
Add COMPAT_NETBSD32, following the switch to eabi by default.
 1.56 27-Apr-2013  christos branches: 1.56.8;
the bogus number police
 1.55 17-Oct-2012  apb Add "options COMPAT_60" to all kernel configuration files
that already had "options COMPAT_50".
 1.54 05-Jun-2012  abs branches: 1.54.2;
Adjust the WSDISPLAY_COMPAT_USL comment to mention wsconscfg, to at least
give a hint that its not just for third party compat. No functional change.
 1.53 07-Apr-2012  nonaka bump up SYMTAB_SPACE.
 1.52 10-Mar-2012  joerg P1003_1B_SEMAPHORE is no longer optional.
 1.51 29-Jan-2012  tsutsui branches: 1.51.2;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.50 25-Jan-2012  tsutsui - TAB/space cleanup
- add a comment
 1.49 25-Jan-2012  tsutsui Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.48 18-Dec-2011  dholland WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
 1.47 22-Nov-2011  tls branches: 1.47.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.46 19-Nov-2011  nonaka enable kloader(4).
 1.45 15-Jul-2011  nonaka branches: 1.45.2;
cinclude GENERIC.local
 1.44 30-Jun-2011  wiz dependant -> dependent
 1.43 19-Jun-2011  nonaka more support SL-C1000.
 1.42 20-May-2011  nonaka branches: 1.42.2;
Uncommented out "file-system CD9660".
 1.41 20-May-2011  tsutsui Add (commented out) options MODULAR. Just works fine as other arm ports.

This will be mandatory because zbsdmod.o loader has size (5MB) restriction.
 1.40 20-May-2011  tsutsui Remove unnecessary count arguments from some pseudo-devices.
 1.39 20-May-2011  tsutsui Move pseudo-device bpfilter to proper place.
 1.38 20-May-2011  tsutsui Enable cd* at atapibus? for some USB CD/DVD drives.
 1.37 20-May-2011  tsutsui Comment out options COMPAT_09, COMAPT_10, COMPAT_11, and COMPAT_12.
(no NetBSD/arm32 binary release before 1.3)
 1.36 14-May-2011  nonaka Use PXA250 compat. rtc.
 1.35 05-May-2011  nonaka Reduce kernel size.
Tested on SL-C1000.

Fix PR/44898.
 1.34 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.33 13-Feb-2011  tsutsui Add options PXA2X0_LCD_WRITETHROUGH that improves console speed.
Tested on SL-C1000.
 1.32 13-Feb-2011  nonaka support FFUARTCONSOLE.
 1.31 23-Nov-2010  hannken branches: 1.31.2; 1.31.4;
Remove unused count from pseudo-device md.
 1.30 18-Mar-2010  dholland grammar patrol
 1.29 13-Dec-2009  nonaka branches: 1.29.2; 1.29.4;
comment out KLOADER.
 1.28 05-Dec-2009  pooka Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs. User functionality remains the same.
 1.27 05-Dec-2009  nonaka enable WSDISPLAY_COMPAT_RAWKBD option.
 1.26 28-Nov-2009  nonaka pxartc(4) must set the device address.
 1.25 09-Aug-2009  kiyohara Fix matching by improper driver.
see http://mail-index.netbsd.org/port-arm/2009/07/08/msg000807.html

And remove some white-spaces.
 1.24 21-Apr-2009  nonaka Added SD/MMC support from OpenBSD.
tested on i386, amd64 at current-users ML by pgoyette@.
tested on zaurus by myself.
 1.23 13-Mar-2009  nonaka zaudio(4) works now.
 1.22 11-Mar-2009  nonaka Added kloader support.
 1.21 28-Jan-2009  nonaka branches: 1.21.2;
Added SCSI bus and devices.
 1.20 28-Jan-2009  nonaka cosmetic
 1.19 28-Jan-2009  nonaka -kernel output is set to green.
-symbol is contained.
 1.18 28-Jan-2009  nonaka Pass address and intr to pxadmac.
 1.17 28-Jan-2009  nonaka GENERIC is replaced by GENERIC.HOSTUSB.
 1.16 24-Jan-2009  mrg add COMPAT_50 to all the configs with COMPAT_40.
 1.15 24-Nov-2008  ad Remove softdep, pass 1. We are focused on improving journalling.

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

Proposed on tech-kern@.
 1.13 10-Aug-2008  tls branches: 1.13.2;
Add accept filters to GENERIC kernels where they exist.
 1.12 31-Jul-2008  simonb Add "options WAPBL" to standard GENERIC/INSTALL type configs.
 1.11 31-Dec-2007  ad branches: 1.11.6; 1.11.10; 1.11.12; 1.11.16;
Remove systrace. Ok core@.
 1.10 04-Nov-2007  xtraeme branches: 1.10.2; 1.10.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.9 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.8 21-Aug-2007  kiyohara branches: 1.8.2; 1.8.6;
Add slhci at pcmcia.
And reorder.
 1.7 29-Jul-2007  nonaka branches: 1.7.2; 1.7.4;
Added support to detect AC adapter and charge battery.
 1.6 26-Jun-2007  nonaka branches: 1.6.2; 1.6.4;
Add options COMPAT_40.
 1.5 16-Mar-2007  ober branches: 1.5.4;
Updating GENERIC to include bpfilter to allow dhclient to work.
Also enable LFS which appears to work well so far.
 1.4 14-Mar-2007  drochner branches: 1.4.2;
It doesn't make sense to specify "configuration" and "interface"
locators for uhub because a hub can't have sub-devices.
This might be sanity-checked eventually.
Same for ubt now after the change to device attachment.
 1.3 25-Feb-2007  nonaka branches: 1.3.4; 1.3.6;
Add PXA2x0 RTC driver.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.8.2 24-Mar-2007  yamt sync with head.
 1.2.8.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file GENERIC was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.6 21-Jan-2008  yamt sync with head
 1.2.4.5 15-Nov-2007  yamt sync with head.
 1.2.4.4 03-Sep-2007  yamt sync with head.
 1.2.4.3 26-Feb-2007  yamt sync with head.
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file GENERIC was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file GENERIC was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.6.1 11-Jul-2007  mjf Sync with head.
 1.3.4.5 03-Dec-2007  ad Sync with HEAD.
 1.3.4.4 09-Oct-2007  ad Sync with head.
 1.3.4.3 20-Aug-2007  ad Sync with HEAD.
 1.3.4.2 15-Jul-2007  ad Sync with head.
 1.3.4.1 10-Apr-2007  ad Sync with head.
 1.4.2.1 18-Mar-2007  reinoud First attempt to bring branch in sync with HEAD
 1.5.4.2 03-Oct-2007  garbled Sync with HEAD
 1.5.4.1 26-Jun-2007  garbled Sync with HEAD.
 1.6.4.2 03-Sep-2007  skrll Sync with HEAD.
 1.6.4.1 15-Aug-2007  skrll Sync with HEAD.
 1.6.2.1 07-Aug-2007  matt Sync with HEAD.
 1.7.4.2 04-Nov-2007  jmcneill Sync with HEAD.
 1.7.4.1 03-Sep-2007  jmcneill Sync with HEAD.
 1.7.2.3 28-Feb-2008  rjs Sync with HEAD.
 1.7.2.2 26-Dec-2007  rjs Sync with HEAD.
 1.7.2.1 01-Nov-2007  rjs Sync with HEAD.
 1.8.6.1 13-Nov-2007  bouyer Sync with HEAD
 1.8.2.2 09-Jan-2008  matt sync with HEAD
 1.8.2.1 06-Nov-2007  matt sync with HEAD
 1.10.8.1 02-Jan-2008  bouyer Sync with HEAD
 1.10.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.11.16.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.11.16.1 19-Oct-2008  haad Sync with HEAD.
 1.11.12.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.11.10.4 11-Aug-2010  yamt sync with head.
 1.11.10.3 11-Mar-2010  yamt sync with head
 1.11.10.2 19-Aug-2009  yamt sync with head.
 1.11.10.1 04-May-2009  yamt sync with head.
 1.11.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.11.6.1 28-Sep-2008  mjf Sync with HEAD.
 1.13.2.3 28-Apr-2009  skrll Sync with HEAD.
 1.13.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.13.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.21.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.29.4.4 31-May-2011  rmind sync with head
 1.29.4.3 21-Apr-2011  rmind sync with head
 1.29.4.2 05-Mar-2011  rmind sync with head
 1.29.4.1 30-May-2010  rmind sync with head
 1.29.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.31.4.2 17-Feb-2011  bouyer Sync with HEAD
 1.31.4.1 08-Feb-2011  bouyer Add QUOTA2 where QUOTA is enabled (and QUOTA2 commented out where QUOTA
is commented out)
 1.31.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.42.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.45.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.45.2.2 30-Oct-2012  yamt sync with head
 1.45.2.1 17-Apr-2012  yamt sync with head
 1.47.2.3 29-Apr-2012  mrg sync to latest -current.
 1.47.2.2 11-Mar-2012  mrg sync to latest -current
 1.47.2.1 18-Feb-2012  mrg merge to -current.
 1.51.2.2 15-Aug-2012  sborrill Pull up the following revisions(s) (requested by martin in ticket #502):
sys/arch/cobalt/conf/GENERIC: patch
sys/arch/i386/conf/GENERIC: patch
sys/arch/i386/conf/XEN3_DOM0: patch
sys/arch/i386/conf/XEN3_DOMU: patch
sys/arch/mvmeppc/conf/GENERIC: patch
sys/arch/shark/conf/GENERIC: patch
sys/arch/sparc64/conf/GENERIC: patch
sys/arch/sparc64/conf/GENERIC.DEBUG: patch
sys/arch/zaurus/conf/GENERIC: patch

Switch off DIAGNOSTIC and/or DEBUG on release kernels.
Enable DIAGNOSTIC in DEBUG kernels to allow for option
being switched off in GENERIC.
 1.51.2.1 12-Jun-2012  riz Pull up following revision(s) (requested by abs in ticket #311):
sys/arch/netwinder/conf/GENERIC: revision 1.112
sys/arch/i386/conf/GENERIC: revision 1.1074
sys/arch/atari/conf/MILAN.in: revision 1.26
sys/arch/zaurus/conf/GENERIC: revision 1.54
sys/arch/shark/conf/GENERIC: revision 1.101
sys/arch/hpcmips/conf/MPC303: revision 1.60
sys/arch/i386/conf/XEN3_DOM0: revision 1.67
sys/arch/evbarm/conf/MPCSA_GENERIC: revision 1.29
sys/arch/vax/conf/GENERIC: revision 1.181
sys/arch/sparc/conf/KRUPS: revision 1.59
sys/arch/evbarm/conf/BEAGLEBOARD: revision 1.27
sys/arch/i386/conf/INSTALL_FLOPPY: revision 1.16
sys/arch/prep/conf/GENERIC: revision 1.163
sys/arch/hpcmips/conf/GENERIC: revision 1.216
sys/arch/sparc/conf/TADPOLE3GX: revision 1.56
sys/arch/shark/conf/INSTALL: revision 1.50
sys/arch/next68k/conf/GENERIC: revision 1.127
sys/arch/evbppc/conf/VIRTEX_GSRD2: revision 1.16
sys/arch/evbppc/conf/VIRTEX_DFC: revision 1.17
sys/arch/evbppc/conf/EXPLORA451: revision 1.48
sys/arch/bebox/conf/INSTALL: revision 1.54
sys/arch/next68k/conf/SLAB: revision 1.46
sys/arch/i386/conf/GENERIC_TINY: revision 1.132
sys/arch/bebox/conf/GENERIC: revision 1.131
sys/arch/amd64/conf/XEN3_DOM0: revision 1.84
sys/arch/amd64/conf/GENERIC: revision 1.356
sys/arch/evbarm/conf/MMNET_GENERIC: revision 1.6
share/man/man4/wscons.4: revision 1.31
sys/arch/hpcmips/conf/TX3912: revision 1.79
sys/arch/evbarm/conf/ARMADILLO9: revision 1.35
sys/arch/hpcsh/conf/GENERIC: revision 1.97
sys/arch/i386/conf/ALL: revision 1.339
sys/arch/hpcmips/conf/TX3922: revision 1.93
sys/arch/cats/conf/INSTALL: revision 1.82
sys/arch/sparc64/conf/GENERIC: revision 1.151
sys/arch/i386/conf/INSTALL_TINY: revision 1.135
sys/arch/evbppc/conf/VIRTEX_GSRD1: revision 1.15
sys/arch/evbarm/conf/TS7200: revision 1.49
sys/arch/hpcmips/conf/VR41XX: revision 1.55
sys/arch/hp700/conf/GENERIC: revision 1.115
sys/arch/cats/conf/GENERIC: revision 1.140
Mention wsconscfg(8) needs WSDISPLAY_COMPAT_USL
If a port is going to have wscons for virtual terminals then it really make=
s
sense to enable WSDISPLAY_COMPAT_USL so the system can switch between the
virtual terminals...
Adjust the WSDISPLAY_COMPAT_USL comment to mention wsconscfg, to at least
give a hint that its not just for third party compat. No functional change.
 1.54.2.4 03-Dec-2017  jdolecek update from HEAD
 1.54.2.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.54.2.2 23-Jun-2013  tls resync from head
 1.54.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.56.8.1 10-Aug-2014  tls Rebase.
 1.57.2.4 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.57.2.3 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.57.2.2 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.57.2.1 10-Oct-2014  snj Apply patch (requested by bouyer/martin in ticket #116):
Disable DIAGNOSTIC and/or DEBUG.
 1.65.2.4 28-Aug-2017  skrll Sync with HEAD
 1.65.2.3 05-Feb-2017  skrll Sync with HEAD
 1.65.2.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.65.2.1 06-Apr-2015  skrll Sync with HEAD
 1.67.2.3 26-Apr-2017  pgoyette Sync with HEAD
 1.67.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.67.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.70.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.73.6.4 16-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #1446):

sys/arch/zaurus/conf/GENERIC: revision 1.89
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.12
sys/arch/zaurus/conf/INSTALL: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.45
sys/arch/zaurus/conf/GENERIC: revision 1.85

Yes, we need to load symbols, but we don't need the whole DDB infrastructure
for that.

bye ddb and we fit again.

Make zaurus kernels use symbol tables loaded by the bootloader.
Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:

https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.73.6.3 18-Apr-2018  martin Requested by skrll in ticket #60:
sys/arch/amd64/conf/GENERIC
sys/arch/amd64/conf/XEN3_DOM0
sys/arch/amd64/conf/XEN3_DOMU
sys/arch/cobalt/conf/GENERIC
sys/arch/evbarm/conf/BEAGLEBONE
sys/arch/evbarm/conf/BEAGLEBOARD
sys/arch/evbarm/conf/BEAGLEBOARDXM
sys/arch/evbarm/conf/GENERIC.common
sys/arch/i386/conf/GENERIC
sys/arch/i386/conf/XEN3_DOM0
sys/arch/i386/conf/XEN3_DOMU
sys/arch/mvmeppc/conf/GENERIC
sys/arch/shark/conf/GENERIC
sys/arch/sparc64/conf/GENERIC
sys/arch/zaurus/conf/GENERIC

Remove option DIAGNOSTIC.
 1.73.6.2 29-Aug-2017  martin Requested by skrll in ticket #60:
sys/arch/amd64/conf/GENERIC
sys/arch/amd64/conf/XEN3_DOM0
sys/arch/amd64/conf/XEN3_DOMU
sys/arch/cobalt/conf/GENERIC
sys/arch/evbarm/conf/BEAGLEBONE
sys/arch/evbarm/conf/BEAGLEBOARD
sys/arch/evbarm/conf/BEAGLEBOARDXM
sys/arch/evbarm/conf/GENERIC.common
sys/arch/i386/conf/GENERIC
sys/arch/i386/conf/XEN3_DOM0
sys/arch/i386/conf/XEN3_DOMU
sys/arch/mvmeppc/conf/GENERIC
sys/arch/shark/conf/GENERIC
sys/arch/sparc64/conf/GENERIC
sys/arch/zaurus/conf/GENERIC


Re-enable option DIAGNOSTIC for now, will remove it again later.
 1.73.6.1 05-Jul-2017  martin Remove options DIAGNOSTIC/DEBUG and PAX debug options.
Requested by snj in #60.
 1.75.2.4 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.75.2.3 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.75.2.2 25-Jun-2018  pgoyette Sync with HEAD
 1.75.2.1 21-May-2018  pgoyette Sync with HEAD
 1.77.2.3 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.77.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.77.2.1 10-Jun-2019  christos Sync with HEAD
 1.86.2.3 21-Nov-2019  martin In preparation for the upcoming release, turn off DIAGNOSTIC in most
kernel configs, modules and libc.
 1.86.2.2 16-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #431):

sys/arch/zaurus/conf/GENERIC: revision 1.89
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.12
sys/arch/zaurus/conf/INSTALL: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.45

Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).
Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:

https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.86.2.1 04-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #396):

sys/arch/zaurus/conf/GENERIC: revision 1.88

Put back options WSDISPLAY_COMPAT_RAWKBD. It's required by Xorg server.

Should be pulled up to netbsd-9.
 1.90.4.1 03-Apr-2021  thorpej Sync with HEAD.
 1.93.4.1 09-Oct-2023  snj Apply patch (requested by martin in ticket #401):
Disable DIAGNOSTIC/DEBUG.
 1.6 28-Jan-2009  nonaka GENERIC is replaced by GENERIC.HOSTUSB.
 1.5 24-Jan-2009  mrg add COMPAT_50 to all the configs with COMPAT_40.
 1.4 24-Nov-2008  ad Remove softdep, pass 1. We are focused on improving journalling.

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

Proposed on tech-kern@.
 1.2 31-Jul-2008  simonb branches: 1.2.2;
Add "options WAPBL" to standard GENERIC/INSTALL type configs.
 1.1 31-Mar-2008  chris branches: 1.1.2; 1.1.6; 1.1.8; 1.1.12;
Add GENERIC.HOSTUSB kernel for zaurus.

This allows a Zaurus to act as a USB host, rather than client device.

Tested on a C3000 with USB NIC. I've added most usb devices to the kernel
as I'd expect USB devices just work.

Eventually this will disappear once switching from host to device
controller mode is supported.
 1.1.12.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.1.12.1 19-Oct-2008  haad Sync with HEAD.
 1.1.8.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.6.1 04-May-2009  yamt sync with head.
 1.1.2.4 17-Jan-2009  mjf Sync with HEAD.
 1.1.2.3 28-Sep-2008  mjf Sync with HEAD.
 1.1.2.2 03-Apr-2008  mjf Sync with HEAD.
 1.1.2.1 31-Mar-2008  mjf file GENERIC.HOSTUSB was added on branch mjf-devfs2 on 2008-04-03 12:42:31 +0000
 1.2.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.2.2.1 19-Jan-2009  skrll Sync with HEAD.
 1.41 21-Jan-2021  nia remove "no options" for compat_ossaudio now it's disabled by default
 1.40 13-Nov-2019  tsutsui branches: 1.40.8;
Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:
https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.39 07-Feb-2019  rin branches: 1.39.4;
Oops, revert previous.
Combinations between NICs and PHYs are unpredictable...
 1.38 07-Feb-2019  rin Fix kernel size overflow caused by addition of ure(4) and PHY drivers.

Modern USB NICs are useful due to availability in the market, although
they cannot exhibit full performance with ohci(4). Also, some of them
support RX/TX offloading, which can be useful even with ohci(4).

Therefore, rather add modern NICs in usbdevices.config.

Instead, remove PHY drivers that cannot be used with zaurus.

Now, all kernels fits within 5 MiB = 5120 KiB:
- GENERIC 5105K ( 15K free)
- C700 5098K ( 22K free)
- INSTALL 4991K (129K free)
- INSTALL_C700 4681K (439K free)
 1.37 07-Jun-2018  thorpej branches: 1.37.2;
Revert changes that pinned-down i2c parent specs. The i2c subsystem
has been enhanced to make this unnecessary.
 1.36 15-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.35 28-Jan-2018  rin branches: 1.35.2;
Shrink ramdisk to fit INSTALL kernel within 5MB:
- drop shutdown
- replace disklabel, fsck_ffs, and newfs with stripped-down versions
 1.34 20-Dec-2017  rin Disable compat stuffs that are accidentally accidentally added to rev 1.33.
Now INSTALL kernel fits within 5MB again.
 1.33 14-Sep-2017  mrg clean up COMPAT_* options for native netbsd code:
- new series of files that are useful for saying "i want everything
since netbsd 1.4", etc.
- use the fact COMPAT_* options have future dependancies to remove
many redundant options.

removes about 3000 lines total across kernel configuration files.
tested about 30 random kernels in the changed list.
 1.32 08-Feb-2017  rin branches: 1.32.6;
Shrink the ramdisk of INSTALL kernel for zaurus in order to fit within 5MB.

Now free spaces of the main kernel and ramdisk are about 62KB and 215KB for
INSTALL, respectively.

OK christos
 1.31 30-Jan-2017  nonaka reduce install kernel size.
 1.30 13-Dec-2016  christos branches: 1.30.2;
wildcard speaker attachments, now that we can handle many of them.
 1.29 08-Dec-2016  nat Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
 1.28 12-Aug-2016  nonaka remove some phy(4) from zaurus INSTALL kernel.

avoid kernel size limit...
 1.27 16-Feb-2016  nonaka branches: 1.27.2;
Reduced INSTALL kernel size.
 1.26 19-Jul-2015  martin Backout previous, it does not work.
 1.25 17-Jul-2015  martin Provide a bit more space for the ram disk image
 1.24 17-Aug-2014  joerg branches: 1.24.2;
Reorganize symbol table embedding. The existing option SYMTAB_SPACE is
replaced by the make option COPY_SYMTAB set to any value. The copy of
the symbol table is no longer put into a buffer in kern_ksyms.o, but a
small helper object. This object is build first with a dummy size, then
the kernel is linked to compute the real dimension of the symbol table
buffer. After that, the helper object is rebuild and the kernel linked
again.
 1.23 16-Aug-2014  apb Add "no options COMPAT_70" to all kernel configuration files that
already had "no options COMPAT_60".
 1.22 04-Aug-2014  martin Adapt to increased ramdisk size
 1.21 01-Mar-2014  joerg branches: 1.21.2;
Typo
 1.20 13-Sep-2013  christos disable more stuff.
 1.19 28-Jun-2013  he branches: 1.19.2;
Bump the INSTALL ramdisk by 100k so that the contents fits again.
Approved by nonaka@
 1.18 17-Oct-2012  apb Add "no options COMPAT_60" to all kernel configuration files
that already had "no options COMPAT_50".
 1.17 17-Aug-2012  abs branches: 1.17.2;
Update all kernel configs mentioning WSEMUL_* but not already including
WSDISPLAY_COMPAT_USL using the following rules:
- If WSEMUL_ is commented out, add commented out out WSDISPLAY_COMPAT_USL
- If INSTALL or obviously memory constrained, add WSDISPLAY_DEFAULTSCREENS=1
and commented out WSDISPLAY_COMPAT_USL
- Otherwise add WSDISPLAY_COMPAT_USL

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

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

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

On 5 June 2012 09:47, David Brownlee <abs@absd.org> wrote:
> wsconscfg(8) requires WSDISPLAY_COMPAT_USL in order to switch virtual
> terminals.
>
> Except when in an exceptionally memory or space constrained
> environment (INSTALL being the obvious case), is there any reason why
> all GENERIC and GENERIC-like kernels which have wscons enabled
> shouldn't also have WSDISPLAY_COMPAT_USL?
 1.16 17-Aug-2012  abs Ensure all WSDISPLAY_COMPAT_USL entries have same comment
 1.15 07-Apr-2012  nonaka bump up ramdisk size.
 1.14 10-Mar-2012  joerg P1003_1B_SEMAPHORE is no longer optional.
 1.13 02-Feb-2012  tsutsui branches: 1.13.2;
Try to shrink INSTALL kernel a bit.
Loading INSTALL kernel on SL-C1000 running Zaurus Linux still sometimes
fails (due to its size), but at least it works on maintenance kernel.
 1.12 25-Jan-2012  tsutsui Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.11 19-Nov-2011  nonaka branches: 1.11.4;
disable kloader(4).
 1.10 19-Jun-2011  nonaka branches: 1.10.2;
more support SL-C1000.
 1.9 20-May-2011  tsutsui branches: 1.9.2;
Shrink ramdisk size to 2048KB.
 1.8 20-May-2011  tsutsui Shrink INSTALL kerenl more:
- disable KERNFS (install ramdisk uses /sbin/dmesg directly)
- disable mice, audio, uk(4), and wsfont(4)
 1.7 05-May-2011  nonaka Reduce kernel size.
Tested on SL-C1000.

Fix PR/44898.
 1.6 21-Dec-2009  nonaka branches: 1.6.4; 1.6.6;
comment out KLOADER.
 1.5 11-Mar-2009  nonaka Added kloader support.
 1.4 06-Feb-2009  jym branches: 1.4.2;
Changes to MEMORY_RBFLAGS option:
- renamed to MEMORY_DISK_RBFLAGS to better fit the rest of the
MEMORY_DISK options(4)
- change default value to RB_AUTOBOOT instead of RB_SINGLE, and adapt
the config(5) files accordingly
- document this option inside options(4)

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

Reviewed by abs@ in private mail.
 1.3 10-Apr-2008  nonaka branches: 1.3.4; 1.3.12;
- zaurus uses MBR
- Added fdisk to ramdisk
- increase ramdisk size
 1.2 01-Apr-2008  chris Increase the Zaurus INSTALL memory disk size to match the size of the
ramdisk created by the distrib files.
 1.1 17-Dec-2006  peter branches: 1.1.2; 1.1.4; 1.1.6; 1.1.50;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1.50.2 02-Jun-2008  mjf Sync with HEAD.
 1.1.50.1 03-Apr-2008  mjf Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 17-Dec-2006  ad file INSTALL was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 17-Dec-2006  yamt file INSTALL was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 17-Dec-2006  yamt file INSTALL was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.12.2 28-Apr-2009  skrll Sync with HEAD.
 1.3.12.1 03-Mar-2009  skrll Sync with HEAD.
 1.3.4.2 11-Mar-2010  yamt sync with head
 1.3.4.1 04-May-2009  yamt sync with head.
 1.4.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.6.4.1 31-May-2011  rmind sync with head
 1.9.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.10.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.10.2.2 30-Oct-2012  yamt sync with head
 1.10.2.1 17-Apr-2012  yamt sync with head
 1.11.4.3 29-Apr-2012  mrg sync to latest -current.
 1.11.4.2 11-Mar-2012  mrg sync to latest -current
 1.11.4.1 18-Feb-2012  mrg merge to -current.
 1.13.2.1 16-Aug-2012  riz Since DIAGNOSTIC is removed from GENERIC on the netbsd-6 branch, comment
out "no options DIAGNOSTIC" to allow this kernel to build.

Fix for ticket #502 (originally requested by martin).
 1.17.2.3 03-Dec-2017  jdolecek update from HEAD
 1.17.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.17.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.19.2.1 18-May-2014  rmind sync with head
 1.21.2.1 10-Aug-2014  tls Rebase.
 1.24.2.5 28-Aug-2017  skrll Sync with HEAD
 1.24.2.4 05-Feb-2017  skrll Sync with HEAD
 1.24.2.3 05-Oct-2016  skrll Sync with HEAD
 1.24.2.2 19-Mar-2016  skrll Sync with HEAD
 1.24.2.1 22-Sep-2015  skrll Sync with HEAD
 1.27.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.27.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.30.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.32.6.1 16-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #1446):

sys/arch/zaurus/conf/GENERIC: revision 1.89
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.12
sys/arch/zaurus/conf/INSTALL: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.45
sys/arch/zaurus/conf/GENERIC: revision 1.85

Yes, we need to load symbols, but we don't need the whole DDB infrastructure
for that.

bye ddb and we fit again.

Make zaurus kernels use symbol tables loaded by the bootloader.
Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:

https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.35.2.2 25-Jun-2018  pgoyette Sync with HEAD
 1.35.2.1 21-May-2018  pgoyette Sync with HEAD
 1.37.2.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.37.2.1 10-Jun-2019  christos Sync with HEAD
 1.39.4.1 16-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #431):

sys/arch/zaurus/conf/GENERIC: revision 1.89
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.12
sys/arch/zaurus/conf/INSTALL: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.45

Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).
Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:

https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.40.8.1 03-Apr-2021  thorpej Sync with HEAD.
 1.11 07-Feb-2019  rin Add commented-out modern USB NICs for users easily finding them out.
 1.10 07-Feb-2019  rin Comment out ure(4) and its PHY drivers for now to unbreak build.
 1.9 07-Feb-2019  rin Oops, revert previous.
Combinations between NICs and PHYs are unpredictable...
 1.8 07-Feb-2019  rin Fix kernel size overflow caused by addition of ure(4) and PHY drivers.

Modern USB NICs are useful due to availability in the market, although
they cannot exhibit full performance with ohci(4). Also, some of them
support RX/TX offloading, which can be useful even with ohci(4).

Therefore, rather add modern NICs in usbdevices.config.

Instead, remove PHY drivers that cannot be used with zaurus.

Now, all kernels fits within 5 MiB = 5120 KiB:
- GENERIC 5105K ( 15K free)
- C700 5098K ( 22K free)
- INSTALL 4991K (129K free)
- INSTALL_C700 4681K (439K free)
 1.7 06-Feb-2019  rin Add ure(4) to kernel config files. Also add PHY drivers where necessary.
 1.6 23-Oct-2018  jdolecek remove the 'wd* at umass?' for the non-standardized and rare (extinct?)
In-System Design ATA protocol over Bulk-Only devices from most kernels,
leave only in i386/amd64 ALL; it's unmaintained and likely currently broken,
lack of test hardware makes it impossible to support
 1.5 26-Aug-2018  rin Disable mue(4) for INSTALL_C70 like other USB NICs.
Should fix build.
 1.4 07-Jun-2018  thorpej branches: 1.4.2;
Revert changes that pinned-down i2c parent specs. The i2c subsystem
has been enhanced to make this unnecessary.
 1.3 15-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.2 12-Aug-2016  nonaka branches: 1.2.14;
remove some phy(4) from zaurus INSTALL kernel.

avoid kernel size limit...
 1.1 02-Feb-2012  tsutsui branches: 1.1.4; 1.1.6; 1.1.10; 1.1.28;
Add INSTALL kernel config for SL-C700.
 1.1.28.1 05-Oct-2016  skrll Sync with HEAD
 1.1.10.1 03-Dec-2017  jdolecek update from HEAD
 1.1.6.2 17-Apr-2012  yamt sync with head
 1.1.6.1 02-Feb-2012  yamt file INSTALL_C700 was added on branch yamt-pagecache on 2012-04-17 00:07:12 +0000
 1.1.4.2 18-Feb-2012  mrg merge to -current.
 1.1.4.1 02-Feb-2012  mrg file INSTALL_C700 was added on branch jmcneill-usbmp on 2012-02-18 07:33:48 +0000
 1.2.14.4 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.2.14.3 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.2.14.2 25-Jun-2018  pgoyette Sync with HEAD
 1.2.14.1 21-May-2018  pgoyette Sync with HEAD
 1.4.2.1 10-Jun-2019  christos Sync with HEAD
 1.12 12-Jan-2020  tsutsui Revert "Compile with -O2 by default" change in previous rev 1.11.

COPTS is defined properly after sys/arch/arm/conf/Makefile.arm rev 1.53.
See discussion in source-changes-d@ for details:
https://mail-index.netbsd.org/source-changes-d/2020/01/thread1.html#011984
 1.11 03-Jan-2020  martin branches: 1.11.2;
Drop CTF sections from this size restricted kernel (especially as the
size check is on the total size of the binary, not any content/sections -
is this a bug?)
Compile with -O2 by default (to shrink the kernel to a usable size again
and unbreak the build)
 1.10 26-Oct-2019  tsutsui Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.9 25-Aug-2015  uebayasi branches: 1.9.10; 1.9.18; 1.9.22;
Print a message when creating a temporary ldscript.
 1.8 24-Aug-2015  uebayasi Define ${LINKSCRIPT} in one place.
 1.7 19-Aug-2015  uebayasi Use ${KERNLDSCRIPT} so it is added to ${SYSTEM_DEP}.
 1.6 15-Nov-2014  uebayasi branches: 1.6.2;
Use LINKSCRIPT.
 1.5 02-Mar-2014  joerg Don't overwrite MACHINE_ARCH if it is already set.
 1.4 20-Jan-2012  nonaka branches: 1.4.6; 1.4.10;
Kernel load address can be changed now.
 1.3 05-May-2011  nonaka branches: 1.3.4; 1.3.8;
Reduce kernel size.
Tested on SL-C1000.

Fix PR/44898.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.76; 1.2.82;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.82.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.76.1 31-May-2011  rmind sync with head
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file Makefile.zaurus.inc was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file Makefile.zaurus.inc was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file Makefile.zaurus.inc was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.8.1 18-Feb-2012  mrg merge to -current.
 1.3.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.3.4.1 17-Apr-2012  yamt sync with head
 1.4.10.1 18-May-2014  rmind sync with head
 1.4.6.2 03-Dec-2017  jdolecek update from HEAD
 1.4.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.2.1 22-Sep-2015  skrll Sync with HEAD
 1.9.22.1 03-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #391):

sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.12
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.10
sys/arch/zaurus/conf/Makefile.zaurus.inc: revision 1.10
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.11
sys/arch/zaurus/stand/zbsdmod/compat_linux.h: revision 1.7

Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.

Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding

-

Make sure to clear bss before jumping to a kernel copied from load buffer.
This will fix yet another boot failure issue
"screen white-out after loading a kernel"
https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.9.18.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.9.10.1 03-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #1420):

sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.12
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.10
sys/arch/zaurus/conf/Makefile.zaurus.inc: revision 1.10
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.11
sys/arch/zaurus/stand/zbsdmod/compat_linux.h: revision 1.7

Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.

Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding

-

Make sure to clear bss before jumping to a kernel copied from load buffer.
This will fix yet another boot failure issue
"screen white-out after loading a kernel"
https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.11.2.1 17-Jan-2020  ad Sync with head.
 1.16 08-May-2019  isaki Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
 1.15 09-Mar-2018  christos branches: 1.15.2; 1.15.4;
revert previous; this was no typo.
 1.14 06-Mar-2018  christos fix typo (thanks gcc-6). There is no "pxaiis"
 1.13 11-Aug-2015  nonaka branches: 1.13.16;
armfpe is gone.
 1.12 23-Sep-2014  nonaka branches: 1.12.2;
Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.

- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
 1.11 29-Jan-2012  tsutsui branches: 1.11.6;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.10 25-Jan-2012  tsutsui Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.9 19-Jun-2011  nonaka branches: 1.9.2; 1.9.6;
more support SL-C1000.
 1.8 21-Apr-2009  nonaka branches: 1.8.10;
Added SD/MMC support from OpenBSD.
tested on i386, amd64 at current-users ML by pgoyette@.
tested on zaurus by myself.
 1.7 11-Mar-2009  nonaka Added kloader support.
 1.6 31-Mar-2008  chris branches: 1.6.4; 1.6.12; 1.6.18;
Add GPIO pins for USB cable type detection and glue for zusb devices for
config.
 1.5 20-Feb-2008  drochner branches: 1.5.6;
Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
 1.4 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.3 29-Jul-2007  nonaka branches: 1.3.2; 1.3.6;
Added support to detect AC adapter and charge battery.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.12; 1.2.20; 1.2.22; 1.2.24;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.24.1 15-Aug-2007  skrll Sync with HEAD.
 1.2.22.1 07-Aug-2007  matt Sync with HEAD.
 1.2.20.1 03-Oct-2007  garbled Sync with HEAD
 1.2.12.1 20-Aug-2007  ad Sync with HEAD.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file files.zaurus was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.4 27-Feb-2008  yamt sync with head.
 1.2.4.3 03-Sep-2007  yamt sync with head.
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file files.zaurus was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file files.zaurus was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.6.2 23-Mar-2008  matt sync with HEAD
 1.3.6.1 06-Nov-2007  matt sync with HEAD
 1.3.2.1 28-Feb-2008  rjs Sync with HEAD.
 1.5.6.1 03-Apr-2008  mjf Sync with HEAD.
 1.6.18.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.12.1 28-Apr-2009  skrll Sync with HEAD.
 1.6.4.1 04-May-2009  yamt sync with head.
 1.8.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.9.6.1 18-Feb-2012  mrg merge to -current.
 1.9.2.1 17-Apr-2012  yamt sync with head
 1.11.6.1 03-Dec-2017  jdolecek update from HEAD
 1.12.2.1 22-Sep-2015  skrll Sync with HEAD
 1.13.16.1 15-Mar-2018  pgoyette Synch with HEAD
 1.15.4.1 05-May-2019  isaki Remove obsoleted au{,rate,vol}conv and mulaw attributes.
audio provides the equivalent of them inseparably.
 1.15.2.1 10-Jun-2019  christos Sync with HEAD
 1.2 20-Jan-2012  nonaka Kernel load address can be changed now.
 1.1 17-Dec-2006  peter branches: 1.1.2; 1.1.4; 1.1.6; 1.1.88; 1.1.92;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1.92.1 18-Feb-2012  mrg merge to -current.
 1.1.88.1 17-Apr-2012  yamt sync with head
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 17-Dec-2006  ad file ldscript was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 17-Dec-2006  yamt file ldscript was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 17-Dec-2006  yamt file ldscript was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.13 11-Feb-2023  mlelstv Apply ldscript fixes for binutils-2.39. See PR 57223.
 1.12 03-Jan-2020  martin Drop CTF sections from this size restricted kernel (especially as the
size check is on the total size of the binary, not any content/sections -
is this a bug?)
Compile with -O2 by default (to shrink the kernel to a usable size again
and unbreak the build)
 1.11 23-Aug-2015  uebayasi branches: 1.11.18;
Don't need to specify OUTPUT_FORMAT/OUTPUT_ARCH.
 1.10 22-Aug-2015  uebayasi .rel/.rela should not be generated in kernels.
 1.9 22-Aug-2015  uebayasi According to matt@, .ARM.{extab,exidx} are no longer used.
 1.8 21-Aug-2015  uebayasi Simplify this by deciding load address at one place.
 1.7 20-Aug-2015  uebayasi Indent with 2 spaces.
 1.6 20-Aug-2015  uebayasi Kill trailing whitespaces.
 1.5 30-Jan-2014  matt branches: 1.5.6;
Put EHABI exception tables at the end of text.
provide __exidx_start and __exidx_end symbols.
 1.4 03-Oct-2013  christos delete eh_frame gunk, which hopefully will make the kernel small enough to boot.
 1.3 20-Jan-2012  nonaka branches: 1.3.6; 1.3.10;
Kernel load address can be changed now.
 1.2 17-Dec-2006  peter branches: 1.2.60; 1.2.64;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.64.1 18-Feb-2012  mrg merge to -current.
 1.2.60.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.2.60.1 17-Apr-2012  yamt sync with head
 1.3.10.1 18-May-2014  rmind sync with head
 1.3.6.2 03-Dec-2017  jdolecek update from HEAD
 1.3.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.6.1 22-Sep-2015  skrll Sync with HEAD
 1.11.18.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.12 29-Jun-2021  nia Remove uscanner(4) driver

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

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

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

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

Proposed on tech-kern a month ago.
 1.9 28-Jan-2019  dholland branches: 1.9.6;
Systematize handling of removed drivers.

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

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

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

This retires a big user of the mbuf API, and will ease maintenance of the
kernel.
 1.7 23-Apr-2015  pgoyette branches: 1.7.16; 1.7.18;
Update device dependency information - the sysmon major device now depends on the sysmon module itself, not on the individual components.
 1.6 30-Jun-2011  wiz branches: 1.6.12; 1.6.30;
dependant -> dependent
 1.5 06-Mar-2010  plunky use a MI major number for uhso(4) driver
(requested by mrg)
 1.4 06-Mar-2010  plunky add major device for usho(4) driver
 1.3 12-Nov-2008  ad Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.2 31-Dec-2007  ad branches: 1.2.6; 1.2.10; 1.2.16; 1.2.18;
Remove systrace. Ok core@.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.26; 1.1.30; 1.1.36; 1.1.42;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.42.1 02-Jan-2008  bouyer Sync with HEAD
 1.1.36.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.30.1 09-Jan-2008  matt sync with HEAD
 1.1.26.1 28-Feb-2008  rjs Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file majors.zaurus was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.3 21-Jan-2008  yamt sync with head
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file majors.zaurus was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file majors.zaurus was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2.18.1 19-Jan-2009  skrll Sync with HEAD.
 1.2.16.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.2.10.1 04-May-2009  yamt sync with head.
 1.2.6.1 17-Jan-2009  mjf Sync with HEAD.
 1.6.30.1 06-Jun-2015  skrll Sync with HEAD
 1.6.12.1 03-Dec-2017  jdolecek update from HEAD
 1.7.18.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.7.18.1 10-Jun-2019  christos Sync with HEAD
 1.7.16.1 30-Sep-2018  pgoyette Ssync with HEAD
 1.9.6.1 29-Feb-2020  ad Sync with head.
 1.11.8.1 01-Aug-2021  thorpej Sync with HEAD.
 1.4 20-Jan-2012  nonaka Kernel load address can be changed now.
 1.3 27-Jan-2008  chris branches: 1.3.44; 1.3.48;
Add an arm/conf/std.arm file which contains common arm options, initially
just options CPU_IN_CKSUM.

Include std.arm in all arm platform std files.

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

Also remove the now unused in_cksum_arm.S.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.26; 1.2.30; 1.2.36;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.36.1 18-Feb-2008  mjf Sync with HEAD.
 1.2.30.1 23-Mar-2008  matt sync with HEAD
 1.2.26.1 28-Feb-2008  rjs Sync with HEAD.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file std.zaurus was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.3 04-Feb-2008  yamt sync with head.
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file std.zaurus was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file std.zaurus was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.48.1 18-Feb-2012  mrg merge to -current.
 1.3.44.1 17-Apr-2012  yamt sync with head
 1.2 16-Jun-2018  thorpej More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
all of the logic for direct-config matching. If it returns true,
the driver returns the match result (which may be 0). If it returns
false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
lower-indexed "compatible" device property are more-specific matches,
and return a better match quality accordingly.
 1.1 19-Jun-2011  nonaka branches: 1.1.2; 1.1.54;
more support SL-C1000.
 1.1.54.1 25-Jun-2018  pgoyette Sync with HEAD
 1.1.2.2 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1.2.1 19-Jun-2011  cherry file ioexp.c was added on branch cherry-xenmp on 2011-06-23 14:19:51 +0000
 1.1 19-Jun-2011  nonaka branches: 1.1.2;
more support SL-C1000.
 1.1.2.2 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1.2.1 19-Jun-2011  cherry file ioexpreg.h was added on branch cherry-xenmp on 2011-06-23 14:19:51 +0000
 1.1 19-Jun-2011  nonaka branches: 1.1.2;
more support SL-C1000.
 1.1.2.2 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1.2.1 19-Jun-2011  cherry file ioexpvar.h was added on branch cherry-xenmp on 2011-06-23 14:19:51 +0000
 1.3 29-Jan-2012  tsutsui branches: 1.3.4; 1.3.6;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.2 27-Jan-2012  tsutsui Allow calling scoop_set_backlight() even before scoop is attached and
schedule initial values in that case as ioexp does. Suggested by nonaka@.
Now lcdctl no longer has to defer lcdctl_set_brightness() by
config_finalize_register(9), which is a bit too late.
(i.e. no backlight during USB/SD probe by config_interrupt(9) in previous)
 1.1 25-Jan-2012  tsutsui Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.3.6.2 17-Apr-2012  yamt sync with head
 1.3.6.1 29-Jan-2012  yamt file lcdctl.c was added on branch yamt-pagecache on 2012-04-17 00:07:12 +0000
 1.3.4.2 18-Feb-2012  mrg merge to -current.
 1.3.4.1 29-Jan-2012  mrg file lcdctl.c was added on branch jmcneill-usbmp on 2012-02-18 07:33:49 +0000
 1.1 25-Jan-2012  tsutsui branches: 1.1.4; 1.1.6;
Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.1.6.2 17-Apr-2012  yamt sync with head
 1.1.6.1 25-Jan-2012  yamt file lcdctlvar.h was added on branch yamt-pagecache on 2012-04-17 00:07:12 +0000
 1.1.4.2 18-Feb-2012  mrg merge to -current.
 1.1.4.1 25-Jan-2012  mrg file lcdctlvar.h was added on branch jmcneill-usbmp on 2012-02-18 07:33:49 +0000
 1.13 23-Sep-2014  nonaka Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.

- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
 1.12 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.11 29-Jan-2012  tsutsui branches: 1.11.6;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.10 27-Jan-2012  tsutsui Allow calling scoop_set_backlight() even before scoop is attached and
schedule initial values in that case as ioexp does. Suggested by nonaka@.
Now lcdctl no longer has to defer lcdctl_set_brightness() by
config_finalize_register(9), which is a bit too late.
(i.e. no backlight during USB/SD probe by config_interrupt(9) in previous)
 1.9 19-Jul-2011  dyoung branches: 1.9.2; 1.9.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.8 19-Jun-2011  nonaka more support SL-C1000.
 1.7 18-Apr-2009  nonaka branches: 1.7.10;
zaudio(4): Support recording.
 1.6 29-Jan-2009  nonaka branches: 1.6.2;
- device_t/softc split.
- use aprint_* function.
 1.5 13-Jun-2008  cegger branches: 1.5.4;
use device_lookup_private to get softc
 1.4 17-Oct-2007  garbled branches: 1.4.16; 1.4.18; 1.4.20; 1.4.22; 1.4.24;
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.3 29-Jul-2007  nonaka branches: 1.3.6;
sync with OpenBSD.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.12; 1.2.20; 1.2.22; 1.2.24;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.24.1 15-Aug-2007  skrll Sync with HEAD.
 1.2.22.1 07-Aug-2007  matt Sync with HEAD.
 1.2.20.1 03-Oct-2007  garbled Sync with HEAD
 1.2.12.1 20-Aug-2007  ad Sync with HEAD.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file scoop.c was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.3 03-Sep-2007  yamt sync with head.
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file scoop.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file scoop.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.6.1 06-Nov-2007  matt sync with HEAD
 1.4.24.1 18-Jun-2008  simonb Sync with head.
 1.4.22.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.4.20.1 04-May-2009  yamt sync with head.
 1.4.18.1 17-Jun-2008  yamt sync with head.
 1.4.16.1 29-Jun-2008  mjf Sync with HEAD.
 1.5.4.2 28-Apr-2009  skrll Sync with HEAD.
 1.5.4.1 03-Mar-2009  skrll Sync with HEAD.
 1.6.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.7.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.9.6.1 18-Feb-2012  mrg merge to -current.
 1.9.2.2 30-Oct-2012  yamt sync with head
 1.9.2.1 17-Apr-2012  yamt sync with head
 1.11.6.2 03-Dec-2017  jdolecek update from HEAD
 1.11.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.4 19-Jun-2011  nonaka more support SL-C1000.
 1.3 29-Jan-2009  nonaka branches: 1.3.12;
- device_t/softc split.
- use aprint_* function.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.54; 1.2.62;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.62.1 03-Mar-2009  skrll Sync with HEAD.
 1.2.54.1 04-May-2009  yamt sync with head.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file scoop_pcic.c was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file scoop_pcic.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file scoop_pcic.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.12.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.6 23-Sep-2014  nonaka Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.

- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
 1.5 29-Jan-2012  tsutsui branches: 1.5.6;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.4 17-Oct-2007  garbled branches: 1.4.54; 1.4.58;
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.3 29-Jul-2007  nonaka branches: 1.3.6;
sync with OpenBSD.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.12; 1.2.20; 1.2.22; 1.2.24;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.24.1 15-Aug-2007  skrll Sync with HEAD.
 1.2.22.1 07-Aug-2007  matt Sync with HEAD.
 1.2.20.1 03-Oct-2007  garbled Sync with HEAD
 1.2.12.1 20-Aug-2007  ad Sync with HEAD.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file scoopreg.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.3 03-Sep-2007  yamt sync with head.
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file scoopreg.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file scoopreg.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.6.1 06-Nov-2007  matt sync with HEAD
 1.4.58.1 18-Feb-2012  mrg merge to -current.
 1.4.54.1 17-Apr-2012  yamt sync with head
 1.5.6.1 03-Dec-2017  jdolecek update from HEAD
 1.6 23-Sep-2014  nonaka Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.

- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
 1.5 18-Apr-2009  nonaka branches: 1.5.22;
zaudio(4): Support recording.
 1.4 17-Oct-2007  garbled branches: 1.4.20; 1.4.28; 1.4.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.3 29-Jul-2007  nonaka branches: 1.3.6;
sync with OpenBSD.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.12; 1.2.20; 1.2.22; 1.2.24;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.24.1 15-Aug-2007  skrll Sync with HEAD.
 1.2.22.1 07-Aug-2007  matt Sync with HEAD.
 1.2.20.1 03-Oct-2007  garbled Sync with HEAD
 1.2.12.1 20-Aug-2007  ad Sync with HEAD.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file scoopvar.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.3 03-Sep-2007  yamt sync with head.
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file scoopvar.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file scoopvar.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.6.1 06-Nov-2007  matt sync with HEAD
 1.4.34.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.28.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.20.1 04-May-2009  yamt sync with head.
 1.5.22.1 03-Dec-2017  jdolecek update from HEAD
 1.4 20-Nov-2021  rin - Accept anti-aliased fonts.
- Clear garbage from screen when attach.
 1.3 21-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.2 10-Nov-2019  chs branches: 1.2.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.1 29-Jan-2012  tsutsui branches: 1.1.4; 1.1.6; 1.1.52;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.1.52.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.1.6.2 17-Apr-2012  yamt sync with head
 1.1.6.1 29-Jan-2012  yamt file w100.c was added on branch yamt-pagecache on 2012-04-17 00:07:12 +0000
 1.1.4.2 18-Feb-2012  mrg merge to -current.
 1.1.4.1 29-Jan-2012  mrg file w100.c was added on branch jmcneill-usbmp on 2012-02-18 07:33:49 +0000
 1.2.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.6 28-May-2022  andvar fix various typos, mainly in comments.
 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 13-Apr-2021  tsutsui Make LCD BrightnessUp/BrightnessDown work on C7x0/860.

Patch from steleto:
https://gist.github.com/steleto/10f62a074bff0c188fcc10c14ef40b5a
and also confirmed by me on SL-C700.

Worth to pullup to netbsd-9.
 1.2 10-Feb-2012  tsutsui branches: 1.2.4; 1.2.6; 1.2.56; 1.2.66;
More SL-C7x0/860 support for Xorg server usage:
- pull touchpanel adjustment ioctls to w100lcd.c for SL-C7x0/860
from zlcd.c for SL-C1000/3x00
- add sample xorg.conf for C7x0/860 (which have hardware screen rotation)
- rename old xorg.conf.sample for C1000/C3x00 to xorg.conf.C3x00
- adjust md set list

Ok releng@ nonaka@
 1.1 29-Jan-2012  tsutsui Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.2.66.2 17-Apr-2021  thorpej Sync with HEAD.
 1.2.66.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.2.56.1 21-Apr-2021  martin Pull up following revision(s) (requested by tsutsui in ticket #1247):

sys/arch/zaurus/dev/w100lcd.c: revision 1.3

Make LCD BrightnessUp/BrightnessDown work on C7x0/860.

Patch from steleto:
https://gist.github.com/steleto/10f62a074bff0c188fcc10c14ef40b5a

and also confirmed by me on SL-C700.

Worth to pullup to netbsd-9.
 1.2.6.2 17-Apr-2012  yamt sync with head
 1.2.6.1 10-Feb-2012  yamt file w100lcd.c was added on branch yamt-pagecache on 2012-04-17 00:07:13 +0000
 1.2.4.2 18-Feb-2012  mrg merge to -current.
 1.2.4.1 10-Feb-2012  mrg file w100lcd.c was added on branch jmcneill-usbmp on 2012-02-18 07:33:49 +0000
 1.4.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.1 29-Jan-2012  tsutsui branches: 1.1.4; 1.1.6;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.1.6.2 17-Apr-2012  yamt sync with head
 1.1.6.1 29-Jan-2012  yamt file w100lcdvar.h was added on branch yamt-pagecache on 2012-04-17 00:07:13 +0000
 1.1.4.2 18-Feb-2012  mrg merge to -current.
 1.1.4.1 29-Jan-2012  mrg file w100lcdvar.h was added on branch jmcneill-usbmp on 2012-02-18 07:33:49 +0000
 1.2 12-Aug-2012  nonaka fix RCSID.
 1.1 29-Jan-2012  tsutsui branches: 1.1.4; 1.1.6;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.1.6.3 30-Oct-2012  yamt sync with head
 1.1.6.2 17-Apr-2012  yamt sync with head
 1.1.6.1 29-Jan-2012  yamt file w100reg.h was added on branch yamt-pagecache on 2012-04-17 00:07:13 +0000
 1.1.4.2 18-Feb-2012  mrg merge to -current.
 1.1.4.1 29-Jan-2012  mrg file w100reg.h was added on branch jmcneill-usbmp on 2012-02-18 07:33:50 +0000
 1.1 29-Jan-2012  tsutsui branches: 1.1.4; 1.1.6;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.1.6.2 17-Apr-2012  yamt sync with head
 1.1.6.1 29-Jan-2012  yamt file w100var.h was added on branch yamt-pagecache on 2012-04-17 00:07:13 +0000
 1.1.4.2 18-Feb-2012  mrg merge to -current.
 1.1.4.1 29-Jan-2012  mrg file w100var.h was added on branch jmcneill-usbmp on 2012-02-18 07:33:50 +0000
 1.3 08-May-2019  isaki Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
 1.2 16-Jun-2018  thorpej branches: 1.2.2; 1.2.4;
More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
all of the logic for direct-config matching. If it returns true,
the driver returns the match result (which may be 0). If it returns
false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
lower-indexed "compatible" device property are more-specific matches,
and return a better match quality accordingly.
 1.1 23-Sep-2014  nonaka branches: 1.1.18; 1.1.20;
Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.

- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
 1.1.20.1 25-Jun-2018  pgoyette Sync with HEAD
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 23-Sep-2014  jdolecek file wm8731_zaudio.c was added on branch tls-maxphys on 2017-12-03 11:36:52 +0000
 1.2.4.3 04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.2.4.2 04-May-2019  isaki Remove obsoleted methods in audio_hw_if.
- drain: is handled in audio upper layer now.
- mappage: is handled in audio upper layer now.
- setfd: no one uses and it's meaningless now.
 1.2.4.1 24-Apr-2019  isaki Adapt zaudio family to audio2.
- wm8731 and wm8750 can share zaudio_formats[].
- Drop INDEPENDENT property. These share sample rate in play and rec.
- pxa2x0_i2s_setspeed() no longer needs to writeback sample rate.
 1.2.2.1 10-Jun-2019  christos Sync with HEAD
 1.1 23-Sep-2014  nonaka branches: 1.1.18;
Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.

- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 23-Sep-2014  jdolecek file wm8731reg.h was added on branch tls-maxphys on 2017-12-03 11:36:52 +0000
 1.1 23-Sep-2014  nonaka branches: 1.1.18;
Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.

- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 23-Sep-2014  jdolecek file wm8731var.h was added on branch tls-maxphys on 2017-12-03 11:36:52 +0000
 1.4 01-May-2024  andvar s/Diffrential/Differential/ in comment.
 1.3 08-May-2019  isaki Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
 1.2 16-Jun-2018  thorpej branches: 1.2.2; 1.2.4;
More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
all of the logic for direct-config matching. If it returns true,
the driver returns the match result (which may be 0). If it returns
false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
lower-indexed "compatible" device property are more-specific matches,
and return a better match quality accordingly.
 1.1 23-Sep-2014  nonaka branches: 1.1.18; 1.1.20;
Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.

- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
 1.1.20.1 25-Jun-2018  pgoyette Sync with HEAD
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 23-Sep-2014  jdolecek file wm8750_zaudio.c was added on branch tls-maxphys on 2017-12-03 11:36:52 +0000
 1.2.4.4 04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.2.4.3 04-May-2019  isaki Remove obsoleted methods in audio_hw_if.
- drain: is handled in audio upper layer now.
- mappage: is handled in audio upper layer now.
- setfd: no one uses and it's meaningless now.
 1.2.4.2 24-Apr-2019  isaki Adapt zaudio family to audio2.
- wm8731 and wm8750 can share zaudio_formats[].
- Drop INDEPENDENT property. These share sample rate in play and rec.
- pxa2x0_i2s_setspeed() no longer needs to writeback sample rate.
 1.2.4.1 21-Apr-2019  isaki Use C99 style struct initializer to audio_format.
 1.2.2.1 10-Jun-2019  christos Sync with HEAD
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file wm8750reg.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file wm8750reg.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file wm8750reg.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 23-Sep-2014  nonaka branches: 1.1.18;
Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.

- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 23-Sep-2014  jdolecek file wm8750var.h was added on branch tls-maxphys on 2017-12-03 11:36:52 +0000
 1.14 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.13 24-Apr-2021  thorpej branches: 1.13.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.12 29-Jan-2012  tsutsui branches: 1.12.62;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.11 19-Jun-2011  nonaka branches: 1.11.2; 1.11.6;
more support SL-C1000.
 1.10 13-Nov-2010  uebayasi branches: 1.10.6;
Some missing sys/device.h dependencies.
 1.9 12-Dec-2009  nonaka branches: 1.9.4;
report collect charge state.
 1.8 12-Dec-2009  nonaka Use mutex(9).
 1.7 12-Dec-2009  nonaka use APM_BATT_FLAG_CHARGING.
 1.6 03-Apr-2009  uwe Switch apmdev to use apm(4) structures from dev/apm/apmvar.h.
Add batteryid argument to aa_get_powstat method implementations.
 1.5 11-Mar-2009  nonaka Reports the residual quantity of the battery in detail.
 1.4 29-Jan-2009  nonaka branches: 1.4.2;
- device_t/softc split.
- use aprint_* function.
 1.3 29-Jul-2007  nonaka branches: 1.3.6; 1.3.8; 1.3.12; 1.3.36; 1.3.44;
Added support to detect AC adapter and charge battery.
 1.2 30-Dec-2006  nonaka branches: 1.2.6;
remove unused files.
 1.1 16-Dec-2006  ober branches: 1.1.2;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file zapm.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2.6.1 20-Aug-2007  ad Sync with HEAD.
 1.3.44.2 28-Apr-2009  skrll Sync with HEAD.
 1.3.44.1 03-Mar-2009  skrll Sync with HEAD.
 1.3.36.2 11-Mar-2010  yamt sync with head
 1.3.36.1 04-May-2009  yamt sync with head.
 1.3.12.2 03-Sep-2007  yamt sync with head.
 1.3.12.1 29-Jul-2007  yamt file zapm.c was added on branch yamt-lazymbuf on 2007-09-03 14:31:41 +0000
 1.3.8.2 15-Aug-2007  skrll Sync with HEAD.
 1.3.8.1 29-Jul-2007  skrll file zapm.c was added on branch nick-csl-alignment on 2007-08-15 13:48:03 +0000
 1.3.6.2 07-Aug-2007  matt Sync with HEAD.
 1.3.6.1 29-Jul-2007  matt file zapm.c was added on branch matt-mips64 on 2007-08-07 18:05:57 +0000
 1.4.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.9.4.1 05-Mar-2011  rmind sync with head
 1.10.6.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.11.6.1 18-Feb-2012  mrg merge to -current.
 1.11.2.1 17-Apr-2012  yamt sync with head
 1.12.62.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.13.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.4 19-Jun-2011  nonaka Delete unused file.
 1.3 06-Dec-2008  ober branches: 1.3.4; 1.3.16;
Initial APM support for Zaurus. Ported from OpenBSD by mjf@.
 1.2 30-Dec-2006  nonaka branches: 1.2.30; 1.2.34; 1.2.38;
remove unused files.
 1.1 16-Dec-2006  ober branches: 1.1.2;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file zapm.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2.38.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.2.34.1 04-May-2009  yamt sync with head.
 1.2.30.1 17-Jan-2009  mjf Sync with HEAD.
 1.3.16.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.3.4.2 19-Jan-2009  skrll Sync with HEAD.
 1.3.4.1 06-Dec-2008  skrll file zapm.h was added on branch nick-hppapmap on 2009-01-19 13:17:13 +0000
 1.23 08-Jun-2019  isaki Clean get_props().
- Make get_props() return AUDIO_PROP_{PLAYBACK,CAPTURE} properly.
This eliminates need for audio.c to take care of such (old)
drivers which don't return both of PLAYBACK and CAPTURE.
- All get_props() doesn't need to return AUDIO_PROP_MMAP.
It is handled in the audio layer now.
 1.22 08-May-2019  isaki Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
 1.21 23-Sep-2014  nonaka branches: 1.21.20; 1.21.22;
Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.

- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
 1.20 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.19 29-Jan-2012  tsutsui branches: 1.19.6;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.18 25-Jan-2012  tsutsui Defer device initializations which implicitly depend on scoop or ioexp
via config_finalize_register(9).
 1.17 21-Jan-2012  nonaka fix my license notice.
 1.16 23-Nov-2011  jmcneill branches: 1.16.2;
Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

Add MP locking to the audio drivers.

Making the audio drivers MP safe is necessary before efforts
can be made to make the VM system MP safe.

The are two locks per device instance, an ISR lock and
a character device lock. The ISR lock replaces calls to
splaudio()/splx(), and will be held across calls to device
methods which were called at splaudio() before (e.g.
trigger_output). The character device lock is held across
calls to nearly all of the methods, excluding some only
used for initialization, e.g. get_locks.

Welcome to 5.99.57.
 1.15 23-Jun-2011  nonaka branches: 1.15.2; 1.15.4;
set PXA2X0_I2C_BASE to sc->sc_addr in the correct position.
 1.14 22-Jun-2011  kiyohara Add member sc_addr to struct pxa2x0_i2c_softc.
And use sc_addr to bus_space_map() instead of macro-directly.
 1.13 19-Jun-2011  nonaka more support SL-C1000.
 1.12 24-Feb-2010  dyoung branches: 1.12.8;
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
 1.11 08-Jan-2010  dyoung branches: 1.11.2;
Expand PMF_FN_* macros.
 1.10 18-Apr-2009  nonaka zaudio(4): Support recording.
 1.9 13-Mar-2009  nonaka zaudio(4) works now.
 1.8 11-Mar-2009  nonaka fix typo.
 1.7 29-Jan-2009  nonaka branches: 1.7.2;
Use pmf(9) instead of powerhook_*.
 1.6 29-Jan-2009  nonaka - device_t/softc split.
- use aprint_* function.
 1.5 17-Oct-2007  garbled branches: 1.5.20; 1.5.28;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.4 09-Jul-2007  ad branches: 1.4.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.3 22-Feb-2007  thorpej branches: 1.3.4; 1.3.6; 1.3.12;
TRUE -> true, FALSE -> false
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.8.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file zaudio.c was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.4 03-Sep-2007  yamt sync with head.
 1.2.4.3 26-Feb-2007  yamt sync with head.
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file zaudio.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file zaudio.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.12.1 03-Oct-2007  garbled Sync with HEAD
 1.3.6.1 11-Jul-2007  mjf Sync with head.
 1.3.4.1 01-Jul-2007  ad Adapt to callout API change.
 1.4.10.1 06-Nov-2007  matt sync with HEAD
 1.5.28.2 28-Apr-2009  skrll Sync with HEAD.
 1.5.28.1 03-Mar-2009  skrll Sync with HEAD.
 1.5.20.2 11-Mar-2010  yamt sync with head
 1.5.20.1 04-May-2009  yamt sync with head.
 1.7.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.11.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.12.8.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.15.4.3 22-Nov-2011  jmcneill get rid of unused 'powerstate' callback in audio_hw_if
 1.15.4.2 20-Nov-2011  jmcneill port zaudio to audiomp api changes for real this time
 1.15.4.1 20-Nov-2011  jmcneill adapt to audiomp api changes
 1.15.2.2 30-Oct-2012  yamt sync with head
 1.15.2.1 17-Apr-2012  yamt sync with head
 1.16.2.1 18-Feb-2012  mrg merge to -current.
 1.19.6.2 03-Dec-2017  jdolecek update from HEAD
 1.19.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.21.22.2 04-May-2019  isaki Move dev/audio_if.h -> dev/audio/audio_if.h
 1.21.22.1 24-Apr-2019  isaki Adapt zaudio family to audio2.
- wm8731 and wm8750 can share zaudio_formats[].
- Drop INDEPENDENT property. These share sample rate in play and rec.
- pxa2x0_i2s_setspeed() no longer needs to writeback sample rate.
 1.21.20.1 10-Jun-2019  christos Sync with HEAD
 1.3 08-May-2019  isaki Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly. Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism. The encoding/channels/frequency
conversions are completely handled in the upper layer. So the hard-
ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
- Obsoletes query_encoding and add query_format instead.
- Obsoletes set_params and add set_format instead.
- Remove drain, setfd, mappage.
- The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c -> dev/audio/audio.c (rewritten)
- dev/audiovar.h -> dev/audio/audiovar.h
- dev/audio_dai.h -> dev/audio/audio_dai.h
- dev/audio_if.h -> dev/audio/audio_if.h
- dev/audiobell.c -> dev/audio/audiobell.c
- dev/audiobellvar.h -> dev/audio/audiobellvar.h
- dev/mulaw.[ch] -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
 1.2 07-Jul-2016  msaitoh branches: 1.2.16; 1.2.20; 1.2.22;
KNF. Remove extra spaces. No functional change.
 1.1 23-Sep-2014  nonaka branches: 1.1.2;
Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.

- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
 1.1.2.1 09-Jul-2016  skrll Sync with HEAD
 1.2.22.1 24-Apr-2019  isaki Adapt zaudio family to audio2.
- wm8731 and wm8750 can share zaudio_formats[].
- Drop INDEPENDENT property. These share sample rate in play and rec.
- pxa2x0_i2s_setspeed() no longer needs to writeback sample rate.
 1.2.20.1 10-Jun-2019  christos Sync with HEAD
 1.2.16.2 03-Dec-2017  jdolecek update from HEAD
 1.2.16.1 07-Jul-2016  jdolecek file zaudiovar.h was added on branch tls-maxphys on 2017-12-03 11:36:52 +0000
 1.7 15-Sep-2025  thorpej Encapsulate what's needed to attach an I2C bus into a iicbus_attach()
inline.
 1.6 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.5 24-Apr-2021  thorpej branches: 1.5.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

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

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().
 1.3 14-Feb-2016  chs branches: 1.3.18;
zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
 1.2 23-Jun-2011  nonaka branches: 1.2.2; 1.2.14; 1.2.32;
set PXA2X0_I2C_BASE to sc->sc_addr in the correct position.
 1.1 19-Jun-2011  nonaka more support SL-C1000.
 1.2.32.1 19-Mar-2016  skrll Sync with HEAD
 1.2.14.1 03-Dec-2017  jdolecek update from HEAD
 1.2.2.2 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.2.2.1 23-Jun-2011  cherry file ziic.c was added on branch cherry-xenmp on 2011-06-23 14:19:51 +0000
 1.3.18.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.4.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.5.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.22 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.21 24-Apr-2021  thorpej branches: 1.21.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.20 21-Nov-2020  thorpej branches: 1.20.2;
malloc(9) -> kmem(9)
 1.19 10-Nov-2019  chs branches: 1.19.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.18 30-Mar-2013  nonaka branches: 1.18.36;
Apply patch from steleto, arranged by me.
- Avoid chattering for SL-C7x0/860
- Add more stuck keys.
 1.17 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.16 29-Jan-2012  tsutsui branches: 1.16.6;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.15 25-Jan-2012  tsutsui Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.14 21-Jun-2011  nonaka branches: 1.14.2; 1.14.6;
backout previous.
 1.13 21-Jun-2011  nonaka use pmf_event_inject() instead of call lcd_blank() directly.
 1.12 19-Jun-2011  nonaka more support SL-C1000.
 1.11 24-Feb-2010  dyoung branches: 1.11.8;
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
 1.10 08-Jan-2010  dyoung branches: 1.10.2;
Expand PMF_FN_* macros.
 1.9 29-Jan-2009  nonaka Use pmf(9) instead of powerhook_*.
 1.8 29-Jan-2009  nonaka - device_t/softc split.
- use aprint_* function.
 1.7 17-Oct-2007  garbled branches: 1.7.20; 1.7.28;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.6 21-Jul-2007  nonaka branches: 1.6.6;
Add missing callout_init().
 1.5 09-Jul-2007  ad branches: 1.5.2; 1.5.4;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.4 28-Jun-2007  nonaka cosmetic.
 1.3 04-Mar-2007  christos branches: 1.3.2; 1.3.4; 1.3.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file zkbd.c was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.3 03-Sep-2007  yamt sync with head.
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file zkbd.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file zkbd.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.10.1 03-Oct-2007  garbled Sync with HEAD
 1.3.4.1 11-Jul-2007  mjf Sync with head.
 1.3.2.4 20-Aug-2007  ad Sync with HEAD.
 1.3.2.3 15-Jul-2007  ad Sync with head.
 1.3.2.2 15-Jul-2007  ad Sync with head.
 1.3.2.1 01-Jul-2007  ad Adapt to callout API change.
 1.5.4.1 15-Aug-2007  skrll Sync with HEAD.
 1.5.2.1 07-Aug-2007  matt Sync with HEAD.
 1.6.6.1 06-Nov-2007  matt sync with HEAD
 1.7.28.1 03-Mar-2009  skrll Sync with HEAD.
 1.7.20.2 11-Mar-2010  yamt sync with head
 1.7.20.1 04-May-2009  yamt sync with head.
 1.10.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.11.8.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.14.6.1 18-Feb-2012  mrg merge to -current.
 1.14.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.14.2.2 30-Oct-2012  yamt sync with head
 1.14.2.1 17-Apr-2012  yamt sync with head
 1.16.6.2 23-Jun-2013  tls resync from head
 1.16.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.18.36.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.19.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.20.2.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.21.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.7 07-May-2012  tsutsui Fix wrong raw keycode in xt_keymap_c860[] so that right shift properly works
on Xserver on C7x0/860. From steleto.

Should be pulled up to netbsd-6.
 1.6 29-Jan-2012  tsutsui branches: 1.6.2;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.5 19-Jun-2011  nonaka branches: 1.5.2; 1.5.6;
more support SL-C1000.
 1.4 17-Oct-2007  garbled branches: 1.4.52;
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.3 28-Jun-2007  nonaka branches: 1.3.10;
Fix compile failure if defined WSDISPLAY_COMPAT_RAWKBD.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.12; 1.2.14; 1.2.20;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.20.1 03-Oct-2007  garbled Sync with HEAD
 1.2.14.1 11-Jul-2007  mjf Sync with head.
 1.2.12.1 15-Jul-2007  ad Sync with head.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file zkbdmap.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.3 03-Sep-2007  yamt sync with head.
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file zkbdmap.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file zkbdmap.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.10.1 06-Nov-2007  matt sync with HEAD
 1.4.52.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.5.6.2 02-Jun-2012  mrg sync to latest -current.
 1.5.6.1 18-Feb-2012  mrg merge to -current.
 1.5.2.2 23-May-2012  yamt sync with head.
 1.5.2.1 17-Apr-2012  yamt sync with head
 1.6.2.1 09-May-2012  riz Pull up following revision(s) (requested by tsutsui in ticket #237):
sys/arch/zaurus/dev/zkbdmap.h: revision 1.7
Fix wrong raw keycode in xt_keymap_c860[] so that right shift properly works
on Xserver on C7x0/860. From steleto.
Should be pulled up to netbsd-6.
 1.21 28-May-2022  andvar fix various typos, mainly in comments.
 1.20 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.19 24-Apr-2021  thorpej branches: 1.19.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.18 29-Jan-2012  tsutsui branches: 1.18.62;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.17 27-Jan-2012  tsutsui Update comments for recent lcdctl changes.
 1.16 25-Jan-2012  tsutsui Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.15 19-Jul-2011  dyoung branches: 1.15.2; 1.15.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.14 21-Jun-2011  nonaka backout previous.
 1.13 21-Jun-2011  nonaka use pmf_event_inject() instead of call lcd_blank() directly.
 1.12 19-Jun-2011  nonaka more support SL-C1000.
 1.11 24-Feb-2010  dyoung branches: 1.11.8;
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
 1.10 08-Jan-2010  dyoung branches: 1.10.2;
Expand PMF_FN_* macros.
 1.9 29-Jan-2009  nonaka Use pmf(9) instead of powerhook_*.
 1.8 29-Jan-2009  nonaka - device_t/softc split.
- use aprint_* function.
 1.7 17-Oct-2007  garbled branches: 1.7.20; 1.7.28;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.6 28-Jun-2007  nonaka branches: 1.6.10;
Implemented some HPC related ioctls for tpctl.
 1.5 04-Mar-2007  christos branches: 1.5.2; 1.5.4; 1.5.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.4 02-Feb-2007  ober branches: 1.4.2;
Updates to allow Zaurus screen to rotate 90 degrees to a usable state with the keyboard. Patch from peter@ copied from OpenBSD. Feedback and OK from matt@
 1.3 18-Dec-2006  nonaka branches: 1.3.2; 1.3.4;
Fix evbarm compile again.
 1.2 17-Dec-2006  peter branches: 1.2.2;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.2.3 21-Dec-2006  yamt sync with head.
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file zlcd.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.4.3 09-Feb-2007  ad Sync with HEAD.
 1.3.4.2 12-Jan-2007  ad Sync with head.
 1.3.4.1 18-Dec-2006  ad file zlcd.c was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.3.2.4 03-Sep-2007  yamt sync with head.
 1.3.2.3 26-Feb-2007  yamt sync with head.
 1.3.2.2 30-Dec-2006  yamt sync with head.
 1.3.2.1 18-Dec-2006  yamt file zlcd.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.4.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.5.10.1 03-Oct-2007  garbled Sync with HEAD
 1.5.4.1 11-Jul-2007  mjf Sync with head.
 1.5.2.1 15-Jul-2007  ad Sync with head.
 1.6.10.1 06-Nov-2007  matt sync with HEAD
 1.7.28.1 03-Mar-2009  skrll Sync with HEAD.
 1.7.20.2 11-Mar-2010  yamt sync with head
 1.7.20.1 04-May-2009  yamt sync with head.
 1.10.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.11.8.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.15.6.1 18-Feb-2012  mrg merge to -current.
 1.15.2.1 17-Apr-2012  yamt sync with head
 1.18.62.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.19.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.4 25-Jan-2012  tsutsui Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.3 21-Jun-2011  nonaka branches: 1.3.2; 1.3.4; 1.3.8;
backout previous.
 1.2 21-Jun-2011  nonaka use pmf_event_inject() instead of call lcd_blank() directly.
 1.1 19-Jun-2011  nonaka more support SL-C1000.
 1.3.8.1 18-Feb-2012  mrg merge to -current.
 1.3.4.1 17-Apr-2012  yamt sync with head
 1.3.2.2 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.3.2.1 21-Jun-2011  cherry file zlcdvar.h was added on branch cherry-xenmp on 2011-06-23 14:19:51 +0000
 1.5 29-Jan-2012  tsutsui Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.4 21-Jan-2012  nonaka fix my license notice.
 1.3 19-Jun-2011  nonaka branches: 1.3.2; 1.3.6;
more support SL-C1000.
 1.2 06-Apr-2010  nonaka branches: 1.2.6;
Enable SD 4bit bus width mode.
 1.1 21-Apr-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10;
Added SD/MMC support from OpenBSD.
tested on i386, amd64 at current-users ML by pgoyette@.
tested on zaurus by myself.
 1.1.10.1 30-May-2010  rmind sync with head
 1.1.8.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 21-Apr-2009  jym file zmci.c was added on branch jym-xensuspend on 2009-05-13 17:18:51 +0000
 1.1.4.3 11-Aug-2010  yamt sync with head.
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 21-Apr-2009  yamt file zmci.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:15 +0000
 1.1.2.2 28-Apr-2009  skrll Sync with HEAD.
 1.1.2.1 21-Apr-2009  skrll file zmci.c was added on branch nick-hppapmap on 2009-04-28 07:35:02 +0000
 1.2.6.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.3.6.1 18-Feb-2012  mrg merge to -current.
 1.3.2.1 17-Apr-2012  yamt sync with head
 1.13 28-Mar-2023  andvar s/interrput/interrupt/ and s/accesss/access/ in comments.
 1.12 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.11 24-Apr-2021  thorpej branches: 1.11.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.10 02-Nov-2019  tsutsui branches: 1.10.10;
Fix build errors with options WSDISPLAY_COMPAT_RAWKBD.

- Add missing RAWKEY_* macro definitions (taken from OpenBSD)
- Explicitly include "opt_wsdisplay_compat.h" for
#ifdef WSDISPLAY_COMPAT_RAWKBD conditionals.
(it is not properly pulled at least in netbsd-8)
https://mail-index.netbsd.org/port-zaurus/2019/11/02/msg000083.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.9 27-Oct-2012  chs branches: 1.9.30; 1.9.38; 1.9.42;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.8 25-Jan-2012  tsutsui branches: 1.8.6;
Defer device initializations which implicitly depend on scoop or ioexp
via config_finalize_register(9).
 1.7 19-Jun-2011  nonaka branches: 1.7.2; 1.7.6;
more support SL-C1000.
 1.6 29-Jan-2009  nonaka branches: 1.6.12;
- device_t/softc split.
- use aprint_* function.
 1.5 17-Oct-2007  garbled branches: 1.5.20; 1.5.28;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.4 09-Jul-2007  ad branches: 1.4.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.3 04-Mar-2007  christos branches: 1.3.2; 1.3.4; 1.3.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file zrc.c was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.3 03-Sep-2007  yamt sync with head.
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file zrc.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file zrc.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.10.1 03-Oct-2007  garbled Sync with HEAD
 1.3.4.1 11-Jul-2007  mjf Sync with head.
 1.3.2.1 01-Jul-2007  ad Adapt to callout API change.
 1.4.10.1 06-Nov-2007  matt sync with HEAD
 1.5.28.1 03-Mar-2009  skrll Sync with HEAD.
 1.5.20.1 04-May-2009  yamt sync with head.
 1.6.12.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.7.6.1 18-Feb-2012  mrg merge to -current.
 1.7.2.2 30-Oct-2012  yamt sync with head
 1.7.2.1 17-Apr-2012  yamt sync with head
 1.8.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.9.42.1 04-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #395):

sys/arch/zaurus/dev/zrc.c: revision 1.10

Fix build errors with options WSDISPLAY_COMPAT_RAWKBD.

- Add missing RAWKEY_* macro definitions (taken from OpenBSD)
- Explicitly include "opt_wsdisplay_compat.h" for
#ifdef WSDISPLAY_COMPAT_RAWKBD conditionals.
(it is not properly pulled at least in netbsd-8)
https://mail-index.netbsd.org/port-zaurus/2019/11/02/msg000083.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.9.38.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.9.30.1 04-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #1424):

sys/arch/zaurus/dev/zrc.c: revision 1.10

Fix build errors with options WSDISPLAY_COMPAT_RAWKBD.

- Add missing RAWKEY_* macro definitions (taken from OpenBSD)
- Explicitly include "opt_wsdisplay_compat.h" for
#ifdef WSDISPLAY_COMPAT_RAWKBD conditionals.
(it is not properly pulled at least in netbsd-8)
https://mail-index.netbsd.org/port-zaurus/2019/11/02/msg000083.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.10.10.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.11.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.15 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.14 24-Apr-2021  thorpej branches: 1.14.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.13 29-Jan-2012  tsutsui branches: 1.13.62;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.12 25-Jan-2012  tsutsui Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.11 19-Jul-2011  dyoung branches: 1.11.2; 1.11.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.10 19-Jun-2011  nonaka more support SL-C1000.
 1.9 24-Feb-2010  dyoung branches: 1.9.8;
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
 1.8 08-Jan-2010  dyoung branches: 1.8.2;
Expand PMF_FN_* macros.
 1.7 11-Mar-2009  nonaka collect same processing.
 1.6 29-Jan-2009  nonaka branches: 1.6.2;
Use pmf(9) instead of powerhook_*.
 1.5 29-Jan-2009  nonaka revert a part of previuos change.
 1.4 29-Jan-2009  nonaka - device_t/softc split.
- use aprint_* function.
 1.3 17-Oct-2007  garbled branches: 1.3.20; 1.3.28;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.2 28-Jun-2007  nonaka branches: 1.2.10;
- Added RCS Id.
- cosmetic.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.12; 1.1.14; 1.1.20;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.20.1 03-Oct-2007  garbled Sync with HEAD
 1.1.14.1 11-Jul-2007  mjf Sync with head.
 1.1.12.1 15-Jul-2007  ad Sync with head.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file zssp.c was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file zssp.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file zssp.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2.10.1 06-Nov-2007  matt sync with HEAD
 1.3.28.2 28-Apr-2009  skrll Sync with HEAD.
 1.3.28.1 03-Mar-2009  skrll Sync with HEAD.
 1.3.20.2 11-Mar-2010  yamt sync with head
 1.3.20.1 04-May-2009  yamt sync with head.
 1.6.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.8.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.9.8.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.11.6.1 18-Feb-2012  mrg merge to -current.
 1.11.2.1 17-Apr-2012  yamt sync with head
 1.13.62.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.13.62.5 04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.13.62.4 03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.13.62.3 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.13.62.2 20-Mar-2021  thorpej No need to pass the parent softc down to the indirect submatch routine;
it's available from the parent device_t there.
 1.13.62.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.14.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 25-Jan-2012  tsutsui Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.88; 1.1.92;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.92.1 18-Feb-2012  mrg merge to -current.
 1.1.88.1 17-Apr-2012  yamt sync with head
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file zsspvar.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file zsspvar.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file zsspvar.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.17 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.16 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.15 24-Apr-2021  thorpej branches: 1.15.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.14 27-Oct-2012  chs branches: 1.14.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.13 29-Jan-2012  tsutsui branches: 1.13.6;
Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.12 25-Jan-2012  tsutsui Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.11 25-Jan-2012  tsutsui Defer device initializations which implicitly depend on scoop or ioexp
via config_finalize_register(9).
 1.10 24-Feb-2010  dyoung branches: 1.10.10; 1.10.14;
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
 1.9 08-Jan-2010  dyoung branches: 1.9.2;
Expand PMF_FN_* macros.
 1.8 12-Dec-2009  nonaka Use tpcalib_ioctl() instead of hpc_tpanel_ioctl().
 1.7 03-Mar-2009  nonaka use pmf(9) instead of powerhook_*.
 1.6 29-Jan-2009  nonaka branches: 1.6.2;
- device_t/softc split.
- use aprint_* function.
 1.5 17-Oct-2007  garbled branches: 1.5.20; 1.5.28;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.4 09-Jul-2007  ad branches: 1.4.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.3 28-Jun-2007  nonaka Use tpcalib_trans() instead of own function.
 1.2 04-Mar-2007  christos branches: 1.2.2; 1.2.4; 1.2.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.1 17-Dec-2006  peter branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1.8.1 12-Mar-2007  rmind Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 17-Dec-2006  ad file ztp.c was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 17-Dec-2006  yamt file ztp.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:28 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 17-Dec-2006  yamt file ztp.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2.10.1 03-Oct-2007  garbled Sync with HEAD
 1.2.4.1 11-Jul-2007  mjf Sync with head.
 1.2.2.3 15-Jul-2007  ad Sync with head.
 1.2.2.2 15-Jul-2007  ad Sync with head.
 1.2.2.1 01-Jul-2007  ad Adapt to callout API change.
 1.4.10.1 06-Nov-2007  matt sync with HEAD
 1.5.28.2 28-Apr-2009  skrll Sync with HEAD.
 1.5.28.1 03-Mar-2009  skrll Sync with HEAD.
 1.5.20.2 11-Mar-2010  yamt sync with head
 1.5.20.1 04-May-2009  yamt sync with head.
 1.6.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.9.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.10.14.1 18-Feb-2012  mrg merge to -current.
 1.10.10.2 30-Oct-2012  yamt sync with head
 1.10.10.1 17-Apr-2012  yamt sync with head
 1.13.6.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.14.52.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.15.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 18-Dec-2006  nonaka Remove unused files.
 1.1 16-Dec-2006  ober branches: 1.1.2;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.2.3 21-Dec-2006  yamt sync with head.
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file zts.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.6 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.5 19-Jun-2011  nonaka more support SL-C1000.
 1.4 29-Jan-2009  nonaka branches: 1.4.12;
- device_t/softc split.
- use aprint_* function.
 1.3 28-Jan-2009  nonaka device_t/softc split.
 1.2 28-Jan-2009  nonaka don't print cable detect messages.
 1.1 31-Mar-2008  chris branches: 1.1.2; 1.1.6; 1.1.14;
Add zusb device for powering on the USB port. Also configure USB port 2
via the client USB on the pxa270, as it appears USB port 2 is the
externally routed port.

The linux driver was used as documentation for GPIO pins and port
settings.

Note that this only seems to work for one boot, a reboot loses for some
reason, perhaps something in the USB client area needs to be configured.

XXX: perhaps we should make zusb a device that attached/detaches the USB
USB host or client device depending on the plugged in cable.
 1.1.14.1 03-Mar-2009  skrll Sync with HEAD.
 1.1.6.1 04-May-2009  yamt sync with head.
 1.1.2.2 03-Apr-2008  mjf Sync with HEAD.
 1.1.2.1 31-Mar-2008  mjf file zusb.c was added on branch mjf-devfs2 on 2008-04-03 12:42:31 +0000
 1.4.12.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.11 23-Jul-2014  alnsn Rename sljitarch.h to sljit_machdep.h.
 1.10 17-Jun-2014  alnsn Add sljit support to arm.
 1.9 02-May-2013  matt branches: 1.9.8;
This change arm, armeb, earm, earmeb, earmhf, earmhfeb so all builds that
share a MACHINE_ARCH for userland so that except for etc, will produce
identical sets.

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

Split bus.h -> bus_{defs,funcs}.h.
 1.6 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.5 19-Jan-2008  chris Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.4 17-Oct-2007  garbled branches: 1.4.2; 1.4.8;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.3 29-Jul-2007  nonaka branches: 1.3.2; 1.3.6;
Added support to detect AC adapter and charge battery.
 1.2 18-Feb-2007  ad branches: 1.2.4; 1.2.12; 1.2.14; 1.2.16;
+ mutex.h, rwlock.h
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.8.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file Makefile was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.5 21-Jan-2008  yamt sync with head
 1.1.4.4 03-Sep-2007  yamt sync with head.
 1.1.4.3 26-Feb-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file Makefile was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2.16.1 15-Aug-2007  skrll Sync with HEAD.
 1.2.14.1 07-Aug-2007  matt Sync with HEAD.
 1.2.12.1 03-Oct-2007  garbled Sync with HEAD
 1.2.4.1 20-Aug-2007  ad Sync with HEAD.
 1.3.6.2 23-Mar-2008  matt sync with HEAD
 1.3.6.1 06-Nov-2007  matt sync with HEAD
 1.3.2.1 28-Feb-2008  rjs Sync with HEAD.
 1.4.8.1 20-Jan-2008  bouyer Sync with HEAD
 1.4.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.7.12.3 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.7.12.2 23-Jun-2013  tls resync from head
 1.7.12.1 25-Feb-2013  tls resync with head
 1.7.2.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.7.2.1 23-Jan-2013  yamt sync with head
 1.9.8.1 10-Aug-2014  tls Rebase.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file ansi.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file ansi.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file ansi.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file aout_machdep.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file aout_machdep.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file aout_machdep.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.1 29-Jul-2007  nonaka branches: 1.1.6; 1.1.8; 1.1.10; 1.1.14; 1.1.34; 1.1.36; 1.1.38;
Added support to detect AC adapter and charge battery.
 1.1.38.1 16-May-2008  yamt sync with head.
 1.1.36.1 18-May-2008  yamt sync with head.
 1.1.34.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.14.2 03-Sep-2007  yamt sync with head.
 1.1.14.1 29-Jul-2007  yamt file apmvar.h was added on branch yamt-lazymbuf on 2007-09-03 14:31:43 +0000
 1.1.10.2 20-Aug-2007  ad Sync with HEAD.
 1.1.10.1 29-Jul-2007  ad file apmvar.h was added on branch vmlocking on 2007-08-20 22:07:00 +0000
 1.1.8.2 15-Aug-2007  skrll Sync with HEAD.
 1.1.8.1 29-Jul-2007  skrll file apmvar.h was added on branch nick-csl-alignment on 2007-08-15 13:48:04 +0000
 1.1.6.2 07-Aug-2007  matt Sync with HEAD.
 1.1.6.1 29-Jul-2007  matt file apmvar.h was added on branch matt-mips64 on 2007-08-07 18:05:58 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file asm.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file asm.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file asm.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2 26-Sep-2020  skrll G/C arm/atomic.h
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.18;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.18.1 19-Apr-2007  thorpej Convert to the new atomic ops API.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file atomic.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file atomic.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file atomic.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2 08-Jan-2015  christos merge common information (fix build)
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.98; 1.1.116; 1.1.118;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.118.1 06-Apr-2015  skrll Sync with HEAD
 1.1.116.1 26-Mar-2015  martin Pull up following revision(s) (requested by skrll in ticket #645):
sys/arch/zaurus/include/bootconfig.h: revision 1.2
merge common information (fix build)
 1.1.98.1 03-Dec-2017  jdolecek update from HEAD
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file bootconfig.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file bootconfig.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file bootconfig.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.5 21-Jan-2012  nonaka fix my license notice.
 1.4 11-Mar-2009  nonaka branches: 1.4.12; 1.4.16;
Added kloader support.
 1.3 02-Mar-2009  nonaka Added zboot from OpenBSD.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.54; 1.2.62; 1.2.68;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.68.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.62.2 28-Apr-2009  skrll Sync with HEAD.
 1.2.62.1 03-Mar-2009  skrll Sync with HEAD.
 1.2.54.1 04-May-2009  yamt sync with head.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file bootinfo.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file bootinfo.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file bootinfo.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.4.16.1 18-Feb-2012  mrg merge to -current.
 1.4.12.1 17-Apr-2012  yamt sync with head
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file bswap.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file bswap.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file bswap.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file bus.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file bus.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file bus.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.1 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file cdefs.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file cdefs.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file cdefs.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 17-Dec-2006  peter branches: 1.1.2; 1.1.4; 1.1.6;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 17-Dec-2006  ad file config_hook.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 17-Dec-2006  yamt file config_hook.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 17-Dec-2006  yamt file config_hook.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file cpu.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file cpu.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file cpu.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2 06-Nov-2017  christos Cleanup and clarify the ELFSIZE mess:

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

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

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

In sys/exec_elf.h, if ELFSIZE is not set, it is set to KERN_ELFSIZE
for the kernel and ARCH_ELFSIZE for userland. These defaults should
eliminate the need for most manual ELFSIZE setting.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.98;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.98.1 03-Dec-2017  jdolecek update from HEAD
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file db_machdep.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file db_machdep.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file db_machdep.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.4 07-May-2013  matt Make all ports use a common disklabel.h with MAXPARTITIONS set to 16.
Only RAW_PART varies between ports.
 1.3 30-Aug-2011  bouyer branches: 1.3.2; 1.3.12;
Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
 1.2 23-Nov-2009  pooka If cpu_disklabel includes struct dkbad, define __HAVE_DISKLABEL_DKBAD.
This allows use of subr_disk_mbr on all archs. Default to it for
the rump disk component. No functional change for regular kernels.
(The other option would've been to include dkbad in disklabels
everywhere, but arguably this approach has less possible side-effects,
especially given that wedges and related magic will take over the
world any second now).
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.54;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.54.1 11-Mar-2010  yamt sync with head
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file disklabel.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file disklabel.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file disklabel.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.3.12.1 23-Jun-2013  tls resync from head
 1.3.2.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file elf_machdep.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file elf_machdep.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file elf_machdep.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file endian.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file endian.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file endian.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file endian_machdep.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file endian_machdep.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file endian_machdep.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file float.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file float.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file float.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.2 11-Jan-2013  matt Remove FPA specific header.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.88; 1.1.98;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.98.1 25-Feb-2013  tls resync with head
 1.1.88.1 23-Jan-2013  yamt sync with head
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file fp.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file fp.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file fp.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file frame.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file frame.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file frame.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file ieee.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file ieee.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file ieee.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file ieeefp.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file ieeefp.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file ieeefp.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file int_const.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file int_const.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file int_const.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file int_fmtio.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file int_fmtio.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file int_fmtio.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file int_limits.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file int_limits.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file int_limits.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file int_mwgwtypes.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file int_mwgwtypes.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file int_mwgwtypes.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:09 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file int_types.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file int_types.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file int_types.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.12 05-Jun-2021  christos there is no SPL_SOFT
 1.11 27-Jul-2020  skrll branches: 1.11.6; 1.11.10;
Don't remove the _LKM #ifdefs, but do s/_LKM/_MODULE/
 1.10 23-Jul-2020  skrll unifdef -U_LKM
 1.9 27-Jul-2014  skrll unifdef -U__OLD_INTERRUPT_CODE
 1.8 10-Jun-2012  skrll branches: 1.8.2; 1.8.12;
Remove unused __NEWINTR defines
 1.7 13-Nov-2010  uebayasi branches: 1.7.8;
sys/device.h is not suitable for such low-level definitions.
 1.6 27-Apr-2008  matt branches: 1.6.22;
Merge kernel changes in matt-armv6 to HEAD.
 1.5 03-Dec-2007  ad branches: 1.5.14; 1.5.16; 1.5.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.4 09-Mar-2007  thorpej branches: 1.4.2; 1.4.16; 1.4.18; 1.4.20; 1.4.26;
Make ipl_t and ipl_cookie_t 8-bit values. kmutex is now down to 12 bytes
(from 20) on ARM.

Approved by Matt Thomas.
 1.3 16-Feb-2007  ad branches: 1.3.2;
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.2 21-Dec-2006  yamt branches: 1.2.2; 1.2.4;
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.1 16-Dec-2006  ober branches: 1.1.2;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.2.3 18-Dec-2006  yamt implement makeiplcookie/splraiseipl for zaurus.
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file intr.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.2.4.2 12-Jan-2007  ad Sync with head.
 1.2.4.1 21-Dec-2006  ad file intr.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.2.5 07-Dec-2007  yamt sync with head
 1.2.2.4 03-Sep-2007  yamt sync with head.
 1.2.2.3 26-Feb-2007  yamt sync with head.
 1.2.2.2 30-Dec-2006  yamt sync with head.
 1.2.2.1 21-Dec-2006  yamt file intr.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.3.2.1 12-Mar-2007  rmind Sync with HEAD.
 1.4.26.1 08-Dec-2007  mjf Sync with HEAD.
 1.4.20.2 28-Jan-2008  matt Given the that there are only 4 IPLs (ignoring soft IPLs), a number of
cleanups can be done:
Remove _SPL_* aliases.
Don't store irqmasks in ci_cpl, just make it an ipl level.
Add fast softint switching support.
 1.4.20.1 09-Jan-2008  matt sync with HEAD
 1.4.18.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.4.16.1 26-Dec-2007  rjs Sync with HEAD.
 1.4.2.1 03-Dec-2007  ad Sync with HEAD.
 1.5.18.1 16-May-2008  yamt sync with head.
 1.5.16.1 18-May-2008  yamt sync with head.
 1.5.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.22.1 05-Mar-2011  rmind sync with head
 1.7.8.1 30-Oct-2012  yamt sync with head
 1.8.12.1 10-Aug-2014  tls Rebase.
 1.8.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.11.10.1 06-Jun-2021  cjep sync with head
 1.11.6.1 17-Jun-2021  thorpej Sync w/ HEAD.
 1.2 19-Jan-2008  chris Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.26; 1.1.30; 1.1.36; 1.1.42;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.42.1 20-Jan-2008  bouyer Sync with HEAD
 1.1.36.1 18-Feb-2008  mjf Sync with HEAD.
 1.1.30.1 23-Mar-2008  matt sync with HEAD
 1.1.26.1 28-Feb-2008  rjs Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file ipkdb.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.3 21-Jan-2008  yamt sync with head
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file ipkdb.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file ipkdb.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.3 15-Dec-2019  tsutsui Remove clause 3 and 4 leftovers from TNF licenses in more sources.

Confirmed by martin@ in PR/54760.
 1.2 11-Jun-2015  matt branches: 1.2.18; 1.2.22;
Declare or #define avail_start and avail_end as appropriate
 1.1 11-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.28; 1.1.46;
Added kloader support.
 1.1.46.1 22-Sep-2015  skrll Sync with HEAD
 1.1.28.1 03-Dec-2017  jdolecek update from HEAD
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 11-Mar-2009  jym file kloader.h was added on branch jym-xensuspend on 2009-05-13 17:18:51 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 11-Mar-2009  yamt file kloader.h was added on branch yamt-nfs-mp on 2009-05-04 08:12:15 +0000
 1.1.2.2 28-Apr-2009  skrll Sync with HEAD.
 1.1.2.1 11-Mar-2009  skrll file kloader.h was added on branch nick-hppapmap on 2009-04-28 07:35:02 +0000
 1.2.22.1 18-Dec-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #570):

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

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

Remove clause 3 and 4 leftovers from TNF licenses in more sources.
Confirmed by martin@ in PR/54760.
 1.2.18.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file limits.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file limits.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file limits.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.2 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.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.28; 1.1.42;
Added zboot from OpenBSD.
 1.1.42.1 10-Aug-2014  tls Rebase.
 1.1.28.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file loadfile_machdep.h was added on branch jym-xensuspend on 2009-05-13 17:18:51 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file loadfile_machdep.h was added on branch yamt-nfs-mp on 2009-05-04 08:12:15 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file loadfile_machdep.h was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file lock.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file lock.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file lock.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +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:56:19 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file math.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file math.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file math.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file mcontext.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file mcontext.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file mcontext.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 18-Feb-2007  ad branches: 1.1.2; 1.1.6;
Add missing headers.
 1.1.6.2 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.6.1 18-Feb-2007  yamt file mutex.h was added on branch yamt-idlelwp on 2007-02-27 16:53:31 +0000
 1.1.2.2 26-Feb-2007  yamt sync with head.
 1.1.2.1 18-Feb-2007  yamt file mutex.h was added on branch yamt-lazymbuf on 2007-02-26 09:08:58 +0000
 1.1 03-Aug-2014  martin branches: 1.1.2; 1.1.6;
Add a few missing netbsd32_machdep.h files
 1.1.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.1 03-Aug-2014  tls file netbsd32_machdep.h was added on branch tls-maxphys on 2014-08-20 00:03:30 +0000
 1.1.2.2 10-Aug-2014  tls Rebase.
 1.1.2.1 03-Aug-2014  tls file netbsd32_machdep.h was added on branch tls-earlyentropy on 2014-08-10 06:54:11 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file param.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file param.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file param.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file pcb.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file pcb.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file pcb.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 17-Dec-2006  peter branches: 1.1.2; 1.1.4; 1.1.6;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 17-Dec-2006  ad file platid.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 17-Dec-2006  yamt file platid.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 17-Dec-2006  yamt file platid.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 17-Dec-2006  peter branches: 1.1.2; 1.1.4; 1.1.6;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 17-Dec-2006  ad file platid_generated.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 17-Dec-2006  yamt file platid_generated.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 17-Dec-2006  yamt file platid_generated.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 17-Dec-2006  peter branches: 1.1.2; 1.1.4; 1.1.6;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 17-Dec-2006  ad file platid_mask.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 17-Dec-2006  yamt file platid_mask.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 17-Dec-2006  yamt file platid_mask.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file pmap.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file pmap.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file pmap.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.2 12-Jul-2018  maxv Remove the kernel PMC code. Sent yesterday on tech-kern@.

This change:

* Removes "options PERFCTRS", the associated includes, and the associated
ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is
good.

* Removes the PMC code of ARM XSCALE.

* Removes all the pmc.h files. They were all empty, except for ARM XSCALE.

* Reorders the x86 PMC code not to rely on the legacy pmc.h file. The
definitions are put in sysarch.h.

* Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control
and sys_pmc_get_info syscalls. They are marked as OBSOL in kern,
netbsd32 and rump.

* Removes the pmc_evid_t and pmc_ctr_t types.

* Removes all the associated man pages. The sets are marked as obsolete.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.140; 1.1.142;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.142.1 10-Jun-2019  christos Sync with HEAD
 1.1.140.1 28-Jul-2018  pgoyette Sync with HEAD
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file pmc.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file pmc.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file pmc.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file proc.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file proc.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file proc.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file profile.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file profile.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file profile.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file ptrace.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file ptrace.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file ptrace.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file reg.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file reg.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file reg.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file rtc.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file rtc.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file rtc.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 18-Feb-2007  ad branches: 1.1.2; 1.1.6;
Add missing headers.
 1.1.6.2 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.6.1 18-Feb-2007  yamt file rwlock.h was added on branch yamt-idlelwp on 2007-02-27 16:53:32 +0000
 1.1.2.2 26-Feb-2007  yamt sync with head.
 1.1.2.1 18-Feb-2007  yamt file rwlock.h was added on branch yamt-lazymbuf on 2007-02-26 09:08:58 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file setjmp.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file setjmp.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file setjmp.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file signal.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file signal.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file signal.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 23-Jul-2014  alnsn branches: 1.1.2; 1.1.6;
Rename sljitarch.h to sljit_machdep.h.
 1.1.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.1 23-Jul-2014  tls file sljit_machdep.h was added on branch tls-maxphys on 2014-08-20 00:03:30 +0000
 1.1.2.2 10-Aug-2014  tls Rebase.
 1.1.2.1 23-Jul-2014  tls file sljit_machdep.h was added on branch tls-earlyentropy on 2014-08-10 06:54:11 +0000
 1.2 23-Jul-2014  alnsn Rename sljitarch.h to sljit_machdep.h.
 1.1 17-Jun-2014  alnsn Add sljit support to arm.
 1.2 17-Jul-2011  joerg Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file stdarg.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file stdarg.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file stdarg.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file sysarch.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file sysarch.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file sysarch.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file trap.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file trap.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file trap.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.7 26-Jan-2017  christos provide __HAVE_COMPAT_NETBSD32 and fix multiple include protection consistently.
 1.6 20-Jan-2008  joerg branches: 1.6.54; 1.6.74; 1.6.78; 1.6.82;
Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
 1.5 17-Oct-2007  garbled branches: 1.5.2; 1.5.8;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.4 14-Jul-2007  ad branches: 1.4.6; 1.4.10;
Generic soft interrupts are mandatory.
 1.3 12-Jan-2007  ober branches: 1.3.6; 1.3.14;
Update zaurus port to include TODR/TIMECOUNTER.
zaurus# ./timetest -A -t 600
Will test active counter and counters with positive quality from saost_count(q=100, f=3686400 Hz) clockinterrupt(q=0, f=100 Hz) dummy(q=-1000000, f=1000000 Hz)
Testing time for monotonicity of timecounter "saost_count" for 600 seconds...
claimed resolution 271 nsec (3690036.900369 Hz) or better, observed minimum non zero delta 2712 nsec
switching to timecounter "saost_count"...
Testing time for monotonicity of timecounter "saost_count" for 600 seconds...
claimed resolution 271 nsec (3690036.900369 Hz) or better, observed minimum non zero delta 2712 nsec
switching to timecounter "clockinterrupt"...
Testing time for monotonicity of timecounter "clockinterrupt" for 600 seconds...
claimed resolution 10000000 nsec (100.000000 Hz) or better, observed minimum non zero delta 9999999 nsec
TEST SUCCESSFUL

ok peter@
 1.2 08-Jan-2007  peter branches: 1.2.2;
Remove __HAVE_NWSCONS and __GENERIC_SOFT_INTERRUPTS_ALL_LEVELS.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.4.5 21-Jan-2008  yamt sync with head
 1.1.4.4 03-Sep-2007  yamt sync with head.
 1.1.4.3 26-Feb-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file types.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file types.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.2.2.3 01-Feb-2007  ad Sync with head.
 1.2.2.2 12-Jan-2007  ad Sync with head.
 1.2.2.1 08-Jan-2007  ad file types.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.3.14.1 03-Oct-2007  garbled Sync with HEAD
 1.3.6.1 15-Jul-2007  ad Sync with head.
 1.4.10.2 23-Mar-2008  matt sync with HEAD
 1.4.10.1 06-Nov-2007  matt sync with HEAD
 1.4.6.1 28-Feb-2008  rjs Sync with HEAD.
 1.5.8.1 23-Jan-2008  bouyer Sync with HEAD.
 1.5.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.6.82.1 21-Apr-2017  bouyer Sync with HEAD
 1.6.78.1 20-Mar-2017  pgoyette Sync with HEAD
 1.6.74.1 05-Feb-2017  skrll Sync with HEAD
 1.6.54.1 03-Dec-2017  jdolecek update from HEAD
 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 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file varargs.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file varargs.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file varargs.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.7 27-Mar-2019  christos - expose vmparams to userland on arm, like other archs do.
- remove unneeded includes
 1.6 02-Nov-2017  skrll branches: 1.6.4;
ISA exists on more that just shark. Fix a comment about this.
 1.5 23-Feb-2015  joerg Use default PAGER_MAP_DEFAULT_SIZE for ARM and PowerPC, exception
acorn26. This bumps the KVA reservation from 4MB to 16MB and avoids
long hangs on my Cubietruck under IO. acorn26 is kept as it does have a
ridiculous low 32MB KVA limit.
 1.4 18-Feb-2012  christos branches: 1.4.2; 1.4.16;
expose more for kmemuser
 1.3 06-Nov-2010  uebayasi branches: 1.3.8; 1.3.12;
Remove incomplete, never worked dynamic run-time memory registration
(uvm_page_physload(9)). This functionality will be re-added later.
 1.2 25-Oct-2007  yamt branches: 1.2.40; 1.2.42;
defparam PAGER_MAP_SIZE.
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6; 1.1.12; 1.1.26; 1.1.28; 1.1.30; 1.1.34;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.34.1 13-Nov-2007  bouyer Sync with HEAD
 1.1.30.1 06-Nov-2007  matt sync with HEAD
 1.1.28.1 28-Oct-2007  joerg Sync with HEAD.
 1.1.26.1 01-Nov-2007  rjs Sync with HEAD.
 1.1.12.1 03-Dec-2007  ad Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file vmparam.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.3 27-Oct-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file vmparam.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file vmparam.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.2.42.1 05-Mar-2011  rmind sync with head
 1.2.40.1 26-Apr-2010  uebayasi Remove the unfinished code to add a memory segment after uvm_page_init().
It doesn't even compile.

(In the future, we should allocate struct vm_page [] on the added memory
segment for NUMA's sake.)
 1.3.12.1 24-Feb-2012  mrg sync to -current.
 1.3.8.1 17-Apr-2012  yamt sync with head
 1.4.16.1 06-Apr-2015  skrll Sync with HEAD
 1.4.2.1 03-Dec-2017  jdolecek update from HEAD
 1.6.4.1 10-Jun-2019  christos Sync with HEAD
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file wchar_limits.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file wchar_limits.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:29 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file wchar_limits.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:10 +0000
 1.3 01-May-2013  matt Force abi/float-abi/cpu
Only allow to build on little-endian.
Force MACHINE to be zaurus.
 1.2 02-Mar-2009  nonaka branches: 1.2.12; 1.2.22;
Added zboot from OpenBSD.
 1.1 09-Aug-2007  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.34; 1.1.42; 1.1.48;
build and install zbsdmod.o.
 1.1.48.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.42.1 03-Mar-2009  skrll Sync with HEAD.
 1.1.34.1 04-May-2009  yamt sync with head.
 1.1.10.2 03-Sep-2007  yamt sync with head.
 1.1.10.1 09-Aug-2007  yamt file Makefile was added on branch yamt-lazymbuf on 2007-09-03 14:31:44 +0000
 1.1.6.2 20-Aug-2007  ad Sync with HEAD.
 1.1.6.1 09-Aug-2007  ad file Makefile was added on branch vmlocking on 2007-08-20 22:07:01 +0000
 1.1.4.2 16-Aug-2007  jmcneill Sync with HEAD.
 1.1.4.1 09-Aug-2007  jmcneill file Makefile was added on branch jmcneill-pm on 2007-08-16 11:02:41 +0000
 1.1.2.2 15-Aug-2007  skrll Sync with HEAD.
 1.1.2.1 09-Aug-2007  skrll file Makefile was added on branch nick-csl-alignment on 2007-08-15 13:48:05 +0000
 1.2.22.1 23-Jun-2013  tls resync from head
 1.2.12.1 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10 03-Jun-2023  lukem adapt to ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}

Simplify CWARNFLAGS to use ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
which works for both clang and gcc, and remove compiler-specific
equivalents.
 1.9 03-Jun-2023  lukem bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER

Provide a single variable
CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
CLANG_NO_ADDR_OF_PACKED_MEMBER
CC_NO_ADDR_OF_PACKED_MEMBER
GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.8 12-Apr-2021  mrg remove shadowed (common) declarations of various libsa variables
from various boot programs. for macppc and zaurus, avoid building
with -fcommon any more.
 1.7 06-Sep-2020  mrg branches: 1.7.4;
add support for new GCC 9 warnings that may be too much to fix
right now. new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree. mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it. (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.) clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
 1.6 21-Apr-2020  joerg Use -Wno-error=address-of-packed-member for a number of more boot
loaders.
 1.5 23-Jan-2016  christos branches: 1.5.28;
revert previous, we'll do differently
 1.4 23-Jan-2016  christos Add -D_KERNTYPES
 1.3 02-May-2013  matt branches: 1.3.12;
use KLINK_MACHINE
 1.2 01-May-2013  matt Force abi/float-abi/cpu
Only allow to build on little-endian.
Force MACHINE to be zaurus.
 1.1 09-Aug-2007  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.68; 1.1.78;
build and install zbsdmod.o.
 1.1.78.1 23-Jun-2013  tls resync from head
 1.1.68.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.1.10.2 03-Sep-2007  yamt sync with head.
 1.1.10.1 09-Aug-2007  yamt file Makefile.inc was added on branch yamt-lazymbuf on 2007-09-03 14:31:44 +0000
 1.1.6.2 20-Aug-2007  ad Sync with HEAD.
 1.1.6.1 09-Aug-2007  ad file Makefile.inc was added on branch vmlocking on 2007-08-20 22:07:01 +0000
 1.1.4.2 16-Aug-2007  jmcneill Sync with HEAD.
 1.1.4.1 09-Aug-2007  jmcneill file Makefile.inc was added on branch jmcneill-pm on 2007-08-16 11:02:42 +0000
 1.1.2.2 15-Aug-2007  skrll Sync with HEAD.
 1.1.2.1 09-Aug-2007  skrll file Makefile.inc was added on branch nick-csl-alignment on 2007-08-15 13:48:05 +0000
 1.3.12.1 19-Mar-2016  skrll Sync with HEAD
 1.5.28.1 25-Apr-2020  bouyer Sync with bouyer-xenpvh-base2 (HEAD)
 1.7.4.1 17-Apr-2021  thorpej Sync with HEAD.
 1.22 24-Oct-2019  christos 1. All Makefiles that use ARM_APCS_FLAGS add -marm unconditionally and
bsd.own.mk also adds it for gcc only (so we end up with 2 -marm for gcc).
Just add -marm unconditionally in bsd.own.mk in ARM_APCS_FLAGS and remove
it from everywhere else.
2. gcc-8 now warns about thumb internetwork in APCS mode. This does not make
sense because the documentation says that this flag does not make a
difference in apcs mode, but might produce larger code in non-APCS mode.
So we just add it to silence the warnings.
 1.21 23-Sep-2019  christos Consistently use ${RELEASEDIR}/${RELEASEMACHINE} instead of
${RELEASEDIR}/${MACHINE} (Paul Ripke)
 1.20 08-Apr-2017  christos branches: 1.20.14;
centralize vers.c building for standalone programs.
 1.19 22-Feb-2017  maya GC more logic that was intended for GCC <4.8 (or !LLVM)

Same as before (-marm implies -mno-thumb), but now the condition was flipped
 1.18 31-Jan-2016  christos branches: 1.18.2; 1.18.4;
include bsd.init.mk to get Makefile.inc
 1.17 27-Aug-2014  matt branches: 1.17.2;
Don't use ${MACHINE} but zaurus instead.
 1.16 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.15 15-Dec-2013  joerg Move flags for ARM's APCS ABI into a common variable. Add some forces to
deal with limitations in the Clang <-> LLVM backend interaction to pick
the correct ABI and target assembler.
 1.14 05-Dec-2013  joerg Use -marm for clang builds, too.
 1.13 04-Nov-2013  christos fix more -mno-thumb.
 1.12 15-Aug-2013  matt Add CPPFLAGS+= -mno-thumb -mno-thumb-interwork
 1.11 12-Aug-2013  matt Add -fno-unwind-tables
 1.10 02-May-2013  matt branches: 1.10.4;
This change arm, armeb, earm, earmeb, earmhf, earmhfeb so all builds that
share a MACHINE_ARCH for userland so that except for etc, will produce
identical sets.

usr/include/machine now points to usr/include/arm
 1.9 01-May-2013  matt Force abi/float-abi/cpu
Only allow to build on little-endian.
Force MACHINE to be zaurus.
 1.8 18-Jan-2012  nonaka branches: 1.8.6;
Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.7 25-Dec-2011  tsutsui Apply the following patch submitted by Evgeniy Ivanov:
http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html
http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html

- add 'ls' op to struct fs_ops to support ls command on each fs,
enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes"
in libsa
- split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c)
that opens the target fs and calls fs-depedent XXX_ls() functions
- add a ls op for ext2fs
(all other fs than ufs and ext2fs don't have actual ls ops yet)
- replace existing MD ufs_ls() calls with this new MI ls()

The original patch was written for i386 and ext2fs.
zaurus zboot has been tested by nonaka@.
ews4800mips and x68k loaders have been tested by me (with several fixes).
landisk might be okay since it was almost copied from i386.

XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to
replace it with real fs ops like readdir if it's really worth
XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c
 1.6 23-Jan-2011  joerg branches: 1.6.4; 1.6.8;
Defer bsd.own.mk include after NOMAN.
 1.5 22-Jan-2011  joerg Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.4 27-May-2010  dholland branches: 1.4.2; 1.4.4;
Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
 1.3 13-Apr-2009  nonaka branches: 1.3.2; 1.3.4; 1.3.6; 1.3.8;
Use <bsd.klinks.mk> to create ${MACHINE} and ${MACHINE_ARCH} symlinks.
 1.2 03-Mar-2009  nonaka branches: 1.2.2;
fix make release.
 1.1 02-Mar-2009  nonaka Added zboot from OpenBSD.
 1.2.2.3 28-Apr-2009  skrll Sync with HEAD.
 1.2.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.2.2.1 03-Mar-2009  skrll file Makefile was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.3.8.2 05-Mar-2011  rmind sync with head
 1.3.8.1 30-May-2010  rmind sync with head
 1.3.6.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.3.4.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.4.1 13-Apr-2009  jym file Makefile was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.3.2.3 11-Aug-2010  yamt sync with head.
 1.3.2.2 04-May-2009  yamt sync with head.
 1.3.2.1 13-Apr-2009  yamt file Makefile was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.4.4.1 08-Feb-2011  bouyer Sync with HEAD
 1.4.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.6.8.1 18-Feb-2012  mrg merge to -current.
 1.6.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.6.4.1 17-Apr-2012  yamt sync with head
 1.8.6.3 03-Dec-2017  jdolecek update from HEAD
 1.8.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.6.1 23-Jun-2013  tls resync from head
 1.10.4.2 18-May-2014  rmind sync with head
 1.10.4.1 28-Aug-2013  rmind sync with head
 1.17.2.2 28-Aug-2017  skrll Sync with HEAD
 1.17.2.1 19-Mar-2016  skrll Sync with HEAD
 1.18.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.18.2.2 26-Apr-2017  pgoyette Sync with HEAD
 1.18.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.20.14.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.8 11-Jun-2016  dholland PR 51200 gets in libsa considered harmful: use kgets
 1.7 31-May-2016  dholland PR 51195 David Binderman: simplify redundant conditional.

XXX: there are too many copies of this function floating around ("gettrailer")
 1.6 28-Jun-2014  rtr branches: 1.6.4;
patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.
 1.5 18-Jan-2012  nonaka branches: 1.5.6; 1.5.20;
Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.4 25-Dec-2011  tsutsui Apply the following patch submitted by Evgeniy Ivanov:
http://mail-index.NetBSD.org/tech-kern/2011/12/15/msg012226.html
http://mail-index.NetBSD.org/tech-kern/2011/12/17/msg012229.html

- add 'ls' op to struct fs_ops to support ls command on each fs,
enabled by -DLIBSA_ENABLE_LS_OP and SAMISCMAKEFLAGS+="SA_ENABLE_LS_OP=yes"
in libsa
- split sys/lib/libsa/ufs_ls.c into UFS specific part and MI part (ls.c)
that opens the target fs and calls fs-depedent XXX_ls() functions
- add a ls op for ext2fs
(all other fs than ufs and ext2fs don't have actual ls ops yet)
- replace existing MD ufs_ls() calls with this new MI ls()

The original patch was written for i386 and ext2fs.
zaurus zboot has been tested by nonaka@.
ews4800mips and x68k loaders have been tested by me (with several fixes).
landisk might be okay since it was almost copied from i386.

XXX1: "ls" op in fs_ops looks a bit inconsistent, but we will be able to
replace it with real fs ops like readdir if it's really worth
XXX2: someone might have to check sys/arch/ia64/stand/efi/libefi/efifs_ls.c
 1.3 20-Jun-2011  nonaka branches: 1.3.2; 1.3.6;
support SL-C1000.
 1.2 22-Jan-2011  joerg branches: 1.2.2;
Drop bootprog_maker (formerly enabled by -M) and bootprog_date (formerly
disabled by -D) from the output of newvers_stand.sh. Change -D to the
inverted logic, so that it adds the date to bootprog_rev in ().

Change all platforms accordingly. -D is added if MKREPRO is not yes and
wasn't present before. Platforms that didn't use -D don't depend on
MKREPRO now either.
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.12; 1.1.14;
Added zboot from OpenBSD.
 1.1.14.1 08-Feb-2011  bouyer Sync with HEAD
 1.1.12.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.10.1 05-Mar-2011  rmind sync with head
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file boot.c was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file boot.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file boot.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.2.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.3.6.1 18-Feb-2012  mrg merge to -current.
 1.3.2.1 17-Apr-2012  yamt sync with head
 1.5.20.1 10-Aug-2014  tls Rebase.
 1.5.6.2 03-Dec-2017  jdolecek update from HEAD
 1.5.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.4.1 09-Jul-2016  skrll Sync with HEAD
 1.4 03-May-2020  joerg Avoid common symbol declarations.
 1.3 28-Jun-2014  rtr patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.
 1.2 18-Jan-2012  nonaka branches: 1.2.6; 1.2.20;
Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.18; 1.1.22;
Added zboot from OpenBSD.
 1.1.22.1 18-Feb-2012  mrg merge to -current.
 1.1.18.1 17-Apr-2012  yamt sync with head
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file boot.h was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file boot.h was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file boot.h was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.2.20.1 10-Aug-2014  tls Rebase.
 1.2.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added zboot from OpenBSD.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file bootinfo.c was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file bootinfo.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file bootinfo.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added zboot from OpenBSD.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file bootinfo.h was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file bootinfo.h was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file bootinfo.h was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.5 11-Jun-2016  dholland PR 51200 gets in libsa considered harmful: use kgets
 1.4 10-Aug-2014  isaki branches: 1.4.4;
Unify all arch/*/stand's atoi() to MI libsa.
lib/libsa/atoi.c was separated from lib/libsa/bootcfg.c.
PR/49084
 1.3 28-Jun-2014  rtr patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.
 1.2 18-Jan-2012  nonaka branches: 1.2.6; 1.2.20;
Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.18; 1.1.22;
Added zboot from OpenBSD.
 1.1.22.1 18-Feb-2012  mrg merge to -current.
 1.1.18.1 17-Apr-2012  yamt sync with head
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file bootmenu.c was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file bootmenu.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file bootmenu.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.2.20.1 10-Aug-2014  tls Rebase.
 1.2.6.2 03-Dec-2017  jdolecek update from HEAD
 1.2.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.4.1 09-Jul-2016  skrll Sync with HEAD
 1.3 10-Aug-2014  isaki Unify all arch/*/stand's atoi() to MI libsa.
lib/libsa/atoi.c was separated from lib/libsa/bootcfg.c.
PR/49084
 1.2 28-Jun-2014  rtr patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.28; 1.1.42;
Added zboot from OpenBSD.
 1.1.42.1 10-Aug-2014  tls Rebase.
 1.1.28.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file bootmenu.h was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file bootmenu.h was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file bootmenu.h was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.2 20-Jun-2011  nonaka support SL-C1000.
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.16;
Added zboot from OpenBSD.
 1.1.16.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file compat_linux.h was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file compat_linux.h was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file compat_linux.h was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.2 18-Jan-2012  nonaka Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.18; 1.1.22;
Added zboot from OpenBSD.
 1.1.22.1 18-Feb-2012  mrg merge to -current.
 1.1.18.1 17-Apr-2012  yamt sync with head
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file conf.c was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file conf.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file conf.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added zboot from OpenBSD.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file crt0.c was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file crt0.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file crt0.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.2 18-Jan-2012  nonaka Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.18; 1.1.22;
Added zboot from OpenBSD.
 1.1.22.1 18-Feb-2012  mrg merge to -current.
 1.1.18.1 17-Apr-2012  yamt sync with head
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file devopen.c was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file devopen.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file devopen.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added zboot from OpenBSD.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file disk.h was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file disk.h was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file disk.h was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.4 02-Jan-2015  christos We have three sets of DTYPE_ constants in the kernel:
altq Drop Type
disklabel Disk Type
file Descriptor Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.
 1.3 18-Jan-2012  nonaka branches: 1.3.6; 1.3.24;
Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.2 20-Jun-2011  nonaka branches: 1.2.2; 1.2.6;
support SL-C1000.
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.16;
Added zboot from OpenBSD.
 1.1.16.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file diskprobe.c was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file diskprobe.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file diskprobe.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.2.6.1 18-Feb-2012  mrg merge to -current.
 1.2.2.1 17-Apr-2012  yamt sync with head
 1.3.24.1 06-Apr-2015  skrll Sync with HEAD
 1.3.6.1 03-Dec-2017  jdolecek update from HEAD
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added zboot from OpenBSD.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file getsecs.c was added on branch jym-xensuspend on 2009-05-13 17:18:54 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file getsecs.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file getsecs.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added zboot from OpenBSD.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file loadfile_zboot.c was added on branch jym-xensuspend on 2009-05-13 17:18:55 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file loadfile_zboot.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file loadfile_zboot.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.1 18-Jan-2012  nonaka branches: 1.1.4; 1.1.6;
Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.1.6.2 17-Apr-2012  yamt sync with head
 1.1.6.1 18-Jan-2012  yamt file pathfs.c was added on branch yamt-pagecache on 2012-04-17 00:07:13 +0000
 1.1.4.2 18-Feb-2012  mrg merge to -current.
 1.1.4.1 18-Jan-2012  mrg file pathfs.c was added on branch jmcneill-usbmp on 2012-02-18 07:33:52 +0000
 1.1 18-Jan-2012  nonaka branches: 1.1.4; 1.1.6;
Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.1.6.2 17-Apr-2012  yamt sync with head
 1.1.6.1 18-Jan-2012  yamt file pathfs.h was added on branch yamt-pagecache on 2012-04-17 00:07:13 +0000
 1.1.4.2 18-Feb-2012  mrg merge to -current.
 1.1.4.1 18-Jan-2012  mrg file pathfs.h was added on branch jmcneill-usbmp on 2012-02-18 07:33:52 +0000
 1.4 28-Jun-2014  rtr patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.
 1.3 18-Jan-2012  nonaka branches: 1.3.6; 1.3.20;
Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.2 20-Jun-2011  nonaka branches: 1.2.2; 1.2.6;
support SL-C1000.
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.16;
Added zboot from OpenBSD.
 1.1.16.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file pathnames.h was added on branch jym-xensuspend on 2009-05-13 17:18:55 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file pathnames.h was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file pathnames.h was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.2.6.1 18-Feb-2012  mrg merge to -current.
 1.2.2.1 17-Apr-2012  yamt sync with head
 1.3.20.1 10-Aug-2014  tls Rebase.
 1.3.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added zboot from OpenBSD.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file termios.c was added on branch jym-xensuspend on 2009-05-13 17:18:55 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file termios.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file termios.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added zboot from OpenBSD.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file termios.h was added on branch jym-xensuspend on 2009-05-13 17:18:55 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file termios.h was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file termios.h was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.3 26-Mar-2014  christos use snprintf
 1.2 01-Dec-2013  joerg Use format string.
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.18; 1.1.28; 1.1.32;
Added zboot from OpenBSD.
 1.1.32.1 18-May-2014  rmind sync with head
 1.1.28.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.18.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.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file unixcons.c was added on branch jym-xensuspend on 2009-05-13 17:18:55 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file unixcons.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file unixcons.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.4 04-Nov-2013  christos fix unused variables
 1.3 18-Jan-2012  nonaka branches: 1.3.6; 1.3.10;
Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.2 17-Jul-2011  joerg branches: 1.2.2; 1.2.6;
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 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added zboot from OpenBSD.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file unixdev.c was added on branch jym-xensuspend on 2009-05-13 17:18:55 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file unixdev.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file unixdev.c was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.2.6.1 18-Feb-2012  mrg merge to -current.
 1.2.2.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.2.1 17-Apr-2012  yamt sync with head
 1.3.10.1 18-May-2014  rmind sync with head
 1.3.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3 18-Jan-2012  nonaka Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.2 20-Jun-2011  nonaka branches: 1.2.2; 1.2.6;
support SL-C1000.
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.16;
Added zboot from OpenBSD.
 1.1.16.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file unixdev.h was added on branch jym-xensuspend on 2009-05-13 17:18:55 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file unixdev.h was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file unixdev.h was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.2.6.1 18-Feb-2012  mrg merge to -current.
 1.2.2.1 17-Apr-2012  yamt sync with head
 1.2 20-Jun-2011  nonaka support SL-C1000.
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.16;
Added zboot from OpenBSD.
 1.1.16.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file unixsys.S was added on branch jym-xensuspend on 2009-05-13 17:18:55 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file unixsys.S was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file unixsys.S was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.3 18-Jan-2012  nonaka Support to read the kernel from local file system.

ex. boot path:/mnt/card/netbsd
 1.2 20-Jun-2011  nonaka branches: 1.2.2; 1.2.6;
support SL-C1000.
 1.1 02-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.16;
Added zboot from OpenBSD.
 1.1.16.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 02-Mar-2009  jym file version was added on branch jym-xensuspend on 2009-05-13 17:18:55 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 02-Mar-2009  yamt file version was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 03-Mar-2009  skrll Sync with HEAD.
 1.1.2.1 02-Mar-2009  skrll file version was added on branch nick-hppapmap on 2009-03-03 18:29:50 +0000
 1.2.6.1 18-Feb-2012  mrg merge to -current.
 1.2.2.1 17-Apr-2012  yamt sync with head
 1.12 26-Oct-2019  tsutsui Misc cleanup to avoid future confusion.

- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding
 1.11 23-Sep-2019  christos Consistently use ${RELEASEDIR}/${RELEASEMACHINE} instead of
${RELEASEDIR}/${MACHINE} (Paul Ripke)
 1.10 31-Jan-2016  christos branches: 1.10.10; 1.10.18; 1.10.22;
include bsd.init.mk to get Makefile.inc
 1.9 14-Oct-2014  nonaka branches: 1.9.2;
Avoid "unhandled relocation of type 3 for" error when load module.
"insmod zbsdmod.o" is successful now.
 1.8 15-Dec-2013  joerg branches: 1.8.4;
Move flags for ARM's APCS ABI into a common variable. Add some forces to
deal with limitations in the Clang <-> LLVM backend interaction to pick
the correct ABI and target assembler.
 1.7 01-May-2013  matt branches: 1.7.4;
Force abi/float-abi/cpu
Only allow to build on little-endian.
Force MACHINE to be zaurus.
 1.6 11-Dec-2011  nonaka branches: 1.6.6;
- WARNS=4
- object size is more smaller.
 1.5 13-Apr-2009  nonaka branches: 1.5.12; 1.5.16;
Use <bsd.klinks.mk> to create ${MACHINE} and ${MACHINE_ARCH} symlinks.
 1.4 17-Oct-2007  garbled branches: 1.4.20; 1.4.28; 1.4.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.3 17-Aug-2007  he branches: 1.3.2;
Use $INSTALL_FILE, not just $INSTALL so that unpriviliged builds work.
 1.2 09-Aug-2007  nonaka build and install zbsdmod.o.
 1.1 17-Dec-2006  peter branches: 1.1.2; 1.1.4; 1.1.6; 1.1.12; 1.1.20; 1.1.24; 1.1.26; 1.1.28;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1.28.2 03-Sep-2007  jmcneill Sync with HEAD.
 1.1.28.1 16-Aug-2007  jmcneill Sync with HEAD.
 1.1.26.1 01-Nov-2007  rjs Sync with HEAD.
 1.1.24.2 03-Sep-2007  skrll Sync with HEAD.
 1.1.24.1 15-Aug-2007  skrll Sync with HEAD.
 1.1.20.1 03-Oct-2007  garbled Sync with HEAD
 1.1.12.1 20-Aug-2007  ad Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 17-Dec-2006  ad file Makefile was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 17-Dec-2006  yamt file Makefile was added on branch yamt-lazymbuf on 2006-12-30 20:47:31 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 17-Dec-2006  yamt file Makefile was added on branch yamt-splraiseipl on 2006-12-18 11:42:12 +0000
 1.3.2.1 06-Nov-2007  matt sync with HEAD
 1.4.34.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.28.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.20.1 04-May-2009  yamt sync with head.
 1.5.16.1 18-Feb-2012  mrg merge to -current.
 1.5.12.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.5.12.1 17-Apr-2012  yamt sync with head
 1.6.6.3 03-Dec-2017  jdolecek update from HEAD
 1.6.6.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.6.1 23-Jun-2013  tls resync from head
 1.7.4.1 18-May-2014  rmind sync with head
 1.8.4.1 15-Oct-2014  martin Pull up following revision(s) (requested by nonaka in ticket #141):
sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.9
Avoid "unhandled relocation of type 3 for" error when load module.
"insmod zbsdmod.o" is successful now.
 1.9.2.1 19-Mar-2016  skrll Sync with HEAD
 1.10.22.1 03-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #391):

sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.12
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.10
sys/arch/zaurus/conf/Makefile.zaurus.inc: revision 1.10
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.11
sys/arch/zaurus/stand/zbsdmod/compat_linux.h: revision 1.7

Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.

Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding

-

Make sure to clear bss before jumping to a kernel copied from load buffer.
This will fix yet another boot failure issue
"screen white-out after loading a kernel"
https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.10.18.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.10.10.1 03-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #1420):

sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.12
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.10
sys/arch/zaurus/conf/Makefile.zaurus.inc: revision 1.10
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.11
sys/arch/zaurus/stand/zbsdmod/compat_linux.h: revision 1.7

Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.

Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding

-

Make sure to clear bss before jumping to a kernel copied from load buffer.
This will fix yet another boot failure issue
"screen white-out after loading a kernel"
https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.7 28-Oct-2019  tsutsui Make sure to clear bss before jumping to a kernel copied from load buffer.

This will fix yet another boot failure issue
"screen white-out after loading a kernel"
https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.6 11-Dec-2011  nonaka branches: 1.6.40; 1.6.48; 1.6.52;
- WARNS=4
- object size is more smaller.
 1.5 26-Dec-2010  nonaka branches: 1.5.8; 1.5.12;
Advertise printk() as a printf-like function. (from OpenBSD)
 1.4 17-Oct-2007  garbled branches: 1.4.42;
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.3 28-Jun-2007  nonaka branches: 1.3.10;
Added RCS Id.
 1.2 28-Jun-2007  nonaka remove unused function.
 1.1 17-Dec-2006  peter branches: 1.1.2; 1.1.4; 1.1.6; 1.1.12; 1.1.14; 1.1.20;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1.20.1 03-Oct-2007  garbled Sync with HEAD
 1.1.14.1 11-Jul-2007  mjf Sync with head.
 1.1.12.1 15-Jul-2007  ad Sync with head.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 17-Dec-2006  ad file compat_linux.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 17-Dec-2006  yamt file compat_linux.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:31 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 17-Dec-2006  yamt file compat_linux.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:12 +0000
 1.3.10.1 06-Nov-2007  matt sync with HEAD
 1.4.42.1 05-Mar-2011  rmind sync with head
 1.5.12.1 18-Feb-2012  mrg merge to -current.
 1.5.8.1 17-Apr-2012  yamt sync with head
 1.6.52.1 03-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #391):

sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.12
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.10
sys/arch/zaurus/conf/Makefile.zaurus.inc: revision 1.10
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.11
sys/arch/zaurus/stand/zbsdmod/compat_linux.h: revision 1.7

Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.

Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding

-

Make sure to clear bss before jumping to a kernel copied from load buffer.
This will fix yet another boot failure issue
"screen white-out after loading a kernel"
https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.6.48.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.6.40.1 03-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #1420):

sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.12
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.10
sys/arch/zaurus/conf/Makefile.zaurus.inc: revision 1.10
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.11
sys/arch/zaurus/stand/zbsdmod/compat_linux.h: revision 1.7

Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.

Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding

-

Make sure to clear bss before jumping to a kernel copied from load buffer.
This will fix yet another boot failure issue
"screen white-out after loading a kernel"
https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.12 13-Nov-2019  tsutsui Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:
https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.11 28-Oct-2019  tsutsui Make sure to clear bss before jumping to a kernel copied from load buffer.

This will fix yet another boot failure issue
"screen white-out after loading a kernel"
https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.10 26-Oct-2019  tsutsui Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.
Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.9 02-Dec-2013  joerg branches: 1.9.22; 1.9.30; 1.9.34;
Don't use cpsr_all/spsr_all with mrs, it doesn't take a mask.
 1.8 16-Dec-2011  nonaka branches: 1.8.6; 1.8.10;
more clean D-cache.
 1.7 11-Dec-2011  nonaka - WARNS=4
- object size is more smaller.
 1.6 05-May-2011  nonaka branches: 1.6.4; 1.6.8;
Reduce kernel size.
Tested on SL-C1000.

Fix PR/44898.
 1.5 26-Dec-2010  nonaka branches: 1.5.2;
Add missing argument to printk(). (from OpenBSD)
 1.4 02-Mar-2009  nonaka branches: 1.4.4;
Added zboot from OpenBSD.
 1.3 12-Nov-2008  ad branches: 1.3.4;
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.
 1.2 11-Apr-2008  nonaka branches: 1.2.4; 1.2.10; 1.2.12;
increase bsdimage size.
 1.1 17-Dec-2006  peter branches: 1.1.2; 1.1.4; 1.1.6; 1.1.50;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1.50.2 17-Jan-2009  mjf Sync with HEAD.
 1.1.50.1 02-Jun-2008  mjf Sync with HEAD.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 17-Dec-2006  ad file zbsdmod.c was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 17-Dec-2006  yamt file zbsdmod.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:31 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 17-Dec-2006  yamt file zbsdmod.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:12 +0000
 1.2.12.2 03-Mar-2009  skrll Sync with HEAD.
 1.2.12.1 19-Jan-2009  skrll Sync with HEAD.
 1.2.10.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.2.4.1 04-May-2009  yamt sync with head.
 1.3.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.4.2 31-May-2011  rmind sync with head
 1.4.4.1 05-Mar-2011  rmind sync with head
 1.5.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.6.8.1 18-Feb-2012  mrg merge to -current.
 1.6.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.6.4.1 17-Apr-2012  yamt sync with head
 1.8.10.1 18-May-2014  rmind sync with head
 1.8.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.34.2 16-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #431):

sys/arch/zaurus/conf/GENERIC: revision 1.89
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.12
sys/arch/zaurus/conf/INSTALL: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.45

Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).
Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:

https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.9.34.1 03-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #391):

sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.12
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.10
sys/arch/zaurus/conf/Makefile.zaurus.inc: revision 1.10
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.11
sys/arch/zaurus/stand/zbsdmod/compat_linux.h: revision 1.7

Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.

Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding

-

Make sure to clear bss before jumping to a kernel copied from load buffer.
This will fix yet another boot failure issue
"screen white-out after loading a kernel"
https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.9.30.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.9.22.2 16-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #1446):

sys/arch/zaurus/conf/GENERIC: revision 1.89
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.12
sys/arch/zaurus/conf/INSTALL: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.45
sys/arch/zaurus/conf/GENERIC: revision 1.85

Yes, we need to load symbols, but we don't need the whole DDB infrastructure
for that.

bye ddb and we fit again.

Make zaurus kernels use symbol tables loaded by the bootloader.
Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:

https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.9.22.1 03-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #1420):

sys/arch/zaurus/stand/zbsdmod/Makefile: revision 1.12
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.10
sys/arch/zaurus/conf/Makefile.zaurus.inc: revision 1.10
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.11
sys/arch/zaurus/stand/zbsdmod/compat_linux.h: revision 1.7

Explicitly set empty LINKENTRY to keep ENTRY address specified in ldscript.

This fixes kernel boot failures of NetBSD/zaurus 8.x and later.
While here, also set empty TEXTADDR also specified in ldscript.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Fix another boot failure issue of NetBSD/zaurus 8.x and later.

It looks some cacheline alignment restriction so that zbsdmod.o in
NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly.

Adding an explicit alingment pseudo op to put all instructions
between I-cache flush and jumping to the loaded kernel into the
same cacheline solves the issue.

See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html

Should be pulled up to netbsd-8 and netbsd-9.

-

Misc cleanup to avoid future confusion.
- Remove more unnecessary debug sections
- Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk
- Use CFLAGS and CPPFLAGS correctly
- Explicitly set -ffreestanding

-

Make sure to clear bss before jumping to a kernel copied from load buffer.
This will fix yet another boot failure issue
"screen white-out after loading a kernel"
https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html

Should be pulled up to netbsd-8 and netbsd-9.
 1.18 19-May-2025  andvar spelling and grammar fixes in comments.
 1.17 20-Dec-2023  thorpej branches: 1.17.2;
Remove unnecessary <sys/malloc.h>.
 1.16 19-Mar-2022  hannken Fix locking after opendisk(), VOP_IOCTL() needs an unlocked vnode,
vn_rdwr() needs flag IO_NODELOCKED.
 1.15 12-Feb-2022  riastradh sys: Fix various abuse of struct device internals.

Will help to make struct device opaque later.
 1.14 21-Jun-2021  christos fix proplib deprecation
 1.13 13-Nov-2019  tsutsui branches: 1.13.12;
Fix attach failure of zaudio(4) WM8731 (C7x0/860) and WM8750 (C1000/3x00).

The new MI iic(4) layer requires an explicit quirk info of PROBE_STRATEGY
via device properties. Fixes PR kern/54658.

Should be pulled up to netbsd-9.
 1.12 29-Jul-2012  mlelstv branches: 1.12.40; 1.12.44;
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.11 13-Jun-2012  mlelstv Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for zaurus.
 1.10 05-May-2011  nonaka branches: 1.10.4; 1.10.10;
Don't check device numbers.
 1.9 05-Nov-2009  dyoung branches: 1.9.4; 1.9.6;
Use deviter(9) instead of accessing alldevs directly. Untested.
 1.8 11-Mar-2009  nonaka Added kloader support.
 1.7 02-Mar-2009  nonaka Added zboot from OpenBSD.
 1.6 28-Apr-2008  martin branches: 1.6.8; 1.6.14;
Remove clause 3 and 4 from TNF licenses
 1.5 03-Dec-2007  ad branches: 1.5.14; 1.5.16; 1.5.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.4 17-Oct-2007  garbled branches: 1.4.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.3 29-Jul-2007  nonaka branches: 1.3.2; 1.3.4; 1.3.6;
Added support to detect AC adapter and charge battery.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.12; 1.2.20; 1.2.22; 1.2.24;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.24.1 15-Aug-2007  skrll Sync with HEAD.
 1.2.22.1 07-Aug-2007  matt Sync with HEAD.
 1.2.20.1 03-Oct-2007  garbled Sync with HEAD
 1.2.12.2 03-Dec-2007  ad Sync with HEAD.
 1.2.12.1 20-Aug-2007  ad Sync with HEAD.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file autoconf.c was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.4 07-Dec-2007  yamt sync with head
 1.2.4.3 03-Sep-2007  yamt sync with head.
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file autoconf.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:31 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file autoconf.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:13 +0000
 1.3.6.2 09-Jan-2008  matt sync with HEAD
 1.3.6.1 06-Nov-2007  matt sync with HEAD
 1.3.4.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.3.2.1 26-Dec-2007  rjs Sync with HEAD.
 1.4.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.5.18.3 11-Mar-2010  yamt sync with head
 1.5.18.2 04-May-2009  yamt sync with head.
 1.5.18.1 16-May-2008  yamt sync with head.
 1.5.16.1 18-May-2008  yamt sync with head.
 1.5.14.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.2 28-Apr-2009  skrll Sync with HEAD.
 1.6.8.1 03-Mar-2009  skrll Sync with HEAD.
 1.9.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.9.4.1 31-May-2011  rmind sync with head
 1.10.10.2 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.10.10.1 05-Jul-2012  riz Pull up following revision(s) (requested by mlelstv in ticket #402):
sys/dev/vnd.c: revision 1.221
sys/kern/init_main.c: revision 1.443
sys/kern/init_main.c: revision 1.444
sys/dev/dkwedge/dk.c: revision 1.64
sys/arch/x86/x86/x86_autoconf.c: revision 1.63
sys/arch/sparc64/sparc64/autoconf.c: revision 1.187
sys/sys/device.h: revision 1.141
sys/dev/dkwedge/dkwedge_bsdlabel.c: revision 1.17
sys/kern/kern_subr.c: revision 1.213
sys/arch/zaurus/zaurus/autoconf.c: revision 1.11
sys/arch/xen/x86/autoconf.c: revision 1.14
sys/sys/disk.h: revision 1.57
Use the label's packname to create wedge names instead of the classic
device names. Fall back to classic device names when the label has an
empty name or the default name 'fictitious'.
autodiscover wedges
Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for x86, xen, sparc64.
Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for zaurus.
Do not try to find the wedge we booted from if opendisk(booted_device)
failed.
 1.10.4.1 30-Oct-2012  yamt sync with head
 1.12.44.1 16-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #430):

sys/arch/arm/sa11x0/sa11x0_ost.c: revision 1.33
sys/arch/zaurus/zaurus/autoconf.c: revision 1.13

Fix attach failure of zaudio(4) WM8731 (C7x0/860) and WM8750 (C1000/3x00).

The new MI iic(4) layer requires an explicit quirk info of PROBE_STRATEGY
via device properties. Fixes PR kern/54658.

Should be pulled up to netbsd-9.

-

Fix another attach failure of zaudio(4) WM8731 on Zaurus SL-C7x0/860.

When kernels were configured for both CPU_XSCALE_PXA270 and
CPU_XSCALE_PXA250, the OST freq value was not set until tc_init(9)
then all delay(9) during configure(9) returned immediately.

While here, use proper macro with description for readability.

Should be pulled up to netbsd-8 and netbsd-9.
(though zaudio(4) won't work on netbsd-8)
 1.12.40.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.13.12.1 01-Aug-2021  thorpej Sync with HEAD.
 1.17.2.1 02-Aug-2025  perseant Sync with HEAD
 1.8 17-Aug-2021  andvar fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.
 1.7 08-Mar-2014  skrll Remove unused variable
 1.6 21-Jan-2012  nonaka branches: 1.6.6; 1.6.10;
fix my license notice.
 1.5 20-Jan-2012  nonaka Kernel load address can be changed now.
 1.4 20-Nov-2011  nonaka branches: 1.4.2;
compile again.
 1.3 15-Mar-2009  nonaka branches: 1.3.2; 1.3.4; 1.3.6; 1.3.18;
avoid assertion.
 1.2 11-Mar-2009  nonaka check pmap_enter() return value.
 1.1 11-Mar-2009  nonaka Added kloader support.
 1.3.18.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.3.18.1 17-Apr-2012  yamt sync with head
 1.3.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.6.1 15-Mar-2009  jym file kloader_machdep.c was added on branch jym-xensuspend on 2009-05-13 17:18:55 +0000
 1.3.4.2 04-May-2009  yamt sync with head.
 1.3.4.1 15-Mar-2009  yamt file kloader_machdep.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.3.2.2 28-Apr-2009  skrll Sync with HEAD.
 1.3.2.1 15-Mar-2009  skrll file kloader_machdep.c was added on branch nick-hppapmap on 2009-04-28 07:35:03 +0000
 1.4.2.1 18-Feb-2012  mrg merge to -current.
 1.6.10.1 18-May-2014  rmind sync with head
 1.6.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3 21-Jan-2012  nonaka fix my license notice.
 1.2 17-Jan-2012  nonaka fix struct kloader_bootinfo address.
 1.1 11-Mar-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6; 1.1.18; 1.1.22;
Added kloader support.
 1.1.22.1 18-Feb-2012  mrg merge to -current.
 1.1.18.1 17-Apr-2012  yamt sync with head
 1.1.6.2 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1 11-Mar-2009  jym file kloader_zaurus.S was added on branch jym-xensuspend on 2009-05-13 17:18:55 +0000
 1.1.4.2 04-May-2009  yamt sync with head.
 1.1.4.1 11-Mar-2009  yamt file kloader_zaurus.S was added on branch yamt-nfs-mp on 2009-05-04 08:12:16 +0000
 1.1.2.2 28-Apr-2009  skrll Sync with HEAD.
 1.1.2.1 11-Mar-2009  skrll file kloader_zaurus.S was added on branch nick-hppapmap on 2009-04-28 07:35:03 +0000
 1.55 13-May-2024  msaitoh s/slighly/slightly/ in comment.
 1.54 05-Mar-2024  thorpej Move the at-shutdown call to resettodr() from cpu_reboot() to kern_reboot().

It's a small step, but it's a step.
 1.53 23-Dec-2023  andvar Remove "#ifdef RAMDISK_HOOKS" block, RB_DFLTROOT boot flag is obsolete long ago.
 1.52 12-Oct-2023  skrll Fix non-DIAGNOSTIC builds
 1.51 20-Apr-2023  skrll Provide a shared pmap_devmap implementation and convert all pmap_devmap
arrays to use DEVMAP_ENTRY{,_END}
 1.50 03-Jul-2022  andvar branches: 1.50.4;
s/bounaries/boundaries/ in comments.
 1.49 02-Jan-2022  christos fix the build (KASSERT)
 1.48 17-Aug-2021  andvar fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.
 1.47 18-Apr-2020  skrll PMAP_DEBUG has been deleted on arm
 1.46 18-Apr-2020  skrll Trailing whitespace
 1.45 13-Nov-2019  tsutsui branches: 1.45.6;
Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:
https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.44 04-Nov-2019  tsutsui Fix build with VERBOSE_INIT_ARM without DIAGNOSTIC.
 1.43 19-Oct-2019  tsutsui Fix a build error with options VERBOSE_INIT_ARM.
 1.42 16-Jul-2019  skrll branches: 1.42.2;
Consistently use vaddr_t as initarm and friends return type.

Makes no difference to binaries except for aarch64 where it's required
 1.41 16-Jul-2019  skrll KNF
 1.40 29-Mar-2019  christos Yes, we need to load symbols, but we don't need the whole DDB infrastructure
for that.
 1.39 28-Oct-2018  skrll Fix a commit
 1.38 22-Dec-2016  cherry branches: 1.38.8; 1.38.14; 1.38.16;
switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.
 1.37 07-Jul-2016  msaitoh branches: 1.37.2;
KNF. Remove extra spaces. No functional change.
 1.36 31-May-2016  dholland PR 51196 David Binderman: simplify redundant conditional.
(yet another copy)
 1.35 18-Aug-2013  matt branches: 1.35.6;
Fix more <arm/locore.h> lossage
 1.34 22-Sep-2012  matt branches: 1.34.2;
Don't use an asm in pmap_activate to update the TTBR, use cpu_setttb instead
but add a second argument to it to indicate whether the TLB/caches need to be
flushed. Default cortex to pmap_needs_fixup = 1. But check the MMFR3 field
to see if the fixed can be skipped.
Use a cf_flag bit 0 to indicate whether the A9 L2 cache should disable (bit 0 = 1)
or enabeld (bit = 0).

With these changes, the A9 MMU can use traverse caches to do MMU tablewalks
Also, make sure all memory has the shareable bit for the A9.
 1.33 16-Aug-2012  matt branches: 1.33.2;
Move the standard definitions of the {UND,IRQ,FIQ,ABT}_STACK_SIZE to
<arm32/machdep.h>
Move the extern for cpu_reset_address to the same file.
Add cpu_reset_address_paddr.
Kill cpu_reset_v4_MMU_disable.
if cpu_reset_address is NULL, then the MMU will be disabled.
 1.32 12-Aug-2012  nonaka To reset the watchdog timer in SL-C7x0/SL-C860.
 1.31 29-Jul-2012  matt Fix more -fno-common fallout.
Move more variables to common locations.
 1.30 29-Jan-2012  tsutsui Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.29 25-Jan-2012  tsutsui Reorganlization zlcd(4) and ztp(4) device attachments from nonaka@:
- ztp depends on zssp so attach ztp at zssp rather than pxaip
- split LCD backlight controls from zlcd(4) into new lcdctl device
to share it among forthcoming SL-C7x0 variants
 1.28 20-Jan-2012  nonaka Kernel load address can be changed now.
 1.27 12-Nov-2011  nonaka branches: 1.27.4;
SL-C700 has PXA250 step B instead of PXA250 step A.
 1.26 19-Jul-2011  dyoung branches: 1.26.2;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.25 30-Jun-2011  wiz dependant -> dependent
 1.24 23-Jun-2011  nonaka Reduced the use of the magic number.
 1.23 19-Jun-2011  nonaka more support SL-C1000.
 1.22 13-Feb-2011  nonaka branches: 1.22.2;
support FFUARTCONSOLE.
 1.21 28-Nov-2010  hannken branches: 1.21.2; 1.21.4;
As md(4) no longer has "needs-count" there is no "md.h" anymore.
Remove the inclusion of this file.

Acorn32 now always builds load_memory_disc_from_floppy(). This should
not be a problem as all configs have md(4).

Observed by: Masao Uebayashi <uebayasi@netbsd.org>
 1.20 28-Dec-2009  uebayasi branches: 1.20.4;
More setttb() -> cpu_setttb() for readability & consistency. Missing instances
pointed out by tsutsui@ & nonaka@, thanks.
 1.19 27-Nov-2009  rmind - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.18 26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.17 11-Aug-2009  matt Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
 1.16 04-Aug-2009  kiyohara Fix GPIO configurations.
http://mail-index.netbsd.org/port-arm/2009/07/08/msg000807.html
3. I misstake sinse 2007/08/21.
:

Details:
Remove hwuart_gpioconf. PXA270 not have HWUART.
Add ohci_gpioconf. However all selectable.
Fix pSKTSEL of pcic is selectable.
Fix MMDAT<1-3> of mci is optional.
 1.15 16-Mar-2009  nonaka Don't use kloader_reboot() when after panic.
 1.14 11-Mar-2009  nonaka Added kloader support.
 1.13 02-Mar-2009  nonaka Added zboot from OpenBSD.
 1.12 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.11 28-Jan-2009  nonaka branches: 1.11.2;
mention MODULAR.
 1.10 11-Nov-2008  dyoung It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled. So I have made two changes:

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

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

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
 1.9 27-Apr-2008  matt branches: 1.9.6; 1.9.8;
Merge kernel changes in matt-armv6 to HEAD.
 1.8 19-Jan-2008  chris branches: 1.8.6; 1.8.8; 1.8.10;
Remove arm support for IPKDB.

It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
 1.7 17-Oct-2007  garbled branches: 1.7.2; 1.7.8;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.6 21-Aug-2007  kiyohara branches: 1.6.2;
The initarm() should initialize GPIO. We must not initialize GPIO in
foo_attach() of the each drivers. And, it is necessary to confirm whether
to be initialized in foo_match(). To avoid a dangerous configuring on the
evaluation boards.
 1.5 28-Jun-2007  nonaka branches: 1.5.4; 1.5.6; 1.5.8;
cpu_reboot():
- fix data write-back to hard disk is failed when reboot/halt.
 1.4 29-Jan-2007  hubertf branches: 1.4.6; 1.4.8; 1.4.14;
Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.
 1.3 18-Dec-2006  nonaka branches: 1.3.2; 1.3.4;
Fix evbarm compile again.
 1.2 17-Dec-2006  peter branches: 1.2.2;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.2.3 21-Dec-2006  yamt sync with head.
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file machdep.c was added on branch yamt-splraiseipl on 2006-12-18 11:42:13 +0000
 1.3.4.3 01-Feb-2007  ad Sync with head.
 1.3.4.2 12-Jan-2007  ad Sync with head.
 1.3.4.1 18-Dec-2006  ad file machdep.c was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.3.2.5 21-Jan-2008  yamt sync with head
 1.3.2.4 03-Sep-2007  yamt sync with head.
 1.3.2.3 26-Feb-2007  yamt sync with head.
 1.3.2.2 30-Dec-2006  yamt sync with head.
 1.3.2.1 18-Dec-2006  yamt file machdep.c was added on branch yamt-lazymbuf on 2006-12-30 20:47:31 +0000
 1.4.14.1 03-Oct-2007  garbled Sync with HEAD
 1.4.8.1 11-Jul-2007  mjf Sync with head.
 1.4.6.2 09-Oct-2007  ad Sync with head.
 1.4.6.1 15-Jul-2007  ad Sync with head.
 1.5.8.1 03-Sep-2007  jmcneill Sync with HEAD.
 1.5.6.2 28-Feb-2008  rjs Sync with HEAD.
 1.5.6.1 01-Nov-2007  rjs Sync with HEAD.
 1.5.4.1 03-Sep-2007  skrll Sync with HEAD.
 1.6.2.3 23-Mar-2008  matt sync with HEAD
 1.6.2.2 28-Jan-2008  matt Adapt to new pmap_bootstrap signature.
 1.6.2.1 06-Nov-2007  matt sync with HEAD
 1.7.8.1 20-Jan-2008  bouyer Sync with HEAD
 1.7.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.8.10.4 11-Mar-2010  yamt sync with head
 1.8.10.3 19-Aug-2009  yamt sync with head.
 1.8.10.2 04-May-2009  yamt sync with head.
 1.8.10.1 16-May-2008  yamt sync with head.
 1.8.8.1 18-May-2008  yamt sync with head.
 1.8.6.2 17-Jan-2009  mjf Sync with HEAD.
 1.8.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.9.8.3 28-Apr-2009  skrll Sync with HEAD.
 1.9.8.2 03-Mar-2009  skrll Sync with HEAD.
 1.9.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.9.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.11.2.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.20.4.1 05-Mar-2011  rmind sync with head
 1.21.4.1 17-Feb-2011  bouyer Sync with HEAD
 1.21.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.22.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.26.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.26.2.2 30-Oct-2012  yamt sync with head
 1.26.2.1 17-Apr-2012  yamt sync with head
 1.27.4.1 18-Feb-2012  mrg merge to -current.
 1.33.2.3 03-Dec-2017  jdolecek update from HEAD
 1.33.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.33.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.34.2.1 28-Aug-2013  rmind sync with head
 1.35.6.2 05-Feb-2017  skrll Sync with HEAD
 1.35.6.1 09-Jul-2016  skrll Sync with HEAD
 1.37.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.38.16.3 21-Apr-2020  martin Sync with HEAD
 1.38.16.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.38.16.1 10-Jun-2019  christos Sync with HEAD
 1.38.14.1 26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.38.8.1 16-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #1446):

sys/arch/zaurus/conf/GENERIC: revision 1.89
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.12
sys/arch/zaurus/conf/INSTALL: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.45
sys/arch/zaurus/conf/GENERIC: revision 1.85

Yes, we need to load symbols, but we don't need the whole DDB infrastructure
for that.

bye ddb and we fit again.

Make zaurus kernels use symbol tables loaded by the bootloader.
Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).

Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:

https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.42.2.1 16-Nov-2019  martin Pull up following revision(s) (requested by tsutsui in ticket #431):

sys/arch/zaurus/conf/GENERIC: revision 1.89
sys/arch/zaurus/stand/zbsdmod/zbsdmod.c: revision 1.12
sys/arch/zaurus/conf/INSTALL: revision 1.40
sys/arch/zaurus/zaurus/machdep.c: revision 1.45

Make zaurus kernels use symbol tables loaded by the bootloader.

Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of
GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85).
Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols
at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does.

No particular comment on port-zaurus@:

https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html

Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded
kernels had "esym" variable at the top of its data section and
implicitly overwrote it with the address of loaded symbol tables.
OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o
to initialize ksyms(4) on startup, but we will avoid such implicit
MD interface between the bootloader and kernels (though we don't
bother to add a symbol address value into bootinfo but just assume
symbols are loaded at end[] of a loaded kernel, as per the MI
libsa loadfile() implementation).

Worth to pullup to both netbsd-8 and netbsd-9.
 1.45.6.1 20-Apr-2020  bouyer Sync with HEAD
 1.50.4.1 14-Oct-2023  martin Pull up following revision(s) (requested by skrll in ticket #411):

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

Fix non-DIAGNOSTIC builds
 1.6 08-Feb-2018  dholland Typos.
 1.5 12-Aug-2012  nonaka To reset the watchdog timer in SL-C7x0/SL-C860.
 1.4 29-Jan-2012  tsutsui Add PXA25x based Zaurus SL-C700/750/760/860 support.

All porting work was done by TOYOKURA Atsushi, with
several minor adjustments for integration by me and nonaka@.

His SL-C700 first running NetBSD/zaurus was demonstrated on
NetBSD booth at Open Source Canference 2011 Tokyo/Fall:
http://www.NetBSD.org/gallery/events.html#opensourceconf2011-tokyofall

Note GENERIC kernel works on SL-C750/760/860 (and C1000/3x00) but for now
SL-C700 requires its own kernel with special KERNEL_BASE_PHYS address
due to zbsdmod.o loader restriction (probably caused its small 32MB RAM).
 1.3 31-Mar-2008  chris branches: 1.3.38; 1.3.42;
Add GPIO pins for USB cable type detection and glue for zusb devices for
config.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.50;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.50.1 03-Apr-2008  mjf Sync with HEAD.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file zaurus_reg.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file zaurus_reg.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:31 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file zaurus_reg.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:13 +0000
 1.3.42.1 18-Feb-2012  mrg merge to -current.
 1.3.38.2 30-Oct-2012  yamt sync with head
 1.3.38.1 17-Apr-2012  yamt sync with head
 1.1 16-Dec-2006  ober branches: 1.1.2; 1.1.4; 1.1.6;
Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 16-Dec-2006  ad file zaurus_start.S was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 16-Dec-2006  yamt file zaurus_start.S was added on branch yamt-lazymbuf on 2006-12-30 20:47:31 +0000
 1.1.2.2 18-Dec-2006  yamt sync with head.
 1.1.2.1 16-Dec-2006  yamt file zaurus_start.S was added on branch yamt-splraiseipl on 2006-12-18 11:42:13 +0000
 1.3 19-Jun-2011  nonaka more support SL-C1000.
 1.2 17-Dec-2006  peter branches: 1.2.2; 1.2.4; 1.2.6; 1.2.86;
Update from the latest Zaurus source from NONAKA Kimihiro.

- LCD screen and keyboard are working now.
- Add bootstrap loader.
 1.1 16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.2.86.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.2.6.2 12-Jan-2007  ad Sync with head.
 1.2.6.1 17-Dec-2006  ad file zaurus_var.h was added on branch newlock2 on 2007-01-12 01:01:03 +0000
 1.2.4.2 30-Dec-2006  yamt sync with head.
 1.2.4.1 17-Dec-2006  yamt file zaurus_var.h was added on branch yamt-lazymbuf on 2006-12-30 20:47:31 +0000
 1.2.2.2 18-Dec-2006  yamt sync with head.
 1.2.2.1 17-Dec-2006  yamt file zaurus_var.h was added on branch yamt-splraiseipl on 2006-12-18 11:42:13 +0000

RSS XML Feed