Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/mips/atheros/dev/argpio.c
RevisionDateAuthorComments
 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  11-Jul-2020  nia branches: 1.8.4;
Fix various typos of "system" in comments. Mainly copypasto errors.

from vezhlys on freenode.
 1.7  15-Sep-2016  jdolecek remove last isolated islands using BUS_SPACE_BARRIER_SYNC and
BUS_SPACE_BARRIER_X_BEFORE_X - these were only ever defined for mips and ia64,
and never actually implemented even there
 1.6  17-Jul-2011  dyoung branches: 1.6.12; 1.6.30; 1.6.34;
Repair device_t/softc so that this compiles.
 1.5  10-Jul-2011  matt Cleanup machine includes
 1.4  01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.3  04-Sep-2006  gdamore branches: 1.3.4; 1.3.10;
This is a boat-load of changes designed to finish parameterizing the
stuff necessary to separate out AR5312 from AR5315. This includes:

1) rework of arbus IRQs, so that IRQs are now seperately specified
as either MISC or CPU irqs
2) move board/chip-specific addresses into chip-dependent file
3) unencumber argpio from ar5312 specifics, using properties to pass
details such as reset-pin and sysled-pin.
4) an option to select which WiSoC is to be configured is provided.

AR5315 support should be forthcoming shortly now.
 1.2  28-Aug-2006  gdamore First pass at cleanup AR5312 WiSoC support to enable better & cleaner
sharing of code with the AR5315, which has many similarities, but many
differences from the AR5312.

No functional change at this time, other than the cpu_model string
(and also sysctl.hw.model node) is changed to reflect the WiSoC cpu
name rather than the identification string in ROM (which tends to not
be very informative.)
 1.1  07-Jul-2006  gdamore branches: 1.1.2; 1.1.6;
Add AR531X GPIO support. This also registers the reset button with sysmon,
so that when it is pressed the default reset button action (currently board
reset, no change to data in flash) is taken.

While here, remove the AR531X generic config, because it just doesn't make
sense.
 1.1.6.4  14-Sep-2006  yamt sync with head.
 1.1.6.3  03-Sep-2006  yamt sync with head.
 1.1.6.2  11-Aug-2006  yamt sync with head
 1.1.6.1  07-Jul-2006  yamt file argpio.c was added on branch yamt-pdpolicy on 2006-08-11 15:42:14 +0000
 1.1.2.2  13-Jul-2006  gdamore Merge from HEAD.
 1.1.2.1  07-Jul-2006  gdamore file argpio.c was added on branch gdamore-uart on 2006-07-13 17:48:57 +0000
 1.3.10.2  30-Dec-2006  yamt sync with head.
 1.3.10.1  04-Sep-2006  yamt file argpio.c was added on branch yamt-lazymbuf on 2006-12-30 20:46:30 +0000
 1.3.4.2  09-Sep-2006  rpaulo sync with head
 1.3.4.1  04-Sep-2006  rpaulo file argpio.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:25 +0000
 1.6.34.1  04-Nov-2016  pgoyette Sync with HEAD
 1.6.30.1  05-Oct-2016  skrll Sync with HEAD
 1.6.12.1  03-Dec-2017  jdolecek update from HEAD
 1.8.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.9.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed