History log of /src/sys/dev/gpio/gpioow.c |
Revision | | Date | Author | Comments |
1.20 |
| 10-May-2023 |
riastradh | gpioow(4): Use config_detach_children.
|
1.19 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.18 |
| 24-Apr-2021 |
thorpej | branches: 1.18.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.17 |
| 06-Dec-2019 |
maxv | branches: 1.17.10; localify
|
1.16 |
| 30-Nov-2019 |
ad | onewire:
- Re-do the signalling to be a little more forgiving and efficient. - If bus reset fails during probe, try a second time. - Spread out kernel threads for many busses to avoid thundering herd effect.
|
1.15 |
| 28-Oct-2017 |
riastradh | branches: 1.15.4; Kill some more extern struct cfdriver declarations.
Down with externs in .c!
|
1.14 |
| 07-Sep-2011 |
mbalmer | branches: 1.14.12; Newline is \n, not /n.
|
1.13 |
| 31-Aug-2011 |
mbalmer | Add glue code to build as module.
|
1.12 |
| 12-Nov-2009 |
dyoung | Simplify activation hook.
|
1.11 |
| 08-Aug-2009 |
mbalmer | Register with the PMF, and when detaching, just the right order.
|
1.10 |
| 07-Aug-2009 |
mbalmer | Don't use an identifier name that probably clashes with the C standard. Requested by many.
|
1.9 |
| 03-Aug-2009 |
mbalmer | unfold short line; debracket
|
1.8 |
| 03-Aug-2009 |
mbalmer | A better match routine that checks also the number of pins instead of checking the pins in the attach routine; malconfigured devices will no longer attach. While here, replace some printf uses by aprint_....
|
1.7 |
| 25-Jul-2009 |
mbalmer | Rework the GPIO framework. Tie it to the kauth(9) framework to control access to the GPIO pins. Device drivers using GPIO pins can now be attached and detached at runtime. GPIO pins can be named for easier reference from userland programs. Introduce a new gpiosim(4) driver, which is used for development.
Reviewed by many.
|
1.6 |
| 18-Mar-2009 |
cegger | bzero -> memset
|
1.5 |
| 04-May-2008 |
xtraeme | branches: 1.5.8; 1.5.14; Finish device_t/softc split. Previous commit was incomplete.
|
1.4 |
| 01-May-2008 |
cegger | device_t / softc split. From Hans Rosenfeld.
|
1.3 |
| 16-Nov-2006 |
christos | branches: 1.3.48; 1.3.50; 1.3.52; __unused removal on arguments; approved by core.
|
1.2 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.1 |
| 07-Apr-2006 |
riz | branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 1.1.18; 1.1.20; 1.1.22; Dallas Semiconductor 1-Wire bus support, from OpenBSD. Currently includes gpioow(4), attaching a bit-banging driver via a GPIO pin. Also, owtemp(4) which supports some of the 1-Wire temperature sensors, including the DS18b20 and DS1920 - temperatures are returned via the envsys(4) framework.
Original drivers by Alexander Yurchenko (grange@openbsd), with envsys(4) support and a fix to the 1-wire search algorithm (for discovering devices on the bus) by me.
As discussed on tech-kern earlier this week.
|
1.1.22.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.1.22.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.1.20.2 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.1.20.1 |
| 07-Apr-2006 |
rpaulo | file gpioow.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:49:50 +0000
|
1.1.18.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.1.14.3 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.1.14.2 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.1.14.1 |
| 07-Apr-2006 |
yamt | file gpioow.c was added on branch yamt-lazymbuf on 2006-06-21 15:02:46 +0000
|
1.1.10.2 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.1.10.1 |
| 07-Apr-2006 |
tron | file gpioow.c was added on branch peter-altq on 2006-05-24 15:50:07 +0000
|
1.1.6.2 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.1.6.1 |
| 07-Apr-2006 |
simonb | file gpioow.c was added on branch simonb-timecounters on 2006-04-22 11:38:52 +0000
|
1.1.4.2 |
| 19-Apr-2006 |
elad | sync with head.
|
1.1.4.1 |
| 07-Apr-2006 |
elad | file gpioow.c was added on branch elad-kernelauth on 2006-04-19 03:24:34 +0000
|
1.1.2.2 |
| 11-Apr-2006 |
yamt | sync with head
|
1.1.2.1 |
| 07-Apr-2006 |
yamt | file gpioow.c was added on branch yamt-pdpolicy on 2006-04-11 11:55:13 +0000
|
1.3.52.4 |
| 11-Mar-2010 |
yamt | sync with head
|
1.3.52.3 |
| 19-Aug-2009 |
yamt | sync with head.
|
1.3.52.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.3.52.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.3.50.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.3.48.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.5.14.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.5.8.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.14.12.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.15.4.1 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.17.10.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.18.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|