Home | History | Annotate | only in /src/sys/arch/arc/include
History log of /src/sys/arch/arc/include
RevisionDateAuthorComments
 1.34 30-Nov-2024  christos Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.33 12-Jul-2018  maxv branches: 1.33.36;
Remove the kernel PMC code. Sent yesterday on tech-kern@.

This change:

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

* Removes the PMC code of ARM XSCALE.

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

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

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

* Removes the pmc_evid_t and pmc_ctr_t types.

* Removes all the associated man pages. The sets are marked as obsolete.
 1.32 21-Dec-2015  christos branches: 1.32.16; 1.32.18;
Add mips fenv.h (From FreeBSD)
 1.31 17-Jul-2011  joerg branches: 1.31.12; 1.31.30;
Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.30 12-Aug-2009  matt Nuke a.out support for MIPS.
 1.29 09-Feb-2007  ad branches: 1.29.48;
Merge newlock2 to head.
 1.28 01-Jul-2006  tsutsui branches: 1.28.4;
No need to export autoconf.h to userland.
 1.27 01-Jul-2006  tsutsui Remove obsolete display.h.
 1.26 11-Dec-2005  christos branches: 1.26.4; 1.26.8; 1.26.16;
merge ktrace-lwp.
 1.25 08-May-2004  kleink branches: 1.25.12;
Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.
 1.24 17-Jan-2003  thorpej branches: 1.24.2;
Merge the nathanw_sa branch.
 1.23 26-Nov-2002  lukem Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more.
 1.22 07-Aug-2002  briggs Implement pmc(9) -- An interface to hardware performance monitoring
counters. These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface. Initially, the Intel XScale
counters are the only ones supported.
 1.21 15-Apr-2001  kleink branches: 1.21.2; 1.21.8; 1.21.16;
Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.20 15-Apr-2001  kleink Add definitions of C99 specified-width integer type limits.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.19 14-Apr-2001  kleink Add definitions of C99 integer constant macros.
Tidy Makefiles up a little.
 1.18 14-Apr-2001  kleink Add definitions of C99 minimum-width and greatest-width integer types.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.17 26-Jun-2000  kleink branches: 1.17.2; 1.17.4;
Add <machine/int_types.h>, which provides namespace-pure definitions
of exact-width integer types.
 1.16 12-Jun-2000  soda <machine/cpuregs.h> was removed on March 30,
from Shuichiro URATA <ur@a-r.org>.
 1.15 29-Apr-2000  thorpej branches: 1.15.2;
Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED. These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case). Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.

These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
 1.14 31-Mar-2000  soda cancel previous change, and add a comment about it.

$INCS variable is introduced by cgd to export kernel headers which
are needed from userland. In other words, $INC should only have
headers for kernel <-> userland programming interface.
Headers for kernel internal implementation should not be exported
to userland.
 1.13 30-Mar-2000  soren Match contents.
 1.12 17-Mar-2000  tron Install "machineendian_machdep.h".
 1.11 03-Mar-2000  soda do not install bus.h, kbdreg.h and pio.h..
since currently these are not useful/needed from userland.
 1.10 27-Jan-2000  soda make "make includes" work
 1.9 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.8 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/Makefile,v
 1.7 23-Dec-1999  kleink C99: Define a NAN macro in <math.h> which evaulates to a constant expression of
a single-precision quiet NaN; only to be defined on platforms that do support
this value.
 1.6 09-Nov-1999  kleink Per discussion on tech-toolchain, remove MIPS-specific <machine/elf.h> header;
all the information is available from <sys/exec_elf.h>.
 1.5 30-Aug-1999  mrg branches: 1.5.4; 1.5.8;
install ieee.h
 1.4 30-Mar-1999  soda regdef.h is back
 1.3 13-Mar-1999  drochner g/c regdef.h
 1.2 15-Jan-1999  bouyer Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
 1.1 12-Jun-1998  cgd Rework the way kernel include files are installed. In the new method,
as with user-land programs, include files are installed by each directory
in the tree that has includes to install. (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.) The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change. Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
 1.5.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.5.4.1 15-Nov-1999  fvdl Sync with -current
 1.15.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.17.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.17.2.3 21-Apr-2001  bouyer Sync with HEAD
 1.17.2.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.17.2.1 26-Jun-2000  bouyer file Makefile was added on branch thorpej_scsipi on 2000-11-20 20:00:34 +0000
 1.21.16.1 30-Aug-2002  gehenna catch up with -current.
 1.21.8.4 11-Dec-2002  thorpej Sync with HEAD.
 1.21.8.3 13-Aug-2002  nathanw Catch up to -current.
 1.21.8.2 17-Nov-2001  wdk mcontext support for MIPS based ports.
 1.21.8.1 15-Apr-2001  wdk file Makefile was added on branch nathanw_sa on 2001-11-17 23:12:06 +0000
 1.21.2.1 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.24.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.24.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.24.2.1 03-Aug-2004  skrll Sync with HEAD
 1.25.12.2 26-Feb-2007  yamt sync with head.
 1.25.12.1 30-Dec-2006  yamt sync with head.
 1.26.16.1 13-Jul-2006  gdamore Merge from HEAD.
 1.26.8.1 11-Aug-2006  yamt sync with head
 1.26.4.1 09-Sep-2006  rpaulo sync with head
 1.28.4.1 01-Feb-2007  ad Header file cleanup.
 1.29.48.1 19-Aug-2009  yamt sync with head.
 1.31.30.1 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.31.12.1 03-Dec-2017  jdolecek update from HEAD
 1.32.18.1 10-Jun-2019  christos Sync with HEAD
 1.32.16.1 28-Jul-2018  pgoyette Sync with HEAD
 1.33.36.1 02-Aug-2025  perseant Sync with HEAD
 1.7 04-Sep-2001  simonb branches: 1.7.6;
Remove some more useless RCS ids.
 1.6 22-Feb-2000  soda branches: 1.6.6; 1.6.10;
merge changes between OpenBSD-2.1 and OpenBSD-2.6
 1.5 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.4 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/ansi.h,v
 1.3 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.2 16-Mar-1996  jtc Add _BSD_WINT_T_ definition so we can handle wint_t type added in NA1.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.6.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.6.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.6.1 22-Feb-2000  bouyer file ansi.h was added on branch thorpej_scsipi on 2000-11-20 20:00:34 +0000
 1.7.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.7.6.1 04-Sep-2001  simonb file ansi.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.6 12-Aug-2009  matt Nuke a.out support for MIPS.
 1.5 23-Jan-2000  soda branches: 1.5.6; 1.5.136; 1.5.150;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.4 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/aout_machdep.h,v
 1.3 08-Oct-1996  cgd repoint at shared aout_machdep.h, not exec.h
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.5.150.1 24-Oct-2010  jym Sync with HEAD
 1.5.136.1 19-Aug-2009  yamt sync with head.
 1.5.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.6.1 23-Jan-2000  bouyer file aout_machdep.h was added on branch thorpej_scsipi on 2000-11-20 20:00:34 +0000
 1.8 23-Jan-2000  soda branches: 1.8.6;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.7 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/asm.h,v
 1.6 23-Jun-1997  jonathan Delete entire contents, just #include <mips/asm.h>
 1.5 30-Nov-1996  jtc PROF -> GPROF
 1.4 13-Oct-1996  christos backout previous kprintf change
 1.3 10-Oct-1996  christos printf -> kprintf, sprintf -> ksprintf
 1.2 16-Jul-1996  thorpej RCS id police.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.8.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.8.6.1 23-Jan-2000  bouyer file asm.h was added on branch thorpej_scsipi on 2000-11-20 20:00:34 +0000
 1.14 06-Mar-2011  tsutsui Remove trailing spaces.
 1.13 25-Jun-2006  tsutsui branches: 1.13.84; 1.13.90;
Remove unused struct abus stuff.
 1.12 11-Dec-2005  christos branches: 1.12.4; 1.12.8; 1.12.16;
merge ktrace-lwp.
 1.11 09-Jun-2005  he branches: 1.11.2;
Appease -Wcast-qual by adding consts in appropriate places.
 1.10 03-Jun-2005  tsutsui Add a const.
 1.9 22-Jan-2005  tsutsui - remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.8 22-Mar-2003  simonb branches: 1.8.2; 1.8.10;
Fix a grammatical nit.
 1.7 13-Jun-2001  soda branches: 1.7.8;
remove algor related codes, because there is independent (and working!)
algor port now.
 1.6 23-Jan-2000  soda branches: 1.6.6; 1.6.8;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.5 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/autoconf.h,v
 1.4 06-Oct-1998  thorpej configure() prototype is in <sys/device.h>
 1.3 23-Jun-1997  jonathan Apply sys/arch/mips changes (MACH_ -> MIPS_ or MIPS3_) changes to Pica port.
PICA Kernel compiles with warnings and links, otherwise untested.
 1.2 22-Jun-1997  jonathan Protoypes for configure(), initcpu().
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.6.8.1 21-Jun-2001  nathanw Catch up to -current.
 1.6.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.6.1 23-Jan-2000  bouyer file autoconf.h was added on branch thorpej_scsipi on 2000-11-20 20:00:34 +0000
 1.7.8.2 13-Jun-2001  soda remove algor related codes, because there is independent (and working!)
algor port now.
 1.7.8.1 13-Jun-2001  soda file autoconf.h was added on branch nathanw_sa on 2001-06-13 14:58:44 +0000
 1.8.10.1 29-Apr-2005  kent sync with -current
 1.8.2.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.8.2.1 24-Jan-2005  skrll Sync with HEAD.
 1.11.2.1 30-Dec-2006  yamt sync with head.
 1.12.16.1 13-Jul-2006  gdamore Merge from HEAD.
 1.12.8.1 26-Jun-2006  yamt sync with head.
 1.12.4.1 09-Sep-2006  rpaulo sync with head
 1.13.90.1 06-Jun-2011  jruoho Sync with HEAD.
 1.13.84.1 21-Apr-2011  rmind sync with head
 1.3 22-Jul-2006  tsutsui - reorganize bootinfo structures and fix bootinfo handling in bootloader
(mostly based on pmax)
- pass symbol info from bootloader to kernel via bootinfo
(currently bootinfo is allocated in the bootloader and
copied by kernel later; maybe we should rethink about this)
- use passed bootinfo to initialize ksyms(4) in kernel
- remove options SYMTAB_SPACE from kernel config files
- bump bootloader version
 1.2 11-Dec-2005  christos branches: 1.2.4; 1.2.8;
merge ktrace-lwp.
 1.1 18-Apr-2005  tsutsui branches: 1.1.2; 1.1.4; 1.1.10;
Add a long-awaited standalone boot program for arc port to load
ELF kernels instead of booting ECOFF kernels directly by ARCBIOS.
Tested on my NEC-J96A and NEC-JC94, and ok'ed by soda.

XXX: Maybe we should share some of these sources with sgimips
XXX: (in sys/dev/arcbios/stand?)
 1.1.10.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.10.1 18-Apr-2005  skrll file bootinfo.h was added on branch ktrace-lwp on 2005-11-10 13:55:09 +0000
 1.1.4.1 30-Dec-2006  yamt sync with head.
 1.1.2.2 29-Apr-2005  kent sync with -current
 1.1.2.1 18-Apr-2005  kent file bootinfo.h was added on branch kent-audio2 on 2005-04-29 11:28:01 +0000
 1.2.8.1 11-Aug-2006  yamt sync with head
 1.2.4.1 09-Sep-2006  rpaulo sync with head
 1.6 12-Aug-2009  matt Nuke a.out support for MIPS.
 1.5 04-Sep-2001  simonb branches: 1.5.6; 1.5.128; 1.5.142;
Remove comment duplicated in <mips/bsd-aout.h>.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/bsd-aout.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file bsd-aout.h was added on branch thorpej_scsipi on 2000-11-20 20:00:34 +0000
 1.5.142.1 24-Oct-2010  jym Sync with HEAD
 1.5.128.1 19-Aug-2009  yamt sync with head.
 1.5.6.2 04-Sep-2001  simonb Remove comment duplicated in <mips/bsd-aout.h>.
 1.5.6.1 04-Sep-2001  simonb file bsd-aout.h was added on branch nathanw_sa on 2001-09-04 07:36:12 +0000
 1.3 23-Jan-2000  soda branches: 1.3.6;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.2 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/bswap.h,v
 1.1 15-Jan-1999  bouyer Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
 1.3.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.3.6.1 23-Jan-2000  bouyer file bswap.h was added on branch thorpej_scsipi on 2000-11-20 20:00:34 +0000
 1.27 17-Jul-2011  dyoung Switch MIPS and MIPS-ish architectures to new-style <sys/bus.h>. This
involves moving some inline bus_space(9) implementation into .c files.
 1.26 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.25 04-Mar-2007  christos branches: 1.25.40; 1.25.42; 1.25.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.24 21-Feb-2007  mrg add a pair of new bus_dma(9) functions:
int _bus_dmatag_subregion(bus_dma_tag_t tag,
bus_addr_t min_addr,
bus_addr_t max_addr,
bus_dma_tag_t *newtag,
int flags)
void _bus_dmatag_destroy(bus_dma_tag_t tag)

that allow a (normally broken/limited) device to restrict the bus address
range it can talk to. this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.

all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.

XXX: bus_dma(9) needs an update still.
 1.23 26-May-2006  tsutsui branches: 1.23.12;
Tweak bus_space_barrier(9) macro to appease
"left-hand operand of comma expression has no effect"
warnings by gcc4.
 1.22 01-Mar-2006  yamt branches: 1.22.2; 1.22.8;
merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
the latter is more natural to specify an address space.
(and less likely to be abused for random purposes.)
- fix a swdmover race.
 1.21 16-Feb-2006  perry Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
 1.20 24-Dec-2005  perry branches: 1.20.2; 1.20.4; 1.20.6;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.19 11-Dec-2005  christos merge ktrace-lwp.
 1.18 09-Mar-2005  matt branches: 1.18.4;
Add a dm_maxsegsz public member to bus_dmamap_t. This allows a user of the API
to select the maximum segment size for each bus_dmamap_load (up to the maxsegsz
supplied to bus_dmamap_create). dm_maxsegsz is reset to the value supplied to
bus_dmamap_create when the dmamap is unloaded.
 1.17 22-Jan-2005  tsutsui branches: 1.17.2;
- remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.16 15-Jun-2003  fvdl branches: 1.16.2; 1.16.10;
Handle 64bit DMA addresses on PCI for platforms that can (currently only
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.
 1.15 28-Jan-2003  kent Introduce BUS_DMA_NOCACHE, and bus_dmamem_map() of i386 supports it.
 1.14 17-Mar-2002  simonb Make sure that private DMA flags don't overlap with standard DMA flags;
start these at 0x10000 to leave room for an increase in the latter.
 1.13 14-Nov-2001  thorpej branches: 1.13.2;
Merge the thorpej-mips-cache branch onto the trunk. This is an
overhaul of how caches are handled for NetBSD's MIPS ports.
 1.12 04-Sep-2001  thorpej branches: 1.12.4;
Implement bus_space_mmap().
 1.11 19-Jul-2001  thorpej Add BUS_DMA_READ and BUS_DMA_WRITE flags, that hint the back-end
at dmamap load time that the mapping will be used for a unidirectional
transfer of the specified direction.
 1.10 07-Mar-2001  thorpej branches: 1.10.2;
Add the BUS_DMA_STREAMING flag.
 1.9 26-Jun-2000  simonb branches: 1.9.2; 1.9.4;
Change the kernel mmap interface so that the offset to map is an
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".

Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
 1.8 20-Jun-2000  soda branches: 1.8.2;
for DeskStation RPC44
 1.7 09-Jun-2000  soda bus_space/bus_dma implementation for arc port, based on i386 port, pmax port,
hpcmips port, and the version contributed by Shuichiro URATA <ur@a-r.org>.
 1.6 22-Feb-2000  soda branches: 1.6.2;
merge changes between OpenBSD-2.1 and OpenBSD-2.6
 1.5 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.4 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/bus.h,v
 1.3 23-Jun-1997  jonathan *** empty log message ***
 1.2 23-Jun-1997  jonathan Copyright police.
 1.1 27-Mar-1996  jonathan branches: 1.1.1;
minial subset of bus.h, from CGD's description:

bus memory and I/O space access functions/macros, to be used by
machine-independent code for more sane access to bus resources.
New functions will be added to this set, in the future, as appropriate,
but this is a good starting set. Defines:
bus_{io,mem}_{map,unmap}
bus_{io,mem}_{read,write}_{1,2,4,8}
functions, and several types to go with them.
 1.1.1.2 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.6.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.8.2.2 30-Jun-2000  simonb Pull up mmap paddr_t/off_t changes from trunk.
 1.8.2.1 20-Jun-2000  simonb file bus.h was added on branch netbsd-1-5 on 2000-06-30 16:27:16 +0000
 1.9.4.1 09-Apr-2001  nathanw Catch up with -current.
 1.9.2.3 12-Mar-2001  bouyer Sync with HEAD.
 1.9.2.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.9.2.1 26-Jun-2000  bouyer file bus.h was added on branch thorpej_scsipi on 2000-11-20 20:00:34 +0000
 1.10.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.10.2.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.10.2.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.10.2.1 03-Aug-2001  lukem update to -current
 1.12.4.1 24-Oct-2001  thorpej Update for the new cache code. bus_dmamap_sync is now optimized
for a virtually-indexed, write-back cache.
 1.13.2.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.13.2.1 14-Nov-2001  nathanw file bus.h was added on branch nathanw_sa on 2002-04-01 07:39:05 +0000
 1.16.10.1 29-Apr-2005  kent sync with -current
 1.16.2.2 01-Apr-2005  skrll Sync with HEAD.
 1.16.2.1 24-Jan-2005  skrll Sync with HEAD.
 1.17.2.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.18.4.3 03-Sep-2007  yamt sync with head.
 1.18.4.2 26-Feb-2007  yamt sync with head.
 1.18.4.1 21-Jun-2006  yamt sync with head.
 1.20.6.2 01-Jun-2006  kardel Sync with head.
 1.20.6.1 22-Apr-2006  simonb Sync with head.
 1.20.4.1 09-Sep-2006  rpaulo sync with head
 1.20.2.2 18-Feb-2006  yamt sync with head.
 1.20.2.1 18-Feb-2006  yamt keep vmspace rather than proc in arc_bus_dmamap.
 1.22.8.1 19-Jun-2006  chap Sync with head.
 1.22.2.1 26-Jun-2006  yamt sync with head.
 1.23.12.2 12-Mar-2007  rmind Sync with HEAD.
 1.23.12.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.25.44.1 16-May-2008  yamt sync with head.
 1.25.42.1 18-May-2008  yamt sync with head.
 1.25.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.3 07-Dec-2023  thorpej extent(9) -> vmem(9)
 1.2 23-Sep-2019  skrll Provide PRIxBUSADDR, PRIxBUSSIZE, PRIuBUSSIZE, and PRIxBSH for all arches
to follow arm and (generic) mips.

Reviewed by christos.
 1.1 01-Jul-2011  dyoung branches: 1.1.54;
Per discussion at
<http://mail-index.netbsd.org/tech-kern/2010/04/02/msg007941.html>,
divide each machine's bus.h into bus_defs.h (constants & data types)
and bus_funcs.h (macro implementations of bus_space(9) routines and MD
prototypes).

Note that some bus_space(9) routines' implementation will move to .c
files from inline subroutines or macros in .h files.

I've only made the split for machine architectures where there is PCI.
All of the non-PCI-having architectures will require a similar split.

These #include files are not referenced by any (committed) Makefiles or
header files, yet. Changes to Makefiles, to <sys/bus.h>, and to some
more machine-dependent files will dribble in before I throw the switch.
 1.1.54.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.3 07-Dec-2023  thorpej extent(9) -> vmem(9)
 1.2 23-Apr-2021  skrll Use sys/cdefs.h __CONCAT3
 1.1 01-Jul-2011  dyoung Per discussion at
<http://mail-index.netbsd.org/tech-kern/2010/04/02/msg007941.html>,
divide each machine's bus.h into bus_defs.h (constants & data types)
and bus_funcs.h (macro implementations of bus_space(9) routines and MD
prototypes).

Note that some bus_space(9) routines' implementation will move to .c
files from inline subroutines or macros in .h files.

I've only made the split for machine architectures where there is PCI.
All of the non-PCI-having architectures will require a similar split.

These #include files are not referenced by any (committed) Makefiles or
header files, yet. Changes to Makefiles, to <sys/bus.h>, and to some
more machine-dependent files will dribble in before I throw the switch.
 1.6 04-Sep-2001  simonb branches: 1.6.6;
Remove some more useless RCS ids.
 1.5 22-Feb-2000  soda branches: 1.5.6; 1.5.10;
merge changes between OpenBSD-2.1 and OpenBSD-2.6
 1.4 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/cdefs.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.5.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.5.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.6.1 22-Feb-2000  bouyer file cdefs.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.6.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.6.6.1 04-Sep-2001  simonb file cdefs.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.21 15-Nov-2005  tsutsui Remove MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV macro and
use MIPS_INT_MASK_5 and MIPS3_HARD_INT_MASK directly.
They were not used since interrupt service function was
moved from MI mips/trap.c to MD part long ago.
 1.20 15-Nov-2005  tsutsui Remove COPY_SIGCODE definition, which is not used anywhere.
 1.19 05-Nov-2005  tsutsui branches: 1.19.2;
Adapt arc port to the new MI mips3 wired map functions.
Tested on NEC-RD94 with several PCI and jazzio devices.
 1.18 22-Jan-2005  tsutsui branches: 1.18.8;
- remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.17 04-Sep-2001  simonb branches: 1.17.6; 1.17.22; 1.17.30;
Centralise struct cpu_info declaration and related info to <mips/cpu.h>.
 1.16 30-May-2001  mrg branches: 1.16.2;
use _KERNEL_OPT
 1.15 26-May-2000  thorpej branches: 1.15.6; 1.15.8;
First sweep at scheduler state cleanup. Collect MI scheduler
state into global and per-CPU scheduler state:

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

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

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

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

Tested on i386 and Alpha. Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.
 1.14 09-May-2000  soda back out previous changes as stopgap.
arc port still relies on MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV.
(cpu_intr() of arc port should be rewritten completely, but not yet.)
 1.13 05-May-2000  soren MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV are deprecated.
 1.12 15-Apr-2000  soda remove following symbols which became unnecessary in recent cpu_intr() change:
mips_hardware_intr
MIPS3_INTERNAL_TIMER_INTERRUPT
mips3_intr_cycle_count
mips3_timer_delta
 1.11 30-Mar-2000  soren machine/cpu.h includes mips/cpuregs.h.
 1.10 24-Mar-2000  soren Revert previous.
 1.9 24-Mar-2000  soren Move sysctl definitions from arch/mips to arch/foo.
 1.8 22-Feb-2000  soda merge changes between OpenBSD-2.1 and OpenBSD-2.6
 1.7 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.6 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/cpu.h,v
 1.5 16-Jun-1997  jonathan Yet more merging:
* Move declaration of locore communcation variables (CPU family,
cache sizes, etc) to mips/include/locore.h. Delete from
pmax/include/cpu.h and older versions from pica/include/cpu.h.

* Move definitions of CLKF_BASEPRI, CLKF_USERMODE to mips/include/cpu.
* Delete duplicate definitions in pica/include/cpu.h, pmax/include/cpu.h.
 1.4 11-Aug-1996  jonathan * Apply LOCORE -> _LOCORE change so locore.S doesn't #include struct
definitions.

* Include <mips/cpuregs.h> in <cpu.h> so kern_clock.c has user/kernel
status bits in scope. Still needs work; r2k/r4k previous-mode bits
are different.

* Include <mips/mips_param.h> in pica/include/param.h, for locore declarations,
and definitions of vm and other constants that should be shared across
NetBSD/mips systems to esnsure user-level binary compatibility.
 1.3 31-Mar-1996  jonathan fix "#define #define CLKF_USERMODE" typo.
 1.2 24-Mar-1996  jonathan Replace pica and pmax include/cpu.h with versions that #include <mips/cpu.h>,
and add port-specific and r3k vs. r4k definitions.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.15.8.1 21-Jun-2001  nathanw Catch up to -current.
 1.15.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.15.6.1 26-May-2000  bouyer file cpu.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.16.2.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.17.30.1 29-Apr-2005  kent sync with -current
 1.17.22.3 11-Dec-2005  christos Sync with head.
 1.17.22.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.17.22.1 24-Jan-2005  skrll Sync with HEAD.
 1.17.6.2 04-Sep-2001  simonb Centralise struct cpu_info declaration and related info to <mips/cpu.h>.
 1.17.6.1 04-Sep-2001  simonb file cpu.h was added on branch nathanw_sa on 2001-09-04 06:19:23 +0000
 1.18.8.1 21-Jun-2006  yamt sync with head.
 1.19.2.1 22-Nov-2005  yamt sync with head.
 1.1 05-Feb-2003  nakayama Replace machine/rnd.h with more appropriate name to share it
with cycle counter based microtime in kern/kern_microtime.c.
 1.2 30-Mar-2000  soren machine/cpu.h includes mips/cpuregs.h.
 1.1 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.5 09-Jul-2011  matt Default to DB_ELF_SYMBOLS and DB_ELFSIZE 32
 1.4 04-Sep-2001  simonb branches: 1.4.6;
Standardise the format of MIPS' <machine/db_machdep.h>.
 1.3 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.2 22-Feb-2000  soda branches: 1.2.6; 1.2.10;
merge changes between OpenBSD-2.1 and OpenBSD-2.6
 1.1 22-Feb-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.1 22-Feb-2000  soda OpenBSD-2.6/arc
 1.2.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.2.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.6.1 22-Feb-2000  bouyer file db_machdep.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.4.6.2 04-Sep-2001  simonb Standardise the format of MIPS' <machine/db_machdep.h>.
 1.4.6.1 04-Sep-2001  simonb file db_machdep.h was added on branch nathanw_sa on 2001-09-04 07:43:30 +0000
 1.13 15-Jun-2020  tsutsui Drop compat support for OpenBSD/arc disks.

Note OpenBSD/arc was discontinued after 1998.
Tested on GXemul and ok'ed by soda@.
 1.12 16-May-2013  christos Complete the dosparts -> mbrparts conversion. Only x86k new uses dosparts
because it also uses struct dos_partition.
 1.11 30-Aug-2011  bouyer branches: 1.11.2; 1.11.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.10 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.9 11-Dec-2005  christos branches: 1.9.78;
merge ktrace-lwp.
 1.8 12-Jun-2005  dyoung Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/. That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such. I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
 1.7 08-Oct-2003  lukem Overhaul MBR handling (part 1):

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

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

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

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

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

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

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

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

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

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

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


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
 1.6 10-May-2003  thorpej branches: 1.6.2;
Remove redundant bounds_check_with_label() prototype.
 1.5 22-Feb-2000  soda branches: 1.5.6;
merge changes between OpenBSD-2.1 and OpenBSD-2.6
 1.4 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/disklabel.h,v
 1.2 07-Jul-1998  thorpej Use fixed-size types.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.5.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.6.1 22-Feb-2000  bouyer file disklabel.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.6.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.6.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.2.1 03-Aug-2004  skrll Sync with HEAD
 1.9.78.1 11-Mar-2010  yamt sync with head
 1.11.12.1 23-Jun-2013  tls resync from head
 1.11.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.5 01-Jul-2006  tsutsui Remove obsolete display.h.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.46; 1.4.60; 1.4.64; 1.4.72;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/display.h,v
 1.2 16-Jul-1996  thorpej RCS id police.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.72.1 13-Jul-2006  gdamore Merge from HEAD.
 1.4.64.1 11-Aug-2006  yamt sync with head
 1.4.60.1 09-Sep-2006  rpaulo sync with head
 1.4.46.1 30-Dec-2006  yamt sync with head.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file display.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.2 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.2 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.2 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.2 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.6 04-Sep-2001  simonb branches: 1.6.6;
Remove unneeded RCS header.
 1.5 23-Jan-2000  soda branches: 1.5.6; 1.5.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.4 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/ecoff_machdep.h,v
 1.3 26-Sep-1996  cgd since these just included mips/ecoff.h, they need to be changed to include
mips/ecoff_machdep.h.
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.5.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.5.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.6.1 23-Jan-2000  bouyer file ecoff_machdep.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.6.6.2 04-Sep-2001  simonb Remove unneeded RCS header.
 1.6.6.1 04-Sep-2001  simonb file ecoff_machdep.h was added on branch nathanw_sa on 2001-09-04 06:24:55 +0000
 1.2 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.2 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.5 16-Dec-2009  matt Fix various build with the 32bit mips ports after the mips64 merge.
 1.4 31-Jan-2000  soda branches: 1.4.6; 1.4.136; 1.4.154;
ELF*_MACHDEP_ENDIANNESS was undefined.
 1.3 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.2 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/elf_machdep.h,v
 1.1 26-Sep-1996  cgd add and use a machine-dependent header, which currently defines some
macros to use to remove #ifdefs from the machine ID case check.
Eventually, these headers will contain other information, e.g.
machine-dependent relocation information, etc.
 1.4.154.1 22-Aug-2009  matt Move ELF{32,64}_MACHDEP_ENDIANNESS to <mips/elf_machdep.h>
 1.4.136.1 11-Mar-2010  yamt sync with head
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 31-Jan-2000  bouyer file elf_machdep.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.9 17-Mar-2000  mycroft branches: 1.9.6;
In the `MY THAT'S GROSS' department...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
 1.8 16-Mar-2000  mycroft Foolish consistency. Mainly, always use underscores and sys/endian.h.
 1.7 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.6 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/endian.h,v
 1.5 24-Jan-1999  mycroft Format consistency.
 1.4 20-Oct-1997  jonathan * Use ANSI-clean names for host-specific byte-order definition
(_BYTE_ORDER, _BIG_ENDIAN, _LITTLE_ENDIAN).
Define old names from the ANSI ones if not _POSIX_SOURCE.
* Define _QUAD_HIGHWORD and _QUAD_LOWWORD properly when
_BYTE_ORDER == _BIG_ENDIAN.
 1.3 17-Oct-1997  jonathan Add bi-endian support to mips locore, <mips/endian.h>, and mips_opcode.h.
Derived from a change request (PR port-mips/4277) from
Tsubai Masanari, (tsubai@iri.co.jp).
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.9.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.9.6.1 17-Mar-2000  bouyer file endian.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.1 17-Mar-2000  mycroft branches: 1.1.6;
In the `MY THAT'S GROSS' department...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
 1.1.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.6.1 17-Mar-2000  bouyer file endian_machdep.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.2 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1 21-Dec-2015  christos branches: 1.1.2; 1.1.18;
Add mips fenv.h (From FreeBSD)
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 21-Dec-2015  jdolecek file fenv.h was added on branch tls-maxphys on 2017-12-03 11:35:50 +0000
 1.1.2.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.1.2.1 21-Dec-2015  skrll file fenv.h was added on branch nick-nhusb on 2015-12-27 12:09:29 +0000
 1.5 04-Sep-2001  simonb branches: 1.5.6;
Remove some more useless RCS ids.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/float.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file float.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.5.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.5.6.1 04-Sep-2001  simonb file float.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.2 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.2 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.3 23-Jan-2000  soda branches: 1.3.6;
Moved from /cvsroot/syssrc/sys/arch/pica/include/ieee.h,v
 1.2 30-Aug-1999  mycroft A foolish consistency.
 1.1 29-Aug-1999  mycroft Add ieee.h.
 1.3.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.3.6.1 23-Jan-2000  bouyer file ieee.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.6 04-Sep-2001  simonb branches: 1.6.6;
Clean up.
 1.5 23-Jan-2000  soda branches: 1.5.6; 1.5.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.4 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/ieeefp.h,v
 1.3 05-Jan-1998  perry RCSID Police.
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.5.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.5.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.6.1 23-Jan-2000  bouyer file ieeefp.h was added on branch thorpej_scsipi on 2000-11-20 20:00:35 +0000
 1.6.6.2 04-Sep-2001  simonb Clean up.
 1.6.6.1 04-Sep-2001  simonb file ieeefp.h was added on branch nathanw_sa on 2001-09-04 06:26:19 +0000
 1.1 14-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
Add definitions of C99 integer constant macros.
 1.1.12.2 14-Apr-2001  kleink Add definitions of C99 integer constant macros.
 1.1.12.1 14-Apr-2001  kleink file int_const.h was added on branch nathanw_sa on 2001-04-14 22:38:35 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 14-Apr-2001  bouyer file int_const.h was added on branch thorpej_scsipi on 2001-04-21 17:53:08 +0000
 1.1 15-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.2 15-Apr-2001  kleink Add definitions of C99 integer format conversion macros.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.1 15-Apr-2001  kleink file int_fmtio.h was added on branch nathanw_sa on 2001-04-15 17:13:07 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 15-Apr-2001  bouyer file int_fmtio.h was added on branch thorpej_scsipi on 2001-04-21 17:53:09 +0000
 1.1 15-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
Add definitions of C99 specified-width integer type limits.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.2 15-Apr-2001  kleink Add definitions of C99 specified-width integer type limits.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.1 15-Apr-2001  kleink file int_limits.h was added on branch nathanw_sa on 2001-04-15 15:29:04 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 15-Apr-2001  bouyer file int_limits.h was added on branch thorpej_scsipi on 2001-04-21 17:53:09 +0000
 1.1 14-Apr-2001  kleink branches: 1.1.2; 1.1.4; 1.1.12;
Add definitions of C99 minimum-width and greatest-width integer types.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.2 14-Apr-2001  kleink Add definitions of C99 minimum-width and greatest-width integer types.
XXX Fastest minimum-width integer types haven't been decided upon yet.
 1.1.12.1 14-Apr-2001  kleink file int_mwgwtypes.h was added on branch nathanw_sa on 2001-04-14 12:19:51 +0000
 1.1.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.1.2.2 21-Apr-2001  bouyer Sync with HEAD
 1.1.2.1 14-Apr-2001  bouyer file int_mwgwtypes.h was added on branch thorpej_scsipi on 2001-04-21 17:53:09 +0000
 1.1 26-Jun-2000  kleink branches: 1.1.2;
Add <machine/int_types.h>, which provides namespace-pure definitions
of exact-width integer types.
 1.1.2.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.2.1 26-Jun-2000  bouyer file int_types.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.24 16-Nov-2011  he Make sure "struct clockframe" is declared before declaring a
parameter as a pointer to that struct; fixes build problem for
getfstypename.c as part of libkern.
 1.23 20-Feb-2011  matt branches: 1.23.4;
Merge forward from matt-nb5-mips64.
Adapt to new interrupt/spl framework.
Add LP64 support.
 1.22 28-Apr-2008  martin branches: 1.22.18; 1.22.22; 1.22.28; 1.22.30;
Remove clause 3 and 4 from TNF licenses
 1.21 03-Dec-2007  ad branches: 1.21.14; 1.21.16; 1.21.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.20 17-Oct-2007  garbled branches: 1.20.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.19 17-Jun-2007  tsutsui branches: 1.19.8; 1.19.10;
Move declaretions of _spl*() and _{clr,set}softintr() functions
(which are in mips/locore.S) into <mips/locore.h>
from various MD files.
 1.18 16-Feb-2007  ad branches: 1.18.6; 1.18.8; 1.18.14;
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.17 21-Dec-2006  yamt merge yamt-splraiseipl branch.

- finish implementing splraiseipl (and makeiplcookie).
http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
- complete workqueue(9) and fix its ipl problem, which is reported
to cause audio skipping.
- fix netbt (at least compilation problems) for some ports.
- fix PR/33218.
 1.16 24-Jun-2006  tsutsui branches: 1.16.4; 1.16.6;
Misc minor cleanup for arc interrupt handlers:
- always enable options MIPS3_ENABLE_CLOCK_INTR and just clear the compare
register in cpu_intr() to make CLKF_BASE() works
properly
- prepare only possible number of cpu_inttab
- use macro for interrupt priority number passed to arc_set_intr()
to avoid confusion
- merge arc_hardware_intr() into cpu_intr()
- check independent timer interrupt first in cpu_intr()
- tweak MIPS_SR_INT_IE before calling hardclock timer handlers so that
spllowersoftclock(9) will be invoked properly in hardclock(9)
- reenable interrupt for timer in cpu_intr() rather than each timer handlers

okay'ed by soda.

Note the real fix is to make CLKF_BASE() check all independent
interrupt sources including jazz and isa devices.
 1.15 17-Jun-2006  tsutsui Remove extern from function declarations.
 1.14 11-Dec-2005  christos branches: 1.14.4; 1.14.8; 1.14.14; 1.14.16;
merge ktrace-lwp.
 1.13 22-Jan-2005  tsutsui branches: 1.13.8;
Make all intr_mask value types uint32_t rather than int, u_int,
or unsigned etc.
 1.12 22-Jan-2005  tsutsui - remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.11 25-May-2003  tsutsui branches: 1.11.2; 1.11.10;
Add generic software interrupt support with mips/softintr.c.
 1.10 13-Jun-2001  soda branches: 1.10.8; 1.10.12;
introduce "struct platform", and remove "cputype" variable.

this change also includes a patch to obtain secondary cache size
from ARC firmware by Bob Meader, which was posted on port-arc on 18 Aug 2000.
this should make NEC Express RISCserver work.

this change obtains ID of display controller from ARC firmware, too.
 1.9 13-Apr-2001  thorpej Remove the use of splimp() from the NetBSD kernel. splnet()
and only splnet() is allowed for the protection of data structures
used by network devices.
 1.8 12-Apr-2001  thorpej splvec.splimp -> splvec.splvm
 1.7 14-Jan-2001  thorpej branches: 1.7.2;
Make sure everybody has an splvm() and equate it with splimp() (splimp()
is the historical name for this interrupt level, and the historical name
is going to go away in the near future).
 1.6 22-Aug-2000  thorpej branches: 1.6.2;
Add spllock(). See spl(9) for details.
 1.5 21-Aug-2000  thorpej Make sure we provide splsched() as described in spl(9).
 1.4 15-Apr-2000  soda remove following symbols which became unnecessary in recent cpu_intr() change:
mips_hardware_intr
MIPS3_INTERNAL_TIMER_INTERRUPT
mips3_intr_cycle_count
mips3_timer_delta
 1.3 03-Apr-2000  soda splsoftnet() should block softclock() too.
 1.2 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.2 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.6.2.4 21-Apr-2001  bouyer Sync with HEAD
 1.6.2.3 18-Jan-2001  bouyer Sync with head (for UBC+NFS fixes, mostly).
 1.6.2.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.2.1 22-Aug-2000  bouyer file intr.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.7.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.10.12.1 17-Mar-2002  thorpej IPL_IMP -> IPL_VM
 1.10.8.2 13-Jun-2001  soda introduce "struct platform", and remove "cputype" variable.

this change also includes a patch to obtain secondary cache size
from ARC firmware by Bob Meader, which was posted on port-arc on 18 Aug 2000.
this should make NEC Express RISCserver work.

this change obtains ID of display controller from ARC firmware, too.
 1.10.8.1 13-Jun-2001  soda file intr.h was added on branch nathanw_sa on 2001-06-13 15:08:07 +0000
 1.11.10.1 29-Apr-2005  kent sync with -current
 1.11.2.1 24-Jan-2005  skrll Sync with HEAD.
 1.13.8.5 07-Dec-2007  yamt sync with head
 1.13.8.4 03-Sep-2007  yamt sync with head.
 1.13.8.3 26-Feb-2007  yamt sync with head.
 1.13.8.2 30-Dec-2006  yamt sync with head.
 1.13.8.1 21-Jun-2006  yamt sync with head.
 1.14.16.1 13-Jul-2006  gdamore Merge from HEAD.
 1.14.14.1 19-Jun-2006  chap Sync with head.
 1.14.8.1 26-Jun-2006  yamt sync with head.
 1.14.4.1 09-Sep-2006  rpaulo sync with head
 1.16.6.3 22-Sep-2006  yamt add SI_QUEUENAMES missed in the previous.
 1.16.6.2 22-Sep-2006  yamt fix softintr for following ports. (hopefully)
hpcmips
evbmips
algor
arc
ews4800mips
newsmips
 1.16.6.1 21-Sep-2006  yamt - implement splraiseipl for algor, arc, ews4800mips, hpcmips, and newsmips.
- tweak evbmips version to match with others.
XXX i think these ought to be merged.
 1.16.4.1 12-Jan-2007  ad Sync with head.
 1.18.14.1 26-Jun-2007  garbled Sync with HEAD.
 1.18.8.1 11-Jul-2007  mjf Sync with head.
 1.18.6.2 03-Dec-2007  ad Sync with HEAD.
 1.18.6.1 15-Jul-2007  ad Sync with head.
 1.19.10.2 09-Jan-2008  matt sync with HEAD
 1.19.10.1 06-Nov-2007  matt sync with HEAD
 1.19.8.1 09-Dec-2007  jmcneill Sync with HEAD.
 1.20.2.1 08-Dec-2007  mjf Sync with HEAD.
 1.21.18.1 16-May-2008  yamt sync with head.
 1.21.16.1 18-May-2008  yamt sync with head.
 1.21.14.1 02-Jun-2008  mjf Sync with HEAD.
 1.22.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.22.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.22.22.1 05-Mar-2011  rmind sync with head
 1.22.18.2 29-Dec-2010  matt Adapt to the new interrupt structure.
 1.22.18.1 06-Feb-2010  matt <mips/softintr.h> is no longer needed.
 1.23.4.1 17-Apr-2012  yamt sync with head
 1.18 03-May-2022  andvar fix various typos, mainly s/trasfering/transferring/ and s/theese/these/.
 1.17 18-Oct-2016  jdolecek add isa_intr_establish_xname() to MD isa headers so that it can be used
by MI drivers
 1.16 27-Oct-2012  chs branches: 1.16.14; 1.16.18;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.15 06-Mar-2011  tsutsui branches: 1.15.4; 1.15.14;
Remove trailing spaces.
 1.14 19-Aug-2009  dyoung branches: 1.14.4; 1.14.6;
(Re-)define isa_detach_hook(), and define isa_dmadestroy(). Update
some isa_chipset_tag_t->ic_detach_hook() definitions.
 1.13 12-Jun-2006  tsutsui branches: 1.13.64;
Account ISA interrupts by evcnt(9)
 1.12 12-Jun-2006  tsutsui - rename struct intrhand -> struct isa_intrhand
- remove unused ih_what member
 1.11 11-Dec-2005  christos branches: 1.11.4; 1.11.8; 1.11.14;
merge ktrace-lwp.
 1.10 03-Jun-2005  tsutsui branches: 1.10.2;
Add const.
 1.9 13-Feb-2004  wiz Uppercase CPU, plural is CPUs.
 1.8 14-Jun-2003  tsutsui branches: 1.8.2;
Add isa_intr_alloc() for isapnp support.
 1.7 09-May-2003  fvdl A few ISA sound drivers like to share dma channels, and hence deferred
isa_dmamap_create() calls to their open/close entrypoints. This worked
with some luck, but broke on i386 when _bus_dmamap_create started
to allocate bounce buffers upfront, since memory below 16M may well
not be available when the sound devices is opened for the Nth time.

To fix this, create a new simple interface, isa_drq_alloc/isa_drq_free,
wrappers around already existing bitmask macros. These are expected
to be used before an isa_dmamap_create call, and after an
isa_dmamap_destroy call, respectively. For the sb and ad1848 drivers,
they're deferred until open/close.

All isa_dmamap_create calls can now use BUS_DMA_ALLOCNOW and be done
at attach time.
 1.6 20-Jun-2000  soda branches: 1.6.2; 1.6.4;
for DeskStation RPC44
 1.5 09-Jun-2000  soda - NEC RISCstation 2250 (RD-94) PCI bus support,
contributed by Shuichiro URATA <ur@a-r.org>.
- Experimental coding for NEC RISCserver 2200 and RISCstation 2200.
(doesn't really work)
 1.4 04-Jun-2000  cgd Implement the more flexiable `evcnt' interface as discussed (briefly) on
tech-kern and now documented in evcnt(9).
 1.3 01-Jun-2000  cgd kill __P in these files. (I had to look at them anyway with an eye for
adding some protos... and adding them with __P seems wrong, but mixing
__P and not __P in the same file seems wrong too, so...)
 1.2 23-Jan-2000  soda branches: 1.2.2;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.2 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/arc/isa/isa_machdep.h,v
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.2.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.6.4.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.4.1 20-Jun-2000  bouyer file isa_machdep.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.6.2.2 20-Jun-2000  soda for DeskStation RPC44
 1.6.2.1 20-Jun-2000  soda file isa_machdep.h was added on branch netbsd-1-5 on 2000-06-20 08:26:55 +0000
 1.8.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.8.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.8.2.1 03-Aug-2004  skrll Sync with HEAD
 1.10.2.1 21-Jun-2006  yamt sync with head.
 1.11.14.1 19-Jun-2006  chap Sync with head.
 1.11.8.1 26-Jun-2006  yamt sync with head.
 1.11.4.1 09-Sep-2006  rpaulo sync with head
 1.13.64.1 19-Aug-2009  yamt sync with head.
 1.14.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.14.4.1 21-Apr-2011  rmind sync with head
 1.15.14.2 03-Dec-2017  jdolecek update from HEAD
 1.15.14.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.15.4.1 30-Oct-2012  yamt sync with head
 1.16.18.1 04-Nov-2016  pgoyette Sync with HEAD
 1.16.14.1 05-Dec-2016  skrll Sync with HEAD
 1.3 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.2 01-Jun-2000  cgd branches: 1.2.4; 1.2.130; 1.2.132; 1.2.134;
kill __P in these files. (I had to look at them anyway with an eye for
adding some protos... and adding them with __P seems wrong, but mixing
__P and not __P in the same file seems wrong too, so...)
 1.1 23-Jan-2000  soda branches: 1.1.2;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.2.134.1 16-May-2008  yamt sync with head.
 1.2.132.1 18-May-2008  yamt sync with head.
 1.2.130.1 02-Jun-2008  mjf Sync with HEAD.
 1.2.4.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.4.1 01-Jun-2000  bouyer file isapnp_machdep.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.4 11-Dec-2005  christos merge ktrace-lwp.
 1.3 02-Jul-2004  drochner just include <sys/joystick.h>
 1.2 22-Feb-2000  soda branches: 1.2.6; 1.2.30;
merge changes between OpenBSD-2.1 and OpenBSD-2.6
 1.1 22-Feb-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.1 22-Feb-2000  soda OpenBSD-2.6/arc
 1.2.30.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.30.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.30.1 03-Aug-2004  skrll Sync with HEAD
 1.2.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.6.1 22-Feb-2000  bouyer file joystick.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.5 01-Jan-2022  andvar fix typos in word "diagnostic".
 1.4 23-Jan-2000  soda branches: 1.4.6;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/kbdreg.h,v
 1.2 16-Jul-1996  thorpej RCS id police.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file kbdreg.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.3 23-Jan-2000  soda branches: 1.3.6;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.2 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/kcore.h,v
 1.1 19-Feb-1998  thorpej branches: 1.1.1;
Use the generic NetBSD/mips crash dump code.
 1.1.1.2 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.3.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.3.6.1 23-Jan-2000  bouyer file kcore.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.5 04-Sep-2001  simonb branches: 1.5.6;
More RCS ID cleanup.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/kdbparam.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file kdbparam.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.5.6.2 04-Sep-2001  simonb More RCS ID cleanup.
 1.5.6.1 04-Sep-2001  simonb file kdbparam.h was added on branch nathanw_sa on 2001-09-04 07:22:04 +0000
 1.6 31-Aug-2001  simonb branches: 1.6.6;
G/C the unused kernel-only CLK_TCK #define.

XXX: does include/time.h still need <machine/limits.h>?
 1.5 23-Jan-2000  soda branches: 1.5.6; 1.5.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.4 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/limits.h,v
 1.3 09-Jan-1998  perry multiple include protect machine/limits.h, fixes pr 4473 (from Mika Nystrom)
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.5.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.5.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.6.1 23-Jan-2000  bouyer file limits.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.6.6.2 31-Aug-2001  simonb G/C the unused kernel-only CLK_TCK #define.

XXX: does include/time.h still need <machine/limits.h>?
 1.6.6.1 31-Aug-2001  simonb file limits.h was added on branch nathanw_sa on 2001-08-31 03:46:04 +0000
 1.2 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.2 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.5 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.4 28-Apr-2008  martin branches: 1.4.44; 1.4.60;
Remove clause 3 and 4 from TNF licenses
 1.3 25-Jan-2006  christos branches: 1.3.72; 1.3.74; 1.3.76;
free -> dealloc
unsigned -> size_t for alloc/dealloc
 1.2 11-Dec-2005  christos branches: 1.2.2;
merge ktrace-lwp.
 1.1 18-Apr-2005  tsutsui branches: 1.1.2; 1.1.4; 1.1.10;
Add a long-awaited standalone boot program for arc port to load
ELF kernels instead of booting ECOFF kernels directly by ARCBIOS.
Tested on my NEC-J96A and NEC-JC94, and ok'ed by soda.

XXX: Maybe we should share some of these sources with sgimips
XXX: (in sys/dev/arcbios/stand?)
 1.1.10.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.10.1 18-Apr-2005  skrll file loadfile_machdep.h was added on branch ktrace-lwp on 2005-11-10 13:55:09 +0000
 1.1.4.1 21-Jun-2006  yamt sync with head.
 1.1.2.2 29-Apr-2005  kent sync with -current
 1.1.2.1 18-Apr-2005  kent file loadfile_machdep.h was added on branch kent-audio2 on 2005-04-29 11:28:01 +0000
 1.2.2.1 01-Feb-2006  yamt sync with head.
 1.3.76.1 16-May-2008  yamt sync with head.
 1.3.74.1 18-May-2008  yamt sync with head.
 1.3.72.1 02-Jun-2008  mjf Sync with HEAD.
 1.4.60.1 10-Aug-2014  tls Rebase.
 1.4.44.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2 31-Aug-2001  simonb branches: 1.2.6;
Remove an unneeded comment; ``sync'' with other "just include <mips/foo.h>"
files.
 1.1 29-Apr-2000  thorpej branches: 1.1.6; 1.1.10;
Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED. These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case). Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.

These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
 1.1.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.1.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.6.1 29-Apr-2000  bouyer file lock.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.2.6.2 31-Aug-2001  simonb Remove an unneeded comment; ``sync'' with other "just include <mips/foo.h>"
files.
 1.2.6.1 31-Aug-2001  simonb file lock.h was added on branch nathanw_sa on 2001-08-31 03:53:23 +0000
 1.1 09-Sep-2006  gdamore branches: 1.1.2; 1.1.6; 1.1.10;
Add <machine/locore.h>, used by some other common MIPS code.
 1.1.10.2 30-Dec-2006  yamt sync with head.
 1.1.10.1 09-Sep-2006  yamt file locore.h was added on branch yamt-lazymbuf on 2006-12-30 20:45:29 +0000
 1.1.6.1 18-Nov-2006  ad Sync with head.
 1.1.2.2 14-Sep-2006  yamt sync with head.
 1.1.2.1 09-Sep-2006  yamt file locore.h was added on branch yamt-pdpolicy on 2006-09-14 12:31:07 +0000
 1.1 30-Nov-2024  christos branches: 1.1.4;
Create a new header lwp_private.h to contain _lwp_getprivate_fast,
_lwp_gettcb_fast, _lwp_settcb and remove them from mcontext.h, so that:
1. we don't need special hacks to hide them
2. we can include <lwp.h> where needed to get the necessary prototypes
without redefining them locally.
 1.1.4.2 02-Aug-2025  perseant Sync with HEAD
 1.1.4.1 30-Nov-2024  perseant file lwp_private.h was added on branch perseant-exfatfs on 2025-08-02 05:55:25 +0000
 1.1 26-Jan-2000  kleink branches: 1.1.6;
Add missing wrapper header.
 1.1.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.6.1 26-Jan-2000  bouyer file math.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.2 17-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.1 17-Nov-2001  wdk branches: 1.1.2;
file mcontext.h was initially added on branch nathanw_sa.
 1.1.2.1 17-Nov-2001  wdk mcontext support for MIPS based ports.
 1.2 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 23-Jan-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.2 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.1 23-Jan-2000  soda OpenBSD-2.1/arc
 1.6 04-Sep-2001  simonb branches: 1.6.6;
Remove some more useless RCS ids.
 1.5 17-Feb-2001  tsutsui branches: 1.5.4;
Fix include path.
(mips/include/mips_opcode.h -> mips/mips_opcode.h)
 1.4 23-Jan-2000  soda branches: 1.4.6;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/mips_opcode.h,v
 1.2 16-Jul-1996  thorpej RCS id police.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.6.3 12-Mar-2001  bouyer Sync with HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file mips_opcode.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.5.4.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.6.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.6.6.1 04-Sep-2001  simonb file mips_opcode.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.2 23-Jan-2000  soda branches: 1.2.6;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.2 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/mouse.h,v
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.2.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.2.6.1 23-Jan-2000  bouyer file mouse.h was added on branch thorpej_scsipi on 2000-11-20 20:00:36 +0000
 1.2 09-Feb-2007  ad branches: 1.2.4;
Merge newlock2 to head.
 1.1 22-Dec-2006  ad branches: 1.1.2;
file mutex.h was initially added on branch newlock2.
 1.1.2.1 22-Dec-2006  ad Pull in CPU specific stubs.
 1.2.4.2 26-Feb-2007  yamt sync with head.
 1.2.4.1 09-Feb-2007  yamt file mutex.h was added on branch yamt-lazymbuf on 2007-02-26 09:05:51 +0000
 1.2 20-Feb-2011  matt Merge forward from matt-nb5-mips64.
Adapt to new interrupt/spl framework.
Add LP64 support.
 1.1 28-Feb-2010  matt branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
file netbsd32_machdep.h was initially added on branch matt-nb5-mips64.
 1.1.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.1.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.1.4.1 05-Mar-2011  rmind sync with head
 1.1.2.1 28-Feb-2010  matt arc64 needs a <machine/netbsd32_machdep.h>
 1.33 07-Apr-2019  thorpej G/C some obsolete definitions (we haven't had a fixed u. for quite
some time).
 1.32 07-Feb-2019  mrg remove stuff provided by generic mips headers
 1.31 07-Jan-2019  jdolecek move DEV_BSIZE, DEV_BSHIFT out of MD param.h, they are same on all ports

also move BLKDEV_IOSIZE, MAXPHYS, but allow override since some ports
have different value (powerpc uses NBPG for BLKDEV_IOSIZE, sun2/sun3
have lower MAXPHYS)
 1.30 13-Jul-2016  maya branches: 1.30.16; 1.30.18;
Avoid redefining UPAGES
(now defined in mips/mips_param.h)

Fixes build
 1.29 18-Mar-2011  tsutsui branches: 1.29.14; 1.29.32;
- no need to define MACHINE_ARCH in MD header
- include <mips/mips_param.h> after MACHINE is defined
 1.28 06-Mar-2011  he Now that MACHINE is defined in user-land in either
mips/include/mips_param.h or powerpc/include/param.h, stop
trying to re-define it in the port-specific param.h files
when _KERNEL isn't defined.
 1.27 08-Feb-2011  rmind Remove clause 3 (UCB advertising clause) from the University of Utah
copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.
 1.26 08-Feb-2010  joerg branches: 1.26.2; 1.26.4; 1.26.6;
Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
 1.25 13-Aug-2009  matt branches: 1.25.2;
Move MID_MACHINE to <mips/mips_param.h> and use local values so we don't
need to include exec_aout.h
 1.24 11-Dec-2005  christos branches: 1.24.78; 1.24.96;
merge ktrace-lwp.
 1.23 06-Nov-2005  tsutsui Bump MAXPHYS from 32K to 64K.
asc.c has now its own asc_minphys(), and both osiop and oosiop at jazzio
work fine with 64K MAXPHYS.
 1.22 30-Oct-2005  tsutsui Use new delay(9) for DELAY(9).
 1.21 30-Oct-2005  tsutsui - use mips3_cp0_count_read() for delay(9).
- delay(9) should take unsigned int, not int.
 1.20 22-Jan-2005  tsutsui branches: 1.20.8; 1.20.10;
- remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.19 07-Aug-2003  agc branches: 1.19.8;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.18 27-Apr-2003  tsutsui branches: 1.18.2;
Remove register declarations.
 1.17 29-Dec-2002  tsutsui Wrap DELAY() macro with do { } while (/*CONSTCOND*/ 0).
 1.16 26-Feb-2002  simonb Purge CLSIZE, CLSIZELOG2 and MCLOFSET.
Be consistant in the way that MSIZE, MCLSHIFT, MCLBYTES and NMBCLUSTERS
are defined.
Remove old VM constants from cesfic port.
Bump MSIZE to 256 on mipsco (the only one that wasn't already 256).
 1.15 30-May-2001  mrg branches: 1.15.2; 1.15.8;
use _KERNEL_OPT
 1.14 30-Jun-2000  itojun branches: 1.14.2; 1.14.4;
raise MSIZE from 128 to 256.
- for sizeof(void *) == 8 arch, this is mandatory. MHLEN is too small
already (less than 80) and there are chances for unwanted packet loss due
to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
(even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
extension header)

portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.
 1.13 11-Feb-2000  thorpej branches: 1.13.4;
Update for the NKMEMPAGES changes.
 1.12 27-Jan-2000  soda - _MACHINE_ARCH was undefined, MACHINE_ARCH was wrong.
- make "make includes" work
 1.11 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.10 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/param.h,v
 1.9 04-Dec-1999  ragge CL* discarding.
 1.8 29-Apr-1998  thorpej branches: 1.8.20;
Pull in opt_gateway.h as appropriate.
 1.7 20-Sep-1997  leo Move the definition of MSGBUFSIZE up to the machine-arch level if
possible. Pointed out by Bernd Ernesti.
 1.6 19-Sep-1997  leo Implement the kernel part of pr-1891. This allows for a more flexible sized
msgbuf. Note that old 'dmesg' and 'syslogd' binaries will continue running,
though old 'dmesg' binaries will output a few bytes of junk at the start of
the buffer, and will miss a few bytes at the end of the buffer.
 1.5 23-Jun-1997  jonathan branches: 1.5.4;
Apply sys/arch/mips changes (MACH_ -> MIPS_ or MIPS3_) changes to Pica port.
PICA Kernel compiles with warnings and links, otherwise untested.
 1.4 24-Feb-1997  fvdl Define ALIGNED_POINTER
 1.3 11-Aug-1996  jonathan branches: 1.3.6;
* Apply LOCORE -> _LOCORE change so locore.S doesn't #include struct
definitions.

* Include <mips/cpuregs.h> in <cpu.h> so kern_clock.c has user/kernel
status bits in scope. Still needs work; r2k/r4k previous-mode bits
are different.

* Include <mips/mips_param.h> in pica/include/param.h, for locore declarations,
and definitions of vm and other constants that should be shared across
NetBSD/mips systems to esnsure user-level binary compatibility.
 1.2 16-Jul-1996  thorpej RCS id police.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.3.6.1 12-Mar-1997  is Merge in changes from Trunk
 1.5.4.1 22-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.8.20.2 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.20.1 21-Dec-1999  wrstuden Initial commit of recent changes to make DEV_BSIZE go away.

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

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

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".
 1.13.4.1 23-Jul-2000  itojun pullup from main trunc (approved by releng-1-5)

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

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

1.1 -> 1.2 syssrc/sys/arch/amigappc/include/param.h
1.13 -> 1.14 syssrc/sys/arch/arc/include/param.h
1.1 -> 1.2 syssrc/sys/arch/arm26/include/param.h
1.17 -> 1.18 syssrc/sys/arch/arm32/include/param.h
1.6 -> 1.7 syssrc/sys/arch/bebox/include/param.h
1.4 -> 1.5 syssrc/sys/arch/cobalt/include/param.h
1.4 -> 1.5 syssrc/sys/arch/evbsh3/include/param.h
1.2 -> 1.3 syssrc/sys/arch/hpcmips/include/param.h
1.40 -> 1.41 syssrc/sys/arch/i386/include/param.h
1.7 -> 1.8 syssrc/sys/arch/m68k/include/param.h
1.9 -> 1.10 syssrc/sys/arch/macppc/include/param.h
1.4 -> 1.5 syssrc/sys/arch/mmeye/include/param.h
1.6 -> 1.7 syssrc/sys/arch/newsmips/include/param.h
1.7 -> 1.8 syssrc/sys/arch/ofppc/include/param.h
1.23 -> 1.24 syssrc/sys/arch/pc532/include/param.h
1.32 -> 1.33 syssrc/sys/arch/pmax/include/param.h
1.7 -> 1.8 syssrc/sys/arch/powerpc/include/param.h
1.1 -> 1.2 syssrc/sys/arch/prep/include/param.h
1.1 -> 1.2 syssrc/sys/arch/sgimips/include/param.h
1.3 -> 1.4 syssrc/sys/arch/sh3/include/param.h
1.44 -> 1.45 syssrc/sys/arch/sparc/include/param.h
1.21 -> 1.22 syssrc/sys/arch/sparc64/include/param.h
1.43 -> 1.44 syssrc/sys/arch/vax/include/param.h
 1.14.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.14.2.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.14.2.1 30-Jun-2000  bouyer file param.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.15.8.3 29-Dec-2002  thorpej Sync with HEAD.
 1.15.8.2 28-Feb-2002  nathanw Catch up to -current.
 1.15.8.1 30-May-2001  nathanw file param.h was added on branch nathanw_sa on 2002-02-28 04:07:14 +0000
 1.15.2.1 16-Mar-2002  jdolecek Catch up with -current.
 1.18.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.18.2.4 24-Jan-2005  skrll Sync with HEAD.
 1.18.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.18.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.18.2.1 03-Aug-2004  skrll Sync with HEAD
 1.19.8.1 29-Apr-2005  kent sync with -current
 1.20.10.1 02-Nov-2005  yamt sync with head.
 1.20.8.1 21-Jun-2006  yamt sync with head.
 1.24.96.1 22-Aug-2009  matt Move MACHINE_ARCH definition to <mips/mips_param.h>
Move mbuf related defines to <mips/mips_param.h>
 1.24.78.2 11-Mar-2010  yamt sync with head
 1.24.78.1 19-Aug-2009  yamt sync with head.
 1.25.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.26.6.1 17-Feb-2011  bouyer Sync with HEAD
 1.26.4.1 06-Jun-2011  jruoho Sync with HEAD.
 1.26.2.2 21-Apr-2011  rmind sync with head
 1.26.2.1 05-Mar-2011  rmind sync with head
 1.29.32.1 05-Oct-2016  skrll Sync with HEAD
 1.29.14.1 03-Dec-2017  jdolecek update from HEAD
 1.30.18.1 10-Jun-2019  christos Sync with HEAD
 1.30.16.1 18-Jan-2019  pgoyette Synch with HEAD
 1.5 04-Sep-2001  simonb branches: 1.5.6;
Remove some more useless RCS ids.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/pcb.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file pcb.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.5.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.5.6.1 04-Sep-2001  simonb file pcb.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.7 26-Feb-2019  msaitoh Whitespace change.
 1.6 13-Jun-2001  soda branches: 1.6.8; 1.6.214;
split pccons driver into "pccons" and "opms",
also split into bus-dependent frontend and bus-independent backend.
 1.5 11-May-2001  tsutsui - Declare pccnattach() in <machine/pccons.h>
- Make cpu_reboot() reset machines properly without pccons
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.8;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/pccons.h,v
 1.2 28-Mar-1996  jonathan Remove lint from pica kernel to compile with -Werror:
* Add cast to hardclock when it's used directly as an interrupt handler.
* Add a null-interrupt-establish function, to avoid int vs void lint
in pica/dev/dma.c.
* fix include in pica/include/pccons.h to work with "standard"
kernel-compile include path.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.8.1 21-Jun-2001  nathanw Catch up to -current.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file pccons.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.6.214.1 10-Jun-2019  christos Sync with HEAD
 1.6.8.2 13-Jun-2001  soda split pccons driver into "pccons" and "opms",
also split into bus-dependent frontend and bus-independent backend.
 1.6.8.1 13-Jun-2001  soda file pccons.h was added on branch nathanw_sa on 2001-06-13 15:05:48 +0000
 1.15 16-Aug-2022  skrll PRovide pci_intr_setattr
 1.14 16-Aug-2022  skrll Multiple inclusion protection.
 1.13 16-Aug-2022  skrll Whitespace
 1.12 07-Jul-2020  thorpej Overhaul the interface to pci_configure_bus():
- Don't expose how PCI bus configuration resource management is implemented.
Provide a new resource provider API:

==> pciconf_resource_init() -- Initialize a PCI configuration resources
container.
==> pciconf_resource_add() -- Add a PCI configuration resource to the
container (I/O, MEM, or prefetchable MEM). Multiple resources of
each type may be added.
==> pciconf_resource_fini() -- Tear down the PCI configurtation resources
container once the bus has been configured.

This is much easier to use than the previous method of providing an
extent map for each kind of resource, and works better for e.g. ACPI
platforms that provide potentially multiple PCI resources in tables
provided by firmware.

- Re-implement PCI configuration resource management using vmem arenas,
rather than extent maps.
 1.11 29-Mar-2014  christos make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.10 27-Oct-2012  chs branches: 1.10.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.9 04-Apr-2011  dyoung branches: 1.9.4; 1.9.10; 1.9.14;
Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args. Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
pci_intr_map() was a leftover from Xen 2. Probably a bug. I
stopped writing it. I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
Probably a bug. I use a temporary variable. I have not tested this
change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
Probably a bug. Use a local pci_attach_args. I have not tested
this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
caller's pci_attach_args. Probably a bug. Make a local copy of the
caller's pci_attach_args and modify the copy. I have not tested
this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
 1.8 15-Apr-2006  tsutsui branches: 1.8.88; 1.8.94;
Add support for pci_configure_bus(9) (a.k.a. options PCI_NETBSD_CONFIGURE)
so that PCI devices over ppb(4) work properly on PCI based NEC machines.

Tested on my NEC JC94 (Express5800/230) and 3Com 3C982-TXM,
which has a DEC/Intel 21154 PCI-PCI bridge and two 3C920 Ethernet chips.
 1.7 11-Dec-2005  christos branches: 1.7.4; 1.7.6; 1.7.8; 1.7.10; 1.7.12;
merge ktrace-lwp.
 1.6 22-Jan-2005  tsutsui branches: 1.6.8;
- remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.5 29-Jul-2004  drochner branches: 1.5.4;
remove now unnecessary "pci_enumerate_bus" definitions
 1.4 15-May-2002  thorpej branches: 1.4.10;
Let machine-dependent code specify how to enumerate the bus.
Currently, everyone uses pci_enumerate_bus_generic().
 1.3 15-May-2002  thorpej Implement pci_decompose_tag().
 1.2 13-Jan-2001  ur branches: 1.2.4; 1.2.8;
Adapt to pci_intr_map change.
 1.1 09-Jun-2000  soda branches: 1.1.4; 1.1.6;
NEC RISCstation 2250 (RD-94) PCI bus support,
contributed by Shuichiro URATA <ur@a-r.org>
 1.1.6.3 18-Jan-2001  bouyer Sync with head (for UBC+NFS fixes, mostly).
 1.1.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.6.1 09-Jun-2000  bouyer file pci_machdep.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.1.4.2 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.1.4.1 09-Jun-2000  minoura file pci_machdep.h was added on branch minoura-xpg4dl on 2000-06-22 16:59:14 +0000
 1.2.8.1 20-Jun-2002  nathanw Catch up to -current.
 1.2.4.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.10.4 24-Jan-2005  skrll Sync with HEAD.
 1.4.10.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.10.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.10.1 03-Aug-2004  skrll Sync with HEAD
 1.5.4.1 29-Apr-2005  kent sync with -current
 1.6.8.1 21-Jun-2006  yamt sync with head.
 1.7.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.7.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.7.8.1 24-May-2006  yamt sync with head.
 1.7.6.1 22-Apr-2006  simonb Sync with head.
 1.7.4.1 09-Sep-2006  rpaulo sync with head
 1.8.94.1 06-Jun-2011  jruoho Sync with HEAD.
 1.8.88.1 21-Apr-2011  rmind sync with head
 1.9.14.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.14.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.9.10.3 16-Aug-2022  skrll Remove commits to wrong branch.
 1.9.10.2 16-Aug-2022  skrll Multiple inclusion protection.
 1.9.10.1 16-Aug-2022  skrll Whitespace
 1.9.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.9.4.1 30-Oct-2012  yamt sync with head
 1.10.2.1 18-May-2014  rmind sync with head
 1.5 11-Dec-2005  christos merge ktrace-lwp.
 1.4 22-Jan-2005  tsutsui - remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.3 09-Jun-2000  soda branches: 1.3.4; 1.3.28; 1.3.36;
- NEC RISCstation 2250 (RD-94) PCI bus support,
contributed by Shuichiro URATA <ur@a-r.org>.
- Experimental coding for NEC RISCserver 2200 and RISCstation 2200.
(doesn't really work)
 1.2 23-Jan-2000  soda branches: 1.2.2;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.4 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.3 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.2 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/pio.h,v
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.2.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.3.36.1 29-Apr-2005  kent sync with -current
 1.3.28.1 24-Jan-2005  skrll Sync with HEAD.
 1.3.4.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.3.4.1 09-Jun-2000  bouyer file pio.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.8 11-Dec-2005  christos merge ktrace-lwp.
 1.7 03-Jun-2005  tsutsui Add const.
 1.6 03-Jun-2005  tsutsui Add const.
 1.5 22-Jan-2005  tsutsui Make all intr_mask value types uint32_t rather than int, u_int,
or unsigned etc.
 1.4 22-Jan-2005  tsutsui - remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.3 31-Jan-2003  tsutsui branches: 1.3.2; 1.3.10;
Add c_nec_eisa_cons_init() for NEC-J96A and NEC-R96 which have
Cirrus Logic GD5428 ISA VGA console to initialize its registers properly
for generic vga(4) driver(s).
 1.2 30-Nov-2002  tsutsui Add a configuration of struct platform for NEC-J96A,
NEC Express5800/240 with R4400 and EISA.

XXX not functionally working yet. (hangs after mountroot via NFS)
 1.1 13-Jun-2001  soda branches: 1.1.2; 1.1.10;
introduce "struct platform", and remove "cputype" variable.

this change also includes a patch to obtain secondary cache size
from ARC firmware by Bob Meader, which was posted on port-arc on 18 Aug 2000.
this should make NEC Express RISCserver work.

this change obtains ID of display controller from ARC firmware, too.
 1.1.10.2 11-Dec-2002  thorpej Sync with HEAD.
 1.1.10.1 13-Jun-2001  thorpej file platform.h was added on branch nathanw_sa on 2002-12-11 05:52:10 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.10.1 29-Apr-2005  kent sync with -current
 1.3.2.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.2.1 24-Jan-2005  skrll Sync with HEAD.
 1.7 04-Sep-2001  simonb branches: 1.7.6;
Remove some more useless RCS ids.
 1.6 25-Apr-2001  thorpej branches: 1.6.2;
Remove some redundant definitions (they're already in <mips/pmap.h>).
 1.5 27-Jan-2000  soda branches: 1.5.6; 1.5.8;
make "make includes" work
 1.4 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/pmap.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.5.8.1 21-Jun-2001  nathanw Catch up to -current.
 1.5.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.6.1 27-Jan-2000  bouyer file pmap.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.6.2.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.7.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.7.6.1 04-Sep-2001  simonb file pmap.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.2 12-Jul-2018  maxv Remove the kernel PMC code. Sent yesterday on tech-kern@.

This change:

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

* Removes the PMC code of ARM XSCALE.

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

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

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

* Removes the pmc_evid_t and pmc_ctr_t types.

* Removes all the associated man pages. The sets are marked as obsolete.
 1.1 07-Aug-2002  briggs branches: 1.1.2; 1.1.4; 1.1.6; 1.1.202; 1.1.204;
Implement pmc(9) -- An interface to hardware performance monitoring
counters. These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface. Initially, the Intel XScale
counters are the only ones supported.
 1.1.204.1 10-Jun-2019  christos Sync with HEAD
 1.1.202.1 28-Jul-2018  pgoyette Sync with HEAD
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 07-Aug-2002  jdolecek file pmc.h was added on branch kqueue on 2002-09-06 08:32:08 +0000
 1.1.4.2 30-Aug-2002  gehenna catch up with -current.
 1.1.4.1 07-Aug-2002  gehenna file pmc.h was added on branch gehenna-devsw on 2002-08-30 00:19:00 +0000
 1.1.2.2 13-Aug-2002  nathanw Catch up to -current.
 1.1.2.1 07-Aug-2002  nathanw file pmc.h was added on branch nathanw_sa on 2002-08-13 02:17:47 +0000
 1.5 04-Sep-2001  simonb branches: 1.5.6;
Remove some more useless RCS ids.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/proc.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file proc.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.5.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.5.6.1 04-Sep-2001  simonb file proc.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.5 04-Sep-2001  simonb branches: 1.5.6;
Remove some more useless RCS ids.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/profile.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file profile.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.5.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.5.6.1 04-Sep-2001  simonb file profile.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.5 23-Jan-2000  soda branches: 1.5.6;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.4 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/psl.h,v
 1.3 23-Jun-1997  jonathan Delete entire contents. Just #include <mips/psl.h> until
all uses are changed.
 1.2 16-Jul-1996  thorpej RCS id police.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.5.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.6.1 23-Jan-2000  bouyer file psl.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.7 04-Sep-2001  simonb branches: 1.7.6;
Remove some more useless RCS ids.
 1.6 23-Jan-2000  soda branches: 1.6.6; 1.6.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.5 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/pte.h,v
 1.4 13-Oct-1996  jonathan Merge mips1 and mips3 pte/pmap code, pass 0;
* Move mips-I pte (TLBlo) definitions from pmax/include/pte.h
to mips/include/mips1_pte.h

* Move mips-III pte (TLBlo) definitions from pica/include/pte.h
to mips/include/mips3_pte.h

* Add new mips/include/pte.h, which includes exactly one of
mips1_pte.h or mips3_pte.h (which still have namespace collisions),
depending on "options MIPS1" or "options MIPS3". (hack).
Move soft kvtopte(), ptetovk() definitions to mips/include/pte.h

* Add macro PTE_TO_PADDR() to hide the different hardware TLB formats
when mapping from pte to physical address.

* Add macro PTE_READONLY() to hide lack of SW read-only bit in mips-III
tlb. (mips1 pmap uses a sw bit in the PTE, mips3 looks up RO bit in
the kernel pmap.)

* Use macros (not direct TLB frobbing) in mips/trap.c, to make it
mips-1/mips-III indepenndet.

* Change {pmax,pica}/include/pte.h to just do #include <mips/pte.h>.
 1.3 11-Aug-1996  jonathan * Apply LOCORE -> _LOCORE change so locore.S doesn't #include struct
definitions.

* Include <mips/cpuregs.h> in <cpu.h> so kern_clock.c has user/kernel
status bits in scope. Still needs work; r2k/r4k previous-mode bits
are different.

* Include <mips/mips_param.h> in pica/include/param.h, for locore declarations,
and definitions of vm and other constants that should be shared across
NetBSD/mips systems to esnsure user-level binary compatibility.
 1.2 16-Jul-1996  thorpej RCS id police.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.6.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.6.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.6.1 23-Jan-2000  bouyer file pte.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.7.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.7.6.1 04-Sep-2001  simonb file pte.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.5 08-Apr-2017  kamil Add new ptrace(2) API: PT_SETSTEP & PT_CLEARSTEP

These operations allow to mark thread as a single-stepping one.

This allows to i.a.:
- single step and emit a signal (PT_SETSTEP & PT_CONTINUE)
- single step and trace syscall entry and exit (PT_SETSTEP & PT_SYSCALL)

The former is useful for debuggers like GDB or LLDB. The latter can be used
to singlestep a usermode kernel. These examples don't limit use-cases of
this interface.

Define PT_*STEP only for platforms defining PT_STEP.

Add new ATF tests setstep[1234].

These ptrace(2) operations first appeared in FreeBSD.

Sponsored by <The NetBSD Foundation>
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.180; 1.4.200; 1.4.204; 1.4.208;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/ptrace.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.208.1 21-Apr-2017  bouyer Sync with HEAD
 1.4.204.1 26-Apr-2017  pgoyette Sync with HEAD
 1.4.200.1 28-Aug-2017  skrll Sync with HEAD
 1.4.180.1 03-Dec-2017  jdolecek update from HEAD
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file ptrace.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.5 04-Sep-2001  simonb branches: 1.5.6;
Remove some more useless RCS ids.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/reg.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file reg.h was added on branch thorpej_scsipi on 2000-11-20 20:00:37 +0000
 1.5.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.5.6.1 04-Sep-2001  simonb file reg.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.7 04-Sep-2001  simonb branches: 1.7.6;
Remove some more useless RCS ids.
 1.6 23-Jan-2000  soda branches: 1.6.6; 1.6.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.5 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/regdef.h,v
 1.4 30-Mar-1999  soda regdef.h is back
 1.3 13-Mar-1999  drochner g/c regdef.h
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.6.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.6.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.6.1 23-Jan-2000  bouyer file regdef.h was added on branch thorpej_scsipi on 2000-11-20 20:00:38 +0000
 1.7.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.7.6.1 04-Sep-2001  simonb file regdef.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.5 04-Sep-2001  simonb branches: 1.5.6;
Remove some more useless RCS ids.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/regnum.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file regnum.h was added on branch thorpej_scsipi on 2000-11-20 20:00:38 +0000
 1.5.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.5.6.1 04-Sep-2001  simonb file regnum.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.5 09-Sep-2001  simonb branches: 1.5.4;
Clean up and standardise across MIPS ports.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.8; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/reloc.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.8.1 01-Oct-2001  fvdl Catch up with -current.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file reloc.h was added on branch thorpej_scsipi on 2000-11-20 20:00:38 +0000
 1.5.4.2 09-Sep-2001  simonb Clean up and standardise across MIPS ports.
 1.5.4.1 09-Sep-2001  simonb file reloc.h was added on branch nathanw_sa on 2001-09-09 04:20:27 +0000
 1.2 05-Feb-2003  nakayama Replace machine/rnd.h with more appropriate name to share it
with cycle counter based microtime in kern/kern_microtime.c.
 1.1 06-Jun-2000  soren branches: 1.1.4; 1.1.6;
Add rnd(4) glue for the MIPS3 cycle counter.
 1.1.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.6.1 06-Jun-2000  bouyer file rnd.h was added on branch thorpej_scsipi on 2000-11-20 20:00:38 +0000
 1.1.4.2 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.1.4.1 06-Jun-2000  minoura file rnd.h was added on branch minoura-xpg4dl on 2000-06-22 16:59:15 +0000
 1.2 09-Feb-2007  ad branches: 1.2.4;
Merge newlock2 to head.
 1.1 22-Dec-2006  ad branches: 1.1.2;
file rwlock.h was initially added on branch newlock2.
 1.1.2.1 22-Dec-2006  ad Pull in CPU specific stubs.
 1.2.4.2 26-Feb-2007  yamt sync with head.
 1.2.4.1 09-Feb-2007  yamt file rwlock.h was added on branch yamt-lazymbuf on 2007-02-26 09:05:51 +0000
 1.5 04-Sep-2001  simonb branches: 1.5.6;
Remove some more useless RCS ids.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/setjmp.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file setjmp.h was added on branch thorpej_scsipi on 2000-11-20 20:00:38 +0000
 1.5.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.5.6.1 04-Sep-2001  simonb file setjmp.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.5 04-Sep-2001  simonb branches: 1.5.6;
Remove some more useless RCS ids.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/signal.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file signal.h was added on branch thorpej_scsipi on 2000-11-20 20:00:38 +0000
 1.5.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.5.6.1 04-Sep-2001  simonb file signal.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.2 22-Feb-2000  soda merge changes between OpenBSD-2.1 and OpenBSD-2.6
 1.1 22-Feb-2000  soda branches: 1.1.1;
Initial revision
 1.1.1.1 22-Feb-2000  soda OpenBSD-2.6/arc
 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 04-Sep-2001  simonb branches: 1.5.6;
Remove some more useless RCS ids.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/stdarg.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file stdarg.h was added on branch thorpej_scsipi on 2000-11-20 20:00:38 +0000
 1.5.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.5.6.1 04-Sep-2001  simonb file stdarg.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.6 11-Dec-2005  christos merge ktrace-lwp.
 1.5 22-Jan-2005  tsutsui - remove __P()
- use ANSI function decls
- u_intNN_t -> uintNN_t
- some KNF
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.30; 1.4.38;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/trap.h,v
 1.2 24-Mar-1996  jonathan Replace pica and pmax include/trap.h with versions that #include <mips/cpu.h>,
after merging the definition of T_USER in the pmax port, and moving
the result to mips/cpu.h.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.38.1 29-Apr-2005  kent sync with -current
 1.4.30.1 24-Jan-2005  skrll Sync with HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file trap.h was added on branch thorpej_scsipi on 2000-11-20 20:00:38 +0000
 1.24 26-Jan-2017  christos provide __HAVE_COMPAT_NETBSD32 and fix multiple include protection consistently.
 1.23 17-Jul-2011  dyoung branches: 1.23.12; 1.23.30; 1.23.34; 1.23.38;
Switch MIPS and MIPS-ish architectures to new-style <sys/bus.h>. This
involves moving some inline bus_space(9) implementation into .c files.
 1.22 20-Jan-2008  joerg Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
 1.21 17-Oct-2007  garbled branches: 1.21.2; 1.21.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.20 14-Jul-2007  ad branches: 1.20.10;
Generic soft interrupts are mandatory.
 1.19 09-Sep-2006  gdamore branches: 1.19.10; 1.19.18;
Convert arc to timecounters, using common mips3 timecounters. We have not
converted the platform to use the MIPS3 cp0 for the hardclock interrupt yet,
but that should be done as well. In the meantime, there are no functional
changes.
 1.18 03-Sep-2006  gdamore branches: 1.18.2;
Convert to MI todr framework.
 1.17 03-Sep-2006  bjh21 Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere.
 1.16 11-Dec-2005  christos branches: 1.16.4; 1.16.8;
merge ktrace-lwp.
 1.15 23-Oct-2003  simonb branches: 1.15.16;
Remove OpenBSD and old NetBSD cvs id's; this file now looks nothing like
the original version.
 1.14 25-May-2003  tsutsui branches: 1.14.2;
Add generic software interrupt support with mips/softintr.c.
 1.13 05-Mar-2002  simonb Provide a L2 cache configuration function.
 1.12 28-Feb-2002  simonb Use "#define<tab>".
 1.11 13-Jun-2001  soda branches: 1.11.2; 1.11.8;
remove __BROKEN_CONFIG_UNIT_USAGE, finally (sorry to be late, cgd).
 1.10 13-Jun-2001  soda enable device_register(9) on arc port to parse boot device name
passed by ARC firmware correctly.
 1.9 17-Jun-2000  soda branches: 1.9.4; 1.9.6;
vga/pckbc attachment for jazz internal bus of Magnum derived machines
(including Pica, NEC RISCstation/RISCserver).
 1.8 09-Jun-2000  soda make paddr_t 64bit on arc port by introducing _MIPS_PADDR_T_64BIT.
 1.7 05-Feb-2000  cgd branches: 1.7.2;
add __BROKEN_CONFIG_UNIT_USAGE #define, becuase these ports do very
wrong things with device configuration data "cf_unit" information.
 1.6 23-Jan-2000  soda merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.5 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/types.h,v
 1.4 31-Aug-1998  cgd kill the last remnants of __BROKEN_INDIRECT_CONFIG. (only the pica port
used it, and it's non-working and apparently slated for replacement.)
 1.3 05-Dec-1996  cgd First step inn removing config_scan() and the hacks that gave devices
on indirect-config busses a (permanent) softc that they could share
between 'match' and 'attach' routines:

Define __BROKEN_INDIRECT_CONFIG so that old autoconfiguration
interfaces are used, until drivers are converted to use the new
interfaces (actually, converted back to use the _older_ interfaces)
which prohibit indirect configuration devices from receiving a softc
in their match routine that they can share with their attach routine.
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.7.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.9.6.1 21-Jun-2001  nathanw Catch up to -current.
 1.9.4.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.9.4.1 17-Jun-2000  bouyer file types.h was added on branch thorpej_scsipi on 2000-11-20 20:00:38 +0000
 1.11.8.2 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.11.8.1 13-Jun-2001  nathanw file types.h was added on branch nathanw_sa on 2002-04-01 07:39:05 +0000
 1.11.2.1 16-Mar-2002  jdolecek Catch up with -current.
 1.14.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.14.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.14.2.1 03-Aug-2004  skrll Sync with HEAD
 1.15.16.3 21-Jan-2008  yamt sync with head
 1.15.16.2 03-Sep-2007  yamt sync with head.
 1.15.16.1 30-Dec-2006  yamt sync with head.
 1.16.8.1 14-Sep-2006  yamt sync with head.
 1.16.4.1 09-Sep-2006  rpaulo sync with head
 1.18.2.1 18-Nov-2006  ad Sync with head.
 1.19.18.1 03-Oct-2007  garbled Sync with HEAD
 1.19.10.1 15-Jul-2007  ad Sync with head.
 1.20.10.2 23-Mar-2008  matt sync with HEAD
 1.20.10.1 06-Nov-2007  matt sync with HEAD
 1.21.8.1 23-Jan-2008  bouyer Sync with HEAD.
 1.21.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.23.38.1 21-Apr-2017  bouyer Sync with HEAD
 1.23.34.1 20-Mar-2017  pgoyette Sync with HEAD
 1.23.30.1 05-Feb-2017  skrll Sync with HEAD
 1.23.12.1 03-Dec-2017  jdolecek update from HEAD
 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 04-Sep-2001  simonb branches: 1.5.6;
Remove some more useless RCS ids.
 1.4 23-Jan-2000  soda branches: 1.4.6; 1.4.10;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.3 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/varargs.h,v
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.4.10.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.4.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.6.1 23-Jan-2000  bouyer file varargs.h was added on branch thorpej_scsipi on 2000-11-20 20:00:38 +0000
 1.5.6.2 04-Sep-2001  simonb Remove some more useless RCS ids.
 1.5.6.1 04-Sep-2001  simonb file varargs.h was added on branch nathanw_sa on 2001-09-04 07:12:29 +0000
 1.12 14-May-2024  andvar fix recently committed typos by msaitoh in few more places, as well as few more.
mainly s/contigous/contiguous/ and s/miliseconds/milliseconds/ in comments.
 1.11 28-Mar-2019  christos Expose kernel variables only to kernel.
XXX: move this variable somewhere better?
 1.10 16-Dec-2009  matt branches: 1.10.64;
Fix various build with the 32bit mips ports after the mips64 merge.
 1.9 11-Dec-2005  christos branches: 1.9.78; 1.9.96;
merge ktrace-lwp.
 1.8 05-Nov-2005  tsutsui Adapt arc port to the new MI mips3 wired map functions.
Tested on NEC-RD94 with several PCI and jazzio devices.
 1.7 10-Dec-2002  thorpej branches: 1.7.6; 1.7.22;
Use __LDPGSZ (which must be == USRTEXT) as the text address for a.out
executables, and eliminate the USRTEXT constant, which was only used
by the a.out exec code.
 1.6 09-Jun-2000  soda branches: 1.6.4; 1.6.12;
NEC RISCstation 2250 (RD-94) PCI bus support,
contributed by Shuichiro URATA <ur@a-r.org>
 1.5 23-Jan-2000  soda branches: 1.5.2;
merge to NetBSD-current (DeskStation and Algor support is currently broken)
 1.4 23-Jan-2000  soda Moved from /cvsroot/syssrc/sys/arch/pica/include/vmparam.h,v
 1.3 25-Feb-1998  thorpej branches: 1.3.10;
PICA has one physical memory segment.
 1.2 23-Mar-1996  jonathan Replace the following header files from src/sys/arch/pica/include/
with versions that include equivalent files from <mips/include>.
(cvs magic copied the previous revisions, with history, to
src/sys/arch/mips/include).

ansi.h bsd-aout.h cdefs.h ecoff.h elf.h endian.h exec.h float.h ieeefp.h
kdbparam.h limits.h pcb.h pmap.h proc.h profile.h ptrace.h reg.h regdef.h
regnum.h reloc.h setjmp.h signal.h stdarg.h types.h varargs.h vmparam.h

NB: Some files (e.g., limits.h reloc.h pmap.h) add pica-specific #defines
to the generic mips support.
 1.1 13-Mar-1996  jonathan branches: 1.1.1;
Initial revision
 1.1.1.3 22-Feb-2000  soda OpenBSD-2.6/arc
 1.1.1.2 23-Jan-2000  soda OpenBSD-2.1/arc
 1.1.1.1 13-Mar-1996  jonathan First commit of Per Fogelstrom's port to the Acer pica r4400/isa machine.
 1.3.10.1 06-Aug-1999  chs take an initial guess at UBC parameters.
 1.5.2.1 22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.6.12.1 11-Dec-2002  thorpej Sync with HEAD.
 1.6.4.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.4.1 09-Jun-2000  bouyer file vmparam.h was added on branch thorpej_scsipi on 2000-11-20 20:00:38 +0000
 1.7.22.1 21-Jun-2006  yamt sync with head.
 1.7.6.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.9.96.1 31-Dec-2009  matt Use mips_page_physload and mips_init_lwp0_uarea.
 1.9.78.1 11-Mar-2010  yamt sync with head
 1.10.64.1 10-Jun-2019  christos Sync with HEAD
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 08-May-2004  kleink branches: 1.1.2;
Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.
 1.1.2.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.2.2 03-Aug-2004  skrll Sync with HEAD
 1.1.2.1 08-May-2004  skrll file wchar_limits.h was added on branch ktrace-lwp on 2004-08-03 10:32:21 +0000
 1.3 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.2 11-Dec-2005  christos branches: 1.2.18; 1.2.28;
merge ktrace-lwp.
 1.1 05-Nov-2005  tsutsui branches: 1.1.2;
Adapt arc port to the new MI mips3 wired map functions.
Tested on NEC-RD94 with several PCI and jazzio devices.
 1.1.2.2 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.2.1 05-Nov-2005  skrll file wired_map.h was added on branch ktrace-lwp on 2005-11-10 13:55:09 +0000
 1.2.28.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.18.3 26-Feb-2007  yamt sync with head.
 1.2.18.2 21-Jun-2006  yamt sync with head.
 1.2.18.1 11-Dec-2005  yamt file wired_map.h was added on branch yamt-lazymbuf on 2006-06-21 14:49:07 +0000

RSS XML Feed