Home | History | Annotate | only in /src/sys/arch/mips/alchemy/dev
History log of /src/sys/arch/mips/alchemy/dev
RevisionDateAuthorComments
 1.1 09-Feb-2006  gdamore branches: 1.1.2; 1.1.10; 1.1.16; 1.1.22;
Split out peripheral register defines from aureg.h. As discussed with
simonb@.
 1.1.22.2 09-Sep-2006  rpaulo sync with head
 1.1.22.1 09-Feb-2006  rpaulo file ac97reg.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.1.16.2 21-Jun-2006  yamt sync with head.
 1.1.16.1 09-Feb-2006  yamt file ac97reg.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 09-Feb-2006  simonb file ac97reg.h was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.1.2.2 18-Feb-2006  yamt sync with head.
 1.1.2.1 09-Feb-2006  yamt file ac97reg.h was added on branch yamt-uio_vmspace on 2006-02-18 15:38:41 +0000
 1.9 27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.8 06-Jun-2011  matt branches: 1.8.2; 1.8.12;
CFATTACH_DECL(..., sizeof(struct device), -> CFATTACH_DECL_NEW(..., 0
struct device * -> device_t
struct cfdata * -> cfdata_t
use bool when appropriate
some constification
 1.7 11-Dec-2005  christos branches: 1.7.100; 1.7.110;
merge ktrace-lwp.
 1.6 15-Jul-2003  lukem __KERNEL_RCSID()
 1.5 02-Oct-2002  thorpej branches: 1.5.6;
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 27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.1 29-Jul-2002  simonb branches: 1.1.2; 1.1.4; 1.1.6;
Add support for the the Alchemy Semiconductor Au1x00 series on-chip
devices. Currently the serial ports and ethernet MAC have working
drivers, and this has only been physically tested on the Au1000 CPU,
but these devices should work on the Au1100 and Au1500 CPUs too.
 1.1.6.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 29-Jul-2002  jdolecek file auaudio.c was added on branch kqueue on 2002-09-06 08:37:20 +0000
 1.1.4.2 31-Aug-2002  gehenna catch up with -current.
 1.1.4.1 29-Jul-2002  gehenna file auaudio.c was added on branch gehenna-devsw on 2002-08-31 13:45:13 +0000
 1.1.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.1 29-Jul-2002  nathanw file auaudio.c was added on branch nathanw_sa on 2002-10-18 02:38:42 +0000
 1.5.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.6.1 03-Aug-2004  skrll Sync with HEAD
 1.7.110.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.7.100.1 12-Jun-2011  rmind sync with head
 1.8.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.8.2.1 30-Oct-2012  yamt sync with head
 1.22 13-Jul-2006  gdamore Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.21 14-May-2006  elad branches: 1.21.4;
integrate kauth.
 1.20 28-Mar-2006  thorpej Use device_unit().
 1.19 26-Mar-2006  thorpej Use device_unit().CVS: ----------------------------------------------------------------------
 1.18 20-Feb-2006  thorpej branches: 1.18.2; 1.18.4; 1.18.6;
Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.
 1.17 27-Dec-2005  chs branches: 1.17.2; 1.17.4; 1.17.6;
remove the COM_MPLOCK option. always include the spinlock in the softc
and always call the simple_* locking functions. the locking functions
are compiled out if they are not needed anyway, so a separate option
for this doesn't gain anything.

this also fixes the serial console on my alpha ES40 (which doesn't make much
sense since the com driver should still be under the big lock on alpha,
but whatever).
 1.16 11-Dec-2005  christos merge ktrace-lwp.
 1.15 06-Sep-2005  kleink Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges. Noted by David Holland in PR kern/31126.
 1.14 01-May-2004  thorpej branches: 1.14.12;
Rename the COM16650 option to COM_16650, for consistency with other
com variant options.
 1.13 08-Nov-2003  simonb Use the COM_AU1x00 option for Au1x00 feature support.
 1.12 08-Nov-2003  simonb Sync with com.c, rev 1.222.
 1.11 07-Nov-2003  simonb Sync with dev/ic/com.c rev 1.221.
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.9 29-Jun-2003  fvdl branches: 1.9.2;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.8 29-Jun-2003  simonb Use the com softc enabled/disable hooks instead of directly frobbing
Au1x00 registers in com_attach_subr(). Suggested by Jason Thorpe and
tested on both console and extra serial ports.
 1.7 29-Jun-2003  simonb Fix 'struct lwp *' lossage.
 1.6 27-Jun-2003  he Conditionalize usage of the COM_HW_HAYESP constant on COM_HAYESP.
Add a dummy type argument to the local (au)comcnattach to match the change
in the prototype of the "real" comcnattach.

Reviewed and tested by simonb.
 1.5 23-Jun-2003  martin Make sure to include opt_foo.h if a defflag option FOO is used.
 1.4 08-Mar-2003  he Initialize the two new members of "struct console" to NULL so that
this file compiles again.
 1.3 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.2 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.1 29-Jul-2002  simonb branches: 1.1.2; 1.1.4; 1.1.6;
Add a slightly modified dev/ic/com.c that supports the Alchemy
Semiconductor Au1x00 series on-chip UARTs. Will be merged with
the original com.c driver once a few issues are tidied up. Main
differences from a standard 16550 UART are:
- separate rxdata and txdata registers
- single 16-bit register for the clock divisor
- "enable uart" register
 1.1.6.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 29-Jul-2002  jdolecek file aucom.c was added on branch kqueue on 2002-09-06 08:37:21 +0000
 1.1.4.4 01-Sep-2002  gehenna fix typo.
 1.1.4.3 31-Aug-2002  gehenna Add character device switch.
 1.1.4.2 31-Aug-2002  gehenna catch up with -current.
 1.1.4.1 29-Jul-2002  gehenna file aucom.c was added on branch gehenna-devsw on 2002-08-31 13:45:14 +0000
 1.1.2.3 11-Nov-2002  nathanw Catch up to -current
 1.1.2.2 17-Sep-2002  nathanw Catch up to -current.
 1.1.2.1 29-Jul-2002  nathanw file aucom.c was added on branch nathanw_sa on 2002-09-17 21:15:42 +0000
 1.9.2.5 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.9.2.4 17-Jan-2005  skrll Adapt to branch.
 1.9.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.9.2.1 03-Aug-2004  skrll Sync with HEAD
 1.14.12.2 30-Dec-2006  yamt sync with head.
 1.14.12.1 21-Jun-2006  yamt sync with head.
 1.17.6.2 01-Jun-2006  kardel Sync with head.
 1.17.6.1 22-Apr-2006  simonb Sync with head.
 1.17.4.1 09-Sep-2006  rpaulo sync with head
 1.17.2.1 01-Mar-2006  yamt sync with head.
 1.18.6.3 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.18.6.2 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.18.6.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.18.4.4 13-May-2006  elad sprinkle some #include <sys/kauth.h> in files that use kauth kpi but
don't include it yet. hopefully this will prevent some fallout.
 1.18.4.3 19-Apr-2006  elad sync with head - hopefully this will work
 1.18.4.2 10-Mar-2006  elad generic_authorize() -> kauth_authorize_generic().
 1.18.4.1 08-Mar-2006  elad Adapt to kernel authorization KPI.

I expect *some* lossage here...
 1.18.2.3 11-Aug-2006  yamt sync with head
 1.18.2.2 24-May-2006  yamt sync with head.
 1.18.2.1 01-Apr-2006  yamt sync with head.
 1.21.4.1 15-Jun-2006  gdamore Adapt to new com framework, converting aucom.c clone to use common com.c.
 1.14 13-Jul-2006  gdamore Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.13 09-Feb-2006  gdamore branches: 1.13.2; 1.13.10;
Remove not-useful UART references from aureg.h, duplicates consolidated into
aucomreg.h. First part of aureg.h cleanup requested by simonb@.
 1.12 11-Dec-2005  christos branches: 1.12.2; 1.12.4; 1.12.6;
merge ktrace-lwp.
 1.11 06-Sep-2005  simonb Include <sys/systm.h>; needed for printf() and strcmp() in the
non-DEBUG case.
 1.10 15-Dec-2003  simonb branches: 1.10.16;
Use UART_SIZE instead of a (redefined) COM_NPORTS.
 1.9 08-Nov-2003  simonb Add a "COM_AU1x00" option, similar to COM_PXA2X0, for enabling Au1x00
features in the "com" driver.
 1.8 15-Jul-2003  lukem __KERNEL_RCSID()
 1.7 29-Jun-2003  fvdl branches: 1.7.2;
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
 1.6 29-Jun-2003  simonb Use the com softc enabled/disable hooks instead of directly frobbing
Au1x00 registers in com_attach_subr(). Suggested by Jason Thorpe and
tested on both console and extra serial ports.
 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 27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.1 29-Jul-2002  simonb branches: 1.1.2; 1.1.4; 1.1.6;
Add support for the the Alchemy Semiconductor Au1x00 series on-chip
devices. Currently the serial ports and ethernet MAC have working
drivers, and this has only been physically tested on the Au1000 CPU,
but these devices should work on the Au1100 and Au1500 CPUs too.
 1.1.6.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 29-Jul-2002  jdolecek file aucom_aubus.c was added on branch kqueue on 2002-09-06 08:37:22 +0000
 1.1.4.2 31-Aug-2002  gehenna catch up with -current.
 1.1.4.1 29-Jul-2002  gehenna file aucom_aubus.c was added on branch gehenna-devsw on 2002-08-31 13:45:14 +0000
 1.1.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.1 29-Jul-2002  nathanw file aucom_aubus.c was added on branch nathanw_sa on 2002-10-18 02:38:42 +0000
 1.7.2.4 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.7.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.7.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.7.2.1 03-Aug-2004  skrll Sync with HEAD
 1.10.16.2 30-Dec-2006  yamt sync with head.
 1.10.16.1 21-Jun-2006  yamt sync with head.
 1.12.6.1 22-Apr-2006  simonb Sync with head.
 1.12.4.1 09-Sep-2006  rpaulo sync with head
 1.12.2.1 18-Feb-2006  yamt sync with head.
 1.13.10.1 16-Jun-2006  gdamore Remove this file now that we use stock com.
 1.13.2.1 11-Aug-2006  yamt sync with head
 1.3 13-Jul-2006  gdamore Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.2 09-Feb-2006  gdamore branches: 1.2.2; 1.2.10;
Remove not-useful UART references from aureg.h, duplicates consolidated into
aucomreg.h. First part of aureg.h cleanup requested by simonb@.
 1.1 29-Jul-2002  simonb branches: 1.1.2; 1.1.4; 1.1.6; 1.1.28; 1.1.40; 1.1.42; 1.1.44;
Add a slightly modified dev/ic/com.c that supports the Alchemy
Semiconductor Au1x00 series on-chip UARTs. Will be merged with
the original com.c driver once a few issues are tidied up. Main
differences from a standard 16550 UART are:
- separate rxdata and txdata registers
- single 16-bit register for the clock divisor
- "enable uart" register
 1.1.44.1 22-Apr-2006  simonb Sync with head.
 1.1.42.1 09-Sep-2006  rpaulo sync with head
 1.1.40.1 18-Feb-2006  yamt sync with head.
 1.1.28.2 30-Dec-2006  yamt sync with head.
 1.1.28.1 21-Jun-2006  yamt sync with head.
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 29-Jul-2002  jdolecek file aucomreg.h was added on branch kqueue on 2002-09-06 08:37:22 +0000
 1.1.4.2 31-Aug-2002  gehenna catch up with -current.
 1.1.4.1 29-Jul-2002  gehenna file aucomreg.h was added on branch gehenna-devsw on 2002-08-31 13:45:14 +0000
 1.1.2.2 29-Jul-2002  simonb Add a slightly modified dev/ic/com.c that supports the Alchemy
Semiconductor Au1x00 series on-chip UARTs. Will be merged with
the original com.c driver once a few issues are tidied up. Main
differences from a standard 16550 UART are:
- separate rxdata and txdata registers
- single 16-bit register for the clock divisor
- "enable uart" register
 1.1.2.1 29-Jul-2002  simonb file aucomreg.h was added on branch nathanw_sa on 2002-07-29 15:42:43 +0000
 1.2.10.1 15-Jun-2006  gdamore Adapt to new com framework, converting aucom.c clone to use common com.c.
 1.2.2.1 11-Aug-2006  yamt sync with head
 1.4 27-Dec-2005  chs remove the COM_MPLOCK option. always include the spinlock in the softc
and always call the simple_* locking functions. the locking functions
are compiled out if they are not needed anyway, so a separate option
for this doesn't gain anything.

this also fixes the serial console on my alpha ES40 (which doesn't make much
sense since the com driver should still be under the big lock on alpha,
but whatever).
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 01-May-2004  thorpej branches: 1.2.12;
Rename the COM16650 option to COM_16650, for consistency with other
com variant options.
 1.1 29-Jul-2002  simonb branches: 1.1.2; 1.1.4; 1.1.6; 1.1.12;
Add a slightly modified dev/ic/com.c that supports the Alchemy
Semiconductor Au1x00 series on-chip UARTs. Will be merged with
the original com.c driver once a few issues are tidied up. Main
differences from a standard 16550 UART are:
- separate rxdata and txdata registers
- single 16-bit register for the clock divisor
- "enable uart" register
 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.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 29-Jul-2002  jdolecek file aucomvar.h was added on branch kqueue on 2002-09-06 08:37:23 +0000
 1.1.4.2 31-Aug-2002  gehenna catch up with -current.
 1.1.4.1 29-Jul-2002  gehenna file aucomvar.h was added on branch gehenna-devsw on 2002-08-31 13:45:15 +0000
 1.1.2.2 29-Jul-2002  simonb Add a slightly modified dev/ic/com.c that supports the Alchemy
Semiconductor Au1x00 series on-chip UARTs. Will be merged with
the original com.c driver once a few issues are tidied up. Main
differences from a standard 16550 UART are:
- separate rxdata and txdata registers
- single 16-bit register for the clock divisor
- "enable uart" register
 1.1.2.1 29-Jul-2002  simonb file aucomvar.h was added on branch nathanw_sa on 2002-07-29 15:42:43 +0000
 1.2.12.1 21-Jun-2006  yamt sync with head.
 1.10 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.9 24-Apr-2021  thorpej branches: 1.9.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.8 27-Jun-2015  matt branches: 1.8.32;
Cleanup includes.
 1.7 03-Jan-2012  kiyohara branches: 1.7.6; 1.7.24;
Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
 1.6 01-Jul-2011  dyoung branches: 1.6.2; 1.6.6;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.5 24-Mar-2006  gdamore branches: 1.5.2; 1.5.8; 1.5.14;
Remove crufty (and unused) augpio_found check. Noted by Kiyohara Takashi.
 1.4 24-Mar-2006  gdamore Add macros so that GPIOs can be accessed directly without having to use
ioctls or the GPIO framework. Useful for some subsystems such as PCMCIA, that
may also use GPIOs. Requested by Kiyohara Takashi.
 1.3 18-Feb-2006  gdamore branches: 1.3.2; 1.3.4; 1.3.6;
Use bus_space instead of direct access.
Fix a couple of inverted bits.
Added GPIO_BASE definition to aureg.h.
 1.2 13-Feb-2006  gdamore branches: 1.2.2;
Do not reset GPIO2 block -- causes PCI reset.
 1.1 12-Feb-2006  gdamore Add GPIO driver, and GPIO access functions for other subsystems.
 1.2.2.3 01-Mar-2006  yamt sync with head.
 1.2.2.2 18-Feb-2006  yamt sync with head.
 1.2.2.1 13-Feb-2006  yamt file augpio.c was added on branch yamt-uio_vmspace on 2006-02-18 15:38:41 +0000
 1.3.6.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.3.4.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.3.2.1 01-Apr-2006  yamt sync with head.
 1.5.14.2 09-Sep-2006  rpaulo sync with head
 1.5.14.1 24-Mar-2006  rpaulo file augpio.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.5.8.2 21-Jun-2006  yamt sync with head.
 1.5.8.1 24-Mar-2006  yamt file augpio.c was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.5.2.2 22-Apr-2006  simonb Sync with head.
 1.5.2.1 24-Mar-2006  simonb file augpio.c was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.6.6.1 18-Feb-2012  mrg merge to -current.
 1.6.2.1 17-Apr-2012  yamt sync with head
 1.7.24.1 22-Sep-2015  skrll Sync with HEAD
 1.7.6.1 03-Dec-2017  jdolecek update from HEAD
 1.8.32.1 23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.9.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 18-Feb-2006  gdamore branches: 1.3.8; 1.3.14; 1.3.20;
Use bus_space instead of direct access.
Fix a couple of inverted bits.
Added GPIO_BASE definition to aureg.h.
 1.2 13-Feb-2006  gdamore branches: 1.2.2;
Do not reset GPIO2 block -- causes PCI reset.
 1.1 12-Feb-2006  gdamore Add GPIO driver, and GPIO access functions for other subsystems.
 1.2.2.3 01-Mar-2006  yamt sync with head.
 1.2.2.2 18-Feb-2006  yamt sync with head.
 1.2.2.1 13-Feb-2006  yamt file augpioreg.h was added on branch yamt-uio_vmspace on 2006-02-18 15:38:41 +0000
 1.3.20.2 09-Sep-2006  rpaulo sync with head
 1.3.20.1 18-Feb-2006  rpaulo file augpioreg.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.3.14.2 21-Jun-2006  yamt sync with head.
 1.3.14.1 18-Feb-2006  yamt file augpioreg.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.3.8.2 22-Apr-2006  simonb Sync with head.
 1.3.8.1 18-Feb-2006  simonb file augpioreg.h was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.3 24-Mar-2006  gdamore branches: 1.3.2; 1.3.4; 1.3.6; 1.3.12; 1.3.18;
Add macros so that GPIOs can be accessed directly without having to use
ioctls or the GPIO framework. Useful for some subsystems such as PCMCIA, that
may also use GPIOs. Requested by Kiyohara Takashi.
 1.2 18-Feb-2006  gdamore branches: 1.2.2;
Use bus_space instead of direct access.
Fix a couple of inverted bits.
Added GPIO_BASE definition to aureg.h.
 1.1 12-Feb-2006  gdamore branches: 1.1.2;
Add GPIO driver, and GPIO access functions for other subsystems.
 1.1.2.3 01-Mar-2006  yamt sync with head.
 1.1.2.2 18-Feb-2006  yamt sync with head.
 1.1.2.1 12-Feb-2006  yamt file augpiovar.h was added on branch yamt-uio_vmspace on 2006-02-18 15:38:41 +0000
 1.2.2.1 01-Apr-2006  yamt sync with head.
 1.3.18.2 09-Sep-2006  rpaulo sync with head
 1.3.18.1 24-Mar-2006  rpaulo file augpiovar.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.3.12.2 21-Jun-2006  yamt sync with head.
 1.3.12.1 24-Mar-2006  yamt file augpiovar.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.3.6.2 22-Apr-2006  simonb Sync with head.
 1.3.6.1 24-Mar-2006  simonb file augpiovar.h was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.3.4.2 19-Apr-2006  elad sync with head - hopefully this will work
 1.3.4.1 24-Mar-2006  elad file augpiovar.h was added on branch elad-kernelauth on 2006-04-19 02:33:12 +0000
 1.3.2.2 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.3.2.1 24-Mar-2006  tron file augpiovar.h was added on branch peter-altq on 2006-03-28 09:47:16 +0000
 1.22 29-Sep-2022  skrll Remove unnecessary include of <sys/malloc.h>.
 1.21 29-Sep-2022  skrll Trailing whitespace
 1.20 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.19 24-Apr-2021  thorpej branches: 1.19.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.18 07-Jul-2020  thorpej branches: 1.18.4;
Overhaul the interface to pci_configure_bus():
- Don't expose how PCI bus configuration resource management is implemented.
Provide a new resource provider API:

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

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

- Re-implement PCI configuration resource management using vmem arenas,
rather than extent maps.
 1.17 02-Oct-2015  msaitoh PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
Currently the following extended capabilities are decoded:
- Advanced Error Reporting
- Virtual Channel
- Device Serial Number
- Power Budgeting
- Root Complex Link Declaration
- Root Complex Event Collector Association
- Access Control Services
- Alternative Routing-ID Interpretation
- Address Translation Services
- Single Root IO Virtualization
- Page Request
- TPH Requester
- Latency Tolerance Reporting
- Secondary PCI Express
- Process Address Space ID
- LN Requester
- L1 PM Substates
The following extended capabilities are not decoded yet:
- Root Complex Internal Link Control
- Multi-Function Virtual Channel
- RCRB Header
- Vendor Unique
- Configuration Access Correction
- Multiple Root IO Virtualization
- Multicast
- Resizable BAR
- Dynamic Power Allocation
- Protocol Multiplexing
- Downstream Port Containment
- Precision Time Management
- M-PCIe
- Function Reading Status Queueing
- Readiness Time Reporting
- Designated Vendor-Specific
 1.16 27-Jun-2015  matt Cleanup includes.
 1.15 29-Mar-2014  christos branches: 1.15.6;
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.14 26-Mar-2014  christos kill sprintf
 1.13 27-Jan-2012  para branches: 1.13.6; 1.13.10;
converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch

releng@ acknowledged
 1.12 03-Jan-2012  kiyohara Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
 1.11 01-Jul-2011  dyoung branches: 1.11.2; 1.11.6;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.10 17-May-2011  dyoung PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name. Correct that.

Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.

This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:

algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC
 1.9 20-Feb-2011  matt Merge forward from matt-nb5-mips64.
 1.8 28-Feb-2007  thorpej branches: 1.8.62; 1.8.66; 1.8.72; 1.8.74;
TRUE -> true, FALSE -> false
 1.7 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.6 09-Sep-2006  simonb branches: 1.6.6;
Fix a white-space nit.
 1.5 27-Feb-2006  gdamore branches: 1.5.2; 1.5.8; 1.5.12; 1.5.14; 1.5.18; 1.5.20;
Masking for mstart was still *not* right. This time I'm fairly sure I got
it right -- OMSAL400 and MTX-1 boards should have functional PCI now.
 1.4 27-Feb-2006  gdamore Incorrect pci_mbar/pci_mwmask related calculation was causing devices to be
inaccessible on some platforms.
 1.3 16-Feb-2006  gdamore branches: 1.3.2;
Reenable PCI on DBAU1500. May still be useful for PIO devices. Comments
in the config are left intact, though.
Add a PMAP-driven bus_space for access to upper memory, instead of using
wired entries.
Convert aupci to use said bus_space -- no measured performance impact.
 1.2 13-Feb-2006  simonb If we get a master abort, reset the SPL before returning.
 1.1 09-Feb-2006  gdamore Add Au1550 PCI support (Au1500 not yet, coming shortly).
Closes PR port-evbmips/32087.
Reviewed by simonb@ (Also, earlier, matt@, and tsutsui@.)
 1.3.2.3 01-Mar-2006  yamt sync with head.
 1.3.2.2 18-Feb-2006  yamt sync with head.
 1.3.2.1 16-Feb-2006  yamt file aupci.c was added on branch yamt-uio_vmspace on 2006-02-18 15:38:41 +0000
 1.5.20.2 09-Sep-2006  rpaulo sync with head
 1.5.20.1 27-Feb-2006  rpaulo file aupci.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.5.18.1 18-Nov-2006  ad Sync with head.
 1.5.14.5 03-Sep-2007  yamt sync with head.
 1.5.14.4 26-Feb-2007  yamt sync with head.
 1.5.14.3 30-Dec-2006  yamt sync with head.
 1.5.14.2 21-Jun-2006  yamt sync with head.
 1.5.14.1 27-Feb-2006  yamt file aupci.c was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.5.12.1 13-Jul-2006  gdamore Merge from HEAD.
 1.5.8.2 22-Apr-2006  simonb Sync with head.
 1.5.8.1 27-Feb-2006  simonb file aupci.c was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.5.2.1 14-Sep-2006  yamt sync with head.
 1.6.6.2 12-Mar-2007  rmind Sync with HEAD.
 1.6.6.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.8.74.1 05-Mar-2011  bouyer Sync with HEAD
 1.8.72.1 06-Jun-2011  jruoho Sync with HEAD.
 1.8.66.2 31-May-2011  rmind sync with head
 1.8.66.1 05-Mar-2011  rmind sync with head
 1.8.62.1 20-Jan-2010  matt Adjust things to the new world order.
 1.11.6.1 18-Feb-2012  mrg merge to -current.
 1.11.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.11.2.1 17-Apr-2012  yamt sync with head
 1.13.10.1 18-May-2014  rmind sync with head
 1.13.6.2 03-Dec-2017  jdolecek update from HEAD
 1.13.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.6.2 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.15.6.1 22-Sep-2015  skrll Sync with HEAD
 1.18.4.1 23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.19.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 16-Feb-2006  gdamore branches: 1.2.2; 1.2.10; 1.2.16; 1.2.22;
Reenable PCI on DBAU1500. May still be useful for PIO devices. Comments
in the config are left intact, though.
Add a PMAP-driven bus_space for access to upper memory, instead of using
wired entries.
Convert aupci to use said bus_space -- no measured performance impact.
 1.1 09-Feb-2006  gdamore Add Au1550 PCI support (Au1500 not yet, coming shortly).
Closes PR port-evbmips/32087.
Reviewed by simonb@ (Also, earlier, matt@, and tsutsui@.)
 1.2.22.2 09-Sep-2006  rpaulo sync with head
 1.2.22.1 16-Feb-2006  rpaulo file aupcireg.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.2.16.2 21-Jun-2006  yamt sync with head.
 1.2.16.1 16-Feb-2006  yamt file aupcireg.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.2.10.2 22-Apr-2006  simonb Sync with head.
 1.2.10.1 16-Feb-2006  simonb file aupcireg.h was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.2.2.2 18-Feb-2006  yamt sync with head.
 1.2.2.1 16-Feb-2006  yamt file aupcireg.h was added on branch yamt-uio_vmspace on 2006-02-18 15:38:41 +0000
 1.3 04-Apr-2011  dyoung Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

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

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

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

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

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

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

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

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

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

### evbmips-el GDIUM

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

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

### ia64 GENERIC

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

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
 1.2 16-Feb-2006  gdamore branches: 1.2.2; 1.2.10; 1.2.16; 1.2.22; 1.2.102; 1.2.108;
Reenable PCI on DBAU1500. May still be useful for PIO devices. Comments
in the config are left intact, though.
Add a PMAP-driven bus_space for access to upper memory, instead of using
wired entries.
Convert aupci to use said bus_space -- no measured performance impact.
 1.1 09-Feb-2006  gdamore Add Au1550 PCI support (Au1500 not yet, coming shortly).
Closes PR port-evbmips/32087.
Reviewed by simonb@ (Also, earlier, matt@, and tsutsui@.)
 1.2.108.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.102.1 21-Apr-2011  rmind sync with head
 1.2.22.2 09-Sep-2006  rpaulo sync with head
 1.2.22.1 16-Feb-2006  rpaulo file aupcivar.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.2.16.2 21-Jun-2006  yamt sync with head.
 1.2.16.1 16-Feb-2006  yamt file aupcivar.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.2.10.2 22-Apr-2006  simonb Sync with head.
 1.2.10.1 16-Feb-2006  simonb file aupcivar.h was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.2.2.2 18-Feb-2006  yamt sync with head.
 1.2.2.1 16-Feb-2006  yamt file aupcivar.h was added on branch yamt-uio_vmspace on 2006-02-18 15:38:41 +0000
 1.13 25-Sep-2022  andvar s/inerrupt/interrupt/ and s/intrrupt/interrupt/ in comments.
 1.12 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.11 24-Apr-2021  thorpej branches: 1.11.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.10 30-Aug-2015  dholland branches: 1.10.32;
Turn interrupts back off after sleeping. From maxv's Brainy list.
 1.9 04-Jan-2012  kiyohara branches: 1.9.6; 1.9.24;
Use device_t instead of 'struct device *'.
Remove unnecessary \n.
 1.8 03-Jan-2012  kiyohara Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
 1.7 26-Jul-2011  dyoung branches: 1.7.2; 1.7.6;
Don't set the iobase and iosize members of pcmciabus_attach_args because
they're not used in any meaningful way.
 1.6 08-Jan-2008  dogcow add include for incomplete struct blah blah blah
 1.5 22-Dec-2007  ad Make compile (hi moof).
 1.4 17-Oct-2007  garbled branches: 1.4.2; 1.4.4; 1.4.8;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.3 09-Jul-2007  ad branches: 1.3.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.2 25-Mar-2006  gdamore branches: 1.2.2; 1.2.8; 1.2.14; 1.2.24; 1.2.26; 1.2.32;
Remove verbose debug message, and make sure we pass right IPL.
(Pedantic, since IPL isn't used in ICU, but better to be pedantic and right
than wrong.)
 1.1 23-Feb-2006  gdamore branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Initial commit of aupcmcia chip driver. It requires board specific logic
(coming in a the follow up commit for dbau1550 only), and is not yet complete.
It has serious problems, enough that it isn't yet usable, although the
functionality is all basically fleshed out. It is not enabled in any
default kernels at this point, so it should be benign. Hopefully the
bugs will soon be worked out and these caveats can be removed.
 1.1.8.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.1.6.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1 01-Apr-2006  yamt sync with head.
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 23-Feb-2006  yamt file aupcmcia.c was added on branch yamt-uio_vmspace on 2006-03-01 09:27:59 +0000
 1.2.32.1 03-Oct-2007  garbled Sync with HEAD
 1.2.26.1 11-Jul-2007  mjf Sync with head.
 1.2.24.1 15-Jul-2007  ad Sync with head.
 1.2.14.2 09-Sep-2006  rpaulo sync with head
 1.2.14.1 25-Mar-2006  rpaulo file aupcmcia.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.2.8.4 21-Jan-2008  yamt sync with head
 1.2.8.3 03-Sep-2007  yamt sync with head.
 1.2.8.2 21-Jun-2006  yamt sync with head.
 1.2.8.1 25-Mar-2006  yamt file aupcmcia.c was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.2.2.2 22-Apr-2006  simonb Sync with head.
 1.2.2.1 25-Mar-2006  simonb file aupcmcia.c was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.3.10.2 09-Jan-2008  matt sync with HEAD
 1.3.10.1 06-Nov-2007  matt sync with HEAD
 1.4.8.2 08-Jan-2008  bouyer Sync with HEAD
 1.4.8.1 02-Jan-2008  bouyer Sync with HEAD
 1.4.4.1 26-Dec-2007  ad Sync with head.
 1.4.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.7.6.1 18-Feb-2012  mrg merge to -current.
 1.7.2.1 17-Apr-2012  yamt sync with head
 1.9.24.1 22-Sep-2015  skrll Sync with HEAD
 1.9.6.1 03-Dec-2017  jdolecek update from HEAD
 1.10.32.1 21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.11.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 15-Dec-2024  andvar s/particlar/particular/ in comment.
 1.1 23-Feb-2006  gdamore branches: 1.1.2; 1.1.10; 1.1.16; 1.1.22; 1.1.204;
Initial commit of aupcmcia chip driver. It requires board specific logic
(coming in a the follow up commit for dbau1550 only), and is not yet complete.
It has serious problems, enough that it isn't yet usable, although the
functionality is all basically fleshed out. It is not enabled in any
default kernels at this point, so it should be benign. Hopefully the
bugs will soon be worked out and these caveats can be removed.
 1.1.204.1 02-Aug-2025  perseant Sync with HEAD
 1.1.22.2 09-Sep-2006  rpaulo sync with head
 1.1.22.1 23-Feb-2006  rpaulo file aupcmciareg.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.1.16.2 21-Jun-2006  yamt sync with head.
 1.1.16.1 23-Feb-2006  yamt file aupcmciareg.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 23-Feb-2006  simonb file aupcmciareg.h was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 23-Feb-2006  yamt file aupcmciareg.h was added on branch yamt-uio_vmspace on 2006-03-01 09:27:59 +0000
 1.1 23-Feb-2006  gdamore branches: 1.1.2; 1.1.10; 1.1.16; 1.1.22;
Initial commit of aupcmcia chip driver. It requires board specific logic
(coming in a the follow up commit for dbau1550 only), and is not yet complete.
It has serious problems, enough that it isn't yet usable, although the
functionality is all basically fleshed out. It is not enabled in any
default kernels at this point, so it should be benign. Hopefully the
bugs will soon be worked out and these caveats can be removed.
 1.1.22.2 09-Sep-2006  rpaulo sync with head
 1.1.22.1 23-Feb-2006  rpaulo file aupcmciavar.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.1.16.2 21-Jun-2006  yamt sync with head.
 1.1.16.1 23-Feb-2006  yamt file aupcmciavar.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 23-Feb-2006  simonb file aupcmciavar.h was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 23-Feb-2006  yamt file aupcmciavar.h was added on branch yamt-uio_vmspace on 2006-03-01 09:27:59 +0000
 1.9 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.8 24-Apr-2021  thorpej branches: 1.8.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.7 03-Jan-2012  kiyohara branches: 1.7.62;
Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
 1.6 01-Jul-2011  dyoung branches: 1.6.2; 1.6.6;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.5 02-Oct-2006  gdamore Make PSC better able to support different protocols, as developed for SPI.
The main changes needed are:

1) pass address and IRQ information from aubus (auspi uses interrupts)

2) all Au1550 PSC protocols have the same status and register bits
for enable, so clean that up (clock registers could be different)

3) improve timeout logic on enable (a fixed delay isn't good enough)

4) make aupsc_print return QUIET, as it is annoying to see messages
for unconfigured protocols. This whole mechanism should be re-
engineered, to either use indirect configuration or provide more
detailed board-driven configuration. A comment to that effect is
placed in the source.

This is shown to work on DBAU1550.
 1.4 06-Mar-2006  shige branches: 1.4.6; 1.4.12; 1.4.16; 1.4.18; 1.4.20;
Change name of SMBus include: smbusreg.h => ausmbus_pscreg.h.
 1.3 06-Mar-2006  simonb Remove commented out "ausmbus" instance now that there's a fleshed out
instance above this.
 1.2 06-Mar-2006  shige Add enable/disable/suspend functions for AuXXXX PSC devices.
 1.1 24-Feb-2006  shige branches: 1.1.2; 1.1.4;
Add Au1XXX PSC(Programable Serial Controller) bus-type driver.
PSC supports four protocols (AC97, I2S, SPI, SMBus).
These protocol drivers will be configured on the bus.
 1.1.4.1 13-Mar-2006  yamt sync with head.
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 24-Feb-2006  yamt file aupsc.c was added on branch yamt-uio_vmspace on 2006-03-01 09:27:59 +0000
 1.4.20.1 22-Oct-2006  yamt sync with head
 1.4.18.2 09-Sep-2006  rpaulo sync with head
 1.4.18.1 06-Mar-2006  rpaulo file aupsc.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.4.16.1 18-Nov-2006  ad Sync with head.
 1.4.12.3 30-Dec-2006  yamt sync with head.
 1.4.12.2 21-Jun-2006  yamt sync with head.
 1.4.12.1 06-Mar-2006  yamt file aupsc.c was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.4.6.2 22-Apr-2006  simonb Sync with head.
 1.4.6.1 06-Mar-2006  simonb file aupsc.c was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.6.6.1 18-Feb-2012  mrg merge to -current.
 1.6.2.1 17-Apr-2012  yamt sync with head
 1.7.62.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.7.62.1 22-Mar-2021  thorpej Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.
 1.8.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.3 02-Oct-2006  gdamore Make PSC better able to support different protocols, as developed for SPI.
The main changes needed are:

1) pass address and IRQ information from aubus (auspi uses interrupts)

2) all Au1550 PSC protocols have the same status and register bits
for enable, so clean that up (clock registers could be different)

3) improve timeout logic on enable (a fixed delay isn't good enough)

4) make aupsc_print return QUIET, as it is annoying to see messages
for unconfigured protocols. This whole mechanism should be re-
engineered, to either use indirect configuration or provide more
detailed board-driven configuration. A comment to that effect is
placed in the source.

This is shown to work on DBAU1550.
 1.2 06-Mar-2006  shige branches: 1.2.6; 1.2.12; 1.2.16; 1.2.18; 1.2.20;
Add some definitions for register bits.
 1.1 24-Feb-2006  shige branches: 1.1.2; 1.1.4;
Add Au1XXX PSC(Programable Serial Controller) bus-type driver.
PSC supports four protocols (AC97, I2S, SPI, SMBus).
These protocol drivers will be configured on the bus.
 1.1.4.1 13-Mar-2006  yamt sync with head.
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 24-Feb-2006  yamt file aupscreg.h was added on branch yamt-uio_vmspace on 2006-03-01 09:27:59 +0000
 1.2.20.1 22-Oct-2006  yamt sync with head
 1.2.18.2 09-Sep-2006  rpaulo sync with head
 1.2.18.1 06-Mar-2006  rpaulo file aupscreg.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.2.16.1 18-Nov-2006  ad Sync with head.
 1.2.12.3 30-Dec-2006  yamt sync with head.
 1.2.12.2 21-Jun-2006  yamt sync with head.
 1.2.12.1 06-Mar-2006  yamt file aupscreg.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 06-Mar-2006  simonb file aupscreg.h was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.4 03-Jan-2012  kiyohara Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
 1.3 02-Oct-2006  gdamore branches: 1.3.90; 1.3.94;
Make PSC better able to support different protocols, as developed for SPI.
The main changes needed are:

1) pass address and IRQ information from aubus (auspi uses interrupts)

2) all Au1550 PSC protocols have the same status and register bits
for enable, so clean that up (clock registers could be different)

3) improve timeout logic on enable (a fixed delay isn't good enough)

4) make aupsc_print return QUIET, as it is annoying to see messages
for unconfigured protocols. This whole mechanism should be re-
engineered, to either use indirect configuration or provide more
detailed board-driven configuration. A comment to that effect is
placed in the source.

This is shown to work on DBAU1550.
 1.2 06-Mar-2006  shige branches: 1.2.6; 1.2.12; 1.2.16; 1.2.18; 1.2.20;
Add enable/disable/suspend functions for AuXXXX PSC devices.
 1.1 24-Feb-2006  shige branches: 1.1.2; 1.1.4;
Add Au1XXX PSC(Programable Serial Controller) bus-type driver.
PSC supports four protocols (AC97, I2S, SPI, SMBus).
These protocol drivers will be configured on the bus.
 1.1.4.1 13-Mar-2006  yamt sync with head.
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 24-Feb-2006  yamt file aupscvar.h was added on branch yamt-uio_vmspace on 2006-03-01 09:27:59 +0000
 1.2.20.1 22-Oct-2006  yamt sync with head
 1.2.18.2 09-Sep-2006  rpaulo sync with head
 1.2.18.1 06-Mar-2006  rpaulo file aupscvar.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.2.16.1 18-Nov-2006  ad Sync with head.
 1.2.12.3 30-Dec-2006  yamt sync with head.
 1.2.12.2 21-Jun-2006  yamt sync with head.
 1.2.12.1 06-Mar-2006  yamt file aupscvar.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.2.6.2 22-Apr-2006  simonb Sync with head.
 1.2.6.1 06-Mar-2006  simonb file aupscvar.h was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.3.94.1 18-Feb-2012  mrg merge to -current.
 1.3.90.1 17-Apr-2012  yamt sync with head
 1.16 07-Sep-2025  thorpej Change todr_chip_handle::cookie -> todr_chip_handle::todr_dev, and
make it a device_t. Upcoming functional changes will require the
device_t associated with a TODR device.

Change todr_chip_handle::bus_cookie -> todr_chip_handle::todr_devaux.
Nothing was using the old field, but I decided to keep it around just
in cause something needs it in the future.

And with these largely mechanical yet semantically meaningful changes,
thus spake the Oracle: "Welcome to NetBSD 11.99.2."
 1.15 07-Sep-2025  thorpej Remove unnecessary NULL-initialization of TODR handle fields.
 1.14 03-Jan-2012  kiyohara Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
 1.13 01-Jul-2011  dyoung branches: 1.13.2; 1.13.6;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.12 12-Dec-2009  tsutsui Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
 1.11 04-Sep-2006  gdamore branches: 1.11.60;
Remove unused todr_setcal/todr_getcal and all the assorted stub
implementations.
 1.10 28-Mar-2006  gdamore Use todr_attach.
 1.9 28-Mar-2006  gdamore Rework evbmips clock architecture to use common clock_subr.h routines.

Additionally, do not fail if no RTC is present, as not all boards have one.

Malta now uses the common dev/ic/mc146818.c code as much as possible, reducing
local "custom" code. These malta changes are *untested*, as I do not have
a Malta board to test with. If someone would please test them and get back to
me, I'd appreciate it!
 1.8 09-Mar-2006  gdamore branches: 1.8.2;
Fix the RTC so that the AU1550 keeps accurate time. The RTC is taken from
the TOY register, which is presumed to be seconds since Jan. 1 2000.

For now I'm assuming the trim divider is 32K, which makes 1 tick per sec.
This is true for the DBAU1550 board at least. Other boards might need to
initialize a reasonable trim counter and establish the 32KHz oscillator.

In any case, this code is *no worse* on older systems than what was there
before.
 1.7 11-Dec-2005  christos branches: 1.7.4; 1.7.6; 1.7.8; 1.7.10;
merge ktrace-lwp.
 1.6 15-Jul-2003  lukem branches: 1.6.16;
__KERNEL_RCSID()
 1.5 02-Oct-2002  thorpej branches: 1.5.6;
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 27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.1 29-Jul-2002  simonb branches: 1.1.2; 1.1.4; 1.1.6;
Add support for the the Alchemy Semiconductor Au1x00 series on-chip
devices. Currently the serial ports and ethernet MAC have working
drivers, and this has only been physically tested on the Au1000 CPU,
but these devices should work on the Au1100 and Au1500 CPUs too.
 1.1.6.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 29-Jul-2002  jdolecek file aurtc.c was added on branch kqueue on 2002-09-06 08:37:23 +0000
 1.1.4.2 31-Aug-2002  gehenna catch up with -current.
 1.1.4.1 29-Jul-2002  gehenna file aurtc.c was added on branch gehenna-devsw on 2002-08-31 13:45:15 +0000
 1.1.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.1 29-Jul-2002  nathanw file aurtc.c was added on branch nathanw_sa on 2002-10-18 02:38:43 +0000
 1.5.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.6.1 03-Aug-2004  skrll Sync with HEAD
 1.6.16.2 30-Dec-2006  yamt sync with head.
 1.6.16.1 21-Jun-2006  yamt sync with head.
 1.7.10.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.7.8.3 14-Sep-2006  yamt sync with head.
 1.7.8.2 01-Apr-2006  yamt sync with head.
 1.7.8.1 13-Mar-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.2.2 31-Mar-2006  tron Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
 1.8.2.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.11.60.1 11-Mar-2010  yamt sync with head
 1.13.6.1 18-Feb-2012  mrg merge to -current.
 1.13.2.1 17-Apr-2012  yamt sync with head
 1.17 15-Sep-2025  thorpej Encapsulate what's needed to attach an I2C bus into a iicbus_attach()
inline.
 1.16 18-Jun-2022  andvar fix typos in word "functions" in comments, mainly s/fuctions/functions/.
 1.15 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.14 24-Apr-2021  thorpej branches: 1.14.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

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

Assert that we are not in hard interrupt context in iic_acquire_bus(),
iic_exec(), and iic_release_bus().
 1.12 14-Feb-2016  chs branches: 1.12.18;
zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
 1.11 03-Jan-2012  kiyohara branches: 1.11.6; 1.11.24;
Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
 1.10 01-Jul-2011  dyoung branches: 1.10.2; 1.10.6;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.9 20-Apr-2009  pgoyette One more implementation of the quick_{read,write} I2C protocol. Note
that this is currently used only by the I2C_SCAN code (disabled by
default).

XXX Not tested due to lack of hardware. Reviewed by simon@ and shige@.
 1.8 17-Oct-2007  garbled branches: 1.8.20; 1.8.28; 1.8.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.7 14-Aug-2007  kiyohara branches: 1.7.2;
Remove white-spaces.
 1.6 26-Jun-2006  drochner branches: 1.6.6; 1.6.16; 1.6.24; 1.6.30; 1.6.34;
use the "i2cbus" interface attribute rather than putting a string name
into the i2cbus attach args
 1.5 25-Jun-2006  kiyohara Supoort read/write word.
 1.4 27-Mar-2006  shige branches: 1.4.2; 1.4.6; 1.4.8;
Add waits after bus_space_write.
 1.3 06-Mar-2006  shige branches: 1.3.2; 1.3.4; 1.3.6;
Change name of SMBus include: smbusreg.h => ausmbus_pscreg.h.
 1.2 06-Mar-2006  shige Remove working-debug codes.
I apologize sincerely...
 1.1 06-Mar-2006  shige Add support for On-chip PSC SMBus protocol.
 1.3.6.1 28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.3.4.5 11-Aug-2006  yamt sync with head
 1.3.4.4 26-Jun-2006  yamt sync with head.
 1.3.4.3 01-Apr-2006  yamt sync with head.
 1.3.4.2 13-Mar-2006  yamt sync with head.
 1.3.4.1 06-Mar-2006  yamt file ausmbus_psc.c was added on branch yamt-pdpolicy on 2006-03-13 09:06:58 +0000
 1.3.2.1 19-Apr-2006  elad sync with head - hopefully this will work
 1.4.8.4 03-Sep-2007  yamt sync with head.
 1.4.8.3 30-Dec-2006  yamt sync with head.
 1.4.8.2 21-Jun-2006  yamt sync with head.
 1.4.8.1 27-Mar-2006  yamt file ausmbus_psc.c was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.4.6.1 13-Jul-2006  gdamore Merge from HEAD.
 1.4.2.2 22-Apr-2006  simonb Sync with head.
 1.4.2.1 27-Mar-2006  simonb file ausmbus_psc.c was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.6.34.1 16-Aug-2007  jmcneill Sync with HEAD.
 1.6.30.1 15-Aug-2007  skrll Sync with HEAD.
 1.6.24.1 03-Oct-2007  garbled Sync with HEAD
 1.6.16.1 20-Aug-2007  ad Sync with HEAD.
 1.6.6.2 09-Sep-2006  rpaulo sync with head
 1.6.6.1 26-Jun-2006  rpaulo file ausmbus_psc.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.7.2.1 06-Nov-2007  matt sync with HEAD
 1.8.34.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.8.28.1 28-Apr-2009  skrll Sync with HEAD.
 1.8.20.1 04-May-2009  yamt sync with head.
 1.10.6.1 18-Feb-2012  mrg merge to -current.
 1.10.2.1 17-Apr-2012  yamt sync with head
 1.11.24.1 19-Mar-2016  skrll Sync with HEAD
 1.11.6.1 03-Dec-2017  jdolecek update from HEAD
 1.12.18.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.13.10.1 23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.14.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.2 02-Jun-2024  andvar s/intterrupt/interrupt/ in comments.
 1.1 06-Mar-2006  shige branches: 1.1.4; 1.1.8; 1.1.14; 1.1.20;
Change name of SMBus include: smbusreg.h => ausmbus_pscreg.h.
 1.1.20.2 09-Sep-2006  rpaulo sync with head
 1.1.20.1 06-Mar-2006  rpaulo file ausmbus_pscreg.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.1.14.2 21-Jun-2006  yamt sync with head.
 1.1.14.1 06-Mar-2006  yamt file ausmbus_pscreg.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.1.8.2 22-Apr-2006  simonb Sync with head.
 1.1.8.1 06-Mar-2006  simonb file ausmbus_pscreg.h was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.1.4.2 13-Mar-2006  yamt sync with head.
 1.1.4.1 06-Mar-2006  yamt file ausmbus_pscreg.h was added on branch yamt-pdpolicy on 2006-03-13 09:06:58 +0000
 1.12 10-Sep-2025  thorpej Encapsulate what's needed to attach a SPI bus into a spibus_attach()
inline.
 1.11 07-Aug-2021  thorpej branches: 1.11.2;
Merge thorpej-cfargs2.
 1.10 24-Apr-2021  thorpej branches: 1.10.2; 1.10.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.9 13-Aug-2019  tnn branches: 1.9.10;
ensure spibus_attach_args is zero'ed
 1.8 04-Jan-2012  kiyohara branches: 1.8.48;
Use device_t instead of 'struct device *'.
Remove unnecessary \n.
 1.7 03-Jan-2012  kiyohara Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
 1.6 10-Jul-2011  matt branches: 1.6.2; 1.6.6;
Fix machine/ includes
 1.5 01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.4 08-Jun-2011  rmind - Use IPL_BIO (instead of IPL_SERIAL) for SPI.
- Convert simple_lock/ltsleep to mutex/condvar.
 1.3 28-Feb-2007  thorpej branches: 1.3.66; 1.3.76;
TRUE -> true, FALSE -> false
 1.2 21-Feb-2007  thorpej Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
 1.1 02-Oct-2006  gdamore branches: 1.1.2; 1.1.4; 1.1.8; 1.1.10;
Add Alchemy PSC SPI bus protocol driver. Not activated on any boards yet,
that requires an evbmips commit.
 1.1.10.2 12-Mar-2007  rmind Sync with HEAD.
 1.1.10.1 27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.1.8.4 03-Sep-2007  yamt sync with head.
 1.1.8.3 26-Feb-2007  yamt sync with head.
 1.1.8.2 30-Dec-2006  yamt sync with head.
 1.1.8.1 02-Oct-2006  yamt file auspi.c was added on branch yamt-lazymbuf on 2006-12-30 20:46:30 +0000
 1.1.4.2 18-Nov-2006  ad Sync with head.
 1.1.4.1 02-Oct-2006  ad file auspi.c was added on branch newlock2 on 2006-11-18 21:29:25 +0000
 1.1.2.2 22-Oct-2006  yamt sync with head
 1.1.2.1 02-Oct-2006  yamt file auspi.c was added on branch yamt-splraiseipl on 2006-10-22 06:04:52 +0000
 1.3.76.1 23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.3.66.1 12-Jun-2011  rmind sync with head
 1.6.6.1 18-Feb-2012  mrg merge to -current.
 1.6.2.1 17-Apr-2012  yamt sync with head
 1.8.48.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.9.10.2 02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.9.10.1 23-Mar-2021  thorpej Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.
 1.10.8.1 04-Aug-2021  thorpej Adapt to CFARGS().
 1.10.2.1 18-May-2021  thorpej Pass the controller devhandle along to the "spi" instance.
 1.11.2.1 09-Aug-2021  thorpej Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.
 1.1 02-Oct-2006  gdamore branches: 1.1.2; 1.1.4; 1.1.8;
Add Alchemy PSC SPI bus protocol driver. Not activated on any boards yet,
that requires an evbmips commit.
 1.1.8.2 30-Dec-2006  yamt sync with head.
 1.1.8.1 02-Oct-2006  yamt file auspireg.h was added on branch yamt-lazymbuf on 2006-12-30 20:46:30 +0000
 1.1.4.2 18-Nov-2006  ad Sync with head.
 1.1.4.1 02-Oct-2006  ad file auspireg.h was added on branch newlock2 on 2006-11-18 21:29:25 +0000
 1.1.2.2 22-Oct-2006  yamt sync with head
 1.1.2.1 02-Oct-2006  yamt file auspireg.h was added on branch yamt-splraiseipl on 2006-10-22 06:04:52 +0000
 1.1 02-Oct-2006  gdamore branches: 1.1.2; 1.1.4; 1.1.8;
Add Alchemy PSC SPI bus protocol driver. Not activated on any boards yet,
that requires an evbmips commit.
 1.1.8.2 30-Dec-2006  yamt sync with head.
 1.1.8.1 02-Oct-2006  yamt file auspivar.h was added on branch yamt-lazymbuf on 2006-12-30 20:46:30 +0000
 1.1.4.2 18-Nov-2006  ad Sync with head.
 1.1.4.1 02-Oct-2006  ad file auspivar.h was added on branch newlock2 on 2006-11-18 21:29:25 +0000
 1.1.2.2 22-Oct-2006  yamt sync with head
 1.1.2.1 02-Oct-2006  yamt file auspivar.h was added on branch yamt-splraiseipl on 2006-10-22 06:04:52 +0000
 1.9 11-Jan-2019  thorpej Simplify regmap initialization, and fix an regmap issue that
affected TI OMAP (LCR register would get clobbered due to
using the wrong offset for the MDR1 register) reported by Lwazi Dube
(who also found the root cause).
 1.8 08-Dec-2018  thorpej Remove the COM_REGMAP option -- just use it all the time. While here,
garbage-collect the COM_FUNCMAP and COM_AU1X00 options, as there are
not used anywhere.
 1.7 08-Dec-2018  thorpej Clean up initialization of com_regs structure, in preparation for
some additional changers.
 1.6 01-Jul-2011  dyoung branches: 1.6.52; 1.6.54;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.5 14-Mar-2008  cube Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend). Use proper types and ansify where appropriate.
 1.4 17-Oct-2007  garbled branches: 1.4.12; 1.4.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.3 20-May-2007  he branches: 1.3.10;
Now that curcpu() is defined in terms of curlwp() for mips, we need to
include <sys/lwp.h> where curcpu() is used.
 1.2 13-Jul-2006  gdamore branches: 1.2.4; 1.2.8; 1.2.14; 1.2.20; 1.2.22; 1.2.28;
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.1 15-Jun-2006  gdamore branches: 1.1.2;
file com_aubus.c was initially added on branch gdamore-uart.
 1.1.2.4 17-Jun-2006  gdamore Undo the undo. Restore COM_INIT_REGS handling.
 1.1.2.3 17-Jun-2006  gdamore Undo the change to use COM_INIT_REGS, and instead use backwards compat
support. For com_arbus and com_aubus, we have to set a new flag, COM_HW_REGMAP
to indicate that we have special mapping considerations so that com_attach_subr
doesn't clobber our register map.
 1.1.2.2 16-Jun-2006  gdamore Cleanup for KNF changes in comvar. While here, remove a redundant call
to bus_space_map.
 1.1.2.1 15-Jun-2006  gdamore Adapt to new com framework, converting aucom.c clone to use common com.c.
 1.2.28.1 22-May-2007  matt Update to HEAD.
 1.2.22.1 11-Jul-2007  mjf Sync with head.
 1.2.20.1 27-May-2007  ad Sync with head.
 1.2.14.4 17-Mar-2008  yamt sync with head.
 1.2.14.3 03-Sep-2007  yamt sync with head.
 1.2.14.2 30-Dec-2006  yamt sync with head.
 1.2.14.1 13-Jul-2006  yamt file com_aubus.c was added on branch yamt-lazymbuf on 2006-12-30 20:46:30 +0000
 1.2.8.2 09-Sep-2006  rpaulo sync with head
 1.2.8.1 13-Jul-2006  rpaulo file com_aubus.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.2.4.2 11-Aug-2006  yamt sync with head
 1.2.4.1 13-Jul-2006  yamt file com_aubus.c was added on branch yamt-pdpolicy on 2006-08-11 15:42:14 +0000
 1.3.10.2 23-Mar-2008  matt sync with HEAD
 1.3.10.1 06-Nov-2007  matt sync with HEAD
 1.4.16.1 03-Apr-2008  mjf Sync with HEAD.
 1.4.12.1 24-Mar-2008  keiichi sync with head.
 1.6.54.1 10-Jun-2019  christos Sync with HEAD
 1.6.52.2 18-Jan-2019  pgoyette Synch with HEAD
 1.6.52.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.2 13-Jul-2006  gdamore branches: 1.2.4; 1.2.8; 1.2.14;
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.1 15-Jun-2006  gdamore branches: 1.1.2;
file com_aubus_reg.h was initially added on branch gdamore-uart.
 1.1.2.1 15-Jun-2006  gdamore Adapt to new com framework, converting aucom.c clone to use common com.c.
 1.2.14.2 30-Dec-2006  yamt sync with head.
 1.2.14.1 13-Jul-2006  yamt file com_aubus_reg.h was added on branch yamt-lazymbuf on 2006-12-30 20:46:30 +0000
 1.2.8.2 09-Sep-2006  rpaulo sync with head
 1.2.8.1 13-Jul-2006  rpaulo file com_aubus_reg.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.2.4.2 11-Aug-2006  yamt sync with head
 1.2.4.1 13-Jul-2006  yamt file com_aubus_reg.h was added on branch yamt-pdpolicy on 2006-08-11 15:42:14 +0000
 1.54 15-Oct-2025  thorpej Use ether_getaddr().
 1.53 29-Jun-2024  riastradh if_stats(9): Add ifp argument to if_stat..._ref.

This will enable us to pass the ifp through to a dtrace probe inside.

No functional change intended in this change, but this is an API
change visible to modules so it shouldn't be pulled up.

PR kern/58377
 1.52 29-Sep-2022  skrll Remove unnecessary include of <sys/malloc.h>.
 1.51 29-Sep-2022  skrll Trailing whitespace
 1.50 18-Sep-2022  thorpej Eliminate use of IFF_OACTIVE.
 1.49 29-Sep-2020  msaitoh s/occurence/occurrence/
 1.48 29-Jan-2020  thorpej Adopt <net/if_stats.h>.
 1.47 28-May-2019  msaitoh branches: 1.47.4;
Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
 1.46 23-May-2019  msaitoh No functional change:
- Simplify MII structure initialization and reference.
- u_int*_t -> uint*_t.
- KNF
 1.45 22-Jan-2019  msaitoh Change MII PHY read/write API from:

int (*mii_readreg_t)(device_t, int, int);
void (*mii_writereg_t)(device_t, int, int, int);
to:

int (*mii_readreg_t)(device_t, int, int, uint16_t *);
int (*mii_writereg_t)(device_t, int, int, uint16_t);

Now we can test if a read/write operation failed or not by the return value.

In 802.3 spec says that the PHY shall not respond to read/write transaction
to the unimplemented register(22.2.4.3). Detecting timeout can be used to
check whether a register is implemented or not (if the register conforms to
the spec). ukphy(4) can be used this for MII_MMDACR and MII_MMDAADR.

Note that I noticed that the following code do infinite loop in the
read/wirte function. If it accesses unimplemented PHY register, it will hang.
It should be fixed:

arm/at91/at91emac.c
arm/ep93xx/epe.c
arm/omap/omapl1x_emac.c
mips/ralink/ralink_eth.c
arch/powerpc/booke/dev/pq3etsec.c(read)
dev/cadence/if_cemac.c <- hkenken
dev/ic/lan9118.c


Tested with the following device:

axe+ukphy
axe+rgephy
axen+rgephy (tested by Andrius V)
wm+atphy
wm+ukphy
wm+igphy
wm+ihphy
wm+makphy
sk+makphy
sk+brgphy
sk+gentbi
msk+makphy
sip+icsphy
sip+ukphy
re+rgephy
bge+brgphy
bnx+brgphy
gsip+gphyter
rtk+rlphy
fxp+inphy (tested by Andrius V)
tlp+acphy
ex+exphy
epic+qsphy
vge+ciphy (tested by Andrius V)
vr+ukphy (tested by Andrius V)
vte+ukphy (tested by Andrius V)

Not tested (MAC):
arm:at91emac
arm:cemac
arm:epe
arm:geminigmac
arm:enet
arm:cpsw
arm:emac(omac)
arm:emac(sunxi)
arm:npe
evbppc:temac
macppc:bm
macppc:gm
mips:aumac
mips:ae
mips:cnmac
mips:reth
mips:sbmac
playstation2:smap
powerpc:tsec
powerpc:emac(ibm4xx)
sgimips:mec
sparc:be
sf
ne(ax88190, dl10019)
awge
ep
gem
hme
smsh
mtd
sm
age
alc
ale
bce
cas
et
jme
lii
nfe
pcn
ste
stge
tl
xi
aue
mue
smsc
udav
url

Not tested (PHY):
amhphy
bmtphy
dmphy
etphy
glxtphy
ikphy
iophy
lxtphy
nsphyter
pnaphy
rdcphy
sqphy
tlphy
tqphy
urlphy
 1.44 26-Jun-2018  msaitoh branches: 1.44.2;
Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.
 1.43 15-Dec-2016  ozaki-r branches: 1.43.14;
Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input

The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
- Where/When if_ipackets is counted up
- Note that some drivers still update packet statistics in their own
way (periodical update)
- Moved bpf_mtap run in softint
- This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net
 1.42 08-Dec-2016  ozaki-r Apply deferred if_start framework

if_schedule_deferred_start checks if the if_snd queue contains packets,
so drivers don't need to check it by themselves.
 1.41 10-Jun-2016  ozaki-r branches: 1.41.2;
Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.
 1.40 09-Feb-2016  ozaki-r Introduce softint-based if_input

This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!
 1.39 13-Apr-2015  riastradh MD rnd.h cleanups. Please let me know if I broke anything!
 1.38 10-Aug-2014  tls branches: 1.38.4;
Merge tls-earlyentropy branch into HEAD.
 1.37 22-Jul-2012  matt branches: 1.37.2; 1.37.12;
Fix mii_statchg to take a 'struct ifnet *' instead of device_t. This fixes
problem with a common MDIO bus used for multiple interfaces.
Some drivers converted to CFATTACL_DECL_NEW.
 1.36 07-Jun-2012  kiyohara Fix can't assign IPv6 address. Valiable error resets to 0, if error == ENETRESET in aumac_ioctl().
 1.35 19-May-2012  kiyohara Enable interrupt in aumac_init(). And disable in aumac_stop()/aumac_attach().
Interrupt storm happen if received packet and DMA not set.
 1.34 02-Feb-2012  tls Entropy-pool implementation move and cleanup.

1) Move core entropy-pool code and source/sink/sample management code
to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
avoid expensive operations on disabled entropy sources; make the
rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
system events, and skew between clocks, with a sample implementation
for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files). Tested with release
builds on amd64 and evbarm and live testing on amd64.
 1.33 03-Jan-2012  kiyohara Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
 1.32 19-Nov-2011  tls branches: 1.32.2;
First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>. This change includes
the following:

An initial cleanup and minor reorganization of the entropy pool
code in sys/dev/rnd.c and sys/dev/rndpool.c. Several bugs are
fixed. Some effort is made to accumulate entropy more quickly at
boot time.

A generic interface, "rndsink", is added, for stream generators to
request that they be re-keyed with good quality entropy from the pool
as soon as it is available.

The arc4random()/arc4randbytes() implementation in libkern is
adjusted to use the rndsink interface for rekeying, which helps
address the problem of low-quality keys at boot time.

An implementation of the FIPS 140-2 statistical tests for random
number generator quality is provided (libkern/rngtest.c). This
is based on Greg Rose's implementation from Qualcomm.

A new random stream generator, nist_ctr_drbg, is provided. It is
based on an implementation of the NIST SP800-90 CTR_DRBG by
Henric Jungheim. This generator users AES in a modified counter
mode to generate a backtracking-resistant random stream.

An abstraction layer, "cprng", is provided for in-kernel consumers
of randomness. The arc4random/arc4randbytes API is deprecated for
in-kernel use. It is replaced by "cprng_strong". The current
cprng_fast implementation wraps the existing arc4random
implementation. The current cprng_strong implementation wraps the
new CTR_DRBG implementation. Both interfaces are rekeyed from
the entropy pool automatically at intervals justifiable from best
current cryptographic practice.

In some quick tests, cprng_fast() is about the same speed as
the old arc4randbytes(), and cprng_strong() is about 20% faster
than rnd_extract_data(). Performance is expected to improve.

The AES code in src/crypto/rijndael is no longer an optional
kernel component, as it is required by cprng_strong, which is
not an optional kernel component.

The entropy pool output is subjected to the rngtest tests at
startup time; if it fails, the system will reboot. There is
approximately a 3/10000 chance of a false positive from these
tests. Entropy pool _input_ from hardware random numbers is
subjected to the rngtest tests at attach time, as well as the
FIPS continuous-output test, to detect bad or stuck hardware
RNGs; if any are detected, they are detached, but the system
continues to run.

A problem with rndctl(8) is fixed -- datastructures with
pointers in arrays are no longer passed to userspace (this
was not a security problem, but rather a major issue for
compat32). A new kernel will require a new rndctl.

The sysctl kern.arandom() and kern.urandom() nodes are hooked
up to the new generators, but the /dev/*random pseudodevices
are not, yet.

Manual pages for the new kernel interfaces are forthcoming.
 1.31 10-Jul-2011  matt branches: 1.31.2;
Fix machine/ includes
 1.30 01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.29 12-Nov-2010  uebayasi Pull in uvm/uvm.h for VM_PAGE_TO_PHYS().
 1.28 05-Apr-2010  joerg Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
 1.27 22-Jan-2010  martin branches: 1.27.2; 1.27.4;
Unify the name of the device property to hold a MAC address - there was
no clear majority for either "mac-addr" vs. "mac-address", but a quick
gallup poll among developers selected the latter.
 1.26 19-Jan-2010  pooka Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff. ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
 1.25 20-Jan-2008  dogcow branches: 1.25.10;
kill unused variable
 1.24 19-Jan-2008  dyoung Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange(). Check for
a non-ENXIO error return from mii_mediachg(). (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines. There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run. I have compiled macppc, sparc64, i386. I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.
 1.23 17-Oct-2007  garbled branches: 1.23.2; 1.23.8;
Merge the ppcoea-renovation branch to HEAD.

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

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

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.22 26-Aug-2007  dyoung branches: 1.22.2;
Constify.
 1.21 09-Jul-2007  ad branches: 1.21.4; 1.21.8;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.20 06-Mar-2007  simonb branches: 1.20.2; 1.20.4; 1.20.10;
Fix some caddr_t rototill fallout.
 1.19 04-Mar-2007  christos Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.18 20-Sep-2006  gdamore branches: 1.18.4;
Get rid of annoying and useless missed frame message, no other driver
echos this "non-error" message (not even tulip.c). Included is an
explanatory message stating that these counters should probably all be
converted to evcnt counters.
 1.17 05-May-2006  thorpej branches: 1.17.8; 1.17.10;
Remove the devprop API and switch everthing over to the new proplib. Add
a new device_properties() accessor for device_t that returns the device's
property dictionary.
 1.16 03-Mar-2006  simonb branches: 1.16.2; 1.16.4; 1.16.6;
Oops, missed the call to rnd_attach_source() in previous.
 1.15 03-Mar-2006  simonb Contribute to the random pool. No measurable difference to network
speeds when measured with nttcp.
 1.14 18-Feb-2006  thorpej - Don't expose dev_propdb directly -- provide devprop_*() wrappers instead.
- Rework the ARMADILLO / epe device properties interaction so that it actually
associates the MAC address property with the epe device instance.
 1.13 08-Dec-2005  yamt branches: 1.13.2; 1.13.4; 1.13.6;
use VM_PAGE_TO_PHYS macro.
 1.12 30-Oct-2004  thorpej branches: 1.12.12;
When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
 1.11 04-Jul-2003  thorpej branches: 1.11.4;
Nuke the "alchemy_info" stuff, and just use the dev_propdb to set
the mac-addr property for the Au1x00 on-chip MACs.
 1.10 27-Mar-2003  simonb branches: 1.10.2;
Use "rxintr" for the name of the receive interrupts evcnt instead
of "txintr". Much less confusing that way...
 1.9 17-Jan-2003  simonb Zero out the TX buffer when padding packet to ETHER_MIN_LEN-ETHER_CRC_LEN.
 1.8 16-Jan-2003  simonb Tidy up event counter increments a little.
 1.7 16-Jan-2003  simonb Removed unused register map; this info is now passed in with the attach
args.
 1.6 02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.5 01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.4 27-Sep-2002  thorpej Declare all cfattach structures const.
 1.3 27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.2 29-Jul-2002  simonb branches: 1.2.2; 1.2.4; 1.2.6;
Remove some debug code accidently left in.
 1.1 29-Jul-2002  simonb Add support for the the Alchemy Semiconductor Au1x00 series on-chip
devices. Currently the serial ports and ethernet MAC have working
drivers, and this has only been physically tested on the Au1000 CPU,
but these devices should work on the Au1100 and Au1500 CPUs too.
 1.2.6.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.2.6.1 29-Jul-2002  jdolecek file if_aumac.c was added on branch kqueue on 2002-09-06 08:37:24 +0000
 1.2.4.2 31-Aug-2002  gehenna catch up with -current.
 1.2.4.1 29-Jul-2002  gehenna file if_aumac.c was added on branch gehenna-devsw on 2002-08-31 13:45:15 +0000
 1.2.2.3 17-Jan-2003  thorpej Sync with HEAD.
 1.2.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.2.2.1 29-Jul-2002  nathanw file if_aumac.c was added on branch nathanw_sa on 2002-10-18 02:38:43 +0000
 1.10.2.5 11-Dec-2005  christos Sync with head.
 1.10.2.4 02-Nov-2004  skrll Sync with HEAD.
 1.10.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.10.2.1 03-Aug-2004  skrll Sync with HEAD
 1.11.4.1 24-Jan-2005  he Pull up revision 1.12 (requested by thorpej in ticket #939):
When adding or deleting multicast addresses, only change
the address filter if the interface is marked RUNNING.
Fixes PR#27678.
 1.12.12.4 21-Jan-2008  yamt sync with head
 1.12.12.3 03-Sep-2007  yamt sync with head.
 1.12.12.2 30-Dec-2006  yamt sync with head.
 1.12.12.1 21-Jun-2006  yamt sync with head.
 1.13.6.2 01-Jun-2006  kardel Sync with head.
 1.13.6.1 22-Apr-2006  simonb Sync with head.
 1.13.4.1 09-Sep-2006  rpaulo sync with head
 1.13.2.1 18-Feb-2006  yamt sync with head.
 1.16.6.1 24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.16.4.1 11-May-2006  elad sync with head
 1.16.2.1 24-May-2006  yamt sync with head.
 1.17.10.1 22-Oct-2006  yamt sync with head
 1.17.8.1 18-Nov-2006  ad Sync with head.
 1.18.4.1 12-Mar-2007  rmind Sync with HEAD.
 1.20.10.1 03-Oct-2007  garbled Sync with HEAD
 1.20.4.1 11-Jul-2007  mjf Sync with head.
 1.20.2.2 09-Oct-2007  ad Sync with head.
 1.20.2.1 15-Jul-2007  ad Sync with head.
 1.21.8.1 03-Sep-2007  jmcneill Sync with HEAD.
 1.21.4.1 03-Sep-2007  skrll Sync with HEAD.
 1.22.2.2 23-Mar-2008  matt sync with HEAD
 1.22.2.1 06-Nov-2007  matt sync with HEAD
 1.23.8.1 20-Jan-2008  bouyer Sync with HEAD
 1.23.2.1 18-Feb-2008  mjf Sync with HEAD.
 1.25.10.2 11-Aug-2010  yamt sync with head.
 1.25.10.1 11-Mar-2010  yamt sync with head
 1.27.4.2 05-Mar-2011  rmind sync with head
 1.27.4.1 30-May-2010  rmind sync with head
 1.27.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.31.2.3 30-Oct-2012  yamt sync with head
 1.31.2.2 23-May-2012  yamt sync with head.
 1.31.2.1 17-Apr-2012  yamt sync with head
 1.32.2.2 02-Jun-2012  mrg sync to latest -current.
 1.32.2.1 18-Feb-2012  mrg merge to -current.
 1.37.12.1 07-Apr-2014  tls Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
that had stubbed out code, other minor cleanups.
 1.37.2.2 03-Dec-2017  jdolecek update from HEAD
 1.37.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.38.4.4 05-Feb-2017  skrll Sync with HEAD
 1.38.4.3 09-Jul-2016  skrll Sync with HEAD
 1.38.4.2 19-Mar-2016  skrll Sync with HEAD
 1.38.4.1 06-Jun-2015  skrll Sync with HEAD
 1.41.2.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.43.14.2 26-Jan-2019  pgoyette Sync with HEAD
 1.43.14.1 28-Jul-2018  pgoyette Sync with HEAD
 1.44.2.2 08-Apr-2020  martin Merge changes from current as of 20200406
 1.44.2.1 10-Jun-2019  christos Sync with HEAD
 1.47.4.1 29-Feb-2020  ad Sync with head.
 1.1 29-Jul-2002  simonb branches: 1.1.2; 1.1.4; 1.1.6;
Add support for the the Alchemy Semiconductor Au1x00 series on-chip
devices. Currently the serial ports and ethernet MAC have working
drivers, and this has only been physically tested on the Au1000 CPU,
but these devices should work on the Au1100 and Au1500 CPUs too.
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 29-Jul-2002  jdolecek file if_aumacreg.h was added on branch kqueue on 2002-09-06 08:37:24 +0000
 1.1.4.2 31-Aug-2002  gehenna catch up with -current.
 1.1.4.1 29-Jul-2002  gehenna file if_aumacreg.h was added on branch gehenna-devsw on 2002-08-31 13:45:15 +0000
 1.1.2.2 29-Jul-2002  simonb Add support for the the Alchemy Semiconductor Au1x00 series on-chip
devices. Currently the serial ports and ethernet MAC have working
drivers, and this has only been physically tested on the Au1000 CPU,
but these devices should work on the Au1100 and Au1500 CPUs too.
 1.1.2.1 29-Jul-2002  simonb file if_aumacreg.h was added on branch nathanw_sa on 2002-07-29 15:39:15 +0000
 1.7 18-Oct-2003  simonb Remove unused ohci stub.
 1.6 15-Jul-2003  lukem __KERNEL_RCSID()
 1.5 02-Oct-2002  thorpej branches: 1.5.6;
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 27-Sep-2002  thorpej Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.
 1.1 29-Jul-2002  simonb branches: 1.1.2; 1.1.4; 1.1.6;
Add support for the the Alchemy Semiconductor Au1x00 series on-chip
devices. Currently the serial ports and ethernet MAC have working
drivers, and this has only been physically tested on the Au1000 CPU,
but these devices should work on the Au1100 and Au1500 CPUs too.
 1.1.6.3 10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.2 06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1 29-Jul-2002  jdolecek file ohci.c was added on branch kqueue on 2002-09-06 08:37:24 +0000
 1.1.4.2 31-Aug-2002  gehenna catch up with -current.
 1.1.4.1 29-Jul-2002  gehenna file ohci.c was added on branch gehenna-devsw on 2002-08-31 13:45:15 +0000
 1.1.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.1 29-Jul-2002  nathanw file ohci.c was added on branch nathanw_sa on 2002-10-18 02:38:43 +0000
 1.5.6.1 03-Aug-2004  skrll Sync with HEAD
 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 23-Apr-2016  skrll branches: 1.16.32;
Merge nick-nhusb

- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
- kern/48308
- uhub status notification improvements
- umass(4) probe fix (applied to HEAD already)
- ohci(4) short transfer fix
 1.15 01-Jul-2011  dyoung branches: 1.15.12; 1.15.28; 1.15.30; 1.15.34;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.14 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.13 03-Apr-2008  drochner branches: 1.13.2; 1.13.4;
minor fixes for device/softc split, approved by dogcow
(not tested on real hardware yet)
 1.12 31-Mar-2008  dogcow ...and fix my fix to do the proper device_t split.
 1.11 31-Mar-2008  dogcow fix device_t split fallout.
 1.10 09-Feb-2006  gdamore branches: 1.10.68;
Split out peripheral register defines from aureg.h. As discussed with
simonb@.
 1.9 08-Feb-2006  gdamore Remove pointless (unused) dependency upon pb1000 evbmips headers.
 1.8 20-Dec-2005  tron branches: 1.8.2; 1.8.4; 1.8.6;
Add basic support for Alchemy Au1550 processor (CPU and devices).
Patch contributed by Garrett D'Amore in PR port-evbmips/32030.
 1.7 19-Dec-2005  tron Make OHCI work on Au1500 systems running in big-endian mode.
Patch contributed by Garrett D'Amore in PR port-evbmips/31912.
 1.6 11-Dec-2005  christos merge ktrace-lwp.
 1.5 23-Oct-2003  simonb branches: 1.5.16;
Remove "struct aubus_ohci_softc". As well as ohci_softc_t, it only had
a copy of the interrupt cookie which isn't used outside the attach. We
has also bogusly only told the autoconfiguration machinery that our softc
was as big as a ohci_softc_t, not a struct aubus_ohci_softc.
Also, disestablish the interrupt if OHCI initialisation fails.
 1.4 18-Oct-2003  simonb Tell the Alchemy Au1x00 on-chip ohci that we're in big-endian mode if
necessary.
 1.3 15-Jul-2003  lukem __KERNEL_RCSID()
 1.2 03-Apr-2003  hpeyerl branches: 1.2.2;
Read USBH_ENABLE twice in succession according to Errata 7 for au1500.
 1.1 01-Apr-2003  hpeyerl OHCI front-end driver for Alchemy cpu's. We now have USB Host support.
Tested on PB1500 and DB1500 boards.
 1.2.2.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.2.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.2.1 03-Aug-2004  skrll Sync with HEAD
 1.5.16.1 21-Jun-2006  yamt sync with head.
 1.8.6.1 22-Apr-2006  simonb Sync with head.
 1.8.4.1 09-Sep-2006  rpaulo sync with head
 1.8.2.1 18-Feb-2006  yamt sync with head.
 1.10.68.2 02-Jun-2008  mjf Sync with HEAD.
 1.10.68.1 03-Apr-2008  mjf Sync with HEAD.
 1.13.4.1 16-May-2008  yamt sync with head.
 1.13.2.1 18-May-2008  yamt sync with head.
 1.15.34.1 06-Sep-2016  skrll First pass at netbsd-7 updated with USB code from HEAD
 1.15.30.4 05-Dec-2014  skrll Use int for return type for [eou]chi_init and motg_init.
 1.15.30.3 05-Dec-2014  skrll KNF. Remove ( ) from return statements.
 1.15.30.2 03-Dec-2014  skrll The grand renaming of structure members.

No functional change.
 1.15.30.1 03-Dec-2014  skrll Trailing whitespace.
 1.15.28.1 05-Apr-2017  snj Pull up following revision(s) (requested by skrll in ticket #1395):
share/man/man4/axe.4: netbsd-7-nhusb
share/man/man4/axen.4: netbsd-7-nhusb
share/man/man4/cdce.4: netbsd-7-nhusb
share/man/man4/uaudio.4: netbsd-7-nhusb
share/man/man4/ucom.4: netbsd-7-nhusb
share/man/man4/uep.4: netbsd-7-nhusb
share/man/man4/urtw.4: netbsd-7-nhusb
share/man/man4/usb.4: netbsd-7-nhusb
share/man/man4/uyap.4: netbsd-7-nhusb
share/man/man4/xhci.4: netbsd-7-nhusb
share/man/man9/usbdi.9: netbsd-7-nhusb
sys/arch/amd64/conf/ALL: netbsd-7-nhusb
sys/arch/amd64/conf/GENERIC: netbsd-7-nhusb
sys/arch/amiga/dev/slhci_zbus.c: netbsd-7-nhusb
sys/arch/arm/allwinner/awin_otg.c: netbsd-7-nhusb
sys/arch/arm/allwinner/awin_usb.c: netbsd-7-nhusb
sys/arch/arm/amlogic/amlogic_dwctwo.c: netbsd-7-nhusb
sys/arch/arm/at91/at91ohci.c: netbsd-7-nhusb
sys/arch/arm/broadcom/bcm2835_dwctwo.c: netbsd-7-nhusb
sys/arch/arm/broadcom/bcm53xx_usb.c: netbsd-7-nhusb
sys/arch/arm/ep93xx/epohci.c: netbsd-7-nhusb
sys/arch/arm/gemini/obio_ehci.c: netbsd-7-nhusb
sys/arch/arm/imx/files.imx23: netbsd-7-nhusb
sys/arch/arm/imx/imxusb.c: netbsd-7-nhusb
sys/arch/arm/imx/imxusbreg.h: netbsd-7-nhusb
sys/arch/arm/omap/obio_ohci.c: netbsd-7-nhusb
sys/arch/arm/omap/omap3_ehci.c: netbsd-7-nhusb
sys/arch/arm/omap/omapl1x_ohci.c: netbsd-7-nhusb
sys/arch/arm/omap/tiotg.c: netbsd-7-nhusb
sys/arch/arm/s3c2xx0/ohci_s3c24x0.c: netbsd-7-nhusb
sys/arch/arm/samsung/exynos_usb.c: netbsd-7-nhusb
sys/arch/arm/xscale/pxa2x0_ohci.c: netbsd-7-nhusb
sys/arch/arm/zynq/zynq_usb.c: netbsd-7-nhusb
sys/arch/hpcarm/dev/nbp_slhci.c: netbsd-7-nhusb
sys/arch/hpcmips/dev/plumohci.c: netbsd-7-nhusb
sys/arch/i386/conf/ALL: netbsd-7-nhusb
sys/arch/i386/conf/GENERIC: netbsd-7-nhusb
sys/arch/i386/pci/gcscehci.c: netbsd-7-nhusb
sys/arch/luna68k/conf/GENERIC: netbsd-7-nhusb
sys/arch/mips/adm5120/dev/ahci.c: netbsd-7-nhusb
sys/arch/mips/adm5120/dev/ahcivar.h: netbsd-7-nhusb
sys/arch/mips/alchemy/dev/ohci_aubus.c: netbsd-7-nhusb
sys/arch/mips/atheros/dev/ehci_arbus.c: netbsd-7-nhusb
sys/arch/mips/atheros/dev/ohci_arbus.c: netbsd-7-nhusb
sys/arch/mips/conf/files.adm5120: netbsd-7-nhusb
sys/arch/mips/ralink/ralink_ehci.c: netbsd-7-nhusb
sys/arch/mips/ralink/ralink_ohci.c: netbsd-7-nhusb
sys/arch/mips/rmi/rmixl_ehci.c: netbsd-7-nhusb
sys/arch/mips/rmi/rmixl_ohci.c: netbsd-7-nhusb
sys/arch/playstation2/dev/ohci_sbus.c: netbsd-7-nhusb
sys/arch/powerpc/booke/dev/pq3ehci.c: netbsd-7-nhusb
sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c: netbsd-7-nhusb
sys/arch/x68k/dev/slhci_intio.c: netbsd-7-nhusb
sys/conf/files: netbsd-7-nhusb
sys/dev/cardbus/ehci_cardbus.c: netbsd-7-nhusb
sys/dev/cardbus/ohci_cardbus.c: netbsd-7-nhusb
sys/dev/cardbus/uhci_cardbus.c: netbsd-7-nhusb
sys/dev/ic/sl811hs.c: netbsd-7-nhusb
sys/dev/ic/sl811hsvar.h: netbsd-7-nhusb
sys/dev/isa/slhci_isa.c: netbsd-7-nhusb
sys/dev/marvell/ehci_mv.c: netbsd-7-nhusb
sys/dev/pci/ehci_pci.c: netbsd-7-nhusb
sys/dev/pci/ohci_pci.c: netbsd-7-nhusb
sys/dev/pci/uhci_pci.c: netbsd-7-nhusb
sys/dev/pci/xhci_pci.c: netbsd-7-nhusb
sys/dev/pcmcia/slhci_pcmcia.c: netbsd-7-nhusb
sys/dev/usb/Makefile.usbdevs: netbsd-7-nhusb
sys/dev/usb/TODO: netbsd-7-nhusb
sys/dev/usb/TODO.usbmp: netbsd-7-nhusb
sys/dev/usb/aubtfwl.c: netbsd-7-nhusb
sys/dev/usb/auvitek.c: netbsd-7-nhusb
sys/dev/usb/auvitek_audio.c: netbsd-7-nhusb
sys/dev/usb/auvitek_dtv.c: netbsd-7-nhusb
sys/dev/usb/auvitek_i2c.c: netbsd-7-nhusb
sys/dev/usb/auvitek_video.c: netbsd-7-nhusb
sys/dev/usb/auvitekvar.h: netbsd-7-nhusb
sys/dev/usb/ehci.c: netbsd-7-nhusb
sys/dev/usb/ehcireg.h: netbsd-7-nhusb
sys/dev/usb/ehcivar.h: netbsd-7-nhusb
sys/dev/usb/emdtv.c: netbsd-7-nhusb
sys/dev/usb/emdtv_dtv.c: netbsd-7-nhusb
sys/dev/usb/emdtv_ir.c: netbsd-7-nhusb
sys/dev/usb/emdtvvar.h: netbsd-7-nhusb
sys/dev/usb/ezload.c: netbsd-7-nhusb
sys/dev/usb/ezload.h: netbsd-7-nhusb
sys/dev/usb/files.usb: netbsd-7-nhusb
sys/dev/usb/hid.c: netbsd-7-nhusb
sys/dev/usb/hid.h: netbsd-7-nhusb
sys/dev/usb/if_athn_usb.c: netbsd-7-nhusb
sys/dev/usb/if_athn_usb.h: netbsd-7-nhusb
sys/dev/usb/if_atu.c: netbsd-7-nhusb
sys/dev/usb/if_atureg.h: netbsd-7-nhusb
sys/dev/usb/if_aue.c: netbsd-7-nhusb
sys/dev/usb/if_auereg.h: netbsd-7-nhusb
sys/dev/usb/if_axe.c: netbsd-7-nhusb
sys/dev/usb/if_axen.c: netbsd-7-nhusb
sys/dev/usb/if_axenreg.h: netbsd-7-nhusb
sys/dev/usb/if_axereg.h: netbsd-7-nhusb
sys/dev/usb/if_cdce.c: netbsd-7-nhusb
sys/dev/usb/if_cdcereg.h: netbsd-7-nhusb
sys/dev/usb/if_cue.c: netbsd-7-nhusb
sys/dev/usb/if_cuereg.h: netbsd-7-nhusb
sys/dev/usb/if_kue.c: netbsd-7-nhusb
sys/dev/usb/if_kuereg.h: netbsd-7-nhusb
sys/dev/usb/if_otus.c: netbsd-7-nhusb
sys/dev/usb/if_otusvar.h: netbsd-7-nhusb
sys/dev/usb/if_rum.c: netbsd-7-nhusb
sys/dev/usb/if_rumreg.h: netbsd-7-nhusb
sys/dev/usb/if_rumvar.h: netbsd-7-nhusb
sys/dev/usb/if_run.c: netbsd-7-nhusb
sys/dev/usb/if_runvar.h: netbsd-7-nhusb
sys/dev/usb/if_smsc.c: netbsd-7-nhusb
sys/dev/usb/if_smscreg.h: netbsd-7-nhusb
sys/dev/usb/if_smscvar.h: netbsd-7-nhusb
sys/dev/usb/if_udav.c: netbsd-7-nhusb
sys/dev/usb/if_udavreg.h: netbsd-7-nhusb
sys/dev/usb/if_upgt.c: netbsd-7-nhusb
sys/dev/usb/if_upgtvar.h: netbsd-7-nhusb
sys/dev/usb/if_upl.c: netbsd-7-nhusb
sys/dev/usb/if_ural.c: netbsd-7-nhusb
sys/dev/usb/if_uralreg.h: netbsd-7-nhusb
sys/dev/usb/if_uralvar.h: netbsd-7-nhusb
sys/dev/usb/if_url.c: netbsd-7-nhusb
sys/dev/usb/if_urlreg.h: netbsd-7-nhusb
sys/dev/usb/if_urndis.c: netbsd-7-nhusb
sys/dev/usb/if_urndisreg.h: netbsd-7-nhusb
sys/dev/usb/if_urtw.c: netbsd-7-nhusb
sys/dev/usb/if_urtwn.c: netbsd-7-nhusb
sys/dev/usb/if_urtwn_data.h: netbsd-7-nhusb
sys/dev/usb/if_urtwnreg.h: netbsd-7-nhusb
sys/dev/usb/if_urtwnvar.h: netbsd-7-nhusb
sys/dev/usb/if_urtwreg.h: netbsd-7-nhusb
sys/dev/usb/if_zyd.c: netbsd-7-nhusb
sys/dev/usb/if_zydreg.h: netbsd-7-nhusb
sys/dev/usb/irmce.c: netbsd-7-nhusb
sys/dev/usb/moscom.c: netbsd-7-nhusb
sys/dev/usb/motg.c: netbsd-7-nhusb
sys/dev/usb/motgvar.h: netbsd-7-nhusb
sys/dev/usb/ohci.c: netbsd-7-nhusb
sys/dev/usb/ohcireg.h: netbsd-7-nhusb
sys/dev/usb/ohcivar.h: netbsd-7-nhusb
sys/dev/usb/pseye.c: netbsd-7-nhusb
sys/dev/usb/slurm.c: netbsd-7-nhusb
sys/dev/usb/stuirda.c: netbsd-7-nhusb
sys/dev/usb/u3g.c: netbsd-7-nhusb
sys/dev/usb/uark.c: netbsd-7-nhusb
sys/dev/usb/uatp.c: netbsd-7-nhusb
sys/dev/usb/uaudio.c: netbsd-7-nhusb
sys/dev/usb/uberry.c: netbsd-7-nhusb
sys/dev/usb/ubsa.c: netbsd-7-nhusb
sys/dev/usb/ubsa_common.c: netbsd-7-nhusb
sys/dev/usb/ubsavar.h: netbsd-7-nhusb
sys/dev/usb/ubt.c: netbsd-7-nhusb
sys/dev/usb/uchcom.c: netbsd-7-nhusb
sys/dev/usb/ucom.c: netbsd-7-nhusb
sys/dev/usb/ucomvar.h: netbsd-7-nhusb
sys/dev/usb/ucycom.c: netbsd-7-nhusb
sys/dev/usb/udl.c: netbsd-7-nhusb
sys/dev/usb/udl.h: netbsd-7-nhusb
sys/dev/usb/udsbr.c: netbsd-7-nhusb
sys/dev/usb/udsir.c: netbsd-7-nhusb
sys/dev/usb/uep.c: netbsd-7-nhusb
sys/dev/usb/uftdi.c: netbsd-7-nhusb
sys/dev/usb/uftdireg.h: netbsd-7-nhusb
sys/dev/usb/ugen.c: netbsd-7-nhusb
sys/dev/usb/ugensa.c: netbsd-7-nhusb
sys/dev/usb/uhci.c: netbsd-7-nhusb
sys/dev/usb/uhcireg.h: netbsd-7-nhusb
sys/dev/usb/uhcivar.h: netbsd-7-nhusb
sys/dev/usb/uhid.c: netbsd-7-nhusb
sys/dev/usb/uhidev.c: netbsd-7-nhusb
sys/dev/usb/uhidev.h: netbsd-7-nhusb
sys/dev/usb/uhmodem.c: netbsd-7-nhusb
sys/dev/usb/uhso.c: netbsd-7-nhusb
sys/dev/usb/uhub.c: netbsd-7-nhusb
sys/dev/usb/uipad.c: netbsd-7-nhusb
sys/dev/usb/uipaq.c: netbsd-7-nhusb
sys/dev/usb/uirda.c: netbsd-7-nhusb
sys/dev/usb/uirdavar.h: netbsd-7-nhusb
sys/dev/usb/ukbd.c: netbsd-7-nhusb
sys/dev/usb/ukbdmap.c: netbsd-7-nhusb
sys/dev/usb/ukyopon.c: netbsd-7-nhusb
sys/dev/usb/ukyopon.h: netbsd-7-nhusb
sys/dev/usb/ulpt.c: netbsd-7-nhusb
sys/dev/usb/umass.c: netbsd-7-nhusb
sys/dev/usb/umass_isdata.c: netbsd-7-nhusb
sys/dev/usb/umass_isdata.h: netbsd-7-nhusb
sys/dev/usb/umass_quirks.c: netbsd-7-nhusb
sys/dev/usb/umass_quirks.h: netbsd-7-nhusb
sys/dev/usb/umass_scsipi.c: netbsd-7-nhusb
sys/dev/usb/umass_scsipi.h: netbsd-7-nhusb
sys/dev/usb/umassvar.h: netbsd-7-nhusb
sys/dev/usb/umcs.c: netbsd-7-nhusb
sys/dev/usb/umct.c: netbsd-7-nhusb
sys/dev/usb/umidi.c: netbsd-7-nhusb
sys/dev/usb/umidi_quirks.c: netbsd-7-nhusb
sys/dev/usb/umidi_quirks.h: netbsd-7-nhusb
sys/dev/usb/umodem.c: netbsd-7-nhusb
sys/dev/usb/umodem_common.c: netbsd-7-nhusb
sys/dev/usb/umodemvar.h: netbsd-7-nhusb
sys/dev/usb/ums.c: netbsd-7-nhusb
sys/dev/usb/uplcom.c: netbsd-7-nhusb
sys/dev/usb/urio.c: netbsd-7-nhusb
sys/dev/usb/urio.h: netbsd-7-nhusb
sys/dev/usb/usb.c: netbsd-7-nhusb
sys/dev/usb/usb.h: netbsd-7-nhusb
sys/dev/usb/usb_mem.c: netbsd-7-nhusb
sys/dev/usb/usb_mem.h: netbsd-7-nhusb
sys/dev/usb/usb_quirks.c: netbsd-7-nhusb
sys/dev/usb/usb_quirks.h: netbsd-7-nhusb
sys/dev/usb/usb_subr.c: netbsd-7-nhusb
sys/dev/usb/usbdevices.config: netbsd-7-nhusb
sys/dev/usb/usbdevs: netbsd-7-nhusb
sys/dev/usb/usbdevs.h: netbsd-7-nhusb
sys/dev/usb/usbdevs_data.h: netbsd-7-nhusb
sys/dev/usb/usbdi.c: netbsd-7-nhusb
sys/dev/usb/usbdi.h: netbsd-7-nhusb
sys/dev/usb/usbdi_util.c: netbsd-7-nhusb
sys/dev/usb/usbdi_util.h: netbsd-7-nhusb
sys/dev/usb/usbdivar.h: netbsd-7-nhusb
sys/dev/usb/usbhid.h: netbsd-7-nhusb
sys/dev/usb/usbhist.h: netbsd-7-nhusb
sys/dev/usb/usbroothub.c: netbsd-7-nhusb
sys/dev/usb/usbroothub.h: netbsd-7-nhusb
sys/dev/usb/usbroothub_subr.c: delete
sys/dev/usb/usbroothub_subr.h: delete
sys/dev/usb/uscanner.c: netbsd-7-nhusb
sys/dev/usb/uslsa.c: netbsd-7-nhusb
sys/dev/usb/usscanner.c: netbsd-7-nhusb
sys/dev/usb/ustir.c: netbsd-7-nhusb
sys/dev/usb/uthum.c: netbsd-7-nhusb
sys/dev/usb/utoppy.c: netbsd-7-nhusb
sys/dev/usb/uts.c: netbsd-7-nhusb
sys/dev/usb/uvideo.c: netbsd-7-nhusb
sys/dev/usb/uvisor.c: netbsd-7-nhusb
sys/dev/usb/uvscom.c: netbsd-7-nhusb
sys/dev/usb/uyap.c: netbsd-7-nhusb
sys/dev/usb/uyap_firmware.h: netbsd-7-nhusb
sys/dev/usb/uyurex.c: netbsd-7-nhusb
sys/dev/usb/x1input_rdesc.h: netbsd-7-nhusb
sys/dev/usb/xhci.c: netbsd-7-nhusb
sys/dev/usb/xhcireg.h: netbsd-7-nhusb
sys/dev/usb/xhcivar.h: netbsd-7-nhusb
sys/dev/usb/xinput_rdesc.h: netbsd-7-nhusb
sys/external/bsd/common/conf/files.linux: netbsd-7-nhusb
sys/external/bsd/common/include/linux/err.h: netbsd-7-nhusb
sys/external/bsd/common/include/linux/kernel.h: netbsd-7-nhusb
sys/external/bsd/common/include/linux/workqueue.h: netbsd-7-nhusb
sys/external/bsd/common/linux/linux_work.c: netbsd-7-nhusb
sys/external/bsd/drm2/dist/drm/radeon/atombios_encoders.c: netbsd-7-nhusb
sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_encoders.c: netbsd-7-nhusb
sys/external/bsd/drm2/drm/files.drmkms: netbsd-7-nhusb
sys/external/bsd/drm2/i915drm/files.i915drmkms: netbsd-7-nhusb
sys/external/bsd/drm2/include/linux/err.h: delete
sys/external/bsd/drm2/include/linux/workqueue.h: delete
sys/external/bsd/drm2/linux/files.drmkms_linux: netbsd-7-nhusb
sys/external/bsd/drm2/linux/linux_work.c: delete
sys/external/bsd/dwc2/dwc2.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dwc2.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dwc2var.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dwctwo2netbsd: netbsd-7-nhusb
sys/external/bsd/dwc2/conf/files.dwc2: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_core.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_core.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_coreintr.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcd.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcd.h: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdddma.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdintr.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c: netbsd-7-nhusb
sys/external/bsd/dwc2/dist/dwc2_hw.h: netbsd-7-nhusb
sys/modules/drmkms_linux/Makefile: netbsd-7-nhusb
sys/modules/i915drmkms/Makefile: netbsd-7-nhusb
sys/rump/dev/lib/libugenhc/ugenhc.c: netbsd-7-nhusb
sys/rump/dev/lib/libusb/Makefile: netbsd-7-nhusb
sys/rump/dev/lib/libusb/USB.ioconf: netbsd-7-nhusb
sys/rump/dev/lib/libusb/usb_at_ugenhc.c: delete
sys/rump/dev/lib/libusb/opt/opt_usb.h: delete
sys/rump/dev/lib/libusb/opt/opt_usbverbose.h: delete
sys/sys/mbuf.h: netbsd-7-nhusb
usr.sbin/usbdevs/usbdevs.8: netbsd-7-nhusb
usr.sbin/usbdevs/usbdevs.c: netbsd-7-nhusb
Merge netbsd-7-nhusb:
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
- kern/48308
- uhub status notification improvements
- umass(4) probe fix (applied to HEAD already)
- ohci(4) short transfer fix
- Change the SOFTINT level from NET to SERIAL for the USB softint handler.
This gives the callback a chance of running when another softint handler
at SOFTINT_NET has blocked holding a lock, e.g. softnet_lock and most of
the network stack.
- kern/49065 - ifconfig tun0 ... sequence locks up system / lockup:
softnet_lock held across usb xfr
- kern/50491 - unkillable wait in usbd_transfer while using usmsc0
on raspberry pi 2
- kern/51395 - USB Ethernet makes xhci hang
- Various improvements to slhci(4)
- Various improvements to dwc2(4)
 1.15.12.1 03-Dec-2017  jdolecek update from HEAD
 1.16.32.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.1 09-Feb-2006  gdamore branches: 1.1.2; 1.1.10; 1.1.16; 1.1.22;
Split out peripheral register defines from aureg.h. As discussed with
simonb@.
 1.1.22.2 09-Sep-2006  rpaulo sync with head
 1.1.22.1 09-Feb-2006  rpaulo file ohcireg.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.1.16.2 21-Jun-2006  yamt sync with head.
 1.1.16.1 09-Feb-2006  yamt file ohcireg.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 09-Feb-2006  simonb file ohcireg.h was added on branch simonb-timecounters on 2006-04-22 11:37:42 +0000
 1.1.2.2 18-Feb-2006  yamt sync with head.
 1.1.2.1 09-Feb-2006  yamt file ohcireg.h was added on branch yamt-uio_vmspace on 2006-02-18 15:38:41 +0000
 1.2 07-Mar-2006  shige Change name of SMBus include: smbusreg.h => ausmbus_pscreg.h.
 1.1 06-Mar-2006  shige Add register definitions for AuXXXX SMBus protocol.
 1.1 09-Feb-2006  gdamore branches: 1.1.2; 1.1.10; 1.1.16; 1.1.22;
Split out peripheral register defines from aureg.h. As discussed with
simonb@.
 1.1.22.2 09-Sep-2006  rpaulo sync with head
 1.1.22.1 09-Feb-2006  rpaulo file usbdreg.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:15 +0000
 1.1.16.2 21-Jun-2006  yamt sync with head.
 1.1.16.1 09-Feb-2006  yamt file usbdreg.h was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 09-Feb-2006  simonb file usbdreg.h was added on branch simonb-timecounters on 2006-04-22 11:37:42 +0000
 1.1.2.2 18-Feb-2006  yamt sync with head.
 1.1.2.1 09-Feb-2006  yamt file usbdreg.h was added on branch yamt-uio_vmspace on 2006-02-18 15:38:41 +0000

RSS XML Feed