Home | History | Annotate | Download | only in iomd
History log of /src/sys/arch/arm/iomd/iomd.c
RevisionDateAuthorComments
 1.24  27-Sep-2022  skrll Remove unnecessary sys/malloc.h include
 1.23  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.22  24-Apr-2021  thorpej branches: 1.22.8;
Merge thorpej-cfargs branch:

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

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

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

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

...and a sentinel value CFARG_EOL.

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

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance. This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).
 1.21  10-Oct-2012  skrll branches: 1.21.52;
Use device_xname.

From chuq.
 1.20  14-May-2012  skrll branches: 1.20.2;
Whitespace in previous.
 1.19  14-May-2012  skrll device_t/softc split
struct device * -> device_t
struct cfdata * -> cfdata_t
Use aprint*
 1.18  10-May-2012  skrll u_int*_t -> uint*_t
 1.17  01-Jul-2011  dyoung branches: 1.17.2; 1.17.6;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.16  30-Jun-2011  wiz dependant -> dependent
 1.15  05-Aug-2006  bjh21 ANSIfy, un-__P, and generally KNF.
 1.14  11-Dec-2005  christos branches: 1.14.4; 1.14.8;
merge ktrace-lwp.
 1.13  08-Feb-2004  bjh21 branches: 1.13.16;
Attach rpckbd(4) and kbd(4) in the same place, so that only one of them can
attach at a time, and so that either of them can prevent the forthcoming
iomdkbd(4) attaching to the keyboard slot.
 1.12  06-Dec-2003  bjh21 Undo last change: The "iomd" driver has its own bus_space tag, so it didn't
rely on the brokenness of the mainbus one.
 1.11  06-Dec-2003  bjh21 Fix the ARM mainbus version of bus_space_subregion() to correctly shift the
base offset before using it. This makes it work the same as every other
implementation, and makes wdc at pioc on acorn32 work again. Fix the only
caller I found which depended on the old behaviour.
 1.10  15-Jul-2003  lukem __KERNEL_RCSID()
 1.9  13-Oct-2002  bjh21 branches: 1.9.8;
Rework (#ifdef'ed out) code to print I/O timings so as to give more
information (I was curious).
 1.8  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL
 1.7  01-Oct-2002  thorpej Use CFATTACH_DECL().
 1.6  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.5  27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.4  19-Jun-2002  bjh21 More wsqms cleanups:
sc_flags was never read. G/C it.
wsqms_attach() took two arguments that pointed to the same structure. G/C one
of them
Since wsqms controls the same device as qms, have it match the same attach
args.
 1.3  19-Apr-2002  wiz branches: 1.3.2;
Complete renaming of opms to opms (was partly named pms, externally and
internally). Move arm/iomd/pms* to arm/iomd/opms*. Mechanical change,
tested by cross-compiling a kernel from i386.

Approved by christos.

XXX: What are arm/arm32/conf.c and arm/include/conf.h good for?
 1.2  27-Nov-2001  thorpej branches: 1.2.2;
Use <machine/intr.h> rather than <machine/irqhandler.h>
 1.1  05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.5  18-Oct-2002  nathanw Catch up to -current.
 1.1.4.4  01-Aug-2002  nathanw Catch up to -current.
 1.1.4.3  20-Jun-2002  nathanw Catch up to -current.
 1.1.4.2  08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1  05-Oct-2001  nathanw file iomd.c was added on branch nathanw_sa on 2002-01-08 00:23:15 +0000
 1.2.2.5  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.4  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.2.2.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.2.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.2.1  27-Nov-2001  thorpej file iomd.c was added on branch kqueue on 2002-01-10 19:38:01 +0000
 1.3.2.1  16-Jul-2002  gehenna catch up with -current.
 1.9.8.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.9.8.2  18-Sep-2004  skrll Sync with HEAD.
 1.9.8.1  03-Aug-2004  skrll Sync with HEAD
 1.13.16.1  30-Dec-2006  yamt sync with head.
 1.14.8.1  11-Aug-2006  yamt sync with head
 1.14.4.1  09-Sep-2006  rpaulo sync with head
 1.17.6.1  02-Jun-2012  mrg sync to latest -current.
 1.17.2.2  30-Oct-2012  yamt sync with head
 1.17.2.1  23-May-2012  yamt sync with head.
 1.20.2.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.21.52.1  21-Mar-2021  thorpej Give config_found() the same variadic arguments treatment as
config_search(). This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls. Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.
 1.22.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed