Home | History | Annotate | Download | only in sa11x0
History log of /src/sys/arch/arm/sa11x0/sa1111.c
RevisionDateAuthorComments
 1.28  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.27  24-Apr-2021  thorpej branches: 1.27.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.26  20-Nov-2020  thorpej branches: 1.26.2;
malloc(9) -> kmem(9)
 1.25  10-Nov-2019  chs branches: 1.25.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.24  01-Jul-2011  dyoung branches: 1.24.54;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.23  29-May-2009  rjs Make the following changes:

struct device * -> device_t
struct cfdata * -> cfdata_t
printf -> aprint_
device_t/softc split
 1.22  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.21  08-Jan-2008  matt branches: 1.21.6; 1.21.8; 1.21.10;
As of this commit, all arm32 kernel now build.
 1.20  17-Oct-2007  garbled branches: 1.20.2; 1.20.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.19  14-Jul-2007  ad branches: 1.19.6; 1.19.10; 1.19.12;
Generic soft interrupts are mandatory.
 1.18  27-Jun-2006  peter branches: 1.18.14; 1.18.22;
KNF. Correct some spelling errors.
 1.17  04-Mar-2006  peter branches: 1.17.2; 1.17.10;
s/u_intN_t/uintN_t/
 1.16  04-Mar-2006  peter Use ANSI function decls.
 1.15  03-Jan-2006  peter branches: 1.15.2; 1.15.4;
Remove unnecessary #ifdef hpcarm + includes.
 1.14  11-Dec-2005  christos branches: 1.14.2;
merge ktrace-lwp.
 1.13  26-Aug-2005  drochner s/locdesc_t/int/g
 1.12  30-Jun-2005  drochner branches: 1.12.2;
adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.11  08-Aug-2003  bsh split StrongArm companion chip (sacc) driver so that we can support
sacc on other platforms than hpcarm (evbarm for example).

codes specific to hpcarm are extracted and moved to hpcarm/dev/.
 1.10  15-Jul-2003  lukem __KERNEL_RCSID()
 1.9  02-Oct-2002  thorpej branches: 1.9.8;
Use CFATTACH_DECL().
 1.8  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.7  27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.6  27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.5  12-Aug-2002  rjs Always clear SA11x0 GPIO in interrupt handler.
 1.4  19-Jul-2002  ichiro make compile
 1.3  24-Sep-2001  takemura branches: 1.3.4; 1.3.12;
Renamed platid_search() to platid_search_data() and added new platid_search().
Platid_name() was re-implemented using platid_search().
 1.2  01-Aug-2001  rjs branches: 1.2.2;
Update from hpcarm with changes to probe routine and test for chip ID.
 1.1  08-Jul-2001  rjs branches: 1.1.2;
Initial copy of SA11x0 support from hpcarm.
 1.1.2.4  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.2.3  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.2.1  03-Aug-2001  lukem update to -current
 1.2.2.1  01-Oct-2001  fvdl Catch up with -current.
 1.3.12.2  30-Aug-2002  gehenna catch up with -current.
 1.3.12.1  21-Jul-2002  gehenna catch up with -current.
 1.3.4.4  18-Oct-2002  nathanw Catch up to -current.
 1.3.4.3  13-Aug-2002  nathanw Catch up to -current.
 1.3.4.2  01-Aug-2002  nathanw Catch up to -current.
 1.3.4.1  24-Sep-2001  nathanw file sa1111.c was added on branch nathanw_sa on 2002-08-01 02:41:18 +0000
 1.9.8.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 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.12.2.4  21-Jan-2008  yamt sync with head
 1.12.2.3  03-Sep-2007  yamt sync with head.
 1.12.2.2  30-Dec-2006  yamt sync with head.
 1.12.2.1  21-Jun-2006  yamt sync with head.
 1.14.2.1  15-Jan-2006  yamt sync with head.
 1.15.4.1  22-Apr-2006  simonb Sync with head.
 1.15.2.1  09-Sep-2006  rpaulo sync with head
 1.17.10.1  13-Jul-2006  gdamore Merge from HEAD.
 1.17.2.1  11-Aug-2006  yamt sync with head
 1.18.22.1  03-Oct-2007  garbled Sync with HEAD
 1.18.14.1  15-Jul-2007  ad Sync with head.
 1.19.12.2  09-Jan-2008  matt sync with HEAD
 1.19.12.1  06-Nov-2007  matt sync with HEAD
 1.19.10.2  20-Jan-2008  chris Sync to HEAD.
 1.19.10.1  01-Jan-2008  chris Sync with HEAD.
 1.19.6.1  28-Feb-2008  rjs Sync with HEAD.
 1.20.8.1  08-Jan-2008  bouyer Sync with HEAD
 1.20.2.1  18-Feb-2008  mjf Sync with HEAD.
 1.21.10.2  20-Jun-2009  yamt sync with head
 1.21.10.1  16-May-2008  yamt sync with head.
 1.21.8.1  18-May-2008  yamt sync with head.
 1.21.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.24.54.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.25.8.1  14-Dec-2020  thorpej Sync w/ HEAD.
 1.26.2.3  05-Apr-2021  thorpej Treat config_probe() as if it were a boolean function; don't compare
return value > 0... except for the odd balls, which are now really easy
to spot.
 1.26.2.2  05-Apr-2021  thorpej config_match() -> config_probe() for the straight-forward indirect config
cases. There are still a few odd balls using config_match() which should
be sorted out later.
 1.26.2.1  03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.27.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed