Home | History | Annotate | only in /src/sys/arch/dreamcast/dev/maple
History log of /src/sys/arch/dreamcast/dev/maple
RevisionDateAuthorComments
 1.57 05-Jul-2022  andvar s/retrys/retries/ in comments.
 1.56 28-Mar-2022  riastradh sys: Split struct device into a private device_impl.h.

Include this only inside autoconf itself, and a few files that abuse
autoconf in ways I can't confidently make easy fixes for.

XXX kernel ABI change requires bump -- no more use of struct device
internals allowed, previously done by some drivers
 1.55 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.54 24-Apr-2021  thorpej branches: 1.54.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.53 06-May-2019  ryo branches: 1.53.12;
cv_init() must be done before calling maple_scanbus().
ok tsutsui@
 1.52 06-Dec-2015  tsutsui branches: 1.52.18;
Convert tsleep(9)/wakeup(9) pairs to condvar(9) with mutex(9).

Briefly tested with mkbd(4).
 1.51 25-Jul-2014  dholland branches: 1.51.4;
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.50 27-Mar-2014  christos branches: 1.50.2;
correct/add protection against snprintf overflow.
 1.49 26-Mar-2014  christos kill sprintf
 1.48 16-Mar-2014  dholland 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.47 14-Mar-2014  martin Remove unused variables
 1.46 13-Oct-2013  riz Catch up to recent changes in config_pending_{incr,decr}().
 1.45 27-Oct-2012  chs branches: 1.45.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.44 19-Jul-2011  dyoung branches: 1.44.2; 1.44.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark dreamcast/bus.h obsolete.
 1.43 12-Nov-2010  uebayasi Pull in uvm/uvm.h where UVM's page level interface is used.
 1.42 17-Oct-2010  tsutsui Include "ioconf.h" for struct cfdriver.
 1.41 17-Oct-2010  tsutsui Split device_t/softc.
 1.40 19-Oct-2008  mjf branches: 1.40.14; 1.40.16;
Fix debug code that had bitrotted. This allows the maple(4) driver to
be compiled with MAPLE_DEBUG defined.

o line 798: variable buf shadows previous local
o line 1425: event_thread is no longer a struct proc but now is
a lwp_t. Use the correct p_pid member.
 1.39 01-Aug-2008  marcus sysasic_intr_string() takes an IRL, not an IPL.
 1.38 08-Jun-2008  tsutsui branches: 1.38.4;
Use device_lookup_private() to get softc.
 1.37 04-Jun-2008  ad vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both.
 1.36 28-Apr-2008  martin branches: 1.36.2;
Remove clause 3 and 4 from TNF licenses
 1.35 17-Oct-2007  garbled branches: 1.35.16; 1.35.18; 1.35.20;
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.34 09-Jul-2007  ad branches: 1.34.10;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.33 12-Mar-2007  tsutsui branches: 1.33.2; 1.33.8;
IRL line connected to each device on sysasic is not always corresponding
with MI IPL_* definitions, so add an independent arg to pass IRL lines
to sysasic_intr_establish() and use appropriate macro for them.
 1.32 04-Mar-2007  christos branches: 1.32.2;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.31 11-Dec-2005  christos branches: 1.31.26;
merge ktrace-lwp.
 1.30 26-Aug-2005  drochner s/locdesc_t/int/g
 1.29 03-Jul-2005  he branches: 1.29.2;
Make the prototype declaration of maplesubmatch() match the function decl.
 1.28 28-Jun-2005  drochner convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)
 1.27 19-Feb-2005  tsutsui - u_intNN_t -> uintNN_t
- ANSI function decls
- ntohl -> be32toh, htonl -> htobe32, htons -> htobe16
- bcopy -> memcpy, bcmp -> memcmp, bzero -> memset
- some KNF
 1.26 15-Jul-2003  lukem branches: 1.26.8; 1.26.10;
__KERNEL_RCSID()
 1.25 15-Feb-2003  itohy branches: 1.25.2;
constify command buffer
 1.24 11-Feb-2003  itohy Tweak unit ping (removal detect) code to work around problems
with some 3rd party memory cards.
 1.23 01-Jan-2003  thorpej Use aprint_normal() for cfprint routines.
 1.22 06-Dec-2002  itohy Pass devinfo of the base device (subunit == 0 of the same port)
to sub-drivers.
 1.21 15-Nov-2002  itohy New Maple Bus driver
- interrupt driven
- support hot swapping
- sub-drivers can send commands
 1.20 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.19 02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL
 1.18 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.17 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.16 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.15 27-Sep-2002  thorpej When in a match routine, the cfdata we're passed always references
our own cfdriver, so don't bother comparing the names, since they
will always match.
 1.14 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.13 02-Jun-2002  drochner branches: 1.13.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.12 25-Mar-2002  uch branches: 1.12.2;
ANSIfy, KNF
 1.11 24-Mar-2002  uch adapted to new interrupt code and shb changes.
 1.10 04-Dec-2001  atatat Fixes to eliminate some compiler complaints, such as:

suggest explicit braces to avoid ambiguous `else'
suggest parentheses around assignment used as truth value
 1.9 22-Jul-2001  wiz branches: 1.9.2;
bcopy -> memcpy, bzero -> memset
 1.8 26-May-2001  chs branches: 1.8.2;
replace vm_page_t with struct vm_page *.
 1.7 26-May-2001  marcus Changed maple device to attach per function instead of per unit.
Raw maple unit access is now possible through /dev/maple*.
 1.6 16-Mar-2001  marcus sc_port_units was set incorrectly at probe time.
 1.5 03-Feb-2001  marcus branches: 1.5.2; 1.5.4;
Added subunit scan.
 1.4 31-Jan-2001  thorpej Make the "maple" bus a direct config bus. Now, when a device is
not configured into the kernel, you know about it, e.g.:

Dreamcast Controller at maple0 port 0 not configured
 1.3 21-Jan-2001  marcus Corrected license text.
 1.2 19-Jan-2001  marcus Better DMA allocator (thanks to Jason R. Thorpe).
 1.1 16-Jan-2001  marcus Maple bus driver.
 1.5.4.2 21-Jun-2001  nathanw Catch up to -current.
 1.5.4.1 09-Apr-2001  nathanw Catch up with -current.
 1.5.2.2 27-Mar-2001  bouyer Sync with HEAD.
 1.5.2.1 03-Feb-2001  bouyer file maple.c was added on branch thorpej_scsipi on 2001-03-27 15:30:39 +0000
 1.8.2.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.8.2.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.8.2.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.2.1 03-Aug-2001  lukem update to -current
 1.9.2.1 10-Oct-2001  fvdl Convert all remaining devices.
 1.12.2.2 14-Jul-2002  gehenna catch up with -current.
 1.12.2.1 17-May-2002  gehenna Add device switch.
 1.13.2.6 03-Jan-2003  thorpej Sync with HEAD.
 1.13.2.5 11-Dec-2002  thorpej Sync with HEAD.
 1.13.2.4 11-Nov-2002  nathanw Catch up to -current
 1.13.2.3 18-Oct-2002  nathanw Catch up to -current.
 1.13.2.2 17-Sep-2002  nathanw Catch up to -current.
 1.13.2.1 02-Jun-2002  nathanw file maple.c was added on branch nathanw_sa on 2002-09-17 21:14:12 +0000
 1.25.2.6 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.25.2.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.25.2.4 17-Jan-2005  skrll Adapt to branch.
 1.25.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.25.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.25.2.1 03-Aug-2004  skrll Sync with HEAD
 1.26.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.26.8.1 29-Apr-2005  kent sync with -current
 1.29.2.2 03-Sep-2007  yamt sync with head.
 1.29.2.1 21-Jun-2006  yamt sync with head.
 1.31.26.2 24-Mar-2007  yamt sync with head.
 1.31.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.32.2.2 15-Jul-2007  ad Sync with head.
 1.32.2.1 13-Mar-2007  ad Sync with head.
 1.33.8.1 03-Oct-2007  garbled Sync with HEAD
 1.33.2.1 11-Jul-2007  mjf Sync with head.
 1.34.10.1 06-Nov-2007  matt sync with HEAD
 1.35.20.2 04-May-2009  yamt sync with head.
 1.35.20.1 16-May-2008  yamt sync with head.
 1.35.18.2 17-Jun-2008  yamt sync with head.
 1.35.18.1 18-May-2008  yamt sync with head.
 1.35.16.5 17-Jan-2009  mjf Sync with HEAD.
 1.35.16.4 28-Sep-2008  mjf Sync with HEAD.
 1.35.16.3 29-Jun-2008  mjf Sync with HEAD.
 1.35.16.2 05-Jun-2008  mjf Sync with HEAD.

Also fix build.
 1.35.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.36.2.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.36.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.38.4.2 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.38.4.1 19-Oct-2008  haad Sync with HEAD.
 1.40.16.1 05-Mar-2011  rmind sync with head
 1.40.14.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.44.12.3 03-Dec-2017  jdolecek update from HEAD
 1.44.12.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.44.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.44.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.44.2.1 30-Oct-2012  yamt sync with head
 1.45.2.1 18-May-2014  rmind sync with head
 1.50.2.1 10-Aug-2014  tls Rebase.
 1.51.4.1 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.52.18.1 10-Jun-2019  christos Sync with HEAD
 1.53.12.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.53.12.1 22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.54.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.12 17-Oct-2010  tsutsui Split device_t/softc.
 1.11 28-Apr-2008  martin branches: 1.11.20; 1.11.22;
Remove clause 3 and 4 from TNF licenses
 1.10 04-Mar-2007  christos branches: 1.10.40; 1.10.42; 1.10.44;
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 19-Feb-2005  tsutsui branches: 1.8.6;
- u_intNN_t -> uintNN_t
- more ANSI function decls
- sone KNF
 1.7 15-Feb-2003  itohy branches: 1.7.2; 1.7.10; 1.7.12;
constify command buffer
 1.6 06-Dec-2002  itohy The value of di_connector_direction is 1 for Dreamcast Gun, 0 for
other devices. It looks like that the value represents the direction
of expansion units (Visual Memory, etc.).
Add definition of the directions.
 1.5 15-Nov-2002  itohy New Maple Bus driver
- interrupt driven
- support hot swapping
- sub-drivers can send commands
 1.4 25-Mar-2002  uch branches: 1.4.6;
ANSIfy, KNF
 1.3 26-May-2001  marcus branches: 1.3.2;
Changed maple device to attach per function instead of per unit.
Raw maple unit access is now possible through /dev/maple*.
 1.2 21-Jan-2001  marcus branches: 1.2.2; 1.2.4;
Corrected license text.
 1.1 16-Jan-2001  marcus Maple bus driver.
 1.2.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.2.2.2 21-Jan-2001  marcus Corrected license text.
 1.2.2.1 21-Jan-2001  marcus file maple.h was added on branch thorpej_scsipi on 2001-01-21 22:45:58 +0000
 1.3.2.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.6.2 11-Dec-2002  thorpej Sync with HEAD.
 1.4.6.1 25-Mar-2002  thorpej file maple.h was added on branch nathanw_sa on 2002-12-11 05:58:27 +0000
 1.7.12.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.7.10.1 29-Apr-2005  kent sync with -current
 1.7.2.2 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.7.2.1 17-Jan-2005  skrll Adapt to branch.
 1.8.6.2 03-Sep-2007  yamt sync with head.
 1.8.6.1 21-Jun-2006  yamt sync with head.
 1.9.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.10.44.1 16-May-2008  yamt sync with head.
 1.10.42.1 18-May-2008  yamt sync with head.
 1.10.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.11.22.1 05-Mar-2011  rmind sync with head
 1.11.20.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.6 06-Dec-2002  itohy Pass devinfo of the base device (subunit == 0 of the same port)
to sub-drivers.
 1.5 15-Nov-2002  itohy New Maple Bus driver
- interrupt driven
- support hot swapping
- sub-drivers can send commands
 1.4 25-Mar-2002  uch branches: 1.4.6;
ANSIfy, KNF
 1.3 26-May-2001  marcus branches: 1.3.2;
Changed maple device to attach per function instead of per unit.
Raw maple unit access is now possible through /dev/maple*.
 1.2 21-Jan-2001  marcus branches: 1.2.2; 1.2.4;
Corrected license text.
 1.1 16-Jan-2001  marcus Maple bus driver.
 1.2.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.2.2.2 21-Jan-2001  marcus Corrected license text.
 1.2.2.1 21-Jan-2001  marcus file mapleconf.h was added on branch thorpej_scsipi on 2001-01-21 22:45:59 +0000
 1.3.2.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.6.2 11-Dec-2002  thorpej Sync with HEAD.
 1.4.6.1 25-Mar-2002  thorpej file mapleconf.h was added on branch nathanw_sa on 2002-12-11 05:58:27 +0000
 1.1 26-May-2001  marcus branches: 1.1.2; 1.1.20;
Changed maple device to attach per function instead of per unit.
Raw maple unit access is now possible through /dev/maple*.
 1.1.20.2 26-May-2001  marcus Changed maple device to attach per function instead of per unit.
Raw maple unit access is now possible through /dev/maple*.
 1.1.20.1 26-May-2001  marcus file mapleio.h was added on branch nathanw_sa on 2001-05-26 19:04:40 +0000
 1.1.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.5 11-Dec-2005  christos merge ktrace-lwp.
 1.4 19-Feb-2005  tsutsui - u_intNN_t -> uintNN_t
- more ANSI function decls
- sone KNF
 1.3 25-Mar-2002  uch branches: 1.3.6; 1.3.12; 1.3.20; 1.3.22;
ANSIfy, KNF
 1.2 21-Jan-2001  marcus branches: 1.2.2; 1.2.6;
Corrected license text.
 1.1 16-Jan-2001  marcus Maple bus driver.
 1.2.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.2 21-Jan-2001  marcus Corrected license text.
 1.2.2.1 21-Jan-2001  marcus file maplereg.h was added on branch thorpej_scsipi on 2001-01-21 22:45:59 +0000
 1.3.22.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.3.20.1 29-Apr-2005  kent sync with -current
 1.3.12.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.3.6.2 25-Mar-2002  uch ANSIfy, KNF
 1.3.6.1 25-Mar-2002  uch file maplereg.h was added on branch nathanw_sa on 2002-03-25 18:59:41 +0000
 1.15 06-Dec-2015  tsutsui Convert tsleep(9)/wakeup(9) pairs to condvar(9) with mutex(9).

Briefly tested with mkbd(4).
 1.14 27-Oct-2012  chs branches: 1.14.14;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.13 17-Oct-2010  tsutsui branches: 1.13.8; 1.13.18;
Split device_t/softc.
 1.12 28-Apr-2008  martin branches: 1.12.20; 1.12.22;
Remove clause 3 and 4 from TNF licenses
 1.11 17-Oct-2007  garbled branches: 1.11.16; 1.11.18; 1.11.20;
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 09-Jul-2007  ad branches: 1.10.10;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.9 11-Dec-2005  christos branches: 1.9.30; 1.9.32; 1.9.38;
merge ktrace-lwp.
 1.8 19-Feb-2005  tsutsui branches: 1.8.6;
- u_intNN_t -> uintNN_t
- more ANSI function decls
- sone KNF
 1.7 15-Feb-2003  itohy branches: 1.7.2; 1.7.10; 1.7.12;
constify command buffer
 1.6 11-Feb-2003  itohy Tweak unit ping (removal detect) code to work around problems
with some 3rd party memory cards.
 1.5 15-Nov-2002  itohy New Maple Bus driver
- interrupt driven
- support hot swapping
- sub-drivers can send commands
 1.4 26-May-2001  marcus branches: 1.4.18;
Changed maple device to attach per function instead of per unit.
Raw maple unit access is now possible through /dev/maple*.
 1.3 03-Feb-2001  marcus branches: 1.3.2; 1.3.4;
Added subunit scan.
 1.2 21-Jan-2001  marcus Corrected license text.
 1.1 16-Jan-2001  marcus Maple bus driver.
 1.3.4.1 21-Jun-2001  nathanw Catch up to -current.
 1.3.2.2 03-Feb-2001  marcus Added subunit scan.
 1.3.2.1 03-Feb-2001  marcus file maplevar.h was added on branch thorpej_scsipi on 2001-02-03 23:25:52 +0000
 1.4.18.2 11-Dec-2002  thorpej Sync with HEAD.
 1.4.18.1 26-May-2001  thorpej file maplevar.h was added on branch nathanw_sa on 2002-12-11 05:58:27 +0000
 1.7.12.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.7.10.1 29-Apr-2005  kent sync with -current
 1.7.2.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.8.6.1 03-Sep-2007  yamt sync with head.
 1.9.38.1 03-Oct-2007  garbled Sync with HEAD
 1.9.32.1 11-Jul-2007  mjf Sync with head.
 1.9.30.1 15-Jul-2007  ad Sync with head.
 1.10.10.1 06-Nov-2007  matt sync with HEAD
 1.11.20.1 16-May-2008  yamt sync with head.
 1.11.18.1 18-May-2008  yamt sync with head.
 1.11.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.12.22.1 05-Mar-2011  rmind sync with head
 1.12.20.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.13.18.2 03-Dec-2017  jdolecek update from HEAD
 1.13.18.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.13.8.1 30-Oct-2012  yamt sync with head
 1.14.14.1 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.32 18-Sep-2021  tsutsui Remove unnecessary (and unimplemented) WSKBD_*BELL ioctls in kbd drivers.

It looks the only ioctl(4) to be implemented for WSKBDIO_*BELL in
the backend keyboard driver is WSKBDIO_COMPLEXBELL.
All other BELL ioctls (WSKBDIO_BELL, WSKBDIO_SETBELL, WSKBDIO_GETBELL,
WSKBDIO_SETDEFAULTBELL, and WSKBDIO_GETDEFAULTBELL) are handled in the
MI wskbd driver (in wskbd_displayioctl() in src/sys/dev/wscons/wskbd.c).
 1.31 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.30 24-Apr-2021  thorpej branches: 1.30.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.29 19-Jul-2011  dyoung branches: 1.29.68;
Change <machine/bus.h> to <sys/bus.h> throughout.

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

Mark dreamcast/bus.h obsolete.
 1.28 17-Oct-2010  tsutsui Split device_t/softc.
 1.27 19-Oct-2008  marcus branches: 1.27.14; 1.27.16;
Removed a local variable that is no longer needed (should have been removed in last commit...)
 1.26 19-Oct-2008  marcus Replaced funky delay loop with a call to DELAY (fixed problems with newer GCCs).
 1.25 17-Oct-2007  garbled branches: 1.25.16; 1.25.20; 1.25.26;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.24 16-Jul-2007  marcus branches: 1.24.10;
Fixed incorrect logic in mkbd_cngetc() (fixes port-dreamcast/28711).
 1.23 04-Mar-2007  christos branches: 1.23.2; 1.23.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.22 11-Dec-2005  christos branches: 1.22.26;
merge ktrace-lwp.
 1.21 06-Mar-2005  tsutsui branches: 1.21.4;
Add two options to change the default keymap:
- options MKBD_LAYOUT="KB_xx"
allow user to override the default keymap
- options MKBD_SWAPCTRLCAPS
allow user to specify swapctrlcaps with the default (probed) keymap
 1.20 19-Feb-2005  tsutsui - u_intNN_t -> uintNN_t
- more ANSI function decls
- sone KNF
 1.19 15-Jul-2003  lukem branches: 1.19.8; 1.19.10;
__KERNEL_RCSID()
 1.18 10-Dec-2002  itohy branches: 1.18.6;
Use WSKBD_TYPE_MAPLE.
 1.17 15-Nov-2002  itohy New Maple Bus driver
- interrupt driven
- support hot swapping
- sub-drivers can send commands
 1.16 02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL
 1.15 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.14 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.13 25-Mar-2002  uch branches: 1.13.6;
ANSIfy, KNF
 1.12 17-Mar-2002  atatat Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
 1.11 04-Dec-2001  atatat Fixes to eliminate some compiler complaints, such as:

suggest explicit braces to avoid ambiguous `else'
suggest parentheses around assignment used as truth value
 1.10 06-Sep-2001  thorpej Indent.
 1.9 22-Jul-2001  wiz bcopy -> memcpy, bzero -> memset
 1.8 26-May-2001  marcus branches: 1.8.2;
Changed maple device to attach per function instead of per unit.
Raw maple unit access is now possible through /dev/maple*.
 1.7 02-Mar-2001  marcus branches: 1.7.2;
Harmonized keycodes with USB.
 1.6 22-Feb-2001  msaitoh fix a check code whether mkbs is console or not
 1.5 02-Feb-2001  thorpej branches: 1.5.2;
Don't make the reporting of the keyboard type a parenthetical.
 1.4 31-Jan-2001  thorpej Set the keyboard layout based on what type of keyboard
we probe, defaulting to Japanese if we don't know what
kind of keyboard we have.

XXX This should be done differently, if we ever want to
support multiple keyboards.
 1.3 31-Jan-2001  thorpej Recognize the US keyboard.
 1.2 21-Jan-2001  marcus Fixed double-stroke bug.
 1.1 16-Jan-2001  marcus Maple bus keyboard driver.
 1.5.2.2 12-Mar-2001  bouyer Sync with HEAD.
 1.5.2.1 02-Feb-2001  bouyer file mkbd.c was added on branch thorpej_scsipi on 2001-03-12 13:28:07 +0000
 1.7.2.1 21-Jun-2001  nathanw Catch up to -current.
 1.8.2.5 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.8.2.4 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.8.2.3 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.2.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.8.2.1 03-Aug-2001  lukem update to -current
 1.13.6.3 11-Dec-2002  thorpej Sync with HEAD.
 1.13.6.2 18-Oct-2002  nathanw Catch up to -current.
 1.13.6.1 25-Mar-2002  nathanw file mkbd.c was added on branch nathanw_sa on 2002-10-18 02:36:22 +0000
 1.18.6.6 08-Mar-2005  skrll Sync with HEAD.
 1.18.6.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.18.6.4 17-Jan-2005  skrll Adapt to branch.
 1.18.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.18.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.18.6.1 03-Aug-2004  skrll Sync with HEAD
 1.19.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.19.8.1 29-Apr-2005  kent sync with -current
 1.21.4.2 03-Sep-2007  yamt sync with head.
 1.21.4.1 21-Jun-2006  yamt sync with head.
 1.22.26.1 12-Mar-2007  rmind Sync with HEAD.
 1.23.10.1 03-Oct-2007  garbled Sync with HEAD
 1.23.2.1 20-Aug-2007  ad Sync with HEAD.
 1.24.10.1 06-Nov-2007  matt sync with HEAD
 1.25.26.1 13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.25.20.1 04-May-2009  yamt sync with head.
 1.25.16.1 17-Jan-2009  mjf Sync with HEAD.
 1.27.16.1 05-Mar-2011  rmind sync with head
 1.27.14.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.29.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.30.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.6 05-Jul-2002  tsutsui Add keydescs for swapctrlcaps, and clean up formating.
 1.5 02-Mar-2001  marcus branches: 1.5.4; 1.5.14; 1.5.18;
Harmonized keycodes with USB.
 1.4 31-Jan-2001  thorpej branches: 1.4.2;
Add a US keyboard map. This may need to be reworked, as this
uses the Japanese keyboard map as the base.
 1.3 21-Jan-2001  marcus Corrected license text.
 1.2 16-Jan-2001  marcus Added keymap for European keyboards.
 1.1 16-Jan-2001  marcus Maple bus keyboard driver.
 1.4.2.2 12-Mar-2001  bouyer Sync with HEAD.
 1.4.2.1 31-Jan-2001  bouyer file mkbdmap.h was added on branch thorpej_scsipi on 2001-03-12 13:28:07 +0000
 1.5.18.1 01-Aug-2002  nathanw Catch up to -current.
 1.5.14.1 16-Jul-2002  gehenna catch up with -current.
 1.5.4.1 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.7 17-Oct-2010  tsutsui Split device_t/softc.
 1.6 11-Dec-2005  christos branches: 1.6.98; 1.6.100;
merge ktrace-lwp.
 1.5 19-Feb-2005  tsutsui - u_intNN_t -> uintNN_t
- more ANSI function decls
- sone KNF
 1.4 15-Nov-2002  itohy branches: 1.4.6; 1.4.14; 1.4.16;
New Maple Bus driver
- interrupt driven
- support hot swapping
- sub-drivers can send commands
 1.3 25-Mar-2002  uch branches: 1.3.6;
ANSIfy, KNF
 1.2 21-Jan-2001  marcus branches: 1.2.2; 1.2.6;
Corrected license text.
 1.1 16-Jan-2001  marcus Maple bus keyboard driver.
 1.2.6.1 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.2 21-Jan-2001  marcus Corrected license text.
 1.2.2.1 21-Jan-2001  marcus file mkbdvar.h was added on branch thorpej_scsipi on 2001-01-21 22:45:59 +0000
 1.3.6.2 11-Dec-2002  thorpej Sync with HEAD.
 1.3.6.1 25-Mar-2002  thorpej file mkbdvar.h was added on branch nathanw_sa on 2002-12-11 05:58:28 +0000
 1.4.16.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.4.14.1 29-Apr-2005  kent sync with -current
 1.4.6.1 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.6.100.1 05-Mar-2011  rmind sync with head
 1.6.98.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.18 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.17 26-Mar-2014  christos branches: 1.17.2;
kill sprintf
 1.16 16-Mar-2014  dholland 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.15 14-Mar-2014  martin Remove unused variables
 1.14 17-Oct-2010  tsutsui branches: 1.14.8; 1.14.18; 1.14.22;
Include "ioconf.h" for struct cfdriver.
 1.13 17-Oct-2010  tsutsui Split device_t/softc.
 1.12 24-Feb-2010  dyoung branches: 1.12.2;
Use device_t, device_private().
 1.11 11-Jun-2008  tsutsui branches: 1.11.16;
Use device_lookup_private() to get softc.
 1.10 08-Jun-2008  tsutsui branches: 1.10.2;
Use device_lookup_private() to get softc.
 1.9 28-Apr-2008  martin branches: 1.9.2;
Remove clause 3 and 4 from TNF licenses
 1.8 04-Mar-2007  christos branches: 1.8.40; 1.8.42; 1.8.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.7 28-Mar-2006  thorpej branches: 1.7.14;
Use device_unit().
 1.6 24-Dec-2005  perry branches: 1.6.4; 1.6.6; 1.6.8; 1.6.10; 1.6.12;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.5 11-Dec-2005  christos merge ktrace-lwp.
 1.4 19-Feb-2005  tsutsui branches: 1.4.6;
- u_intNN_t -> uintNN_t
- ANSI function decls
- ntohl -> be32toh, htonl -> htobe32, htons -> htobe16
- bcopy -> memcpy, bcmp -> memcmp, bzero -> memset
- some KNF
 1.3 15-Jul-2003  lukem branches: 1.3.8; 1.3.10;
__KERNEL_RCSID()
 1.2 06-Dec-2002  itohy branches: 1.2.2; 1.2.8;
The buf structure (<sys/buf.h>) is not flexible since it is designed for disks,
and use home-grown buffer structure.

Handle display orientation (normal or upside-down) appropriately
by making use of devinfo of base device.
If the LCD is at an expansion slot of a base unit
whose di_connector_direction == MAPLE_CONN_TOP,
the driver automatically rotates the bitmap.
You need not rotate the bitmap before passing to the driver (spec change).
 1.1 15-Nov-2002  itohy Maple Bus monochrome LCD device driver
Reference: US Patent 6,338,105
 1.2.8.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.2.8.4 17-Jan-2005  skrll Adapt to branch.
 1.2.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.8.1 03-Aug-2004  skrll Sync with HEAD
 1.2.2.2 11-Dec-2002  thorpej Sync with HEAD.
 1.2.2.1 06-Dec-2002  thorpej file mlcd.c was added on branch nathanw_sa on 2002-12-11 05:58:28 +0000
 1.3.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.3.8.1 29-Apr-2005  kent sync with -current
 1.4.6.2 03-Sep-2007  yamt sync with head.
 1.4.6.1 21-Jun-2006  yamt sync with head.
 1.6.12.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.6.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.6.8.1 01-Apr-2006  yamt sync with head.
 1.6.6.1 22-Apr-2006  simonb Sync with head.
 1.6.4.1 09-Sep-2006  rpaulo sync with head
 1.7.14.1 12-Mar-2007  rmind Sync with HEAD.
 1.8.44.3 11-Mar-2010  yamt sync with head
 1.8.44.2 04-May-2009  yamt sync with head.
 1.8.44.1 16-May-2008  yamt sync with head.
 1.8.42.2 17-Jun-2008  yamt sync with head.
 1.8.42.1 18-May-2008  yamt sync with head.
 1.8.40.2 29-Jun-2008  mjf Sync with HEAD.
 1.8.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.9.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.10.2.1 18-Jun-2008  simonb Sync with head.
 1.11.16.2 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.11.16.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.12.2.1 05-Mar-2011  rmind sync with head
 1.14.22.1 18-May-2014  rmind sync with head
 1.14.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.14.8.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.17.2.1 10-Aug-2014  tls Rebase.
 1.26 26-Apr-2015  mlelstv Use C99-style initializers for struct dkdriver.
 1.25 02-Jan-2015  christos We have three sets of DTYPE_ constants in the kernel:
altq Drop Type
disklabel Disk Type
file Descriptor Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.
 1.24 25-Jul-2014  dholland branches: 1.24.4;
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.
 1.23 25-Jul-2014  dholland Add d_discard to all struct bdevsw instances I could find.

I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.
 1.22 26-Mar-2014  christos branches: 1.22.2;
kill sprintf
 1.21 16-Mar-2014  dholland 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.20 17-Oct-2010  tsutsui branches: 1.20.8; 1.20.18; 1.20.22;
Include "ioconf.h" for struct cfdriver.
 1.19 17-Oct-2010  tsutsui Split device_t/softc.
 1.18 13-Jan-2009  yamt branches: 1.18.4; 1.18.6;
g/c BUFQ_FOO() macros and use bufq_foo() directly.
 1.17 11-Jun-2008  tsutsui branches: 1.17.4;
Use device_lookup_private() to get softc.
 1.16 08-Jun-2008  tsutsui branches: 1.16.2;
Use device_lookup_private() to get softc.
 1.15 28-Apr-2008  martin branches: 1.15.2;
Remove clause 3 and 4 from TNF licenses
 1.14 17-Oct-2007  garbled branches: 1.14.16; 1.14.18; 1.14.20;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.13 08-Oct-2007  ad Merge disk init changes from the vmlocking branch. These seperate init /
destroy of 'struct disk' from attach / detach.
 1.12 29-Jul-2007  ad branches: 1.12.4; 1.12.6; 1.12.8;
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
 1.11 29-Jul-2007  ad It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
 1.10 06-Mar-2007  he branches: 1.10.2; 1.10.10; 1.10.12; 1.10.14;
Cast to char* before doing pointer arithmetic.
 1.9 04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.8 28-Mar-2006  thorpej branches: 1.8.14;
Use device_unit().
 1.7 11-Dec-2005  christos branches: 1.7.4; 1.7.6; 1.7.8; 1.7.10; 1.7.12;
merge ktrace-lwp.
 1.6 15-Oct-2005  yamt - change the way to specify a bufq strategy. (by string rather than by number)
- rather than embedding bufq_state in driver softc,
have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
from sys/bufq.h to sys/bufq_impl.h.
(is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c. (not tested)
 1.5 19-Feb-2005  tsutsui branches: 1.5.6;
- u_intNN_t -> uintNN_t
- ANSI function decls
- ntohl -> be32toh, htonl -> htobe32, htons -> htobe16
- bcopy -> memcpy, bcmp -> memcmp, bzero -> memset
- some KNF
 1.4 28-Oct-2004  yamt branches: 1.4.4; 1.4.6;
move buffer queue related stuffs from buf.h to their own header, bufq.h.
 1.3 15-Jul-2003  lukem __KERNEL_RCSID()
 1.2 06-Dec-2002  itohy branches: 1.2.2; 1.2.8;
minor changes
fix typo
 1.1 15-Nov-2002  itohy Maple Bus storage device driver
Reference: US Patent 6,338,105
 1.2.8.7 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.8.6 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.2.8.5 17-Jan-2005  skrll Adapt to branch.
 1.2.8.4 02-Nov-2004  skrll Sync with HEAD.
 1.2.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.8.1 03-Aug-2004  skrll Sync with HEAD
 1.2.2.2 11-Dec-2002  thorpej Sync with HEAD.
 1.2.2.1 06-Dec-2002  thorpej file mmemcard.c was added on branch nathanw_sa on 2002-12-11 05:58:28 +0000
 1.4.6.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.4.4.1 29-Apr-2005  kent sync with -current
 1.5.6.3 27-Oct-2007  yamt sync with head.
 1.5.6.2 03-Sep-2007  yamt sync with head.
 1.5.6.1 21-Jun-2006  yamt sync with head.
 1.7.12.1 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.7.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.7.8.1 01-Apr-2006  yamt sync with head.
 1.7.6.1 22-Apr-2006  simonb Sync with head.
 1.7.4.1 09-Sep-2006  rpaulo sync with head
 1.8.14.1 12-Mar-2007  rmind Sync with HEAD.
 1.10.14.1 15-Aug-2007  skrll Sync with HEAD.
 1.10.12.1 07-Aug-2007  matt Sync with HEAD.
 1.10.10.2 16-Oct-2007  garbled Sync with HEAD
 1.10.10.1 03-Oct-2007  garbled Sync with HEAD
 1.10.2.3 09-Oct-2007  ad Sync with head.
 1.10.2.2 20-Aug-2007  ad - Alter disk attach/detach to fix a panic when closing a vnd device.
- Sync with HEAD.
 1.10.2.1 19-Aug-2007  ad - Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).
 1.12.8.1 14-Oct-2007  yamt sync with head.
 1.12.6.1 06-Nov-2007  matt sync with HEAD
 1.12.4.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.14.20.2 04-May-2009  yamt sync with head.
 1.14.20.1 16-May-2008  yamt sync with head.
 1.14.18.2 17-Jun-2008  yamt sync with head.
 1.14.18.1 18-May-2008  yamt sync with head.
 1.14.16.3 17-Jan-2009  mjf Sync with HEAD.
 1.14.16.2 29-Jun-2008  mjf Sync with HEAD.
 1.14.16.1 02-Jun-2008  mjf Sync with HEAD.
 1.15.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.16.2.1 18-Jun-2008  simonb Sync with head.
 1.17.4.1 19-Jan-2009  skrll Sync with HEAD.
 1.18.6.1 05-Mar-2011  rmind sync with head
 1.18.4.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.20.22.1 18-May-2014  rmind sync with head
 1.20.18.2 03-Dec-2017  jdolecek update from HEAD
 1.20.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.20.8.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.22.2.1 10-Aug-2014  tls Rebase.
 1.24.4.2 06-Jun-2015  skrll Sync with HEAD
 1.24.4.1 06-Apr-2015  skrll Sync with HEAD
 1.19 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.18 24-Apr-2021  thorpej branches: 1.18.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.17 27-Oct-2012  chs branches: 1.17.52;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.16 17-Oct-2010  tsutsui branches: 1.16.8; 1.16.18;
Make local functions static.
 1.15 17-Oct-2010  tsutsui Split device_t/softc.
 1.14 28-Apr-2008  martin branches: 1.14.20; 1.14.22;
Remove clause 3 and 4 from TNF licenses
 1.13 04-Mar-2007  christos branches: 1.13.40; 1.13.42; 1.13.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.12 12-Nov-2006  plunky branches: 1.12.4;
Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
 1.11 11-Dec-2005  christos branches: 1.11.20; 1.11.22;
merge ktrace-lwp.
 1.10 19-Feb-2005  tsutsui branches: 1.10.6;
- u_intNN_t -> uintNN_t
- more ANSI function decls
- sone KNF
 1.9 10-Dec-2003  tsutsui branches: 1.9.8; 1.9.10;
Invert Y-axis value for mms(4). From Yasushi Oshima on port-dreamcast.
 1.8 15-Jul-2003  lukem __KERNEL_RCSID()
 1.7 10-Dec-2002  itohy branches: 1.7.6;
Use use WSMOUSE_TYPE_MAPLE.
Enable periodic GETCOND only if the mouse is enabled.
 1.6 15-Nov-2002  itohy New Maple Bus driver
- interrupt driven
- support hot swapping
- sub-drivers can send commands
 1.5 02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL
 1.4 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.3 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.2 17-Mar-2002  atatat branches: 1.2.8;
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
 1.1 06-Sep-2001  thorpej branches: 1.1.4;
Driver for the Dreamcast mouse, based on the programming info
on Marcus's web site.

Not yet thoroughly tested, but does appear to generate events
that look okay.
 1.1.4.4 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.4.3 23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.4.2 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.1.4.1 06-Sep-2001  thorpej file mms.c was added on branch kqueue on 2001-09-13 01:13:34 +0000
 1.2.8.3 11-Dec-2002  thorpej Sync with HEAD.
 1.2.8.2 18-Oct-2002  nathanw Catch up to -current.
 1.2.8.1 17-Mar-2002  nathanw file mms.c was added on branch nathanw_sa on 2002-10-18 02:36:22 +0000
 1.7.6.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.7.6.4 17-Jan-2005  skrll Adapt to branch.
 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.9.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.9.8.1 29-Apr-2005  kent sync with -current
 1.10.6.3 03-Sep-2007  yamt sync with head.
 1.10.6.2 30-Dec-2006  yamt sync with head.
 1.10.6.1 21-Jun-2006  yamt sync with head.
 1.11.22.1 10-Dec-2006  yamt sync with head.
 1.11.20.1 18-Nov-2006  ad Sync with head.
 1.12.4.1 12-Mar-2007  rmind Sync with HEAD.
 1.13.44.1 16-May-2008  yamt sync with head.
 1.13.42.1 18-May-2008  yamt sync with head.
 1.13.40.1 02-Jun-2008  mjf Sync with HEAD.
 1.14.22.1 05-Mar-2011  rmind sync with head
 1.14.20.1 22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.16.18.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.16.8.1 30-Oct-2012  yamt sync with head
 1.17.52.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.18.8.1 04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed