Home | History | Annotate | Download | only in xscale
History log of /src/sys/arch/arm/xscale/pxa2x0.c
RevisionDateAuthorComments
 1.24  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.23  24-Apr-2021  thorpej branches: 1.23.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.22  12-Nov-2012  skrll branches: 1.22.52;
C99 types
 1.21  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.20  01-Jul-2011  dyoung branches: 1.20.2; 1.20.12;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.19  09-Jun-2011  nonaka - device_t/softc split.
- use aprint_* function.
 1.18  09-Aug-2009  kiyohara branches: 1.18.4; 1.18.10;
Fix matching by improper driver.
see http://mail-index.netbsd.org/port-arm/2009/07/08/msg000807.html

And remove some white-spaces.
 1.17  03-May-2008  martin Move TNF license to standard 2 clause variant
 1.16  21-Feb-2007  thorpej branches: 1.16.44; 1.16.46; 1.16.48;
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.15  17-Dec-2006  peter branches: 1.15.2;
Update from the latest Zaurus source from NONAKA Kimihiro.

Includes drivers for I2C, I2S, PCMCIA controller, USB device controller,
OHCI USB controller (from OpenBSD) and some improvements to the LCD
controller driver.
 1.14  16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.13  14-May-2006  elad branches: 1.13.8; 1.13.10;
integrate kauth.
 1.12  10-Apr-2006  simonb Tab Police.
 1.11  24-Dec-2005  perry branches: 1.11.4; 1.11.6; 1.11.8; 1.11.10; 1.11.12;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.10  11-Dec-2005  christos merge ktrace-lwp.
 1.9  26-Aug-2005  drochner s/locdesc_t/int/g
 1.8  04-Jul-2005  bsh branches: 1.8.2;
The first step to support Intel PXA270.

kernel config option CPU_XSCALE_PXA2X0 is now obsoleted by
CPU_XSCALE_PXA250 and CPU_XSCALE_PXA270. If both of them are defined,
CPU is determined run-time.
 1.7  03-Jul-2005  bsh + use constants defined in xscalereg.h instead of 0x0001.
+ clear CPU cycle counter in pxaip_measure_cpuclock()
+ style.
 1.6  30-Jun-2005  drochner adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes
 1.5  12-Dec-2003  thorpej Add a default case to avoid an uninitialized variable warning.
 1.4  15-Jul-2003  lukem __KERNEL_RCSID()
 1.3  05-Jun-2003  scw branches: 1.3.2;
- Rearrange the PXA2x0 support code to better support attaching
child drivers such as interrupt and gpio controllers.
- Add a function to probe SDRAM size at boot time.
- Add a function to configure the Clock Manager's CKEN settings.
- Add an INTC driver.
- Add a GPIO driver.
- Add attach glue for the PXA2x0's "almost" 16550-compatible uarts.
- Tweak the LCD driver to use the GPIO driver's services for setting
up GPIO pin function.
 1.2  01-Jan-2003  thorpej Use aprint_normal() for cfprint routines.
 1.1  19-Oct-2002  bsh branches: 1.1.2;
Support Intel PXA250 and PXA210 application processors.
 1.1.2.3  03-Jan-2003  thorpej Sync with HEAD.
 1.1.2.2  11-Nov-2002  nathanw Catch up to -current
 1.1.2.1  19-Oct-2002  nathanw file pxa2x0.c was added on branch nathanw_sa on 2002-11-11 21:56:54 +0000
 1.3.2.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.3.2.1  03-Aug-2004  skrll Sync with HEAD
 1.8.2.3  26-Feb-2007  yamt sync with head.
 1.8.2.2  30-Dec-2006  yamt sync with head.
 1.8.2.1  21-Jun-2006  yamt sync with head.
 1.11.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.11.10.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.11.8.1  11-Apr-2006  yamt sync with head
 1.11.6.1  22-Apr-2006  simonb Sync with head.
 1.11.4.1  09-Sep-2006  rpaulo sync with head
 1.13.10.1  18-Dec-2006  yamt sync with head.
 1.13.8.1  12-Jan-2007  ad Sync with head.
 1.15.2.1  27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.16.48.2  19-Aug-2009  yamt sync with head.
 1.16.48.1  16-May-2008  yamt sync with head.
 1.16.46.1  18-May-2008  yamt sync with head.
 1.16.44.1  02-Jun-2008  mjf Sync with HEAD.
 1.18.10.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.18.4.1  12-Jun-2011  rmind sync with head
 1.20.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.20.2.2  16-Jan-2013  yamt sync with (a bit old) head
 1.20.2.1  30-Oct-2012  yamt sync with head
 1.22.52.7  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.22.52.6  04-Apr-2021  thorpej CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
 1.22.52.5  03-Apr-2021  thorpej Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.
 1.22.52.4  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.52.3  21-Mar-2021  thorpej CFARG_IATTR usage audit:

If a device carries only one interface attribute, there is no need
to specify it when calling config_search(); that specification is
meant only to disambiguate which interface attribute (which is a
proxy for "what kind of attach args are being used") is having
children attached. cfparent_match() will take care of ensuring that
any potential children can attach to one of the parent's iterface
attributes, and if the parent only carries one, no disambiguation is
necessary.
 1.22.52.2  20-Mar-2021  thorpej No need to pass the parent softc down to the indirect submatch routine;
it's available from the parent device_t there.
 1.22.52.1  20-Mar-2021  thorpej The proliferation if config_search_*() and config_found_*() combinations
is a little absurd, so begin to tidy this up:

- Introduce a new cfarg_t enumerated type, that defines the types of
tag-value variadic arguments that can be passed to the various
config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS,
for now, plus a CFARG_EOL sentinel).
- Collapse config_search_*() into config_search() that takes these
variadic arguments.
- Convert all call sites of config_search_*() to the new signature.
Noticed several incorrect usages along the way, which will be
audited in a future commit.
 1.23.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed