Home | History | Annotate | only in /src/sys/arch/pmax/ibus
History log of /src/sys/arch/pmax/ibus
RevisionDateAuthorComments
 1.1 15-Oct-1998  nisimura branches: 1.1.2;
file dc.c was initially added on branch nisimura-pmax-wscons.
 1.1.2.10 20-Nov-1999  nisimura Make these more realistic codes and fix many errors I made, getting
closer to dev/qbus/dz.c. No control lead status change scanner, yet.
 1.1.2.9 19-Nov-1999  nisimura Make these more realistic mockup codes; dckbd.c and dcms.c are not useful
before I commit changes in dev/dec/ directory.
 1.1.2.8 17-Apr-1999  nisimura - Introduce 'dctty' as a child node of 'dc'. It's a sibling of 'dckbd'
and 'dcms'.
- Needs rework of how to send any data to keyboard and mouse.
attmt.sendchar is evil. It'd be nice to have flexible framework of
two way communication channels between wskbd/wsmouse and lower device
layer.
 1.1.2.7 17-Apr-1999  nisimura - Add a sketch work of 'dctty' device node.
 1.1.2.6 15-Mar-1999  nisimura - Decouple "ibus" from TC device implementation.
- Move IOASIC initialization to platform.os_init().
 1.1.2.5 07-Jan-1999  nisimura - Fix an error in uninitialized pointer use. (needs to have tty subdevices
similiar to zstty).
 1.1.2.4 26-Oct-1998  nisimura - Have dc_ibus.c to split DC7085 driver body and MD match/attach routines
as Matt Thomas suggested. Needs more work to move dc.c at dev/dec/.
- Abandon TIOC{MSET,MBIS,MBIC} ioctls.
- Fix typos in dc7085var.h
 1.1.2.3 23-Oct-1998  nisimura - Some modifications for NWSCONS integrity. dc driver will take LK201 and
VSXXX as child devices.
 1.1.2.2 21-Oct-1998  nisimura - Add symbolic definitions for DC7085 quad line UART hardware registers.
- Pay more attention to provide "No framebuffer device configured" message
in the case of kernel with either no NWSCONS or unsupported TC option is
booted from bitmap console.
- A little progress in dc.c preparing for dckbd.c.
 1.1.2.1 15-Oct-1998  nisimura - Reflect new internals.
 1.1 21-Oct-1998  nisimura branches: 1.1.2;
file dc7085reg.h was initially added on branch nisimura-pmax-wscons.
 1.1.2.2 17-Apr-1999  nisimura - Introduce 'dctty' as a child node of 'dc'. It's a sibling of 'dckbd'
and 'dcms'.
- Needs rework of how to send any data to keyboard and mouse.
attmt.sendchar is evil. It'd be nice to have flexible framework of
two way communication channels between wskbd/wsmouse and lower device
layer.
 1.1.2.1 21-Oct-1998  nisimura - Add symbolic definitions for DC7085 quad line UART hardware registers.
- Pay more attention to provide "No framebuffer device configured" message
in the case of kernel with either no NWSCONS or unsupported TC option is
booted from bitmap console.
- A little progress in dc.c preparing for dckbd.c.
 1.1 23-Oct-1998  nisimura branches: 1.1.2;
file dc7085var.h was initially added on branch nisimura-pmax-wscons.
 1.1.2.6 26-Nov-1999  nisimura Fix errors I made; make compilable and use unit number in 'struct device'.
 1.1.2.5 20-Nov-1999  nisimura Make these more realistic codes and fix many errors I made, getting
closer to dev/qbus/dz.c. No control lead status change scanner, yet.
 1.1.2.4 19-Nov-1999  nisimura Make these more realistic mockup codes; dckbd.c and dcms.c are not useful
before I commit changes in dev/dec/ directory.
 1.1.2.3 17-Apr-1999  nisimura - Introduce 'dctty' as a child node of 'dc'. It's a sibling of 'dckbd'
and 'dcms'.
- Needs rework of how to send any data to keyboard and mouse.
attmt.sendchar is evil. It'd be nice to have flexible framework of
two way communication channels between wskbd/wsmouse and lower device
layer.
 1.1.2.2 26-Oct-1998  nisimura - Have dc_ibus.c to split DC7085 driver body and MD match/attach routines
as Matt Thomas suggested. Needs more work to move dc.c at dev/dec/.
- Abandon TIOC{MSET,MBIS,MBIC} ioctls.
- Fix typos in dc7085var.h
 1.1.2.1 23-Oct-1998  nisimura - Some modifications for NWSCONS integrity. dc driver will take LK201 and
VSXXX as child devices.
 1.1 26-Oct-1998  nisimura branches: 1.1.2;
file dc_ibus.c was initially added on branch nisimura-pmax-wscons.
 1.1.2.5 26-Nov-1999  nisimura Fix errors I made; make compilable and use unit number in 'struct device'.
 1.1.2.4 25-Nov-1999  nisimura Use submatch() technique for matche sequence for implicit default case.
 1.1.2.3 19-Nov-1999  nisimura Merge w/ recent changes in main trunk.
 1.1.2.2 17-Apr-1999  nisimura - Introduce 'dctty' as a child node of 'dc'. It's a sibling of 'dckbd'
and 'dcms'.
- Needs rework of how to send any data to keyboard and mouse.
attmt.sendchar is evil. It'd be nice to have flexible framework of
two way communication channels between wskbd/wsmouse and lower device
layer.
 1.1.2.1 26-Oct-1998  nisimura - Have dc_ibus.c to split DC7085 driver body and MD match/attach routines
as Matt Thomas suggested. Needs more work to move dc.c at dev/dec/.
- Abandon TIOC{MSET,MBIS,MBIC} ioctls.
- Fix typos in dc7085var.h
 1.1 31-Mar-1999  nisimura branches: 1.1.2;
file dckbd.c was initially added on branch nisimura-pmax-wscons.
 1.1.2.4 25-Nov-1999  nisimura Make these mockups more realistic to fit WSCONS.
 1.1.2.3 19-Nov-1999  nisimura Make these more realistic mockup codes; dckbd.c and dcms.c are not useful
before I commit changes in dev/dec/ directory.
 1.1.2.2 17-Apr-1999  nisimura - Introduce 'dctty' as a child node of 'dc'. It's a sibling of 'dckbd'
and 'dcms'.
- Needs rework of how to send any data to keyboard and mouse.
attmt.sendchar is evil. It'd be nice to have flexible framework of
two way communication channels between wskbd/wsmouse and lower device
layer.
 1.1.2.1 31-Mar-1999  nisimura - Add LK201/VSXXX mouse codes for PMAX and 3MAX for reference. These
codes need reworks. 'dc' device should be like as 'zsc' having sub nodes
for 'dctty', 'lkkbd' and 'vsms.' The structure would be also good for
2nd and 3rd 4-channel serials of 5100.
 1.1 31-Mar-1999  nisimura branches: 1.1.2;
file dcms.c was initially added on branch nisimura-pmax-wscons.
 1.1.2.5 25-Nov-1999  nisimura Use submatch() technique for matche sequence for implicit default case.
 1.1.2.4 25-Nov-1999  nisimura Make these mockups more realistic to fit WSCONS.
 1.1.2.3 19-Nov-1999  nisimura Make these more realistic mockup codes; dckbd.c and dcms.c are not useful
before I commit changes in dev/dec/ directory.
 1.1.2.2 17-Apr-1999  nisimura - Introduce 'dctty' as a child node of 'dc'. It's a sibling of 'dckbd'
and 'dcms'.
- Needs rework of how to send any data to keyboard and mouse.
attmt.sendchar is evil. It'd be nice to have flexible framework of
two way communication channels between wskbd/wsmouse and lower device
layer.
 1.1.2.1 31-Mar-1999  nisimura - Add LK201/VSXXX mouse codes for PMAX and 3MAX for reference. These
codes need reworks. 'dc' device should be like as 'zsc' having sub nodes
for 'dctty', 'lkkbd' and 'vsms.' The structure would be also good for
2nd and 3rd 4-channel serials of 5100.
 1.1 17-Apr-1999  nisimura branches: 1.1.2;
file dctty.c was initially added on branch nisimura-pmax-wscons.
 1.1.2.6 26-Nov-1999  nisimura Fix errors I made; make compilable and use unit number in 'struct device'.
 1.1.2.5 25-Nov-1999  nisimura Make these mockups more realistic to fit WSCONS.
 1.1.2.4 20-Nov-1999  nisimura Make these more realistic codes and fix many errors I made, getting
closer to dev/qbus/dz.c. No control lead status change scanner, yet.
 1.1.2.3 19-Nov-1999  nisimura Make these more realistic mockup codes; dckbd.c and dcms.c are not useful
before I commit changes in dev/dec/ directory.
 1.1.2.2 29-Oct-1999  drochner add missing newline in attach printout
 1.1.2.1 17-Apr-1999  nisimura - Introduce 'dctty' as a child node of 'dc'. It's a sibling of 'dckbd'
and 'dcms'.
- Needs rework of how to send any data to keyboard and mouse.
attmt.sendchar is evil. It'd be nice to have flexible framework of
two way communication channels between wskbd/wsmouse and lower device
layer.
 1.14 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.13 24-Apr-2021  thorpej branches: 1.13.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.12 18-May-2017  christos branches: 1.12.24;
PR/52242: Utkarsh Anand: Minimal fix for fallout from moving to the common
mips bus_space code.
 1.11 09-Jul-2011  matt branches: 1.11.12; 1.11.30; 1.11.44;
Cleanu <machine/*> includes
 1.10 20-Feb-2011  matt Merge forward from matt-nb5-mips64.
New interrupt code.
mips64 support for DS5000/260.
 1.9 28-Apr-2008  martin branches: 1.9.18; 1.9.22; 1.9.28; 1.9.30;
Remove clause 3 and 4 from TNF licenses
 1.8 29-Mar-2008  tsutsui branches: 1.8.2; 1.8.4;
- don't forget to set sc_dev
- use aprint_*() variants
 1.7 15-Mar-2008  matt Switch dz driver to PRIVALLOC and device_* accessors.
 1.6 17-Oct-2007  garbled branches: 1.6.12; 1.6.16;
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 09-Oct-2007  ad Merge from vmlocking: add more calls to DELAY().
 1.4 04-Mar-2007  christos branches: 1.4.2; 1.4.10; 1.4.18; 1.4.20; 1.4.22;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.3 11-Dec-2005  christos branches: 1.3.26;
merge ktrace-lwp.
 1.2 13-Dec-2003  ad branches: 1.2.16;
Add drivers for the desktop bus, DC-7085 and pm display. Make it possible to
select between rcons or wscons at compile time. Ok'ed by simonb.
 1.1 15-Mar-2002  ad branches: 1.1.2; 1.1.12;
file dz_ibus.c was initially added on branch ad_pmax_wscons.
 1.1.12.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.12.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.12.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.3 18-Sep-2002  ad Minor tweaks.
 1.1.2.2 18-Sep-2002  ad - Attach keyboard/mouse only on 3MAX and PMAX.
- The mouse needs 8-bit characters, not 7.
 1.1.2.1 15-Mar-2002  ad Changes necessary for wscons on NetBSD/pmax. All device support is here,
just needs further testing.
 1.2.16.3 17-Mar-2008  yamt sync with head.
 1.2.16.2 27-Oct-2007  yamt sync with head.
 1.2.16.1 03-Sep-2007  yamt sync with head.
 1.3.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.4.22.1 14-Oct-2007  yamt sync with head.
 1.4.20.2 23-Mar-2008  matt sync with HEAD
 1.4.20.1 06-Nov-2007  matt sync with HEAD
 1.4.18.1 26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.4.10.1 16-Oct-2007  garbled Sync with HEAD
 1.4.2.1 15-Jul-2007  ad On mips, add a bunch more delays. Behaves a lot better now.
 1.6.16.2 02-Jun-2008  mjf Sync with HEAD.
 1.6.16.1 03-Apr-2008  mjf Sync with HEAD.
 1.6.12.1 24-Mar-2008  keiichi sync with head.
 1.8.4.1 16-May-2008  yamt sync with head.
 1.8.2.1 18-May-2008  yamt sync with head.
 1.9.30.1 05-Mar-2011  bouyer Sync with HEAD
 1.9.28.1 06-Jun-2011  jruoho Sync with HEAD.
 1.9.22.1 05-Mar-2011  rmind sync with head
 1.9.18.1 29-Dec-2010  matt De-__P
Ansify
make LP64 clean.
 1.11.44.1 19-May-2017  pgoyette Resolve conflicts from previous merge (all resulting from $NetBSD
keywork expansion)
 1.11.30.1 28-Aug-2017  skrll Sync with HEAD
 1.11.12.1 03-Dec-2017  jdolecek update from HEAD
 1.12.24.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.13.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.23 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.22 24-Apr-2021  thorpej branches: 1.22.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.21 09-Jun-2015  matt branches: 1.21.32;
#include either <sys/cpu.h> or <mips/cpuregs.h> as needed
 1.20 09-Jul-2011  matt branches: 1.20.12; 1.20.30;
Cleanu <machine/*> includes
 1.19 20-Feb-2011  matt Merge forward from matt-nb5-mips64.
New interrupt code.
mips64 support for DS5000/260.
 1.18 16-Mar-2009  dsl branches: 1.18.4; 1.18.6; 1.18.8;
ANSIfy functions with function-pointer arguments
 1.17 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.16 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.15 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.14 04-Mar-2007  christos branches: 1.14.44; 1.14.52; 1.14.58; 1.14.62;
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 26-Aug-2005  drochner kill some more simple submatch() functions, use config_stdsubmatch()
 1.11 25-Aug-2005  drochner replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks
 1.10 13-Sep-2004  drochner branches: 1.10.12;
autoconf cleanup: turn xxxsubmatch() functions into the locator
passing variants
 1.9 01-Jan-2003  thorpej branches: 1.9.2;
Use aprint_normal() for cfprint routines.
 1.8 27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.7 29-Feb-2000  nisimura branches: 1.7.8; 1.7.12;
- Have SYS_DEV_xxx device cookie symbols to select and install proper
interrupt handlers into intrtab[] array, rather than the idea of devices
in 'psuedo' TURBOchannel slots.
- Nuke symbols for psuedo TC slots.
- Abandon never/unlikely used intr_disestablish()s.
 1.6 14-Jan-2000  ad Make consistant with the new order.
 1.5 09-Jan-2000  simonb The clean-up continues:
- Make local-only function and variables static.
- Move function prototypes and extern variable declarations to
header files.
- Delete unused variables.
There's still a handful of extern declaraions that should be fixed up.
 1.4 24-Nov-1999  thorpej Make separate device lists for the 3100 and 5100, and add a way to probe
for optional `dc' devices on the 5100.
 1.3 23-Nov-1999  thorpej Add an `addr' locator to the `ibus' bus. This allows you to wire down
unti numbers on systems which have e.g. multiple `dc' devices on the
internal bus (like the 5100).
 1.2 15-Nov-1999  nisimura Very large scale change to sweep obstracles to remove 3MAX IOASIC disguise.
- Rework ibus device configuration and interrupt handler assignment.
- Remove TC device exposure in 'mainbus.c'
- Squash 'ibus_{3100,5100}.c' into a file; it can not cope with 3max.
- 'struct confargs' -> 'struct mainbus_attach_args'
Now about to remove tc_slot_info[] and tc_enable_interrupt inherited from
4.4BSD.
 1.1 19-Apr-1998  jonathan branches: 1.1.4; 1.1.16; 1.1.22;
Support shared Decstation 3100 and Decsystem 5100 baseboard devices
using a virtual "ibus" for baseboard devices.
 1.1.22.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.1.16.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.4.2 14-Mar-2000  nisimura Synchronize with the efforts made lately in main trunk, filling gaps.
 1.1.4.1 15-Oct-1998  nisimura - Reflect new internals.
 1.7.12.2 03-Jan-2003  thorpej Sync with HEAD.
 1.7.12.1 18-Oct-2002  nathanw Catch up to -current.
 1.7.8.1 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.9.2.3 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.9.2.2 21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.2.1 18-Sep-2004  skrll Sync with HEAD.
 1.10.12.2 03-Sep-2007  yamt sync with head.
 1.10.12.1 21-Jun-2006  yamt sync with head.
 1.13.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.14.62.1 29-Dec-2010  matt De-__P
Ansify
make LP64 clean.
 1.14.58.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.14.52.1 28-Apr-2009  skrll Sync with HEAD.
 1.14.44.1 04-May-2009  yamt sync with head.
 1.18.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.18.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.18.4.1 05-Mar-2011  rmind sync with head
 1.20.30.1 22-Sep-2015  skrll Sync with HEAD
 1.20.12.1 03-Dec-2017  jdolecek update from HEAD
 1.21.32.2 22-Mar-2021  thorpej Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.
 1.21.32.1 22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.22.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.5 15-Nov-1999  nisimura Very large scale change to sweep obstracles to remove 3MAX IOASIC disguise.
- Rework ibus device configuration and interrupt handler assignment.
- Remove TC device exposure in 'mainbus.c'
- Squash 'ibus_{3100,5100}.c' into a file; it can not cope with 3max.
- 'struct confargs' -> 'struct mainbus_attach_args'
Now about to remove tc_slot_info[] and tc_enable_interrupt inherited from
4.4BSD.
 1.4 24-Apr-1999  simonb branches: 1.4.2; 1.4.8;
Nuke register and remove trailling white space.
 1.3 15-Mar-1999  nisimura branches: 1.3.4;
- Decouple "ibus" from TURBOchannel.
- Nuke mainbus_softc definition (it's empty).
 1.2 23-Oct-1998  jonathan Garbage-collect obsolete "field" intpri from ibus_attach_args.
clean up initalizers to use correct, in-range values for ia_cookie,
which is what ibus children passed down to ibus_intr_establish.
 1.1 19-Apr-1998  jonathan branches: 1.1.4;
Support shared Decstation 3100 and Decsystem 5100 baseboard devices
using a virtual "ibus" for baseboard devices.
 1.1.4.1 15-Oct-1998  nisimura - Reflect new internals.
 1.3.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.4.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.4.2.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.16 16-Nov-2016  macallan switch to common MIPS bus_space and bus_dma
tested by flxd@
 1.15 09-Jul-2011  matt branches: 1.15.12; 1.15.30; 1.15.34;
Cleanu <machine/*> includes
 1.14 20-Feb-2011  matt Merge forward from matt-nb5-mips64.
New interrupt code.
mips64 support for DS5000/260.
 1.13 14-Mar-2009  dsl branches: 1.13.4; 1.13.6; 1.13.8;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.12 14-Mar-2009  dsl 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.11 26-May-2008  nisimura branches: 1.11.6; 1.11.12; 1.11.16;
- assign 2 clause TNF license to the files cited as my ownership.
- abandon and remove my copyright notice from the three files were
copied in order to adapt HW I don't have; pvr.c, pm.c and stic.c
 1.10 02-Oct-2002  thorpej branches: 1.10.108; 1.10.110; 1.10.112; 1.10.114;
Use CFATTACH_DECL().
 1.9 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.8 29-Feb-2000  nisimura branches: 1.8.6; 1.8.10; 1.8.14;
- Have SYS_DEV_xxx device cookie symbols to select and install proper
interrupt handlers into intrtab[] array, rather than the idea of devices
in 'psuedo' TURBOchannel slots.
- Nuke symbols for psuedo TC slots.
- Abandon never/unlikely used intr_disestablish()s.
 1.7 14-Jan-2000  ad Make consistant with the new order.
 1.6 10-Jan-2000  simonb Remove unneeded include files (up to 16 in two files!).
 1.5 08-Jan-2000  simonb Function prototype cleanup.
 1.4 11-Dec-1999  simonb branches: 1.4.2;
Revert previous - the problem was a hard-coded KN01 dc address, not the
cookie value.
 1.3 30-Nov-1999  nisimura Fix 3max DC cookie value; should make 3max serial port working.
 1.2 24-Nov-1999  thorpej Make separate device lists for the 3100 and 5100, and add a way to probe
for optional `dc' devices on the 5100.
 1.1 15-Nov-1999  nisimura Very large scale change to sweep obstracles to remove 3MAX IOASIC disguise.
- Rework ibus device configuration and interrupt handler assignment.
- Remove TC device exposure in 'mainbus.c'
- Squash 'ibus_{3100,5100}.c' into a file; it can not cope with 3max.
- 'struct confargs' -> 'struct mainbus_attach_args'
Now about to remove tc_slot_info[] and tc_enable_interrupt inherited from
4.4BSD.
 1.4.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.14.1 18-Oct-2002  nathanw Catch up to -current.
 1.8.10.1 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.8.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 29-Feb-2000  bouyer file ibus_3max.c was added on branch thorpej_scsipi on 2000-11-20 22:35:43 +0000
 1.10.114.2 24-Jun-2008  wrstuden Hand-merge files that didn't merge right in recent sync w/ current.
 1.10.114.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.10.112.1 04-May-2009  yamt sync with head.
 1.10.110.1 04-Jun-2008  yamt sync with head
 1.10.108.1 02-Jun-2008  mjf Sync with HEAD.
 1.11.16.1 29-Dec-2010  matt De-__P
Ansify
make LP64 clean.
 1.11.12.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.11.6.1 28-Apr-2009  skrll Sync with HEAD.
 1.13.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.13.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.13.4.1 05-Mar-2011  rmind sync with head
 1.15.34.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.15.30.1 05-Dec-2016  skrll Sync with HEAD
 1.15.12.1 03-Dec-2017  jdolecek update from HEAD
 1.6 15-Nov-1999  nisimura Very large scale change to sweep obstracles to remove 3MAX IOASIC disguise.
- Rework ibus device configuration and interrupt handler assignment.
- Remove TC device exposure in 'mainbus.c'
- Squash 'ibus_{3100,5100}.c' into a file; it can not cope with 3max.
- 'struct confargs' -> 'struct mainbus_attach_args'
Now about to remove tc_slot_info[] and tc_enable_interrupt inherited from
4.4BSD.
 1.5 29-Jun-1999  ad branches: 1.5.2; 1.5.8;
Kill duplicate RCS ID line at top of file.
 1.4 24-Apr-1999  simonb Nuke register and remove trailling white space.
 1.3 15-Mar-1999  nisimura branches: 1.3.4;
- Decouple "ibus" from TURBOchannel.
- Nuke mainbus_softc definition (it's empty).
 1.2 23-Oct-1998  jonathan Garbage-collect obsolete "field" intpri from ibus_attach_args.
clean up initalizers to use correct, in-range values for ia_cookie,
which is what ibus children passed down to ibus_intr_establish.
 1.1 19-Apr-1998  jonathan branches: 1.1.4;
Support shared Decstation 3100 and Decsystem 5100 baseboard devices
using a virtual "ibus" for baseboard devices.
 1.1.4.1 15-Oct-1998  nisimura - Reflect new internals.
 1.3.4.2 01-Jul-1999  thorpej Sync w/ -current.
 1.3.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.5.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.5.2.1 20-Nov-2000  bouyer Remove files that are no longer on the trunck
 1.24 16-Nov-2016  macallan switch to common MIPS bus_space and bus_dma
tested by flxd@
 1.23 09-Jul-2011  matt branches: 1.23.12; 1.23.30; 1.23.34;
Cleanu <machine/*> includes
 1.22 20-Feb-2011  matt Merge forward from matt-nb5-mips64.
New interrupt code.
mips64 support for DS5000/260.
 1.21 14-Mar-2009  dsl branches: 1.21.4; 1.21.6; 1.21.8;
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.20 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.19 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.18 02-Oct-2002  thorpej branches: 1.18.112; 1.18.120; 1.18.126; 1.18.130;
Use CFATTACH_DECL().
 1.17 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.16 29-Feb-2000  nisimura branches: 1.16.8; 1.16.12;
- Have SYS_DEV_xxx device cookie symbols to select and install proper
interrupt handlers into intrtab[] array, rather than the idea of devices
in 'psuedo' TURBOchannel slots.
- Nuke symbols for psuedo TC slots.
- Abandon never/unlikely used intr_disestablish()s.
 1.15 14-Jan-2000  ad - Make consistant with the new order.
- Ammend comment about PrestoServe.
 1.14 14-Jan-2000  simonb Redo interrupt establishment, based in part on work on the
[nisimura-pmax-wscons] branch and suggestions from Toru Nisimura:
- Remove bogus tc_slot_info[] name for interrupt handling array
and replace with simplified struct intrhand intrtab[] array.
- Add intr_establish() and intr_disestablish() function pointers
to struct platform and initialise this in each model-specific
initialisation, and remove global tc_enable_interrupt function
pointer.
- Remove model-specific function declarations from ibus/ibusvar.h.
This is functionally identical to the current scheme, and doesn't
yet try to commonise interrupt establishment by bus type as the
[nisimura-pmax-wscons] branch does.

Also, move cpuspeed variable from autoconf.c to machdep.c
 1.13 10-Jan-2000  simonb Remove unneeded include files (up to 16 in two files!).
 1.12 08-Jan-2000  simonb Function prototype cleanup.
 1.11 08-Dec-1999  simonb branches: 1.11.2;
Fix gaff in previous - need <kn230.h> and use _SYS_DZ0 not _SYS_DZ for
5100 console device.
 1.10 07-Dec-1999  simonb Use KN230_SYS_* names for 5100 device addresses.
 1.9 24-Nov-1999  simonb Don't check for additional dc instances yet.
 1.8 24-Nov-1999  simonb Fix tyop in comment.
 1.7 24-Nov-1999  thorpej Make separate device lists for the 3100 and 5100, and add a way to probe
for optional `dc' devices on the 5100.
 1.6 19-Nov-1999  nisimura Move declarations of 3100/5100 ibus interrupt establishment routines
to ibusvar.h
 1.5 19-Nov-1999  simonb Include "opt_dec_{3,5}100.h" so we know what models are
configured. Also fix prototypes for dec_3100_intr_establish()
and dec_3100_intr_disestablish().
 1.4 19-Nov-1999  nisimura Fix system type case analysis error; pointed by John.P.Darrow@wheaton.edu.
 1.3 17-Nov-1999  nisimura Consistent panic messages when erroneous kernel configurations are found.
 1.2 15-Nov-1999  nisimura Very large scale change to sweep obstracles to remove 3MAX IOASIC disguise.
- Rework ibus device configuration and interrupt handler assignment.
- Remove TC device exposure in 'mainbus.c'
- Squash 'ibus_{3100,5100}.c' into a file; it can not cope with 3max.
- 'struct confargs' -> 'struct mainbus_attach_args'
Now about to remove tc_slot_info[] and tc_enable_interrupt inherited from
4.4BSD.
 1.1 15-Oct-1998  nisimura branches: 1.1.2; 1.1.4;
file ibus_pmax.c was initially added on branch nisimura-pmax-wscons.
 1.1.4.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.1.2.5 14-Mar-2000  nisimura Synchronize with the efforts made lately in main trunk, filling gaps.
 1.1.2.4 19-Nov-1999  nisimura Cookie names were changed for two 4.ch serial option cards for 5100.
 1.1.2.3 19-Nov-1999  nisimura Merge w/ recent changes in main trunk.
 1.1.2.2 11-May-1999  nisimura - Correct the case analysis error in ibus_pmax.c
- Now about to remove #if NTC > 0 in mainbus.c
 1.1.2.1 15-Oct-1998  nisimura - Reflect new internals.
 1.11.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.16.12.1 18-Oct-2002  nathanw Catch up to -current.
 1.16.8.1 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.18.130.1 29-Dec-2010  matt De-__P
Ansify
make LP64 clean.
 1.18.126.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.18.120.1 28-Apr-2009  skrll Sync with HEAD.
 1.18.112.1 04-May-2009  yamt sync with head.
 1.21.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.21.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.21.4.1 05-Mar-2011  rmind sync with head
 1.23.34.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.23.30.1 05-Dec-2016  skrll Sync with HEAD
 1.23.12.1 03-Dec-2017  jdolecek update from HEAD
 1.1 15-Oct-1998  nisimura branches: 1.1.2;
file ibus_subr.c was initially added on branch nisimura-pmax-wscons.
 1.1.2.2 19-Nov-1999  nisimura Merge w/ recent changes in main trunk.
 1.1.2.1 15-Oct-1998  nisimura - Reflect new internals.
 1.20 09-Jul-2011  matt Cleanu <machine/*> includes
 1.19 20-Feb-2011  matt Merge forward from matt-nb5-mips64.
New interrupt code.
mips64 support for DS5000/260.
 1.18 14-Mar-2009  dsl branches: 1.18.4; 1.18.6; 1.18.8;
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 04-Mar-2007  christos branches: 1.17.44; 1.17.52; 1.17.58; 1.17.62;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.16 29-Feb-2000  nisimura branches: 1.16.46; 1.16.84;
- Have SYS_DEV_xxx device cookie symbols to select and install proper
interrupt handlers into intrtab[] array, rather than the idea of devices
in 'psuedo' TURBOchannel slots.
- Nuke symbols for psuedo TC slots.
- Abandon never/unlikely used intr_disestablish()s.
 1.15 14-Jan-2000  ad Make consistant with the new order.
 1.14 14-Jan-2000  simonb Redo interrupt establishment, based in part on work on the
[nisimura-pmax-wscons] branch and suggestions from Toru Nisimura:
- Remove bogus tc_slot_info[] name for interrupt handling array
and replace with simplified struct intrhand intrtab[] array.
- Add intr_establish() and intr_disestablish() function pointers
to struct platform and initialise this in each model-specific
initialisation, and remove global tc_enable_interrupt function
pointer.
- Remove model-specific function declarations from ibus/ibusvar.h.
This is functionally identical to the current scheme, and doesn't
yet try to commonise interrupt establishment by bus type as the
[nisimura-pmax-wscons] branch does.

Also, move cpuspeed variable from autoconf.c to machdep.c
 1.13 09-Jan-2000  simonb Use the badaddr() prototype in mips/include/cpu.h by including
<machine/cpu.h> in mips/include/mips_param.h. Remove duplicate
badaddr() prototypes from some pmax header files.
 1.12 08-Jan-2000  simonb Function prototype cleanup.
 1.11 24-Nov-1999  thorpej Make separate device lists for the 3100 and 5100, and add a way to probe
for optional `dc' devices on the 5100.
 1.10 23-Nov-1999  thorpej Add an `addr' locator to the `ibus' bus. This allows you to wire down
unti numbers on systems which have e.g. multiple `dc' devices on the
internal bus (like the 5100).
 1.9 19-Nov-1999  simonb Remove function declarations already declared in ibusvar.h and
fix typo in dec_3100_intr_*() declarations.
 1.8 19-Nov-1999  nisimura Move declarations of 3100/5100 ibus interrupt establishment routines
to ibusvar.h
 1.7 17-Nov-1999  nisimura A file which escaped from 11/15 jombo commit work.
 1.6 24-Apr-1999  simonb branches: 1.6.2; 1.6.8;
Nuke register and remove trailling white space.
 1.5 15-Mar-1999  nisimura branches: 1.5.4;
- Rearrangement for TC decoupling with some typo fixes.
 1.4 15-Mar-1999  nisimura - Decouple "ibus" from TURBOchannel.
- Nuke mainbus_softc definition (it's empty).
 1.3 23-Oct-1998  jonathan Garbage-collect obsolete "field" intpri from ibus_attach_args.
clean up initalizers to use correct, in-range values for ia_cookie,
which is what ibus children passed down to ibus_intr_establish.
 1.2 29-Aug-1998  mrg branches: 1.2.2;
add "int" type to interrupt handler typedefs (egcs warning)
 1.1 19-Apr-1998  jonathan Support shared Decstation 3100 and Decsystem 5100 baseboard devices
using a virtual "ibus" for baseboard devices.
 1.2.2.5 14-Mar-2000  nisimura Synchronize with the efforts made lately in main trunk, filling gaps.
 1.2.2.4 03-Feb-2000  nisimura Catch up to recent changes in main trunk.
 1.2.2.3 15-Mar-1999  nisimura - Decouple "ibus" from TC device implementation.
- Move IOASIC initialization to platform.os_init().
 1.2.2.2 15-Mar-1999  nisimura - Decouple "ibus" from TURBOchannel implementation.
- Sync. with main trunk.
 1.2.2.1 15-Oct-1998  nisimura - Reflect new internals.
 1.5.4.1 21-Jun-1999  thorpej Sync w/ -current.
 1.6.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.6.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.16.84.1 12-Mar-2007  rmind Sync with HEAD.
 1.16.46.1 03-Sep-2007  yamt sync with head.
 1.17.62.1 29-Dec-2010  matt De-__P
Ansify
make LP64 clean.
 1.17.58.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.17.52.1 28-Apr-2009  skrll Sync with HEAD.
 1.17.44.1 04-May-2009  yamt sync with head.
 1.18.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.18.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.18.4.1 05-Mar-2011  rmind sync with head
 1.13 04-Apr-2008  tsutsui Split device_t/softc for le(4) and variants and misc cosmetic changes.
 1.12 04-Jan-2008  ad branches: 1.12.6;
Include sys/device explicitly.
 1.11 06-Mar-2007  simonb branches: 1.11.20; 1.11.26; 1.11.32;
Fix some caddr_t rototill fallout.

Some from Erik Bertelsen on port-pmax@.
 1.10 04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.9 11-Dec-2005  christos branches: 1.9.26;
merge ktrace-lwp.
 1.8 15-Jul-2003  lukem branches: 1.8.16;
__KERNEL_RCSID()
 1.7 02-Oct-2002  thorpej branches: 1.7.6;
Use CFATTACH_DECL().
 1.6 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.5 26-Sep-2002  thorpej G/c external reference to ibus_cd.
 1.4 26-Sep-2002  thorpej No need to check that that parent's cfdriver is ibus_cd.
 1.3 08-Jan-2002  chs include sys/systm.h for strcmp() prototype.
 1.2 01-Oct-2001  simonb branches: 1.2.4;
Move pmax-only if_le_ibus.c from dev/tc to arch/pmax/ibus.
 1.1 15-Oct-1998  nisimura branches: 1.1.2; 1.1.6; 1.1.8;
file if_le_ibus.c was initially added on branch nisimura-pmax-wscons.
 1.1.8.1 11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.1.6.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.3 19-Nov-1999  nisimura Merge w/ recent changes in main trunk.
 1.1.2.2 19-Mar-1999  nisimura - This LANCE is a child node of 'ibus' and has nothing to do with TC.
 1.1.2.1 15-Oct-1998  nisimura - Reflect new internals.
 1.2.4.4 18-Oct-2002  nathanw Catch up to -current.
 1.2.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.2.4.2 11-Jan-2002  nathanw More catchup.
 1.2.4.1 01-Oct-2001  nathanw file if_le_ibus.c was added on branch nathanw_sa on 2002-01-11 23:38:41 +0000
 1.7.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.7.6.1 03-Aug-2004  skrll Sync with HEAD
 1.8.16.2 21-Jan-2008  yamt sync with head
 1.8.16.1 03-Sep-2007  yamt sync with head.
 1.9.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.11.32.1 08-Jan-2008  bouyer Sync with HEAD
 1.11.26.1 18-Feb-2008  mjf Sync with HEAD.
 1.11.20.1 09-Jan-2008  matt sync with HEAD
 1.12.6.1 02-Jun-2008  mjf Sync with HEAD.
 1.19 09-Jun-2015  matt #include either <sys/cpu.h> or <mips/cpuregs.h> as needed
 1.18 04-Jun-2011  tsutsui branches: 1.18.12; 1.18.30;
Split device_t/softc. Tested on GXemul.
 1.17 20-Feb-2011  matt branches: 1.17.2;
Merge forward from matt-nb5-mips64.
New interrupt code.
mips64 support for DS5000/260.
 1.16 14-Mar-2009  dsl branches: 1.16.4; 1.16.6; 1.16.8;
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.15 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.14 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.13 03-Jan-2008  joerg branches: 1.13.10; 1.13.18; 1.13.24; 1.13.28;
Timecounter and generic todr support for pmax. From Garret D'Amore.
 1.12 02-Oct-2002  thorpej branches: 1.12.22; 1.12.84; 1.12.90; 1.12.98;
Use CFATTACH_DECL().
 1.11 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.10 26-Sep-2002  thorpej G/c external reference to ibus_cd.
 1.9 26-Sep-2002  thorpej No need to check that that parent's cfdriver is ibus_cd.
 1.8 08-Jan-2002  chs include sys/systm.h for strcmp() prototype.
 1.7 14-Jan-2000  ad branches: 1.7.8; 1.7.12;
Make consistant with the new order.
 1.6 10-Jan-2000  simonb Remove unneeded include files (up to 16 in two files!).
 1.5 09-Jan-2000  simonb The clean-up continues:
- Make local-only function and variables static.
- Move function prototypes and extern variable declarations to
header files.
- Delete unused variables.
There's still a handful of extern declaraions that should be fixed up.
 1.4 15-Nov-1999  nisimura Very large scale change to sweep obstracles to remove 3MAX IOASIC disguise.
- Rework ibus device configuration and interrupt handler assignment.
- Remove TC device exposure in 'mainbus.c'
- Squash 'ibus_{3100,5100}.c' into a file; it can not cope with 3max.
- 'struct confargs' -> 'struct mainbus_attach_args'
Now about to remove tc_slot_info[] and tc_enable_interrupt inherited from
4.4BSD.
 1.3 24-Apr-1999  simonb branches: 1.3.2; 1.3.8;
Nuke register and remove trailling white space.
 1.2 19-Apr-1998  jonathan branches: 1.2.4; 1.2.12;
Copy alpha/tc/mcclock_ioasic.c (duplicated in pmax/tc/mcclock_ioasic.c)
into sys/dev/dec and split into a clockfns layer and a "middle" layer
for other DEC systems which use mcclocks with each onchip byte
register padded out to a 32-bit word.

Clone alpha/alpha/mcclock (also duplicated in pmax port) into
sys/dev/dec, and ifdef for default clockrates on pmax and alpha.

Use new machinery on pmax for ibus,ioasic attached mcclocks.
 1.1 19-Apr-1998  jonathan Support shared Decstation 3100 and Decsystem 5100 baseboard devices
using a virtual "ibus" for baseboard devices.
 1.2.12.1 21-Jun-1999  thorpej Sync w/ -current.
 1.2.4.1 19-Nov-1999  nisimura Merge w/ recent changes in main trunk.
 1.3.8.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3.2.1 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.7.12.3 18-Oct-2002  nathanw Catch up to -current.
 1.7.12.2 28-Feb-2002  nathanw Catch up to -current.
 1.7.12.1 11-Jan-2002  nathanw More catchup.
 1.7.8.2 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.7.8.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.12.98.1 08-Jan-2008  bouyer Sync with HEAD
 1.12.90.1 18-Feb-2008  mjf Sync with HEAD.
 1.12.84.1 09-Jan-2008  matt sync with HEAD
 1.12.22.1 21-Jan-2008  yamt sync with head
 1.13.28.1 29-Dec-2010  matt De-__P
Ansify
make LP64 clean.
 1.13.24.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.13.18.1 28-Apr-2009  skrll Sync with HEAD.
 1.13.10.1 04-May-2009  yamt sync with head.
 1.16.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.16.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.16.4.2 12-Jun-2011  rmind sync with head
 1.16.4.1 05-Mar-2011  rmind sync with head
 1.17.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.18.30.1 22-Sep-2015  skrll Sync with HEAD
 1.18.12.1 03-Dec-2017  jdolecek update from HEAD
 1.19 11-Feb-2023  tsutsui Use MI <dev/ic/dc503reg.h> (added for vax smg(4)) for pmax pm(4) too.
 1.18 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.17 24-Apr-2021  thorpej branches: 1.17.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.16 18-Oct-2019  msaitoh branches: 1.16.10;
s/initalize/initialize/ in comment or printf message.
 1.15 24-Jan-2018  riastradh branches: 1.15.4;
Fix integer overflows noted by Silvio Cesare of InfoSect.

Someone^TM should name these idioms so we can eliminate this class of
copypasta bug.
 1.14 05-Jan-2018  flxd Check presence of VFB01/VFB02 frame buffer option on DEC(station|system) 3100.
 1.13 13-Jun-2017  spz correct size checks so they cannot be circumvented by integer overflows

reported by CTurt, thanks for the notification
 1.12 10-Nov-2013  christos branches: 1.12.4; 1.12.6; 1.12.8; 1.12.16; 1.12.22;
fix unused variable warnings
 1.11 11-Jan-2012  macallan branches: 1.11.2; 1.11.6; 1.11.8; 1.11.10; 1.11.16;
adjust for wsfont_find() change
 1.10 09-Jul-2011  matt branches: 1.10.2; 1.10.6;
Cleanu <machine/*> includes
 1.9 04-Jun-2011  tsutsui Split device_t/softc. No crash during device attach on GXemul.
 1.8 15-May-2010  tsutsui branches: 1.8.2; 1.8.6;
Set RI_NO_AUTO in ri_flg if init function is invoked from cnattach.
Untested. (3100 support seems somewhat broken, per gxemul output)
 1.7 26-May-2008  nisimura branches: 1.7.18; 1.7.20;
- assign 2 clause TNF license to the files cited as my ownership.
- abandon and remove my copyright notice from the three files were
copied in order to adapt HW I don't have; pvr.c, pm.c and stic.c
 1.6 28-Apr-2008  martin branches: 1.6.2;
Remove clause 3 and 4 from TNF licenses
 1.5 04-Mar-2007  christos branches: 1.5.40; 1.5.42; 1.5.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.4 12-Apr-2006  jmmv branches: 1.4.14;
Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called. The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place. There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
 1.3 11-Dec-2005  christos branches: 1.3.4; 1.3.6; 1.3.8; 1.3.10; 1.3.12;
merge ktrace-lwp.
 1.2 13-Dec-2003  ad branches: 1.2.16;
Add drivers for the desktop bus, DC-7085 and pm display. Make it possible to
select between rcons or wscons at compile time. Ok'ed by simonb.
 1.1 15-Oct-1998  nisimura branches: 1.1.2; 1.1.16; 1.1.26;
file pm.c was initially added on branch nisimura-pmax-wscons.
 1.1.26.4 13-Jan-2005  skrll Adapt to branch
 1.1.26.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.26.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.26.1 03-Aug-2004  skrll Sync with HEAD
 1.1.16.4 18-Sep-2002  ad Minor tweaks.
 1.1.16.3 25-Mar-2002  ad Remove some more debugging crud, and use the full screen.
 1.1.16.2 16-Mar-2002  ad Some fixes.
 1.1.16.1 15-Mar-2002  ad Changes necessary for wscons on NetBSD/pmax. All device support is here,
just needs further testing.
 1.1.2.17 14-Mar-2000  nisimura Switch to improved flexible video console text rasterizer provided by
rasops and wsfont.
 1.1.2.16 03-Feb-2000  nisimura Catch up to recent changes in main trunk.
 1.1.2.15 19-Nov-1999  nisimura Merge w/ recent changes in main trunk.
 1.1.2.14 26-Oct-1999  nisimura Catchup to changes in main trunk. Remove debug message which is now
harmful due to SCSI device probe change. Enable WSSCREEN_REVERSE for
pm.c
 1.1.2.13 11-Aug-1999  nisimura - Take a special arrangement on RAMDAC colormap for monochrome.
 1.1.2.12 06-Apr-1999  nisimura - Fix a syntax error in the previous commit.
 1.1.2.11 06-Apr-1999  nisimura - Correct PCC cursor image update; loop was made 4 times larger than required.
 1.1.2.10 30-Mar-1999  nisimura - Track changes in main trunk and sweap codes.
- Make codes a bit descriptive that registers are aligned in 32bit boundary.
 1.1.2.9 29-Mar-1999  nisimura - Catch up to recent changes in main trunk.
- Reorganize various #include's.
- Yield memcpy to Mach derivated one.
- pm_cnattach() now checks the existense of framebuffer card.
 1.1.2.8 15-Mar-1999  nisimura - Decouple "ibus" from TC device implementation.
- Move IOASIC initialization to platform.os_init().
 1.1.2.7 02-Mar-1999  nisimura - Cursor image must be 32bit padded even though PCC can only handle 16x16.
 1.1.2.6 11-Jan-1999  drochner remove dummy "load_font" entries
 1.1.2.5 07-Jan-1999  nisimura - Fix an error in mmap address range check.
 1.1.2.4 24-Nov-1998  nisimura - Have cursor positioning magic parameters in softc variables as other
TC framebuffer drivers do.
 1.1.2.3 30-Oct-1998  nisimura - Make pm.c monochrome-aware and compilable with UVM.
- Make trap.c compilable with UVM.
- Place #ifdef _KERNEL guard in cpu.h
- Make asm.h more MIPS standard-alike while retaining current definitions.
 1.1.2.2 20-Oct-1998  nisimura - Add cleaner supports for model specific sub-milliseconds high resolution
timer circuit. 3MAX+ has IOASIC bus cycle counter and MAXINE has its own
circuit. R4000 3MIN ultilizes onchip counter (but I'm not sure how
acculately current codes measure on runtime).
- Add write buffer flush routines for each model. Most DECstations have
their own logics for write buffer flushing different from each other.
It's not good to assume R3000 computers have write buffer drain logic
tied with processor's CU0 bits. Some of modern R3000 CPUs have write
buffer 4 deep FIFO circuit builtin.
- A bit cleanup in conf/files.pmax.
- Add missing kn02ba_memerr() call in pmax/dec_3min.c
- Nuke old remainings in include/autoconf.h
 1.1.2.1 15-Oct-1998  nisimura - Reflect new internals.
 1.2.16.2 03-Sep-2007  yamt sync with head.
 1.2.16.1 21-Jun-2006  yamt sync with head.
 1.3.12.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.3.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.3.8.1 24-May-2006  yamt sync with head.
 1.3.6.1 22-Apr-2006  simonb Sync with head.
 1.3.4.1 09-Sep-2006  rpaulo sync with head
 1.4.14.1 12-Mar-2007  rmind Sync with HEAD.
 1.5.44.3 11-Aug-2010  yamt sync with head.
 1.5.44.2 04-May-2009  yamt sync with head.
 1.5.44.1 16-May-2008  yamt sync with head.
 1.5.42.2 04-Jun-2008  yamt sync with head
 1.5.42.1 18-May-2008  yamt sync with head.
 1.5.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.6.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.7.20.2 12-Jun-2011  rmind sync with head
 1.7.20.1 30-May-2010  rmind sync with head
 1.7.18.1 17-Aug-2010  uebayasi Sync with HEAD.
 1.8.6.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.8.2.1 06-Jun-2011  jruoho Sync with HEAD.
 1.10.6.1 18-Feb-2012  mrg merge to -current.
 1.10.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.10.2.1 17-Apr-2012  yamt sync with head
 1.11.16.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1456):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.11.10.1 18-May-2014  rmind sync with head
 1.11.8.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1456):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.11.6.2 03-Dec-2017  jdolecek update from HEAD
 1.11.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.11.2.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1456):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.12.22.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #39):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.12.16.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1432):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.12.8.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1432):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.12.6.1 28-Aug-2017  skrll Sync with HEAD
 1.12.4.1 15-Jun-2017  snj Pull up following revision(s) (requested by spz in ticket #1432):
sys/arch/ews4800mips/sbd/fb_sbdio.c: revision 1.16
sys/arch/pmax/ibus/pm.c: revision 1.13
sys/dev/hpc/bivideo.c: revision 1.34
sys/dev/ic/sti.c: revision 1.19
correct size checks so they cannot be circumvented by integer overflows
reported by CTurt, thanks for the notification
 1.15.4.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.16.10.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.17.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.4 11-Feb-2023  tsutsui Use MI <dev/ic/dc503reg.h> (added for vax smg(4)) for pmax pm(4) too.
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 13-Dec-2003  ad Add drivers for the desktop bus, DC-7085 and pm display. Make it possible to
select between rcons or wscons at compile time. Ok'ed by simonb.
 1.1 15-Mar-2002  ad branches: 1.1.2; 1.1.12;
file pmreg.h was initially added on branch ad_pmax_wscons.
 1.1.12.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.12.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.12.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.1 15-Mar-2002  ad Changes necessary for wscons on NetBSD/pmax. All device support is here,
just needs further testing.
 1.16 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.15 24-Jul-2021  andvar branches: 1.15.2;
Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.
 1.14 24-Apr-2021  thorpej branches: 1.14.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.13 12-Dec-2016  maya branches: 1.13.30;
acknowleg -> acknowledg, proceedure -> procedure.
only comments were changed.

from miod
 1.12 20-Jun-2016  maya branches: 1.12.2;
Fix DEBUG build
While here, if DIAGNOSTIC panic to KASSERTMSG.

ok mlelstv@
 1.11 10-Nov-2013  christos branches: 1.11.6;
fix unused variable warnings
 1.10 09-Jul-2011  matt branches: 1.10.2; 1.10.12; 1.10.16;
Cleanu <machine/*> includes
 1.9 04-Jun-2011  tsutsui Split device_t/softc. No crash during device attach on GXemul.
 1.8 18-Mar-2009  cegger branches: 1.8.4; 1.8.6; 1.8.10;
Ansify function definitions w/o arguments. Generated with sed.
 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 17-Oct-2007  garbled branches: 1.4.20; 1.4.28; 1.4.34;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.3 14-Jul-2007  ad branches: 1.3.10;
This has been stuffed since 2006-04-17 - unbreak it.
 1.2 29-Jul-2006  ad branches: 1.2.14; 1.2.22;
Remove RASTERCONSOLE support from the pmax port.
 1.1 15-Mar-2002  ad branches: 1.1.2; 1.1.18; 1.1.28; 1.1.32;
file sii.c was initially added on branch ad_pmax_wscons.
 1.1.32.1 11-Aug-2006  yamt sync with head
 1.1.28.1 09-Sep-2006  rpaulo sync with head
 1.1.18.2 03-Sep-2007  yamt sync with head.
 1.1.18.1 30-Dec-2006  yamt sync with head.
 1.1.2.1 15-Mar-2002  ad Changes necessary for wscons on NetBSD/pmax. All device support is here,
just needs further testing.
 1.2.22.1 03-Oct-2007  garbled Sync with HEAD
 1.2.14.1 15-Jul-2007  ad Sync with head.
 1.3.10.1 06-Nov-2007  matt sync with HEAD
 1.4.34.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.28.1 28-Apr-2009  skrll Sync with HEAD.
 1.4.20.1 04-May-2009  yamt sync with head.
 1.8.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.8.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.8.4.1 12-Jun-2011  rmind sync with head
 1.10.16.1 18-May-2014  rmind sync with head
 1.10.12.2 03-Dec-2017  jdolecek update from HEAD
 1.10.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.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.11.6.2 05-Feb-2017  skrll Sync with HEAD
 1.11.6.1 09-Jul-2016  skrll Sync with HEAD
 1.12.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.13.30.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.14.2.1 01-Aug-2021  thorpej Sync with HEAD.
 1.15.2.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.12 21-Sep-2024  andvar change u_int cast to uintprt_t to make it build for 64-bit kernel.

Fixes DIAGNOSTIC enabled build for pmax.
reviewed by simonb@
 1.11 04-Dec-2021  andvar branches: 1.11.10;
fix typos in comments and log messages, mainly in establish(ed).
 1.10 09-Jun-2015  matt #include either <sys/cpu.h> or <mips/cpuregs.h> as needed
 1.9 09-Jul-2011  matt branches: 1.9.12; 1.9.30;
Cleanu <machine/*> includes
 1.8 04-Jun-2011  tsutsui Split device_t/softc. No crash during device attach on GXemul.
 1.7 20-Feb-2011  matt branches: 1.7.2;
Merge forward from matt-nb5-mips64.
New interrupt code.
mips64 support for DS5000/260.
 1.6 14-Mar-2009  dsl branches: 1.6.4; 1.6.6; 1.6.8;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.5 14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.4 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.3 04-Mar-2007  christos branches: 1.3.44; 1.3.52; 1.3.58; 1.3.62;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.2 29-Jul-2006  ad branches: 1.2.10;
Remove RASTERCONSOLE support from the pmax port.
 1.1 15-Mar-2002  ad branches: 1.1.2; 1.1.18; 1.1.28; 1.1.32;
file sii_ds.c was initially added on branch ad_pmax_wscons.
 1.1.32.1 11-Aug-2006  yamt sync with head
 1.1.28.1 09-Sep-2006  rpaulo sync with head
 1.1.18.2 03-Sep-2007  yamt sync with head.
 1.1.18.1 30-Dec-2006  yamt sync with head.
 1.1.2.1 15-Mar-2002  ad Changes necessary for wscons on NetBSD/pmax. All device support is here,
just needs further testing.
 1.2.10.1 12-Mar-2007  rmind Sync with HEAD.
 1.3.62.1 29-Dec-2010  matt De-__P
Ansify
make LP64 clean.
 1.3.58.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.3.52.1 28-Apr-2009  skrll Sync with HEAD.
 1.3.44.1 04-May-2009  yamt sync with head.
 1.6.8.1 05-Mar-2011  bouyer Sync with HEAD
 1.6.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.6.4.2 12-Jun-2011  rmind sync with head
 1.6.4.1 05-Mar-2011  rmind sync with head
 1.7.2.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.9.30.1 22-Sep-2015  skrll Sync with HEAD
 1.9.12.1 03-Dec-2017  jdolecek update from HEAD
 1.11.10.1 02-Aug-2025  perseant Sync with HEAD
 1.3 17-Aug-2021  andvar fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.
 1.2 29-Jul-2006  ad Remove RASTERCONSOLE support from the pmax port.
 1.1 15-Mar-2002  ad branches: 1.1.2; 1.1.18; 1.1.28; 1.1.32;
file siireg.h was initially added on branch ad_pmax_wscons.
 1.1.32.1 11-Aug-2006  yamt sync with head
 1.1.28.1 09-Sep-2006  rpaulo sync with head
 1.1.18.1 30-Dec-2006  yamt sync with head.
 1.1.2.1 15-Mar-2002  ad Changes necessary for wscons on NetBSD/pmax. All device support is here,
just needs further testing.
 1.5 26-Dec-2021  andvar fix various typos, mainly in comments.
 1.4 04-Jun-2011  tsutsui Split device_t/softc. No crash during device attach on GXemul.
 1.3 14-Mar-2009  dsl branches: 1.3.4; 1.3.6; 1.3.10;
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.2 29-Jul-2006  ad branches: 1.2.62; 1.2.70; 1.2.76; 1.2.80;
Remove RASTERCONSOLE support from the pmax port.
 1.1 15-Mar-2002  ad branches: 1.1.2; 1.1.18; 1.1.28; 1.1.32;
file siivar.h was initially added on branch ad_pmax_wscons.
 1.1.32.1 11-Aug-2006  yamt sync with head
 1.1.28.1 09-Sep-2006  rpaulo sync with head
 1.1.18.1 30-Dec-2006  yamt sync with head.
 1.1.2.1 15-Mar-2002  ad Changes necessary for wscons on NetBSD/pmax. All device support is here,
just needs further testing.
 1.2.80.1 29-Dec-2010  matt De-__P
Ansify
make LP64 clean.
 1.2.76.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.2.70.1 28-Apr-2009  skrll Sync with HEAD.
 1.2.62.1 04-May-2009  yamt sync with head.
 1.3.10.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.3.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.3.4.1 12-Jun-2011  rmind sync with head

RSS XML Feed