Home | History | Annotate | only in /src/sys/arch/shark/ofw
History log of /src/sys/arch/shark/ofw
RevisionDateAuthorComments
 1.6 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.5 27-Jan-2021  thorpej Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.
 1.4 02-Jan-2014  joerg branches: 1.4.42;
Fix const use.
 1.3 22-Aug-2012  macallan branches: 1.3.2; 1.3.4;
actually pass a working IO tag to the rest of the driver
 1.2 19-Jul-2011  dyoung branches: 1.2.2;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.1 23-Mar-2011  macallan branches: 1.1.2; 1.1.6;
add support for chipsfb at ofbus
 1.1.6.2 06-Jun-2011  jruoho Sync with HEAD.
 1.1.6.1 23-Mar-2011  jruoho file chipsfb_ofbus.c was added on branch jruoho-x86intr on 2011-06-06 09:06:44 +0000
 1.1.2.2 21-Apr-2011  rmind sync with head
 1.1.2.1 23-Mar-2011  rmind file chipsfb_ofbus.c was added on branch rmind-uvmplock on 2011-04-21 01:41:24 +0000
 1.2.2.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.2.1 30-Oct-2012  yamt sync with head
 1.3.4.1 18-May-2014  rmind sync with head
 1.3.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.42.1 03-Apr-2021  thorpej Sync with HEAD.
 1.5 09-Jan-2005  tsutsui - Switch to wscons(4) with MI vga(4), pckbc(4) and pms(4).
- Reorganize console initialization code like i386 rather than cninit().
Note old pccons/opms and ofcons support still works.

XXX Xserver is not tested because XF86_4 doesn't have support
XXX for IGS CyberPro2010 on shark. (yet?)
 1.4 15-Jul-2003  lukem __KERNEL_RCSID()
 1.3 14-Jun-2003  thorpej branches: 1.3.2;
Also pass a type argument to comcnattach() and com_kgdb_attach().
comspeed() (and thus cominit()) may need this information.
 1.2 05-Oct-2002  chs add missing protos.
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file com_ofisa_consolehack.c was added on branch kqueue on 2002-06-23 17:41:23 +0000
 1.1.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file com_ofisa_consolehack.c was added on branch nathanw_sa on 2002-02-28 04:11:53 +0000
 1.3.2.4 17-Jan-2005  skrll Sync with HEAD.
 1.3.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.3.2.1 03-Aug-2004  skrll Sync with HEAD
 1.8 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.7 19-Jul-2011  dyoung branches: 1.7.2; 1.7.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.6 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.5 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.4 11-Dec-2005  christos branches: 1.4.80; 1.4.88; 1.4.94;
merge ktrace-lwp.
 1.3 15-Jul-2003  lukem __KERNEL_RCSID()
 1.2 23-Jun-2003  martin branches: 1.2.2;
Make sure to include opt_foo.h if a defflag option FOO is used.
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file com_ofisa_machdep.c was added on branch kqueue on 2002-06-23 17:41:23 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file com_ofisa_machdep.c was added on branch nathanw_sa on 2002-02-28 04:11:53 +0000
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.4.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.80.1 04-May-2009  yamt sync with head.
 1.7.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.7.2.1 30-Oct-2012  yamt sync with head
 1.3 09-Jan-2005  tsutsui - Switch to wscons(4) with MI vga(4), pckbc(4) and pms(4).
- Reorganize console initialization code like i386 rather than cninit().
Note old pccons/opms and ofcons support still works.

XXX Xserver is not tested because XF86_4 doesn't have support
XXX for IGS CyberPro2010 on shark. (yet?)
 1.2 15-Jul-2003  lukem __KERNEL_RCSID()
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14; 1.1.20;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.20.4 17-Jan-2005  skrll Sync with HEAD.
 1.1.20.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.20.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.20.1 03-Aug-2004  skrll Sync with HEAD
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file consinit.c was added on branch kqueue on 2002-06-23 17:41:24 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file consinit.c was added on branch nathanw_sa on 2002-02-28 04:11:54 +0000
 1.8 05-Jun-2011  matt struct device * -> device_t, struct cfdata * -> cfdata_t
CFATTACH_DECL(*, sizeof(struct device), -> CFATTACH_DECL_NEW(&, 0
 1.7 14-Mar-2009  dsl branches: 1.7.4; 1.7.6; 1.7.10;
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.6 11-Dec-2005  christos branches: 1.6.80; 1.6.88; 1.6.94;
merge ktrace-lwp.
 1.5 15-Jul-2003  lukem __KERNEL_RCSID()
 1.4 02-Oct-2002  thorpej branches: 1.4.6;
Add trailing ; to CFATTACH_DECL.
 1.3 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14;
Bring over a couple of files from arch/dnard that will be useful in
the future.
 1.1.14.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file cpu_ofbus.c was added on branch kqueue on 2002-06-23 17:41:24 +0000
 1.1.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file cpu_ofbus.c was added on branch nathanw_sa on 2002-02-28 04:11:54 +0000
 1.4.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.6.1 03-Aug-2004  skrll Sync with HEAD
 1.6.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.6.80.1 04-May-2009  yamt sync with head.
 1.7.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.7.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.7.4.1 12-Jun-2011  rmind sync with head
 1.14 22-Nov-2020  thorpej malloc(9) -> kmem(9) (easy, straight-forward cases only, for now)
 1.13 10-Nov-2019  chs branches: 1.13.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.12 29-May-2019  msaitoh KNF. No functional change.
 1.11 13-Apr-2015  riastradh branches: 1.11.18;
MD rnd.h cleanups. Please let me know if I broke anything!
 1.10 04-Feb-2012  christos branches: 1.10.6; 1.10.24;
add <sys/rnd.h> to fix the build.
 1.9 19-Jul-2011  dyoung branches: 1.9.2; 1.9.6;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.8 22-Sep-2009  tsutsui - use device_t and cfdriver_t
- wrap long function decls
 1.7 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.6 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.5 11-Dec-2005  christos branches: 1.5.80; 1.5.88; 1.5.94;
merge ktrace-lwp.
 1.4 20-Sep-2004  drochner remove an occurence of ISACF_DRQ_DEFAULT where it doesn't
belong
(I didn't find where this piece of code is made use of,
likely stale stuff.)
found by Havard Eidnes
 1.3 15-Jul-2003  lukem __KERNEL_RCSID()
 1.2 23-Jun-2003  martin branches: 1.2.2;
Make sure to include opt_foo.h if a defflag option FOO is used.
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file if_cs_ofisa_machdep.c was added on branch kqueue on 2002-06-23 17:41:24 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file if_cs_ofisa_machdep.c was added on branch nathanw_sa on 2002-02-28 04:11:54 +0000
 1.2.2.4 24-Sep-2004  skrll Sync with HEAD.
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.5.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.5.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.5.80.2 11-Mar-2010  yamt sync with head
 1.5.80.1 04-May-2009  yamt sync with head.
 1.9.6.1 18-Feb-2012  mrg merge to -current.
 1.9.2.1 17-Apr-2012  yamt sync with head
 1.10.24.1 06-Jun-2015  skrll Sync with HEAD
 1.10.6.1 03-Dec-2017  jdolecek update from HEAD
 1.11.18.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.11.18.1 10-Jun-2019  christos Sync with HEAD
 1.13.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.20 27-Jan-2021  thorpej Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.
 1.19 22-Nov-2020  thorpej malloc(9) -> kmem(9) (easy, straight-forward cases only, for now)
 1.18 10-Nov-2019  chs branches: 1.18.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.17 22-Jan-2017  jakllsch branches: 1.17.14;
Call OF to bring up the CyberPro if it's not the console.

Avoids igsfb crash later with serial console due to
inaccessible hardware.
 1.16 30-Jun-2015  macallan branches: 1.16.2; 1.16.4;
don't map the framebuffer as cacheable
 1.15 02-Jan-2014  joerg branches: 1.15.6;
Fix const use.
 1.14 27-Oct-2012  chs branches: 1.14.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.13 26-Jul-2011  mrg branches: 1.13.2; 1.13.12;
convert to device_t, cfdata_t and CFATTACH_DECL_NEW.
 1.12 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.11 28-Feb-2011  macallan use ARM32_MMAP_WRITECOMBINE when mmap()ing video memory for improved X11 speed
 1.10 11-Nov-2009  macallan branches: 1.10.4; 1.10.6; 1.10.8;
Look for a Sun-like video mode specifier in output-device, if there is one
pass it on to igsfb. With this you can
setenv output-device=screen:r1280x1024x60
and igsfb will use that mode. The mode specified must be listed in
dev/videomode/modelines.
 1.9 10-Nov-2009  macallan add a mmap() method so the xf86-video-igs driver can map the aperture and
IO space in a sane way.
 1.8 08-May-2008  macallan nuke clause 3
 1.7 28-Oct-2007  jmmv branches: 1.7.16; 1.7.18; 1.7.20; 1.7.22;
Drop pccons. Obsoleted by wscons, now fully supported in NetBSD/shark.
OK'ed by thorpej@ and tsutsui@ a while ago.
 1.6 17-Oct-2007  garbled Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.5 30-Jul-2007  jmmv branches: 1.5.2; 1.5.4; 1.5.6; 1.5.8; 1.5.12;
Fix build of kernels that use vga or igsfb together with pccons by avoiding
a warning mentioning an unused static function.
 1.4 03-Jun-2007  uwe branches: 1.4.2; 1.4.4;
Nuke traces of PCI. Minor cosmetic clean ups.
 1.3 03-Jun-2007  uwe Include igsfb_ofbusvar.h by its full official name.
 1.2 25-Jan-2007  macallan branches: 1.2.6; 1.2.8; 1.2.14;
have OF re-initialize the console before calling OF_exit() so we actually
end up in something usable
 1.1 07-Dec-2006  macallan branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
add glue for igsfb at ofbus
 1.1.8.2 12-Jan-2007  bouyer Pull up following revision(s) (requested by macallan in ticket #350):
sys/arch/shark/isa/isa_io.c: revision 1.7
sys/arch/shark/shark/consinit.c: revision 1.5
sys/arch/shark/ofw/igsfb_ofbus.c: revision 1.1
sys/arch/shark/ofw/igsfb_ofbusvar.h: revision 1.1
sys/arch/shark/conf/files.shark: revision 1.12
add glue for igsfb at ofbus
 1.1.8.1 07-Dec-2006  bouyer file igsfb_ofbus.c was added on branch netbsd-4 on 2007-01-12 23:44:04 +0000
 1.1.6.3 01-Feb-2007  ad Sync with head.
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 07-Dec-2006  ad file igsfb_ofbus.c was added on branch newlock2 on 2007-01-12 01:00:59 +0000
 1.1.4.5 15-Nov-2007  yamt sync with head.
 1.1.4.4 03-Sep-2007  yamt sync with head.
 1.1.4.3 26-Feb-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 07-Dec-2006  yamt file igsfb_ofbus.c was added on branch yamt-lazymbuf on 2006-12-30 20:46:57 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 07-Dec-2006  yamt file igsfb_ofbus.c was added on branch yamt-splraiseipl on 2006-12-10 07:16:35 +0000
 1.2.14.2 03-Oct-2007  garbled Sync with HEAD
 1.2.14.1 26-Jun-2007  garbled Sync with HEAD.
 1.2.8.1 11-Jul-2007  mjf Sync with head.
 1.2.6.3 03-Dec-2007  ad Sync with HEAD.
 1.2.6.2 20-Aug-2007  ad Sync with HEAD.
 1.2.6.1 09-Jun-2007  ad Sync with head.
 1.4.4.1 15-Aug-2007  skrll Sync with HEAD.
 1.4.2.1 07-Aug-2007  matt Sync with HEAD.
 1.5.12.1 13-Nov-2007  bouyer Sync with HEAD
 1.5.8.1 06-Nov-2007  matt sync with HEAD
 1.5.6.1 01-Jan-2008  chris Sync with HEAD.
 1.5.4.1 28-Oct-2007  joerg Sync with HEAD.
 1.5.2.1 26-Dec-2007  rjs Sync with HEAD.
 1.7.22.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.7.20.2 11-Mar-2010  yamt sync with head
 1.7.20.1 16-May-2008  yamt sync with head.
 1.7.18.1 18-May-2008  yamt sync with head.
 1.7.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.10.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.10.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.10.4.1 05-Mar-2011  rmind sync with head
 1.13.12.3 03-Dec-2017  jdolecek update from HEAD
 1.13.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.13.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.13.2.2 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.13.2.1 30-Oct-2012  yamt sync with head
 1.14.2.1 18-May-2014  rmind sync with head
 1.15.6.2 05-Feb-2017  skrll Sync with HEAD
 1.15.6.1 22-Sep-2015  skrll Sync with HEAD
 1.16.4.1 21-Apr-2017  bouyer Sync with HEAD
 1.16.2.1 20-Mar-2017  pgoyette Sync with HEAD
 1.17.14.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.18.8.2 03-Apr-2021  thorpej Sync with HEAD.
 1.18.8.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.4 08-May-2008  macallan nuke clause 3
 1.3 17-Oct-2007  garbled branches: 1.3.16; 1.3.18; 1.3.20; 1.3.22;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.2 03-Jun-2007  uwe branches: 1.2.10; 1.2.12;
Make the name of the multiple-inclusion guard symbol match the file location.
 1.1 07-Dec-2006  macallan branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.14; 1.1.16; 1.1.22;
add glue for igsfb at ofbus
 1.1.22.1 26-Jun-2007  garbled Sync with HEAD.
 1.1.16.1 11-Jul-2007  mjf Sync with head.
 1.1.14.1 09-Jun-2007  ad Sync with head.
 1.1.8.2 12-Jan-2007  bouyer Pull up following revision(s) (requested by macallan in ticket #350):
sys/arch/shark/isa/isa_io.c: revision 1.7
sys/arch/shark/shark/consinit.c: revision 1.5
sys/arch/shark/ofw/igsfb_ofbus.c: revision 1.1
sys/arch/shark/ofw/igsfb_ofbusvar.h: revision 1.1
sys/arch/shark/conf/files.shark: revision 1.12
add glue for igsfb at ofbus
 1.1.8.1 07-Dec-2006  bouyer file igsfb_ofbusvar.h was added on branch netbsd-4 on 2007-01-12 23:44:04 +0000
 1.1.6.2 12-Jan-2007  ad Sync with head.
 1.1.6.1 07-Dec-2006  ad file igsfb_ofbusvar.h was added on branch newlock2 on 2007-01-12 01:00:59 +0000
 1.1.4.3 03-Sep-2007  yamt sync with head.
 1.1.4.2 30-Dec-2006  yamt sync with head.
 1.1.4.1 07-Dec-2006  yamt file igsfb_ofbusvar.h was added on branch yamt-lazymbuf on 2006-12-30 20:46:57 +0000
 1.1.2.2 10-Dec-2006  yamt sync with head.
 1.1.2.1 07-Dec-2006  yamt file igsfb_ofbusvar.h was added on branch yamt-splraiseipl on 2006-12-10 07:16:35 +0000
 1.2.12.1 06-Nov-2007  matt sync with HEAD
 1.2.10.1 01-Jan-2008  chris Sync with HEAD.
 1.3.22.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.3.20.1 16-May-2008  yamt sync with head.
 1.3.18.1 18-May-2008  yamt sync with head.
 1.3.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.9 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.8 19-Jul-2011  dyoung branches: 1.8.2; 1.8.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.7 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.6 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.5 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.4 11-Dec-2005  christos branches: 1.4.80; 1.4.88; 1.4.94;
merge ktrace-lwp.
 1.3 15-Jul-2003  lukem __KERNEL_RCSID()
 1.2 23-Jun-2003  martin branches: 1.2.2;
Make sure to include opt_foo.h if a defflag option FOO is used.
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file lpt_ofisa_machdep.c was added on branch kqueue on 2002-06-23 17:41:24 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file lpt_ofisa_machdep.c was added on branch nathanw_sa on 2002-02-28 04:11:54 +0000
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.4.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.80.1 04-May-2009  yamt sync with head.
 1.8.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.8.2.1 30-Oct-2012  yamt sync with head
 1.10 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.9 19-Jul-2011  dyoung branches: 1.9.2; 1.9.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.8 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.7 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.6 17-Oct-2007  garbled branches: 1.6.20; 1.6.28; 1.6.34;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.5 03-Aug-2007  jmmv branches: 1.5.2; 1.5.4; 1.5.6;
Only deal with isa dma stuff if this is available/needed. Fixes the build
of kernels when, e.g. the audio driver is disabled.

Per cube@'s suggestion.
 1.4 11-Dec-2005  christos branches: 1.4.30; 1.4.38; 1.4.42; 1.4.44; 1.4.46;
merge ktrace-lwp.
 1.3 15-Jul-2003  lukem branches: 1.3.16;
__KERNEL_RCSID()
 1.2 23-Jun-2003  martin branches: 1.2.2;
Make sure to include opt_foo.h if a defflag option FOO is used.
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file ofisa_machdep.c was added on branch kqueue on 2002-06-23 17:41:25 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file ofisa_machdep.c was added on branch nathanw_sa on 2002-02-28 04:11:54 +0000
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.3.16.1 03-Sep-2007  yamt sync with head.
 1.4.46.1 26-Dec-2007  rjs Sync with HEAD.
 1.4.44.1 15-Aug-2007  skrll Sync with HEAD.
 1.4.42.1 07-Aug-2007  matt Sync with HEAD.
 1.4.38.1 03-Oct-2007  garbled Sync with HEAD
 1.4.30.1 20-Aug-2007  ad Sync with HEAD.
 1.5.6.1 06-Nov-2007  matt sync with HEAD
 1.5.4.1 01-Jan-2008  chris Sync with HEAD.
 1.5.2.2 03-Aug-2007  jmmv Only deal with isa dma stuff if this is available/needed. Fixes the build
of kernels when, e.g. the audio driver is disabled.

Per cube@'s suggestion.
 1.5.2.1 03-Aug-2007  jmmv file ofisa_machdep.c was added on branch jmcneill-pm on 2007-08-03 16:02:18 +0000
 1.6.34.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.28.1 28-Apr-2009  skrll Sync with HEAD.
 1.6.20.1 04-May-2009  yamt sync with head.
 1.9.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.9.2.1 30-Oct-2012  yamt sync with head
 1.13 27-Apr-2021  thorpej Garbage-collect the old Shark-specific "pccons" stuff. Shark has
been wscons for some time now.
 1.12 24-Apr-2021  thorpej branches: 1.12.2;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.11 06-Jun-2011  matt branches: 1.11.68;
Some more device_t, cfdata_t, CFATTACH_DECL_NEW cleanup.
 1.10 14-Mar-2009  dsl branches: 1.10.4; 1.10.10;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.9 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.8 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.7 08-Mar-2007  matt branches: 1.7.46; 1.7.54; 1.7.60;
Clean the bitrotting ofw code. Don't export export the underlying irq
dispatch mechanism to the rest of the kernel; they don't need to know.
Nuke IRQSTATS entirely.

XXX ofwgencfg_clock needs to taught about timecounters
 1.6 11-Dec-2005  christos branches: 1.6.26;
merge ktrace-lwp.
 1.5 15-Jul-2003  lukem branches: 1.5.16;
__KERNEL_RCSID()
 1.4 02-Oct-2002  thorpej branches: 1.4.6;
Add trailing ; to CFATTACH_DECL.
 1.3 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.14.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file ofisapc.c was added on branch kqueue on 2002-06-23 17:41:25 +0000
 1.1.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file ofisapc.c was added on branch nathanw_sa on 2002-02-28 04:11:54 +0000
 1.4.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.6.1 03-Aug-2004  skrll Sync with HEAD
 1.5.16.1 03-Sep-2007  yamt sync with head.
 1.6.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.7.60.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.7.54.1 28-Apr-2009  skrll Sync with HEAD.
 1.7.46.1 04-May-2009  yamt sync with head.
 1.10.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.10.4.1 12-Jun-2011  rmind sync with head
 1.11.68.2 04-Apr-2021  thorpej Associate the OpenFirmware phandle associated with a found device (including
PCI bus instances) by using CFARG_DEVHANDLE.
 1.11.68.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.12.2.1 13-May-2021  thorpej Sync with HEAD.
 1.13 21-Jan-2022  thorpej Don't bother with devhandle_from_of() if we're just forwarding along
our own node; use device_handle(self) instead.
 1.12 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.11 24-Apr-2021  thorpej branches: 1.11.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.10 06-Jun-2011  matt branches: 1.10.68;
Some more device_t, cfdata_t, CFATTACH_DECL_NEW cleanup.
 1.9 14-Mar-2009  dsl branches: 1.9.4; 1.9.10;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.8 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.7 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.6 11-Dec-2005  christos branches: 1.6.80; 1.6.88; 1.6.94;
merge ktrace-lwp.
 1.5 15-Jul-2003  lukem __KERNEL_RCSID()
 1.4 02-Oct-2002  thorpej branches: 1.4.6;
Add trailing ; to CFATTACH_DECL.
 1.3 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.14.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file ofisascr.c was added on branch kqueue on 2002-06-23 17:41:25 +0000
 1.1.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file ofisascr.c was added on branch nathanw_sa on 2002-02-28 04:11:54 +0000
 1.4.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.6.1 03-Aug-2004  skrll Sync with HEAD
 1.6.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.6.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.6.80.1 04-May-2009  yamt sync with head.
 1.9.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.9.4.1 12-Jun-2011  rmind sync with head
 1.10.68.2 04-Apr-2021  thorpej Associate the OpenFirmware phandle associated with a found device (including
PCI bus instances) by using CFARG_DEVHANDLE.
 1.10.68.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.11.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.29 27-Jan-2021  thorpej Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.
 1.28 03-Sep-2018  riastradh branches: 1.28.12;
Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
 1.27 08-Sep-2017  skrll branches: 1.27.2; 1.27.4;
Remove comment (and its typo) that doesn't apply any more.
 1.26 25-Jul-2014  dholland Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.25 16-Mar-2014  dholland branches: 1.25.2;
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
 1.24 22-Feb-2014  matt use kenter_pa/kremove
 1.23 26-Jul-2011  mrg branches: 1.23.2; 1.23.12; 1.23.16;
convert to device_t, cfdata_t and CFATTACH_DECL_NEW.
 1.22 19-Jul-2011  dyoung Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.21 12-Jun-2011  rmind Welcome to 5.99.53! Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
kernel-lock on some ports). Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.
 1.20 14-Mar-2009  dsl branches: 1.20.4; 1.20.10;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.19 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.18 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.17 08-Nov-2008  he branches: 1.17.4;
Adapt to changes in arm/arm32/mem.c -- use a mutex to control
access to DEV_MEM. OK'ed by matt.
 1.16 11-Jun-2008  cegger branches: 1.16.2; 1.16.4;
- use device_lookup_private to get softc
- ansify
fixes build errors about assignments of different pointer types
 1.15 04-Mar-2007  christos branches: 1.15.42; 1.15.44; 1.15.46; 1.15.48; 1.15.50;
fix caddr_t fallout.
 1.14 04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.13 11-Dec-2005  christos branches: 1.13.26;
merge ktrace-lwp.
 1.12 05-Jan-2005  tsutsui branches: 1.12.10;
Purge vm_offset_t.
 1.11 15-Jul-2003  lukem __KERNEL_RCSID()
 1.10 02-Apr-2003  thorpej branches: 1.10.2;
Use PAGE_SIZE rather than NBPG.
 1.9 23-Oct-2002  jdolecek merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
 1.8 02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.7 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.6 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.5 06-Sep-2002  gehenna Merge the gehenna-devsw branch into the trunk.

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

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

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

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

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

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

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

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

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
 1.4 08-Jun-2002  yamt branches: 1.4.2;
constify and make it static.
 1.3 24-Mar-2002  thorpej branches: 1.3.2;
* arm_byte_to_page() -> arm_btop()
* arm_page_to_byte() -> arm_ptob()
 1.2 04-Mar-2002  thorpej Add ofromioctl(), needed since Christos added ioctl to the memory device's
cdev decl.
 1.1 10-Feb-2002  thorpej branches: 1.1.2;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.2.7 11-Nov-2002  nathanw Catch up to -current
 1.1.2.6 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.5 17-Sep-2002  nathanw Catch up to -current.
 1.1.2.4 20-Jun-2002  nathanw Catch up to -current.
 1.1.2.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file ofrom.c was added on branch nathanw_sa on 2002-02-28 04:11:54 +0000
 1.3.2.2 15-Jul-2002  gehenna catch up with -current.
 1.3.2.1 17-May-2002  gehenna Add device switch.
 1.4.2.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.4.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.2.1 08-Jun-2002  jdolecek file ofrom.c was added on branch kqueue on 2002-06-23 17:41:25 +0000
 1.10.2.5 04-Feb-2005  skrll Adapt to branch.
 1.10.2.4 17-Jan-2005  skrll Sync with HEAD.
 1.10.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.10.2.1 03-Aug-2004  skrll Sync with HEAD
 1.12.10.2 03-Sep-2007  yamt sync with head.
 1.12.10.1 21-Jun-2006  yamt sync with head.
 1.13.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.15.50.1 18-Jun-2008  simonb Sync with head.
 1.15.48.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.15.46.1 04-May-2009  yamt sync with head.
 1.15.44.1 17-Jun-2008  yamt sync with head.
 1.15.42.2 17-Jan-2009  mjf Sync with HEAD.
 1.15.42.1 29-Jun-2008  mjf Sync with HEAD.
 1.16.4.2 28-Apr-2009  skrll Sync with HEAD.
 1.16.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.16.2.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.17.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.20.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.20.4.1 25-Apr-2010  rmind - Drop vmmap and its reserved page on hp700, sparc and x86.
- mm_init: use UVM_KMF_WAITVA when allocating a VA.
 1.23.16.1 18-May-2014  rmind sync with head
 1.23.12.2 03-Dec-2017  jdolecek update from HEAD
 1.23.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.23.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.25.2.1 10-Aug-2014  tls Rebase.
 1.27.4.1 10-Jun-2019  christos Sync with HEAD
 1.27.2.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.28.12.1 03-Apr-2021  thorpej Sync with HEAD.
 1.6 13-Sep-2006  gdamore Convert shark and ofppc to new common ofrtc and MI todr code. Tested
on shark. Ok christos@, martin@.
 1.5 11-Dec-2005  christos branches: 1.5.8; 1.5.20;
merge ktrace-lwp.
 1.4 03-Jun-2005  scw branches: 1.4.2;
Appease -Wshadow
 1.3 15-Jul-2003  lukem __KERNEL_RCSID()
 1.2 05-Oct-2002  chs branches: 1.2.6;
add missing protos.
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file oftodclock.c was added on branch kqueue on 2002-06-23 17:41:25 +0000
 1.1.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file oftodclock.c was added on branch nathanw_sa on 2002-02-28 04:11:54 +0000
 1.2.6.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.6.1 03-Aug-2004  skrll Sync with HEAD
 1.4.2.1 30-Dec-2006  yamt sync with head.
 1.5.20.1 18-Nov-2006  ad Sync with head.
 1.5.8.1 14-Sep-2006  yamt sync with head.
 1.69 10-Dec-2023  andvar fix format specifiers for OLDPRINTFS build option.
 1.68 03-Sep-2018  riastradh Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER! Some subsystems have

#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
 1.67 04-Mar-2017  jakllsch branches: 1.67.12; 1.67.14;
Fix up OFW_DEBUG printfs, particularly regarding newlines and error cases.
 1.66 22-Dec-2016  cherry branches: 1.66.2;
switch all ports to use uvm_init.c:uvm_md_init()

uvm_setpagesize() is now subsumed within this funciton.
 1.65 07-Jul-2016  msaitoh branches: 1.65.2;
KNF. Remove extra spaces. No functional change.
 1.64 17-Oct-2015  jmcneill remove tlb_flush define and change callers to use cpu_tlb_flushID directly, ok matt@
 1.63 22-Feb-2014  matt branches: 1.63.6;
Deal with non-4K page sizes.
 1.62 06-Nov-2013  christos remove unused variables
 1.61 18-Aug-2013  matt Use <arm/locore.h>
 1.60 22-Sep-2012  matt branches: 1.60.2;
Don't use an asm in pmap_activate to update the TTBR, use cpu_setttb instead
but add a second argument to it to indicate whether the TLB/caches need to be
flushed. Default cortex to pmap_needs_fixup = 1. But check the MMFR3 field
to see if the fixed can be skipped.
Use a cf_flag bit 0 to indicate whether the A9 L2 cache should disable (bit 0 = 1)
or enabeld (bit = 0).

With these changes, the A9 MMU can use traverse caches to do MMU tablewalks
Also, make sure all memory has the shareable bit for the A9.
 1.59 29-Jul-2012  matt branches: 1.59.2;
Fix more -fno-common fallout.
Move more variables to common locations.
 1.58 01-Mar-2012  matt kernelstack is declared in arm32_machdep.c
 1.57 23-Nov-2011  jmcneill branches: 1.57.2; 1.57.6;
Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
the original ad-audiomp branch notes:

Add MP locking to the audio drivers.

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

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

Welcome to 5.99.57.
 1.56 19-Jul-2011  dyoung branches: 1.56.2; 1.56.4;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.55 23-Mar-2011  macallan add support for chipsfb at ofbus
 1.54 12-Nov-2010  uebayasi branches: 1.54.2;
Pull in uvm/uvm.h for VM_PAGE_TO_PHYS().
 1.53 28-Dec-2009  uebayasi branches: 1.53.4;
More setttb() -> cpu_setttb() for readability & consistency. Missing instances
pointed out by tsutsui@ & nonaka@, thanks.
 1.52 27-Nov-2009  rmind - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places. Reduce sys/user.h inclusions.
 1.51 26-Nov-2009  matt Kill proc0paddr. Use lwp0.l_addr instead.
 1.50 11-Aug-2009  matt Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
 1.49 18-Mar-2009  cegger bzero -> memset
 1.48 18-Mar-2009  cegger bcmp -> memcmp
 1.47 18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.46 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.45 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.44 11-Nov-2008  dyoung branches: 1.44.4;
It is not appropriate to call pmf_system_shutdown(9) from
doshutdownhooks(9): shutdown hooks registered by shutdownhook_establish(9)
expect to be called with interrupts disabled, but shutdown hooks
registered with pmf_device_register1(9) expect to be called with
interrupts enabled. So I have made two changes:

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

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

I hope that this patch will stop us from flip-flopping between
calling doshutdownhooks() and pmf_system_shutdown() sometimes with
and sometimes without interrupts enabled.
 1.43 27-Apr-2008  matt branches: 1.43.6; 1.43.8;
Merge kernel changes in matt-armv6 to HEAD.
 1.42 28-Oct-2007  jmmv branches: 1.42.16; 1.42.18; 1.42.20;
Drop pccons. Obsoleted by wscons, now fully supported in NetBSD/shark.
OK'ed by thorpej@ and tsutsui@ a while ago.
 1.41 17-Oct-2007  garbled Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.40 13-Aug-2007  tsutsui branches: 1.40.2; 1.40.6;
Remove all references to spl_mask. Now it isn't used by any sources.
Discussed on port-arm.
 1.39 30-Jul-2007  jmmv branches: 1.39.2; 1.39.4; 1.39.6;
Fix build of kernels that use vga or igsfb together with pccons by avoiding
a warning mentioning an unused static function.
 1.38 08-Mar-2007  matt branches: 1.38.2; 1.38.10; 1.38.12; 1.38.14;
Clean the bitrotting ofw code. Don't export export the underlying irq
dispatch mechanism to the rest of the kernel; they don't need to know.
Nuke IRQSTATS entirely.

XXX ofwgencfg_clock needs to taught about timecounters
 1.37 23-Feb-2007  mrg make this build without wscons or vga enabled.
 1.36 25-Jan-2007  macallan branches: 1.36.2;
have OF re-initialize the console before calling OF_exit() so we actually
end up in something usable
 1.35 08-Dec-2005  yamt branches: 1.35.20;
use VM_PAGE_TO_PHYS macro.
 1.34 05-Jan-2005  tsutsui branches: 1.34.10;
Purge vm_offset_t.
 1.33 05-Nov-2003  scw s/bcopy/memmove/
The kernel's bcopy (actually a wrapper around memcpy) is not guaranteed to
handle overlapping regions, even though the old ARM version did.

This fixes a problem where the kernel reported more available memory
than actually existed.
 1.32 15-Jul-2003  lukem __KERNEL_RCSID()
 1.31 16-Jun-2003  thorpej branches: 1.31.2;
Rename IPL_IMP -> IPL_VM.
 1.30 22-May-2003  thorpej Move KERNEL_VM_SIZE into the C files where its used.
 1.29 21-May-2003  thorpej Move KERNEL_VM_BASE inside where it is used (it won't be there for long).
 1.28 03-May-2003  wiz DMA, not dma nor Dma.
 1.27 03-May-2003  thorpej Reduce differences between ARM32_NEW_VM_LAYOUT and not; always pass
the start and end of the kernel managed virtual address space to
pmap_bootstrap() in the new pmap.
 1.26 03-May-2003  thorpej Remove old pmap support for platforms which have fully switched over.
 1.25 02-May-2003  thorpej Eliminate PTE_BASE and the PT-PT completely in the ARM32_PMAP_NEW case.
Also in the ARM32_PMAP_NEW case, reclaim the USPACE-bytes of wasted space
at the top of the user address that hasn't been needed for a very very
long time.
 1.24 18-Apr-2003  scw Enable ARM32_PMAP_NEW on NetBSD/shark.
 1.23 02-Apr-2003  thorpej Use PAGE_SIZE rather than NBPG.
 1.22 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.21 05-Oct-2002  chs add missing protos.
 1.20 24-Aug-2002  thorpej Enable caching on kernel and user page tables. This saves having
to do uncached memory access during VM operations (which can be
quite expensive on some CPUs).

We currently write-back PTEs as soon as they're modified; there is
some room for optimization (to write them back in larger chunks).
For PTEs in the APTE space (i.e. PTEs for pmaps that describe another
process's address space), PTEs must also be evicted from the cache
complete (PTEs in PTE space will be evicted durint a context switch).
 1.19 22-Aug-2002  thorpej * Add PTE_SYNC() and PTE_SYNC_RANGE() macros. These don't actually do
anything yet.
* Use PTE_SYNC() and PTE_SYNC_RANGE() in some obvious places, i.e.
where vtopte() is used.
 1.18 21-Aug-2002  thorpej Do cached memory access to L1 tables, making sure to write-back the
cache after any L1 table modifications.
 1.17 31-Jul-2002  thorpej Overhaul how DMA ranges work in the ARM bus_dma implementation.

A new "arm32_dma_range" structure now describes a DMA window, with
a system address base, bus address base, and length. In addition to
providing info about which memory regions are legal for DMA, the new
structure provides address translation support, as well.

As before, if a tag does not list any ranges, then all addresses are
considered valid, and no DMA address translation is performed.

This allows us to remove a large chunk of code which was duplicated and
tweaked slightly (to do the address translation) from the stock ARM
bus_dma in the XScale IOP and ARM Integrator ports.

Test compiled on all ARM platforms, test booted on Intel IQ80321 and Shark.
 1.16 31-Jul-2002  thorpej Move the calls to uvm_page_physload() out of pmap_bootstrap() and
into platform-specific initialization code, giving platform-specific
code control over which free list a given chunk of memory gets put
onto.

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

Discussed some time ago on port-arm.
 1.15 30-Jul-2002  thorpej Move the uvm_setpagesize() call to platform-dependent code in preparation
for other changes to pmap_bootstrap().
 1.14 02-Jun-2002  drochner branches: 1.14.2;
move initialization of the "struct pglist" returned by uvm_pglistalloc()
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling
 1.13 05-Apr-2002  thorpej branches: 1.13.2; 1.13.4;
* Rewrite the 32-bit ARM pte.h based on the ARM architecture manual.
Significant cleanup, here, including better PTE bit names.
* Add XScale PTE extensions (ECC enable, write-allocate cache mode).
* Mechanical changes everywhere else to update for new pte.h. While
doing this, two bugs (as a result of typos) were fixed in

arm/arm32/bus_dma.c
evbarm/integrator/int_bus_dma.c
 1.12 03-Apr-2002  thorpej Clean up handling of the vector page on 32-bit ARM systems:
* Don't refer to VA 0, instead refer to a new variable: vector_page
* Delete the old zero_page_*() functions, replacing them with a new
one: vector_page_setprot().
* When manipulating vector page mappings in user pmaps, only do so if
the vector page is below KERNEL_BASE (if it's above KERNEL_BASE, the
vector page is mapped by the kernel pmap).
* Add a new function, arm32_vector_init(), which takes the virtual
address of the vector page (which MUST be valid when the function
is called) and a bitmask of vectors the kernel is going to take
over, and performs all vector page initialization, including setting
the V bit in the CPU Control register ("relocate vectors to high
address"), if necessary.
 1.11 31-Mar-2002  thorpej Add a second page table for the kernel image. INSTALL kernels cross
a 4MB boundary.

XXX The 32-bit ARM VM layout needs a complete overhaul. After 1.6.
 1.10 25-Mar-2002  thorpej * Fix use of pmap_curmaxkvaddr.
* Use the PTP hint in the pmap.
 1.9 23-Mar-2002  thorpej * Rename PROCESS_PAGE_TBLS_BASE -> PTE_BASE
* Rename ALT_PAGE_TBLS_BASE -> APTE_BASE
* Garbage-collect PAGE_TABLE_SPACE_START
 1.8 03-Mar-2002  chris branches: 1.8.2;
Implement pmap_growkernel for arm32 based ports.
Note that this has been compiled on some systems, cats, IQ80310, IPAQ, netwinder and shark (note that shark's build is currently broken due to other reasons), but only actually run on cats.
Shark doesn't make use of the functionality as I believe there has to be a correlation between OFW and the kernel tables so that calls into OFW work.
 1.7 22-Feb-2002  thorpej branches: 1.7.2;
Change pmap_map_entry() to work like pmap_map_chunk(): take a pointer
to the L1 table and a virtual address, and no pointer to the L2 table.
The L2 table will be looked up by pmap_map_entry(), which will panic
if the there is no L2 table for the requested VA.

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

Add a second L2 table for mapping kernel text/data/bss on the
IQ80310 (fixes booting kernels with ramdisks).
 1.5 21-Feb-2002  thorpej Delete some unneeded comments.
 1.4 20-Feb-2002  thorpej map_pagetable() -> pmap_link_l2pt(), and move it to pmap.c
 1.3 20-Feb-2002  thorpej Collapse map_entry{,ro,nc}() into a single pmap_map_entry() that
takes a prot and a "cacheable" indicator.
 1.2 20-Feb-2002  thorpej Rename map_section() to pmap_map_section(), move it to pmap.c, and give it
an extra argument (prot - specifies protection of the mapping).
 1.1 10-Feb-2002  thorpej Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.7.2.9 18-Oct-2002  nathanw Catch up to -current.
 1.7.2.8 27-Aug-2002  thorpej Sync with -current.
 1.7.2.7 01-Aug-2002  nathanw Catch up to -current.
 1.7.2.6 24-Jun-2002  nathanw Curproc->curlwp renaming.

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

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).
 1.7.2.5 20-Jun-2002  nathanw Catch up to -current.
 1.7.2.4 17-Apr-2002  nathanw Catch up to -current.
 1.7.2.3 01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.7.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.7.2.1 22-Feb-2002  nathanw file ofw.c was added on branch nathanw_sa on 2002-02-28 04:11:54 +0000
 1.8.2.1 17-Mar-2002  thorpej IPL_IMP -> IPL_VM
 1.13.4.2 14-Feb-2003  he Revert pull-up of revision 1.18 (requested by rearnsha in ticket #1170):
Revert cached memory access to L1 tables, this causes instability
on the release branch.
 1.13.4.1 21-Nov-2002  he Pull up revision 1.18 (requested by thorpej in ticket #712):
Do cached memory access to L1 tables, making sure to
write-back the cache after any L1 table modifications.
 1.13.2.2 31-Aug-2002  gehenna catch up with -current.
 1.13.2.1 15-Jul-2002  gehenna catch up with -current.
 1.14.2.3 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.14.2.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.14.2.1 02-Jun-2002  jdolecek file ofw.c was added on branch kqueue on 2002-06-23 17:41:26 +0000
 1.31.2.5 11-Dec-2005  christos Sync with head.
 1.31.2.4 17-Jan-2005  skrll Sync with HEAD.
 1.31.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.31.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.31.2.1 03-Aug-2004  skrll Sync with HEAD
 1.34.10.4 15-Nov-2007  yamt sync with head.
 1.34.10.3 03-Sep-2007  yamt sync with head.
 1.34.10.2 26-Feb-2007  yamt sync with head.
 1.34.10.1 21-Jun-2006  yamt sync with head.
 1.35.20.1 01-Feb-2007  ad Sync with head.
 1.36.2.2 12-Mar-2007  rmind Sync with HEAD.
 1.36.2.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.38.14.1 15-Aug-2007  skrll Sync with HEAD.
 1.38.12.1 07-Aug-2007  matt Sync with HEAD.
 1.38.10.1 03-Oct-2007  garbled Sync with HEAD
 1.38.2.2 03-Dec-2007  ad Sync with HEAD.
 1.38.2.1 20-Aug-2007  ad Sync with HEAD.
 1.39.6.2 01-Jan-2008  chris Sync with HEAD.
 1.39.6.1 18-Aug-2007  chris Sync with HEAD
 1.39.4.2 28-Oct-2007  joerg Sync with HEAD.
 1.39.4.1 16-Aug-2007  jmcneill Sync with HEAD.
 1.39.2.1 26-Dec-2007  rjs Sync with HEAD.
 1.40.6.1 13-Nov-2007  bouyer Sync with HEAD
 1.40.2.2 28-Jan-2008  matt Given the that there are only 4 IPLs (ignoring soft IPLs), a number of
cleanups can be done:
Remove _SPL_* aliases.
Don't store irqmasks in ci_cpl, just make it an ipl level.
Add fast softint switching support.
 1.40.2.1 06-Nov-2007  matt sync with HEAD
 1.42.20.4 11-Mar-2010  yamt sync with head
 1.42.20.3 19-Aug-2009  yamt sync with head.
 1.42.20.2 04-May-2009  yamt sync with head.
 1.42.20.1 16-May-2008  yamt sync with head.
 1.42.18.1 18-May-2008  yamt sync with head.
 1.42.16.2 17-Jan-2009  mjf Sync with HEAD.
 1.42.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.43.8.2 28-Apr-2009  skrll Sync with HEAD.
 1.43.8.1 19-Jan-2009  skrll Sync with HEAD.
 1.43.6.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.44.4.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.53.4.2 21-Apr-2011  rmind sync with head
 1.53.4.1 05-Mar-2011  rmind sync with head
 1.54.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.56.4.1 22-Nov-2011  mrg IPL_AUDIO is no more
 1.56.2.3 22-May-2014  yamt sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.56.2.2 30-Oct-2012  yamt sync with head
 1.56.2.1 17-Apr-2012  yamt sync with head
 1.57.6.1 06-Dec-2012  matt Merge changes from -current.
 1.57.2.3 06-Mar-2012  mrg sync to -current
 1.57.2.2 06-Mar-2012  mrg sync to -current
 1.57.2.1 04-Mar-2012  mrg sync to latest -current.
 1.59.2.3 03-Dec-2017  jdolecek update from HEAD
 1.59.2.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.59.2.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.60.2.2 18-May-2014  rmind sync with head
 1.60.2.1 28-Aug-2013  rmind sync with head
 1.63.6.4 28-Aug-2017  skrll Sync with HEAD
 1.63.6.3 05-Feb-2017  skrll Sync with HEAD
 1.63.6.2 09-Jul-2016  skrll Sync with HEAD
 1.63.6.1 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.65.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.65.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.66.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.67.14.1 10-Jun-2019  christos Sync with HEAD
 1.67.12.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.18 20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.17 27-Jan-2021  thorpej Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.
 1.16 13-Mar-2012  elad branches: 1.16.52;
Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
 1.15 11-Oct-2008  tsutsui branches: 1.15.28; 1.15.32;
- use aprint_debug_dev(9) for debug info
- use aprint_normal_dev(9) rather than aprint_normal(9) + device_xname()
 1.14 17-Apr-2008  macallan branches: 1.14.4; 1.14.10;
first step for X on rev. 4 Sharks - add support for mmap()ing ISA IO,
legacy VGA and SVGA aperture via /dev/ttyE0
Mappings are restricted to root ( hi Elad )
 1.13 14-Mar-2008  cube Split device_t and softc for all attachments of vga(4).
 1.12 28-Oct-2007  jmmv branches: 1.12.12; 1.12.16;
Drop pccons. Obsoleted by wscons, now fully supported in NetBSD/shark.
OK'ed by thorpej@ and tsutsui@ a while ago.
 1.11 17-Oct-2007  garbled Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.10 30-Jul-2007  jmmv branches: 1.10.2; 1.10.4; 1.10.6; 1.10.8; 1.10.12;
Fix build of kernels that use vga or igsfb together with pccons by avoiding
a warning mentioning an unused static function.
 1.9 25-Jan-2007  macallan branches: 1.9.6; 1.9.14; 1.9.16; 1.9.18;
have OF re-initialize the console before calling OF_exit() so we actually
end up in something usable
 1.8 11-Dec-2005  christos branches: 1.8.20;
merge ktrace-lwp.
 1.7 27-Feb-2005  tsutsui branches: 1.7.4;
cnattach functions should return zero on success, non-zero on failure.
 1.6 09-Jan-2005  tsutsui branches: 1.6.2; 1.6.4;
- Adapt to vga_common_attach() API changes.
- Add more VGA initialization code to vga_ofbus_cnattach() from pccons.c.
- Export vga_ofbus_cnattach() prototype for consinit() ops.
 1.5 15-Jul-2003  lukem __KERNEL_RCSID()
 1.4 02-Oct-2002  thorpej branches: 1.4.6;
Add trailing ; to CFATTACH_DECL.
 1.3 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.2 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14;
Bring over a couple of files from arch/dnard that will be useful in
the future.
 1.1.14.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file vga_ofbus.c was added on branch kqueue on 2002-06-23 17:41:26 +0000
 1.1.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file vga_ofbus.c was added on branch nathanw_sa on 2002-02-28 04:11:55 +0000
 1.4.6.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.4.6.4 17-Jan-2005  skrll Sync with HEAD.
 1.4.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.6.1 03-Aug-2004  skrll Sync with HEAD
 1.6.4.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.6.2.1 29-Apr-2005  kent sync with -current
 1.7.4.4 17-Mar-2008  yamt sync with head.
 1.7.4.3 15-Nov-2007  yamt sync with head.
 1.7.4.2 03-Sep-2007  yamt sync with head.
 1.7.4.1 26-Feb-2007  yamt sync with head.
 1.8.20.1 01-Feb-2007  ad Sync with head.
 1.9.18.1 15-Aug-2007  skrll Sync with HEAD.
 1.9.16.1 07-Aug-2007  matt Sync with HEAD.
 1.9.14.1 03-Oct-2007  garbled Sync with HEAD
 1.9.6.2 03-Dec-2007  ad Sync with HEAD.
 1.9.6.1 20-Aug-2007  ad Sync with HEAD.
 1.10.12.1 13-Nov-2007  bouyer Sync with HEAD
 1.10.8.2 23-Mar-2008  matt sync with HEAD
 1.10.8.1 06-Nov-2007  matt sync with HEAD
 1.10.6.2 21-Mar-2008  chris Sync with head.
 1.10.6.1 01-Jan-2008  chris Sync with HEAD.
 1.10.4.1 28-Oct-2007  joerg Sync with HEAD.
 1.10.2.1 26-Dec-2007  rjs Sync with HEAD.
 1.12.16.3 17-Jan-2009  mjf Sync with HEAD.
 1.12.16.2 02-Jun-2008  mjf Sync with HEAD.
 1.12.16.1 03-Apr-2008  mjf Sync with HEAD.
 1.12.12.1 24-Mar-2008  keiichi sync with head.
 1.14.10.1 19-Oct-2008  haad Sync with HEAD.
 1.14.4.1 04-May-2009  yamt sync with head.
 1.15.32.1 05-Apr-2012  mrg sync to latest -current.
 1.15.28.1 17-Apr-2012  yamt sync with head
 1.16.52.1 03-Apr-2021  thorpej Sync with HEAD.
 1.2 11-Dec-2005  christos merge ktrace-lwp.
 1.1 09-Jan-2005  tsutsui branches: 1.1.4;
- Adapt to vga_common_attach() API changes.
- Add more VGA initialization code to vga_ofbus_cnattach() from pccons.c.
- Export vga_ofbus_cnattach() prototype for consinit() ops.
 1.1.4.2 17-Jan-2005  skrll Sync with HEAD.
 1.1.4.1 09-Jan-2005  skrll file vga_ofbusvar.h was added on branch ktrace-lwp on 2005-01-17 19:30:19 +0000
 1.13 21-Jan-2022  thorpej Don't bother with devhandle_from_of() if we're just forwarding along
our own node; use device_handle(self) instead.
 1.12 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.11 24-Apr-2021  thorpej branches: 1.11.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.10 27-Jan-2021  thorpej branches: 1.10.2;
Rename of_match_compat_data() to of_compatible_match(). Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.
 1.9 03-Jan-2019  macallan branches: 1.9.12;
catch up with struct arm32_pci_chipset changes
 1.8 18-Apr-2017  flxd branches: 1.8.2; 1.8.10; 1.8.14; 1.8.16; 1.8.18;
First pass reducing magic numbers adding register defines.
No change to register values/writes, except VLPCI_MISC_CTL_HIADDR_DIS added.
 1.7 18-Apr-2017  flxd KNF, whitespace.
 1.6 12-Mar-2017  martin branches: 1.6.2;
Implement {pci,isa}_intr_disestablish
 1.5 10-Mar-2017  macallan - provide access to PCI memory space
- pass a DMA tag. Won't work but at least we don't crash anymore
TODO:
- magic number reduction. Seriously.
- figure out why DMA doesn't work

with this cards that don't need DMA or more than 1MB of MMIO space should work
 1.4 27-Feb-2017  jakllsch Flesh out missing functions. Get IO space and interrupts working.

Successfully tested with RTL8029 ne(4)@pci(4).
 1.3 19-Feb-2017  jakllsch Filter configuration space at and above PCI_CONF_SIZE, instead of KASSERTing.
 1.2 18-Feb-2017  flxd Let vlpci attach instead of ofbus. OK jakllsch@
 1.1 17-Feb-2017  jakllsch Add initial basic driver for DNARD's VT82C505 VL to PCI bridge.

Currently only allows configuration space, and I/O space access, the
latter of which has not yet been tested. DMA support is currently
unimplemented.

Add commented lines to GENERIC.
 1.6.2.3 26-Apr-2017  pgoyette Sync with HEAD
 1.6.2.2 20-Mar-2017  pgoyette Sync with HEAD
 1.6.2.1 12-Mar-2017  pgoyette file vlpci.c was added on branch pgoyette-localcount on 2017-03-20 06:57:20 +0000
 1.8.18.1 10-Jun-2019  christos Sync with HEAD
 1.8.16.1 18-Jan-2019  pgoyette Synch with HEAD
 1.8.14.2 03-Dec-2017  jdolecek update from HEAD
 1.8.14.1 18-Apr-2017  jdolecek file vlpci.c was added on branch tls-maxphys on 2017-12-03 11:36:42 +0000
 1.8.10.2 28-Aug-2017  skrll Sync with HEAD
 1.8.10.1 18-Apr-2017  skrll file vlpci.c was added on branch nick-nhusb on 2017-08-28 17:51:52 +0000
 1.8.2.2 21-Apr-2017  bouyer Sync with HEAD
 1.8.2.1 18-Apr-2017  bouyer file vlpci.c was added on branch bouyer-socketcan on 2017-04-21 16:53:36 +0000
 1.9.12.1 03-Apr-2021  thorpej Sync with HEAD.
 1.10.2.2 04-Apr-2021  thorpej Associate the OpenFirmware phandle associated with a found device (including
PCI bus instances) by using CFARG_DEVHANDLE.
 1.10.2.1 23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.11.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.1 18-Apr-2017  flxd branches: 1.1.2; 1.1.4; 1.1.12; 1.1.16;
First pass reducing magic numbers adding register defines.
No change to register values/writes, except VLPCI_MISC_CTL_HIADDR_DIS added.
 1.1.16.2 03-Dec-2017  jdolecek update from HEAD
 1.1.16.1 18-Apr-2017  jdolecek file vlpci.h was added on branch tls-maxphys on 2017-12-03 11:36:42 +0000
 1.1.12.2 28-Aug-2017  skrll Sync with HEAD
 1.1.12.1 18-Apr-2017  skrll file vlpci.h was added on branch nick-nhusb on 2017-08-28 17:51:52 +0000
 1.1.4.2 26-Apr-2017  pgoyette Sync with HEAD
 1.1.4.1 18-Apr-2017  pgoyette file vlpci.h was added on branch pgoyette-localcount on 2017-04-26 02:53:07 +0000
 1.1.2.2 21-Apr-2017  bouyer Sync with HEAD
 1.1.2.1 18-Apr-2017  bouyer file vlpci.h was added on branch bouyer-socketcan on 2017-04-21 16:53:36 +0000
 1.8 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.7 19-Jul-2011  dyoung branches: 1.7.2; 1.7.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.
 1.6 14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.5 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.4 11-Dec-2005  christos branches: 1.4.80; 1.4.88; 1.4.94;
merge ktrace-lwp.
 1.3 15-Jul-2003  lukem __KERNEL_RCSID()
 1.2 23-Jun-2003  martin branches: 1.2.2;
Make sure to include opt_foo.h if a defflag option FOO is used.
 1.1 10-Feb-2002  thorpej branches: 1.1.2; 1.1.14;
Kill arch/arm32. The last platform supported there, Shark, is now
in arch/shark.

(NOTE: arch/dnard, a premature move to split out the Shark support
code, is going to be deleted. It has bit-rotted.)
 1.1.14.2 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.14.1 10-Feb-2002  jdolecek file wdc_ofisa_machdep.c was added on branch kqueue on 2002-06-23 17:41:26 +0000
 1.1.2.2 28-Feb-2002  nathanw Catch up to -current.
 1.1.2.1 10-Feb-2002  nathanw file wdc_ofisa_machdep.c was added on branch nathanw_sa on 2002-02-28 04:11:55 +0000
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.4.94.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.88.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.80.1 04-May-2009  yamt sync with head.
 1.7.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.7.2.1 30-Oct-2012  yamt sync with head

RSS XML Feed