History log of /src/sys/dev/onewire/onewire.c |
Revision | | Date | Author | Comments |
1.22 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.21 |
| 24-Apr-2021 |
thorpej | branches: 1.21.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.20 |
| 14-Apr-2020 |
kre | branches: 1.20.4;
Only include opt_xxx.h headers when _KERNEL_OPT is defined.
|
1.19 |
| 14-Apr-2020 |
macallan | defflag ONEWIRE_DEBUG
|
1.18 |
| 30-Nov-2019 |
ad | branches: 1.18.6; 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.17 |
| 25-Oct-2019 |
martin | PR kern/54617: onewire(4):
- Alter locking strategy to avoid deadlock on detach. - Auto bus probe chews CPU. Increase interval from 3s to 10s. - Put temp sensor S/N in dev description so it can be identified. - Use mutex/condvar.
Patch from Andrew Doran.
|
1.16 |
| 25-Jul-2014 |
dholland | branches: 1.16.18; 1.16.28; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.15 |
| 16-Mar-2014 |
dholland | branches: 1.15.2; Change (mostly mechanically) every cdevsw/bdevsw I can find to use designated initializers.
I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
|
1.14 |
| 31-Aug-2011 |
mbalmer | branches: 1.14.2; 1.14.12; 1.14.16; Add glue code to build as module.
|
1.13 |
| 06-Dec-2009 |
dyoung | Simplify device-activation hooks.
|
1.12 |
| 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.11 |
| 18-Mar-2009 |
cegger | bzero -> memset
|
1.10 |
| 17-Dec-2008 |
cegger | branches: 1.10.2; kill MALLOC and FREE macros.
|
1.9 |
| 05-May-2008 |
xtraeme | branches: 1.9.8; device_t/softc split and other related cosmetic changes.
|
1.8 |
| 08-Apr-2008 |
cegger | branches: 1.8.2; 1.8.4; use aprint_*_dev and device_xname
|
1.7 |
| 05-Sep-2007 |
xtraeme | branches: 1.7.20; onewire_lock: remove the flags argument and change the return type to void. This function is not expected to return an int, because rw_enter() will always succeed.
|
1.6 |
| 02-Sep-2007 |
xtraeme | Convert onewire(4) to use rwlock(9) rather than lockmgr(9).
|
1.5 |
| 09-Jul-2007 |
ad | branches: 1.5.2; 1.5.6; 1.5.8; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.4 |
| 16-Nov-2006 |
christos | branches: 1.4.8; 1.4.10; __unused removal on arguments; approved by core.
|
1.3 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.2 |
| 03-Sep-2006 |
christos | branches: 1.2.2; 1.2.4; 1.2.6; add missing initializer.
|
1.1 |
| 07-Apr-2006 |
riz | branches: 1.1.2; 1.1.4; 1.1.6; 1.1.10; 1.1.14; 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.14.5 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.1.14.4 |
| 03-Sep-2007 |
yamt | 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 onewire.c was added on branch yamt-lazymbuf on 2006-06-21 15:05:02 +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 onewire.c was added on branch peter-altq on 2006-05-24 15:50:27 +0000
|
1.1.6.2 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.1.6.1 |
| 07-Apr-2006 |
simonb | file onewire.c was added on branch simonb-timecounters on 2006-04-22 11:39:13 +0000
|
1.1.4.2 |
| 19-Apr-2006 |
elad | sync with head.
|
1.1.4.1 |
| 07-Apr-2006 |
elad | file onewire.c was added on branch elad-kernelauth on 2006-04-19 03:25:33 +0000
|
1.1.2.3 |
| 14-Sep-2006 |
yamt | sync with head.
|
1.1.2.2 |
| 11-Apr-2006 |
yamt | sync with head
|
1.1.2.1 |
| 07-Apr-2006 |
yamt | file onewire.c was added on branch yamt-pdpolicy on 2006-04-11 11:55:17 +0000
|
1.2.6.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.2.6.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.2.4.2 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.2.4.1 |
| 03-Sep-2006 |
rpaulo | file onewire.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:52:15 +0000
|
1.2.2.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.4.10.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.4.8.4 |
| 09-Oct-2007 |
ad | Sync with head.
|
1.4.8.3 |
| 13-May-2007 |
ad | - Pass the error number and residual count to biodone(), and let it handle setting error indicators. Prepare to eliminate B_ERROR. - Add a flag argument to brelse() to be set into the buf's flags, instead of doing it directly. Typically used to set B_INVAL. - Add a "struct cpu_info *" argument to kthread_create(), to be used to create bound threads. Change "bool mpsafe" to "int flags". - Allow exit of LWPs in the IDL state when (l != curlwp). - More locking fixes & conversion to the new API.
|
1.4.8.2 |
| 10-Apr-2007 |
ad | Nuke the deferred kthread creation stuff, as it's no longer needed. Pointed out by thorpej@.
|
1.4.8.1 |
| 09-Apr-2007 |
ad | - Add two new arguments to kthread_create1: pri_t pri, bool mpsafe. - Fork kthreads off proc0 as new LWPs, not new processes.
|
1.5.8.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.5.6.2 |
| 02-Oct-2007 |
joerg | Sync with HEAD.
|
1.5.6.1 |
| 03-Sep-2007 |
jmcneill | Sync with HEAD.
|
1.5.2.2 |
| 10-Sep-2007 |
skrll | Sync with HEAD.
|
1.5.2.1 |
| 03-Sep-2007 |
skrll | Sync with HEAD.
|
1.7.20.2 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.7.20.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.8.4.4 |
| 11-Mar-2010 |
yamt | sync with head
|
1.8.4.3 |
| 16-May-2009 |
yamt | sync with head
|
1.8.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.8.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.8.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.9.8.2 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.9.8.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.10.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.14.16.1 |
| 18-May-2014 |
rmind | sync with head
|
1.14.12.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.14.2.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.15.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.16.28.2 |
| 21-Apr-2020 |
martin | Sync with HEAD
|
1.16.28.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.16.18.2 |
| 29-Apr-2017 |
pgoyette | Revise previous. Rather than explicitly including <sys/localcount.h> in all the places where {b,c}devsw is initialized, just include it from <sys/conf.h>. This avoids an include-sequence dependancy.
|
1.16.18.1 |
| 29-Apr-2017 |
pgoyette | Add DEVSW_MODULE_INIT to existing device-driver modules, so that they willl have a localcount defined and thus be permitted to load. Without a localcount, loading the module will return EINVAL.
XXX the dtrace and drm stuff might need to be fed back upstream?
|
1.18.6.1 |
| 20-Apr-2020 |
bouyer | Sync with HEAD
|
1.20.4.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.21.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|