History log of /src/sys/arch/mips/alchemy/dev/augpio.c |
Revision | | Date | Author | Comments |
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().
|