History log of /src/sys/dev/gpib |
Revision | Date | Author | Comments |
1.1 | 02-Jun-2003 |
gmcgarry | GPIB framework.
|
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 | 11-Jul-2016 |
msaitoh | branches: 1.17.34; KNF. No functional change.
|
1.16 | 27-Oct-2012 |
chs | branches: 1.16.14; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.15 | 12-Sep-2009 |
tsutsui | branches: 1.15.12; 1.15.22; Make compile with options DEBUG.
|
1.14 | 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.13 | 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.12 | 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.11 | 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.10 | 28-Apr-2008 |
martin | branches: 1.10.8; 1.10.14; Remove clause 3 and 4 from TNF licenses
|
1.9 | 04-Mar-2007 |
christos | branches: 1.9.36; 1.9.38; 1.9.40; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.8 | 10-Jan-2007 |
cube | branches: 1.8.2; Make it compile.
|
1.7 | 14-May-2006 |
elad | branches: 1.7.8; integrate kauth.
|
1.6 | 29-Mar-2006 |
thorpej | Use device_private().
|
1.5 | 25-Mar-2006 |
thorpej | Use device_parent().
|
1.4 | 11-Dec-2005 |
christos | branches: 1.4.4; 1.4.6; 1.4.8; 1.4.10; 1.4.12; merge ktrace-lwp.
|
1.3 | 26-Aug-2005 |
drochner | s/locdesc_t/int/g
|
1.2 | 13-Sep-2004 |
drochner | branches: 1.2.12; a round of autoconf cleanup: -convert submatch() style functions (passed to config_search() or config_found_sm()) to the locator passing variants -pass interface attributes in some cases -make submatch() functions look uniformly as far as possible -avoid macros which just hide cfdata members, and reduce dependencies on "locators.h"
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; Support block devices speaking CS80/SS80 protocol over gpib.
|
1.1.2.3 | 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.1.2.2 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.1 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.2.12.3 | 03-Sep-2007 |
yamt | sync with head.
|
1.2.12.2 | 26-Feb-2007 |
yamt | sync with head.
|
1.2.12.1 | 21-Jun-2006 |
yamt | sync with head.
|
1.4.12.2 | 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.4.12.1 | 28-Mar-2006 |
tron | Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
|
1.4.10.1 | 19-Apr-2006 |
elad | sync with head.
|
1.4.8.1 | 01-Apr-2006 |
yamt | sync with head.
|
1.4.6.1 | 22-Apr-2006 |
simonb | Sync with head.
|
1.4.4.1 | 09-Sep-2006 |
rpaulo | sync with head
|
1.7.8.1 | 12-Jan-2007 |
ad | Sync with head.
|
1.8.2.1 | 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.9.40.4 | 16-Sep-2009 |
yamt | sync with head
|
1.9.40.3 | 16-May-2009 |
yamt | sync with head
|
1.9.40.2 | 04-May-2009 |
yamt | sync with head.
|
1.9.40.1 | 16-May-2008 |
yamt | sync with head.
|
1.9.38.1 | 18-May-2008 |
yamt | sync with head.
|
1.9.36.1 | 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.10.14.1 | 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.10.8.1 | 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.15.22.2 | 03-Dec-2017 |
jdolecek | update from HEAD
|
1.15.22.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.15.12.1 | 30-Oct-2012 |
yamt | sync with head
|
1.16.14.1 | 05-Oct-2016 |
skrll | Sync with HEAD
|
1.17.34.6 | 05-Apr-2021 |
thorpej | Treat config_probe() as if it were a boolean function; don't compare return value > 0... except for the odd balls, which are now really easy to spot.
|
1.17.34.5 | 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.17.34.4 | 04-Apr-2021 |
thorpej | CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
|
1.17.34.3 | 03-Apr-2021 |
thorpej | Give config_attach() the tagged variadic argument treatment and mechanically convert all call sites.
|
1.17.34.2 | 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.17.34.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.18.8.1 | 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|
1.6 | 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.5 | 28-Apr-2008 |
martin | branches: 1.5.34; 1.5.44; Remove clause 3 and 4 from TNF licenses
|
1.4 | 25-Dec-2007 |
perry | branches: 1.4.6; 1.4.8; 1.4.10; Convert many of the uses of __attribute__ to equivalent __packed, __unused and __dead macros from cdefs.h
|
1.3 | 11-Dec-2005 |
christos | branches: 1.3.46; 1.3.52; 1.3.56; 1.3.60; merge ktrace-lwp.
|
1.2 | 19-Apr-2004 |
wiz | branches: 1.2.12; Spell removable with only two es. Inspired by jmc@openbsd.
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; Support block devices speaking CS80/SS80 protocol over gpib.
|
1.1.2.3 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.2 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.1.2.1 | 03-Aug-2004 |
skrll | Sync with HEAD
|
1.2.12.1 | 21-Jan-2008 |
yamt | sync with head
|
1.3.60.1 | 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.3.56.1 | 26-Dec-2007 |
ad | Sync with head.
|
1.3.52.1 | 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.3.46.1 | 09-Jan-2008 |
matt | sync with HEAD
|
1.4.10.1 | 16-May-2008 |
yamt | sync with head.
|
1.4.8.1 | 18-May-2008 |
yamt | sync with head.
|
1.4.6.1 | 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.5.44.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.5.34.1 | 30-Oct-2012 |
yamt | sync with head
|
1.31 | 12-Nov-2019 |
msaitoh | Add missing initialization of sc_dev.
|
1.30 | 23-Feb-2019 |
kamil | branches: 1.30.4; Improve fallthrough statement wording in dev/gpib/ct.c
Fixes build with kUBSan on NetBSD/i386.
|
1.29 | 28-Oct-2017 |
riastradh | branches: 1.29.4; Kill some more extern struct cfdriver declarations.
Down with externs in .c!
|
1.28 | 11-Jul-2016 |
msaitoh | branches: 1.28.10; KNF. No functional change.
|
1.27 | 25-Jul-2014 |
dholland | branches: 1.27.4; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.26 | 25-Jul-2014 |
dholland | Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld, raidframe, maybe cgd) should be implemented for real.
|
1.25 | 16-Mar-2014 |
dholland | branches: 1.25.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.24 | 27-Oct-2012 |
chs | branches: 1.24.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.23 | 08-Feb-2011 |
rmind | branches: 1.23.4; 1.23.14; Remove clause 3 (UCB advertising clause) from the University of Utah copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks! Also, merge UCB and Utah copyright texts back into one, as they originally were.
Extra verification by snj@.
|
1.22 | 12-Sep-2009 |
tsutsui | branches: 1.22.4; 1.22.6; 1.22.8; Fix warnings of printf(9) format.
|
1.21 | 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.20 | 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.19 | 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.18 | 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.17 | 13-Jan-2009 |
yamt | branches: 1.17.2; g/c BUFQ_FOO() macros and use bufq_foo() directly.
|
1.16 | 11-Jun-2008 |
cegger | branches: 1.16.4; - use device_lookup_private to get softc - ansify
|
1.15 | 28-Apr-2008 |
martin | branches: 1.15.2; 1.15.4; Remove clause 3 and 4 from TNF licenses
|
1.14 | 08-Apr-2008 |
cegger | branches: 1.14.2; 1.14.4; use aprint_*_dev and device_xname
|
1.13 | 02-Jan-2008 |
ad | branches: 1.13.6; Merge vmlocking2 to head.
|
1.12 | 08-Oct-2007 |
ad | branches: 1.12.4; 1.12.6; 1.12.10; brelse() stragglers.
|
1.11 | 29-Jul-2007 |
ad | branches: 1.11.4; 1.11.6; 1.11.8; 1.11.10; It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request.
|
1.10 | 04-Mar-2007 |
christos | branches: 1.10.2; 1.10.10; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.9 | 13-Jan-2007 |
cube | branches: 1.9.2; Complete initializers, teach drivers that we moved from struct proc to struct lwp, sprinkle some needed const qualifiers.
|
1.8 | 29-Mar-2006 |
thorpej | branches: 1.8.8; Use device_private().
|
1.7 | 25-Mar-2006 |
thorpej | Use device_parent().
|
1.6 | 11-Dec-2005 |
christos | branches: 1.6.4; 1.6.6; 1.6.8; 1.6.10; 1.6.12; merge ktrace-lwp.
|
1.5 | 15-Oct-2005 |
yamt | - change the way to specify a bufq strategy. (by string rather than by number) - rather than embedding bufq_state in driver softc, have a pointer to the former. - move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c. - rename method to strategy for consistency. - move some definitions which don't need to be exposed to the rest of kernel from sys/bufq.h to sys/bufq_impl.h. (is it better to move it to kern/ or somewhere?) - fix some obvious breakage in dev/qbus/ts.c. (not tested)
|
1.4 | 27-Feb-2005 |
perry | branches: 1.4.4; nuke trailing whitespace
|
1.3 | 28-Oct-2004 |
yamt | branches: 1.3.4; 1.3.6; move buffer queue related stuffs from buf.h to their own header, bufq.h.
|
1.2 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; Port hp300 driver for cartridge-style tapes to MI gpib framework.
|
1.1.2.6 | 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.1.2.5 | 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.1.2.4 | 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.1.2.3 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.2 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.1.2.1 | 03-Aug-2004 |
skrll | Sync with HEAD
|
1.3.6.1 | 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.3.4.1 | 29-Apr-2005 |
kent | sync with -current
|
1.4.4.5 | 21-Jan-2008 |
yamt | sync with head
|
1.4.4.4 | 27-Oct-2007 |
yamt | sync with head.
|
1.4.4.3 | 03-Sep-2007 |
yamt | sync with head.
|
1.4.4.2 | 26-Feb-2007 |
yamt | sync with head.
|
1.4.4.1 | 21-Jun-2006 |
yamt | sync with head.
|
1.6.12.2 | 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.6.12.1 | 28-Mar-2006 |
tron | Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
|
1.6.10.1 | 19-Apr-2006 |
elad | sync with head.
|
1.6.8.1 | 01-Apr-2006 |
yamt | sync with head.
|
1.6.6.1 | 22-Apr-2006 |
simonb | Sync with head.
|
1.6.4.1 | 09-Sep-2006 |
rpaulo | sync with head
|
1.8.8.1 | 01-Feb-2007 |
ad | Sync with head.
|
1.9.2.1 | 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.10.10.1 | 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.10.2.1 | 19-Aug-2007 |
ad | - Back out the biodone() changes. - Eliminate B_ERROR (from HEAD).
|
1.11.10.2 | 29-Jul-2007 |
ad | It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request.
|
1.11.10.1 | 29-Jul-2007 |
ad | file ct.c was added on branch matt-mips64 on 2007-07-29 12:15:44 +0000
|
1.11.8.1 | 14-Oct-2007 |
yamt | sync with head.
|
1.11.6.2 | 09-Jan-2008 |
matt | sync with HEAD
|
1.11.6.1 | 06-Nov-2007 |
matt | sync with HEAD
|
1.11.4.1 | 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.12.10.1 | 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.12.6.1 | 02-Jan-2008 |
ad | Buffer cache locking changes.
|
1.12.4.1 | 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.13.6.3 | 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.13.6.2 | 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.13.6.1 | 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.14.4.4 | 16-Sep-2009 |
yamt | sync with head
|
1.14.4.3 | 16-May-2009 |
yamt | sync with head
|
1.14.4.2 | 04-May-2009 |
yamt | sync with head.
|
1.14.4.1 | 16-May-2008 |
yamt | sync with head.
|
1.14.2.2 | 17-Jun-2008 |
yamt | sync with head.
|
1.14.2.1 | 18-May-2008 |
yamt | sync with head.
|
1.15.4.1 | 18-Jun-2008 |
simonb | Sync with head.
|
1.15.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.16.4.2 | 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.16.4.1 | 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.17.2.1 | 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.22.8.1 | 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.22.6.1 | 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.22.4.1 | 05-Mar-2011 |
rmind | sync with head
|
1.23.14.3 | 03-Dec-2017 |
jdolecek | update from HEAD
|
1.23.14.2 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.23.14.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.23.4.2 | 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.23.4.1 | 30-Oct-2012 |
yamt | sync with head
|
1.24.2.1 | 18-May-2014 |
rmind | sync with head
|
1.25.2.1 | 10-Aug-2014 |
tls | Rebase.
|
1.27.4.1 | 05-Oct-2016 |
skrll | Sync with HEAD
|
1.28.10.1 | 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #1439):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.29.4.2 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.29.4.1 | 10-Jun-2019 |
christos | Sync with HEAD
|
1.30.4.1 | 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #425):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.4 | 25-Dec-2007 |
perry | Convert many of the uses of __attribute__ to equivalent __packed, __unused and __dead macros from cdefs.h
|
1.3 | 11-Dec-2005 |
christos | branches: 1.3.46; 1.3.52; 1.3.56; 1.3.60; merge ktrace-lwp.
|
1.2 | 07-Aug-2003 |
agc | branches: 1.2.16; Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; Port hp300 driver for cartridge-style tapes to MI gpib framework.
|
1.1.2.3 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.2 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.1.2.1 | 03-Aug-2004 |
skrll | Sync with HEAD
|
1.2.16.1 | 21-Jan-2008 |
yamt | sync with head
|
1.3.60.1 | 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.3.56.1 | 26-Dec-2007 |
ad | Sync with head.
|
1.3.52.1 | 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.3.46.1 | 09-Jan-2008 |
matt | sync with HEAD
|
1.1 | 02-Jun-2003 |
gmcgarry | GPIB framework.
|
1.26 | 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.25 | 24-Apr-2021 |
thorpej | branches: 1.25.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.24 | 10-Nov-2019 |
chs | branches: 1.24.10; in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
1.23 | 11-Jul-2016 |
msaitoh | branches: 1.23.18; KNF. No functional change.
|
1.22 | 25-Jul-2014 |
dholland | branches: 1.22.4; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.21 | 16-Mar-2014 |
dholland | branches: 1.21.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.20 | 27-Oct-2012 |
chs | branches: 1.20.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.19 | 12-Sep-2009 |
tsutsui | branches: 1.19.12; 1.19.22; Make compile with options DEBUG.
|
1.18 | 12-Sep-2009 |
tsutsui | MALLOC() -> malloc()
|
1.17 | 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.16 | 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.15 | 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.14 | 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.13 | 11-Jun-2008 |
cegger | branches: 1.13.4; 1.13.10; - use device_lookup_private to get softc - ansify
|
1.12 | 28-Apr-2008 |
martin | branches: 1.12.2; 1.12.4; Remove clause 3 and 4 from TNF licenses
|
1.11 | 08-Apr-2008 |
cegger | branches: 1.11.2; 1.11.4; use aprint_*_dev and device_xname
|
1.10 | 04-Mar-2007 |
christos | branches: 1.10.36; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.9 | 13-Jan-2007 |
cube | branches: 1.9.2; Complete initializers, teach drivers that we moved from struct proc to struct lwp, sprinkle some needed const qualifiers.
|
1.8 | 29-Mar-2006 |
thorpej | branches: 1.8.8; Use device_private().
|
1.7 | 29-Mar-2006 |
thorpej | Use device_cfdata().
|
1.6 | 11-Dec-2005 |
christos | branches: 1.6.4; 1.6.6; 1.6.8; 1.6.10; 1.6.12; merge ktrace-lwp.
|
1.5 | 26-Aug-2005 |
drochner | s/locdesc_t/int/g
|
1.4 | 27-Feb-2005 |
perry | branches: 1.4.4; nuke trailing whitespace
|
1.3 | 04-Feb-2005 |
perry | de-__P
|
1.2 | 13-Sep-2004 |
drochner | branches: 1.2.4; 1.2.6; a round of autoconf cleanup: -convert submatch() style functions (passed to config_search() or config_found_sm()) to the locator passing variants -pass interface attributes in some cases -make submatch() functions look uniformly as far as possible -avoid macros which just hide cfdata members, and reduce dependencies on "locators.h"
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; GPIB framework.
|
1.1.2.5 | 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.1.2.4 | 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.1.2.3 | 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.1.2.2 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.1 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.2.6.2 | 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.2.6.1 | 12-Feb-2005 |
yamt | sync with head.
|
1.2.4.1 | 29-Apr-2005 |
kent | sync with -current
|
1.4.4.3 | 03-Sep-2007 |
yamt | sync with head.
|
1.4.4.2 | 26-Feb-2007 |
yamt | sync with head.
|
1.4.4.1 | 21-Jun-2006 |
yamt | sync with head.
|
1.6.12.1 | 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.6.10.1 | 19-Apr-2006 |
elad | sync with head.
|
1.6.8.1 | 01-Apr-2006 |
yamt | sync with head.
|
1.6.6.1 | 22-Apr-2006 |
simonb | Sync with head.
|
1.6.4.1 | 09-Sep-2006 |
rpaulo | sync with head
|
1.8.8.1 | 01-Feb-2007 |
ad | Sync with head.
|
1.9.2.1 | 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.10.36.2 | 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.10.36.1 | 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.11.4.4 | 16-Sep-2009 |
yamt | sync with head
|
1.11.4.3 | 16-May-2009 |
yamt | sync with head
|
1.11.4.2 | 04-May-2009 |
yamt | sync with head.
|
1.11.4.1 | 16-May-2008 |
yamt | sync with head.
|
1.11.2.2 | 17-Jun-2008 |
yamt | sync with head.
|
1.11.2.1 | 18-May-2008 |
yamt | sync with head.
|
1.12.4.1 | 18-Jun-2008 |
simonb | Sync with head.
|
1.12.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.13.10.1 | 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.13.4.1 | 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.19.22.3 | 03-Dec-2017 |
jdolecek | update from HEAD
|
1.19.22.2 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.19.22.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.19.12.2 | 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.19.12.1 | 30-Oct-2012 |
yamt | sync with head
|
1.20.2.1 | 18-May-2014 |
rmind | sync with head
|
1.21.2.1 | 10-Aug-2014 |
tls | Rebase.
|
1.22.4.1 | 05-Oct-2016 |
skrll | Sync with HEAD
|
1.23.18.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.24.10.6 | 05-Apr-2021 |
thorpej | Treat config_probe() as if it were a boolean function; don't compare return value > 0... except for the odd balls, which are now really easy to spot.
|
1.24.10.5 | 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.24.10.4 | 04-Apr-2021 |
thorpej | CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
|
1.24.10.3 | 03-Apr-2021 |
thorpej | Give config_attach() the tagged variadic argument treatment and mechanically convert all call sites.
|
1.24.10.2 | 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.24.10.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.25.8.1 | 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|
1.4 | 06-Sep-2015 |
dholland | More on PR 41200: headers that declare ioctls should include sys/ioccom.h. This covers (I think) all the MI headers outside of external/ (and dist/).
|
1.3 | 11-Dec-2005 |
christos | branches: 1.3.120; 1.3.140; merge ktrace-lwp.
|
1.2 | 11-Mar-2005 |
nathanw | Add a final newline.
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; 1.1.10; 1.1.12; GPIB framework.
|
1.1.12.1 | 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.1.10.1 | 29-Apr-2005 |
kent | sync with -current
|
1.1.2.1 | 01-Apr-2005 |
skrll | Sync with HEAD.
|
1.3.140.1 | 22-Sep-2015 |
skrll | Sync with HEAD
|
1.3.120.1 | 03-Dec-2017 |
jdolecek | update from HEAD
|
1.5 | 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.4 | 28-Apr-2008 |
martin | branches: 1.4.34; 1.4.44; Remove clause 3 and 4 from TNF licenses
|
1.3 | 11-Dec-2005 |
christos | branches: 1.3.70; 1.3.72; 1.3.74; merge ktrace-lwp.
|
1.2 | 27-Feb-2005 |
perry | nuke trailing whitespace
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; 1.1.10; 1.1.12; GPIB framework.
|
1.1.12.1 | 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.1.10.1 | 29-Apr-2005 |
kent | sync with -current
|
1.1.2.1 | 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.3.74.1 | 16-May-2008 |
yamt | sync with head.
|
1.3.72.1 | 18-May-2008 |
yamt | sync with head.
|
1.3.70.1 | 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.4.44.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.4.34.1 | 30-Oct-2012 |
yamt | sync with head
|
1.13 | 25-May-2020 |
thorpej | This driver is incomplete and doens't even compile, but make it use CFATTACH_DECL_NEW() anyway.
|
1.12 | 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.11 | 12-May-2009 |
cegger | branches: 1.11.12; 1.11.22; struct device * -> device_t, no functional changes intended.
|
1.10 | 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.9 | 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.8 | 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.7 | 08-Apr-2008 |
cegger | branches: 1.7.4; 1.7.12; 1.7.18; use aprint_*_dev and device_xname
|
1.6 | 29-Mar-2006 |
thorpej | branches: 1.6.58; Use device_private().
|
1.5 | 28-Mar-2006 |
thorpej | Use device_unit().
|
1.4 | 11-Dec-2005 |
christos | branches: 1.4.4; 1.4.6; 1.4.8; 1.4.10; 1.4.12; merge ktrace-lwp.
|
1.3 | 27-Feb-2005 |
perry | branches: 1.3.4; nuke trailing whitespace
|
1.2 | 14-Jul-2003 |
lukem | branches: 1.2.8; 1.2.10; add missing __KERNEL_RCSID() and RCSID comment
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; First-go at hil-over-gpib. Doesn't do much.
|
1.1.2.4 | 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.1.2.3 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.2 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.1.2.1 | 03-Aug-2004 |
skrll | Sync with HEAD
|
1.2.10.1 | 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.2.8.1 | 29-Apr-2005 |
kent | sync with -current
|
1.3.4.1 | 21-Jun-2006 |
yamt | sync with head.
|
1.4.12.1 | 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.4.10.1 | 19-Apr-2006 |
elad | sync with head.
|
1.4.8.1 | 01-Apr-2006 |
yamt | sync with head.
|
1.4.6.1 | 22-Apr-2006 |
simonb | Sync with head.
|
1.4.4.1 | 09-Sep-2006 |
rpaulo | sync with head
|
1.6.58.1 | 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.7.18.1 | 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.7.12.1 | 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.7.4.2 | 16-May-2009 |
yamt | sync with head
|
1.7.4.1 | 04-May-2009 |
yamt | sync with head.
|
1.11.22.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.11.12.1 | 30-Oct-2012 |
yamt | sync with head
|
1.34 | 01-Dec-2019 |
riastradh | Mark unreachable branch with __unreachable() to fix i386/ALL build.
|
1.33 | 12-Nov-2019 |
msaitoh | Add missing initialization of sc_dev.
|
1.32 | 24-Feb-2019 |
kamil | branches: 1.32.4; Add missing FALLTHROUGH in gpib/mt.c
Requested by GCC in NetBSD/i386 kUBSan KCOV build.
|
1.31 | 28-Oct-2017 |
riastradh | branches: 1.31.4; Kill some more extern struct cfdriver declarations.
Down with externs in .c!
|
1.30 | 14-Jul-2016 |
msaitoh | branches: 1.30.10; - Use aprint*() instead of printf() in xxx_attach(). - Add missing aprint_naive("\n"); - KNF
|
1.29 | 25-Jul-2014 |
dholland | branches: 1.29.4; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.28 | 25-Jul-2014 |
dholland | Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld, raidframe, maybe cgd) should be implemented for real.
|
1.27 | 23-Mar-2014 |
christos | branches: 1.27.2; remove unused
|
1.26 | 16-Mar-2014 |
dholland | 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.25 | 27-Oct-2012 |
chs | branches: 1.25.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.24 | 08-Feb-2011 |
rmind | branches: 1.24.4; 1.24.14; Remove clause 3 (UCB advertising clause) from the University of Utah copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks! Also, merge UCB and Utah copyright texts back into one, as they originally were.
Extra verification by snj@.
|
1.23 | 05-Dec-2009 |
pooka | branches: 1.23.4; 1.23.6; 1.23.8; Convert tsleep(&lbolt) to kpause(). Make ltsleep/mtsleep on lbolt illegal. I examined all places where lbolt is referenced to make sure there were pointer aliases of it passed to tsleep, but put a KASSERT in m/ltsleep() just to be sure.
|
1.22 | 12-Sep-2009 |
tsutsui | Fix warnings of printf(9) format.
|
1.21 | 18-May-2009 |
ad | Don't pass a buffer to physio(), let it be allocated dynamically.
This leaves only scsipi and atapi doing the same.
|
1.20 | 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.19 | 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.18 | 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.17 | 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.16 | 13-Jan-2009 |
yamt | branches: 1.16.2; g/c BUFQ_FOO() macros and use bufq_foo() directly.
|
1.15 | 11-Jun-2008 |
cegger | branches: 1.15.4; - use device_lookup_private to get softc - ansify
|
1.14 | 28-Apr-2008 |
martin | branches: 1.14.2; 1.14.4; Remove clause 3 and 4 from TNF licenses
|
1.13 | 08-Apr-2008 |
cegger | branches: 1.13.2; 1.13.4; use aprint_*_dev and device_xname
|
1.12 | 02-Jan-2008 |
ad | branches: 1.12.6; Merge vmlocking2 to head.
|
1.11 | 29-Jul-2007 |
ad | branches: 1.11.6; 1.11.12; 1.11.14; 1.11.18; 1.11.22; It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request.
|
1.10 | 09-Jul-2007 |
ad | branches: 1.10.2; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.9 | 04-Mar-2007 |
christos | branches: 1.9.2; 1.9.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.8 | 15-Feb-2007 |
reinoud | branches: 1.8.2; Rename the B_XXX flag to B_DEVPRIVATE flag since it was never used for debugging and its main use is in device drivers. Its used there to signal that the flagged buffer has a special meaning or should be handled differently.
OK'd by Bill Sudenmund on tech-kern.
|
1.7 | 13-Jan-2007 |
cube | Complete initializers, teach drivers that we moved from struct proc to struct lwp, sprinkle some needed const qualifiers.
|
1.6 | 29-Mar-2006 |
thorpej | branches: 1.6.8; Use device_private().
|
1.5 | 11-Dec-2005 |
christos | branches: 1.5.4; 1.5.6; 1.5.8; 1.5.10; 1.5.12; merge ktrace-lwp.
|
1.4 | 15-Oct-2005 |
yamt | - change the way to specify a bufq strategy. (by string rather than by number) - rather than embedding bufq_state in driver softc, have a pointer to the former. - move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c. - rename method to strategy for consistency. - move some definitions which don't need to be exposed to the rest of kernel from sys/bufq.h to sys/bufq_impl.h. (is it better to move it to kern/ or somewhere?) - fix some obvious breakage in dev/qbus/ts.c. (not tested)
|
1.3 | 28-Oct-2004 |
yamt | branches: 1.3.12; move buffer queue related stuffs from buf.h to their own header, bufq.h.
|
1.2 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; Port hp300 driver for magnetic tapes to MI gpib framework.
|
1.1.2.5 | 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.1.2.4 | 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.1.2.3 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.2 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.1.2.1 | 03-Aug-2004 |
skrll | Sync with HEAD
|
1.3.12.4 | 21-Jan-2008 |
yamt | sync with head
|
1.3.12.3 | 03-Sep-2007 |
yamt | sync with head.
|
1.3.12.2 | 26-Feb-2007 |
yamt | sync with head.
|
1.3.12.1 | 21-Jun-2006 |
yamt | sync with head.
|
1.5.12.1 | 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.5.10.1 | 19-Apr-2006 |
elad | sync with head.
|
1.5.8.1 | 01-Apr-2006 |
yamt | sync with head.
|
1.5.6.1 | 22-Apr-2006 |
simonb | Sync with head.
|
1.5.4.1 | 09-Sep-2006 |
rpaulo | sync with head
|
1.6.8.1 | 01-Feb-2007 |
ad | Sync with head.
|
1.8.2.1 | 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.9.4.1 | 11-Jul-2007 |
mjf | Sync with head.
|
1.9.2.2 | 19-Aug-2007 |
ad | - Back out the biodone() changes. - Eliminate B_ERROR (from HEAD).
|
1.9.2.1 | 01-Jul-2007 |
ad | Adapt to callout API change.
|
1.10.2.1 | 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.11.22.2 | 29-Jul-2007 |
ad | It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request.
|
1.11.22.1 | 29-Jul-2007 |
ad | file mt.c was added on branch matt-mips64 on 2007-07-29 12:15:44 +0000
|
1.11.18.1 | 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.11.14.1 | 02-Jan-2008 |
ad | Buffer cache locking changes.
|
1.11.12.1 | 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.11.6.1 | 09-Jan-2008 |
matt | sync with HEAD
|
1.12.6.3 | 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.12.6.2 | 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.12.6.1 | 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.13.4.6 | 11-Mar-2010 |
yamt | sync with head
|
1.13.4.5 | 16-Sep-2009 |
yamt | sync with head
|
1.13.4.4 | 20-Jun-2009 |
yamt | sync with head
|
1.13.4.3 | 16-May-2009 |
yamt | sync with head
|
1.13.4.2 | 04-May-2009 |
yamt | sync with head.
|
1.13.4.1 | 16-May-2008 |
yamt | sync with head.
|
1.13.2.2 | 17-Jun-2008 |
yamt | sync with head.
|
1.13.2.1 | 18-May-2008 |
yamt | sync with head.
|
1.14.4.1 | 18-Jun-2008 |
simonb | Sync with head.
|
1.14.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.15.4.2 | 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.15.4.1 | 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.16.2.2 | 23-Jul-2009 |
jym | Sync with HEAD.
|
1.16.2.1 | 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.23.8.1 | 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.23.6.1 | 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.23.4.1 | 05-Mar-2011 |
rmind | sync with head
|
1.24.14.3 | 03-Dec-2017 |
jdolecek | update from HEAD
|
1.24.14.2 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.24.14.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.24.4.2 | 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.24.4.1 | 30-Oct-2012 |
yamt | sync with head
|
1.25.2.1 | 18-May-2014 |
rmind | sync with head
|
1.27.2.1 | 10-Aug-2014 |
tls | Rebase.
|
1.29.4.1 | 05-Oct-2016 |
skrll | Sync with HEAD
|
1.30.10.1 | 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #1439):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.31.4.3 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.31.4.2 | 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.31.4.1 | 10-Jun-2019 |
christos | Sync with HEAD
|
1.32.4.1 | 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #425):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.7 | 19-Aug-2023 |
andvar | fix typos in documented error codes.
|
1.6 | 05-Dec-2021 |
msaitoh | s/corect/correct/ in comment.
|
1.5 | 28-May-2019 |
msaitoh | s/recieve/receive/
|
1.4 | 11-Dec-2005 |
christos | branches: 1.4.164; merge ktrace-lwp.
|
1.3 | 27-Feb-2005 |
perry | nuke trailing whitespace
|
1.2 | 24-Feb-2004 |
wiz | branches: 1.2.8; 1.2.10; occured -> occurred. From Peter Postma.
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; Port hp300 driver for magnetic tapes to MI gpib framework.
|
1.1.2.4 | 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.1.2.3 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.2 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.1.2.1 | 03-Aug-2004 |
skrll | Sync with HEAD
|
1.2.10.1 | 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.2.8.1 | 29-Apr-2005 |
kent | sync with -current
|
1.4.164.1 | 10-Jun-2019 |
christos | Sync with HEAD
|
1.25 | 12-Nov-2019 |
msaitoh | Add missing initialization of sc_dev.
|
1.24 | 03-Sep-2018 |
riastradh | branches: 1.24.4; Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these may invite multiple evaluation bugs, these do _not_ cause integer truncation.
To avoid `fixing' these cases, I first changed the name in libkern, and then compile-tested every file where min/max occurred in order to confirm that it failed -- and thus confirm that nothing shadowed min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax acorn32/if_ie.c (not included in any kernels) macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of doing things fails safe, and the goal here, after all, is to _avoid_ silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that never silently truncate. But we should avoid doing that for a while, so that existing code has a chance to be detected by the compiler for conversion to uimin/uimax without changing the semantics until we can properly audit it all. (Who knows, maybe in some cases integer truncation is actually intended!)
|
1.23 | 28-Oct-2017 |
riastradh | branches: 1.23.2; 1.23.4; Kill some more extern struct cfdriver declarations.
Down with externs in .c!
|
1.22 | 25-Jul-2014 |
dholland | branches: 1.22.20; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.21 | 16-Mar-2014 |
dholland | branches: 1.21.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.20 | 27-Oct-2012 |
chs | branches: 1.20.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.19 | 12-Sep-2009 |
tsutsui | branches: 1.19.12; 1.19.22; Fix warnings of printf(9) format.
|
1.18 | 12-Sep-2009 |
tsutsui | Add a missing parentheses. PR kern/41859
|
1.17 | 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.16 | 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.15 | 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.14 | 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.13 | 12-Jun-2008 |
cegger | branches: 1.13.4; 1.13.10; - use device_lookup to get device_t - use device_lookup_private to get softc - ansify
|
1.12 | 28-Apr-2008 |
martin | branches: 1.12.2; 1.12.4; Remove clause 3 and 4 from TNF licenses
|
1.11 | 08-Apr-2008 |
cegger | branches: 1.11.2; 1.11.4; use aprint_*_dev and device_xname
|
1.10 | 09-Jul-2007 |
ad | branches: 1.10.28; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.9 | 04-Mar-2007 |
christos | branches: 1.9.2; 1.9.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.8 | 16-Feb-2007 |
ad | branches: 1.8.2; Fix spllowersoftclock() fallout.
|
1.7 | 13-Jan-2007 |
cube | Complete initializers, teach drivers that we moved from struct proc to struct lwp, sprinkle some needed const qualifiers.
|
1.6 | 29-Mar-2006 |
thorpej | branches: 1.6.8; Use device_private().
|
1.5 | 28-Mar-2006 |
thorpej | Use device_unit().
|
1.4 | 11-Dec-2005 |
christos | branches: 1.4.4; 1.4.6; 1.4.8; 1.4.10; 1.4.12; merge ktrace-lwp.
|
1.3 | 27-Feb-2005 |
perry | branches: 1.3.4; nuke trailing whitespace
|
1.2 | 07-Aug-2003 |
agc | branches: 1.2.8; 1.2.10; Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; Port the hp300 ppi driver to the MI gpib framework.
|
1.1.2.4 | 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.1.2.3 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.2 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.1.2.1 | 03-Aug-2004 |
skrll | Sync with HEAD
|
1.2.10.1 | 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.2.8.1 | 29-Apr-2005 |
kent | sync with -current
|
1.3.4.3 | 03-Sep-2007 |
yamt | sync with head.
|
1.3.4.2 | 26-Feb-2007 |
yamt | sync with head.
|
1.3.4.1 | 21-Jun-2006 |
yamt | sync with head.
|
1.4.12.1 | 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.4.10.1 | 19-Apr-2006 |
elad | sync with head.
|
1.4.8.1 | 01-Apr-2006 |
yamt | sync with head.
|
1.4.6.1 | 22-Apr-2006 |
simonb | Sync with head.
|
1.4.4.1 | 09-Sep-2006 |
rpaulo | sync with head
|
1.6.8.1 | 01-Feb-2007 |
ad | Sync with head.
|
1.8.2.1 | 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.9.4.1 | 11-Jul-2007 |
mjf | Sync with head.
|
1.9.2.1 | 01-Jul-2007 |
ad | Adapt to callout API change.
|
1.10.28.2 | 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.10.28.1 | 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.11.4.4 | 16-Sep-2009 |
yamt | sync with head
|
1.11.4.3 | 16-May-2009 |
yamt | sync with head
|
1.11.4.2 | 04-May-2009 |
yamt | sync with head.
|
1.11.4.1 | 16-May-2008 |
yamt | sync with head.
|
1.11.2.2 | 17-Jun-2008 |
yamt | sync with head.
|
1.11.2.1 | 18-May-2008 |
yamt | sync with head.
|
1.12.4.1 | 18-Jun-2008 |
simonb | Sync with head.
|
1.12.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.13.10.1 | 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.13.4.1 | 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.19.22.3 | 03-Dec-2017 |
jdolecek | update from HEAD
|
1.19.22.2 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.19.22.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.19.12.2 | 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.19.12.1 | 30-Oct-2012 |
yamt | sync with head
|
1.20.2.1 | 18-May-2014 |
rmind | sync with head
|
1.21.2.1 | 10-Aug-2014 |
tls | Rebase.
|
1.22.20.1 | 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #1439):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.23.4.2 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.23.4.1 | 10-Jun-2019 |
christos | Sync with HEAD
|
1.23.2.1 | 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.24.4.1 | 14-Nov-2019 |
martin | Pull up following revision(s) (requested by msaitoh in ticket #425):
sys/dev/sbus/sio16.c: revision 1.25 sys/dev/gpib/mt.c: revision 1.33 sys/arch/mvme68k/dev/wdsc.c: revision 1.33 sys/dev/gpib/ct.c: revision 1.31 sys/dev/isa/mcd.c: revision 1.119 sys/dev/pci/if_stge.c: revision 1.73 sys/dev/gpib/ppi.c: revision 1.25 sys/dev/pcmcia/if_tr_pcmcia.c: revision 1.29 sys/arch/amiga/dev/zssc.c: revision 1.46 sys/arch/mac68k/obio/iwm_fd.c: revision 1.57 sys/arch/amiga/dev/if_qn.c: revision 1.48 sys/dev/isa/tcic2_isa.c: revision 1.28 sys/dev/isa/uha_isa.c: revision 1.42 sys/dev/pci/neo.c: revision 1.55 sys/arch/next68k/dev/nextdisplay.c: revision 1.22 sys/dev/isa/if_iy.c: revision 1.111
Add missing initialization of sc_dev.
Initialize sc_dev correctly to avoid null pointer dereference when bus_space_map() failed.
Add missing initialization of sc_dev.
|
1.3 | 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.2 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; Port the hp300 ppi driver to the MI gpib framework.
|
1.1.2.3 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.2 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.1.2.1 | 03-Aug-2004 |
skrll | Sync with HEAD
|
1.45 | 12-Feb-2023 |
andvar | fix various typos in comments.
|
1.44 | 31-Jul-2021 |
andvar | s/threshhold/threshold
|
1.43 | 29-Sep-2020 |
msaitoh | branches: 1.43.6; s/parition/partition/
|
1.42 | 28-Oct-2017 |
riastradh | Kill some more extern struct cfdriver declarations.
Down with externs in .c!
|
1.41 | 11-Jul-2016 |
msaitoh | KNF. No functional change.
|
1.40 | 13-Apr-2015 |
riastradh | Convert sys/dev to use <sys/rndsource.h>.
|
1.39 | 02-Jan-2015 |
christos | We have three sets of DTYPE_ constants in the kernel: altq Drop Type disklabel Disk Type file Descriptor Type (not to mention constants that contain the string DTYPE). Let's make them two, by changing the disklabel one to be DisK TYPE since the other disklabel constants seem to do that. Not many userland programs use these constants (and the ones that they do are mostly in ifdefs). They will be fixed shortly.
|
1.38 | 31-Dec-2014 |
christos | fix typo
|
1.37 | 31-Dec-2014 |
christos | make more drivers use disk_ioctl, and add a dev parameter to it so that we can merge the "easy" disklabel ioctls to it. Ultimately all this will go do dk_ioctl once all the drivers have been converted.
|
1.36 | 10-Aug-2014 |
tls | branches: 1.36.4; Merge tls-earlyentropy branch into HEAD.
|
1.35 | 25-Jul-2014 |
dholland | Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.34 | 25-Jul-2014 |
dholland | Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld, raidframe, maybe cgd) should be implemented for real.
|
1.33 | 23-Mar-2014 |
christos | branches: 1.33.2; remove unused
|
1.32 | 16-Mar-2014 |
dholland | 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.31 | 27-Oct-2012 |
chs | branches: 1.31.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.30 | 02-Feb-2012 |
tls | branches: 1.30.6; Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code to sys/kern from sys/dev.
2) Remove use of NRND as test for presence of entropy-pool code throughout source tree.
3) Remove use of RND_ENABLED in device drivers as microoptimization to avoid expensive operations on disabled entropy sources; make the rnd_add calls do this directly so all callers benefit.
4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might have lead to slight entropy overestimation for some sources.
5) Add new source types for environmental sensors, power sensors, VM system events, and skew between clocks, with a sample implementation for each.
ok releng to go in before the branch due to the difficulty of later pullup (widespread #ifdef removal and moved files). Tested with release builds on amd64 and evbarm and live testing on amd64.
|
1.29 | 19-Nov-2011 |
tls | branches: 1.29.2; First step of random number subsystem rework described in <20111022023242.BA26F14A158@mail.netbsd.org>. This change includes the following:
An initial cleanup and minor reorganization of the entropy pool code in sys/dev/rnd.c and sys/dev/rndpool.c. Several bugs are fixed. Some effort is made to accumulate entropy more quickly at boot time.
A generic interface, "rndsink", is added, for stream generators to request that they be re-keyed with good quality entropy from the pool as soon as it is available.
The arc4random()/arc4randbytes() implementation in libkern is adjusted to use the rndsink interface for rekeying, which helps address the problem of low-quality keys at boot time.
An implementation of the FIPS 140-2 statistical tests for random number generator quality is provided (libkern/rngtest.c). This is based on Greg Rose's implementation from Qualcomm.
A new random stream generator, nist_ctr_drbg, is provided. It is based on an implementation of the NIST SP800-90 CTR_DRBG by Henric Jungheim. This generator users AES in a modified counter mode to generate a backtracking-resistant random stream.
An abstraction layer, "cprng", is provided for in-kernel consumers of randomness. The arc4random/arc4randbytes API is deprecated for in-kernel use. It is replaced by "cprng_strong". The current cprng_fast implementation wraps the existing arc4random implementation. The current cprng_strong implementation wraps the new CTR_DRBG implementation. Both interfaces are rekeyed from the entropy pool automatically at intervals justifiable from best current cryptographic practice.
In some quick tests, cprng_fast() is about the same speed as the old arc4randbytes(), and cprng_strong() is about 20% faster than rnd_extract_data(). Performance is expected to improve.
The AES code in src/crypto/rijndael is no longer an optional kernel component, as it is required by cprng_strong, which is not an optional kernel component.
The entropy pool output is subjected to the rngtest tests at startup time; if it fails, the system will reboot. There is approximately a 3/10000 chance of a false positive from these tests. Entropy pool _input_ from hardware random numbers is subjected to the rngtest tests at attach time, as well as the FIPS continuous-output test, to detect bad or stuck hardware RNGs; if any are detected, they are detached, but the system continues to run.
A problem with rndctl(8) is fixed -- datastructures with pointers in arrays are no longer passed to userspace (this was not a security problem, but rather a major issue for compat32). A new kernel will require a new rndctl.
The sysctl kern.arandom() and kern.urandom() nodes are hooked up to the new generators, but the /dev/*random pseudodevices are not, yet.
Manual pages for the new kernel interfaces are forthcoming.
|
1.28 | 08-Feb-2011 |
rmind | branches: 1.28.4; Remove clause 3 (UCB advertising clause) from the University of Utah copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks! Also, merge UCB and Utah copyright texts back into one, as they originally were.
Extra verification by snj@.
|
1.27 | 12-Sep-2009 |
tsutsui | branches: 1.27.4; 1.27.6; 1.27.8; - fix warnings of printf(9) format and void pointer arithmetic - use DTYPE_HPIB for now instead of nonexistent DTYPE_GPIB
|
1.26 | 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.25 | 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
1.24 | 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.23 | 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
1.22 | 13-Jan-2009 |
yamt | branches: 1.22.2; g/c BUFQ_FOO() macros and use bufq_foo() directly.
|
1.21 | 11-Jun-2008 |
cegger | branches: 1.21.4; - use device_lookup_private to get softc - ansify
|
1.20 | 28-Apr-2008 |
martin | branches: 1.20.2; 1.20.4; Remove clause 3 and 4 from TNF licenses
|
1.19 | 08-Apr-2008 |
cegger | branches: 1.19.2; 1.19.4; use aprint_*_dev and device_xname
|
1.18 | 08-Oct-2007 |
ad | branches: 1.18.18; Merge disk init changes from the vmlocking branch. These seperate init / destroy of 'struct disk' from attach / detach.
|
1.17 | 29-Jul-2007 |
ad | branches: 1.17.4; 1.17.6; 1.17.8; 1.17.10; It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request.
|
1.16 | 09-Jul-2007 |
ad | branches: 1.16.2; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.15 | 04-Mar-2007 |
christos | branches: 1.15.2; 1.15.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.14 | 13-Jan-2007 |
cube | branches: 1.14.2; Complete initializers, teach drivers that we moved from struct proc to struct lwp, sprinkle some needed const qualifiers.
|
1.13 | 14-May-2006 |
elad | branches: 1.13.8; integrate kauth.
|
1.12 | 14-Apr-2006 |
blymn | Make i/o statistics collection more generic, include tape drives and nfs mounts in the set of devices that statistics will be reported on.
|
1.11 | 29-Mar-2006 |
thorpej | Use device_private().
|
1.10 | 28-Mar-2006 |
thorpej | Use device_unit().
|
1.9 | 25-Mar-2006 |
thorpej | Use device_parent().
|
1.8 | 25-Feb-2006 |
wiz | branches: 1.8.2; 1.8.4; 1.8.6; Fix some typos.
|
1.7 | 11-Dec-2005 |
christos | branches: 1.7.2; 1.7.4; 1.7.6; merge ktrace-lwp.
|
1.6 | 15-Oct-2005 |
yamt | - change the way to specify a bufq strategy. (by string rather than by number) - rather than embedding bufq_state in driver softc, have a pointer to the former. - move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c. - rename method to strategy for consistency. - move some definitions which don't need to be exposed to the rest of kernel from sys/bufq.h to sys/bufq_impl.h. (is it better to move it to kern/ or somewhere?) - fix some obvious breakage in dev/qbus/ts.c. (not tested)
|
1.5 | 27-Feb-2005 |
perry | branches: 1.5.4; nuke trailing whitespace
|
1.4 | 28-Oct-2004 |
yamt | branches: 1.4.4; 1.4.6; move buffer queue related stuffs from buf.h to their own header, bufq.h.
|
1.3 | 28-Aug-2004 |
thorpej | Remove the last vestiges of COMPAT_NOLABEL. It's been 10 years; label your disks already.
|
1.2 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; Port hp300 driver for HPIB/GPIB disks to MI gpib framework.
|
1.1.2.7 | 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.1.2.6 | 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.1.2.5 | 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.1.2.4 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.3 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.1.2.2 | 03-Sep-2004 |
skrll | Sync with HEAD
|
1.1.2.1 | 03-Aug-2004 |
skrll | Sync with HEAD
|
1.4.6.1 | 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.4.4.1 | 29-Apr-2005 |
kent | sync with -current
|
1.5.4.4 | 27-Oct-2007 |
yamt | sync with head.
|
1.5.4.3 | 03-Sep-2007 |
yamt | sync with head.
|
1.5.4.2 | 26-Feb-2007 |
yamt | sync with head.
|
1.5.4.1 | 21-Jun-2006 |
yamt | sync with head.
|
1.7.6.1 | 22-Apr-2006 |
simonb | Sync with head.
|
1.7.4.1 | 09-Sep-2006 |
rpaulo | sync with head
|
1.7.2.1 | 01-Mar-2006 |
yamt | sync with head.
|
1.8.6.3 | 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.8.6.2 | 31-Mar-2006 |
tron | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
|
1.8.6.1 | 28-Mar-2006 |
tron | Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
|
1.8.4.1 | 19-Apr-2006 |
elad | sync with head.
|
1.8.2.2 | 24-May-2006 |
yamt | sync with head.
|
1.8.2.1 | 01-Apr-2006 |
yamt | sync with head.
|
1.13.8.1 | 01-Feb-2007 |
ad | Sync with head.
|
1.14.2.1 | 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.15.4.1 | 11-Jul-2007 |
mjf | Sync with head.
|
1.15.2.3 | 20-Aug-2007 |
ad | - Alter disk attach/detach to fix a panic when closing a vnd device. - Sync with HEAD.
|
1.15.2.2 | 19-Aug-2007 |
ad | - Back out the biodone() changes. - Eliminate B_ERROR (from HEAD).
|
1.15.2.1 | 01-Jul-2007 |
ad | Adapt to callout API change.
|
1.16.2.1 | 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.17.10.2 | 29-Jul-2007 |
ad | It's not a good idea for device drivers to modify b_flags, as they don't need to understand the locking around that field. Instead of setting B_ERROR, set b_error instead. b_error is 'owned' by whoever completes the I/O request.
|
1.17.10.1 | 29-Jul-2007 |
ad | file rd.c was added on branch matt-mips64 on 2007-07-29 12:15:44 +0000
|
1.17.8.1 | 14-Oct-2007 |
yamt | sync with head.
|
1.17.6.1 | 06-Nov-2007 |
matt | sync with HEAD
|
1.17.4.1 | 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.18.18.3 | 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.18.18.2 | 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.18.18.1 | 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.19.4.4 | 16-Sep-2009 |
yamt | sync with head
|
1.19.4.3 | 16-May-2009 |
yamt | sync with head
|
1.19.4.2 | 04-May-2009 |
yamt | sync with head.
|
1.19.4.1 | 16-May-2008 |
yamt | sync with head.
|
1.19.2.2 | 17-Jun-2008 |
yamt | sync with head.
|
1.19.2.1 | 18-May-2008 |
yamt | sync with head.
|
1.20.4.1 | 18-Jun-2008 |
simonb | Sync with head.
|
1.20.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.21.4.2 | 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.21.4.1 | 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.22.2.1 | 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.27.8.1 | 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.27.6.1 | 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.27.4.1 | 05-Mar-2011 |
rmind | sync with head
|
1.28.4.3 | 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.28.4.2 | 30-Oct-2012 |
yamt | sync with head
|
1.28.4.1 | 17-Apr-2012 |
yamt | sync with head
|
1.29.2.1 | 18-Feb-2012 |
mrg | merge to -current.
|
1.30.6.4 | 03-Dec-2017 |
jdolecek | update from HEAD
|
1.30.6.3 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.30.6.2 | 02-Dec-2012 |
tls | Don't pass NULL struct dkdriver to disk_init. That's seriously bogus.
|
1.30.6.1 | 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.31.2.1 | 18-May-2014 |
rmind | sync with head
|
1.33.2.2 | 10-Aug-2014 |
tls | Rebase.
|
1.33.2.1 | 07-Apr-2014 |
tls | Be a little more clear and consistent about harvesting entropy from devices:
1) deprecate RND_FLAG_NO_ESTIMATE
2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE
3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE
4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME| RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME
5) Make entropy harvesting from environmental sensors a little more generic and remove it from individual sensor drivers.
6) Remove individual open-coded delta-estimators for values from a few places in the tree (uvm, environmental drivers).
7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers that had stubbed out code, other minor cleanups.
|
1.36.4.3 | 05-Oct-2016 |
skrll | Sync with HEAD
|
1.36.4.2 | 06-Jun-2015 |
skrll | Sync with HEAD
|
1.36.4.1 | 06-Apr-2015 |
skrll | Sync with HEAD
|
1.43.6.1 | 01-Aug-2021 |
thorpej | Sync with HEAD.
|
1.7 | 10-Feb-2024 |
andvar | s/indicies/indices/ in comments.
|
1.6 | 08-Feb-2011 |
rmind | Remove clause 3 (UCB advertising clause) from the University of Utah copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks! Also, merge UCB and Utah copyright texts back into one, as they originally were.
Extra verification by snj@.
|
1.5 | 25-Dec-2007 |
perry | branches: 1.5.32; 1.5.38; 1.5.40; Convert many of the uses of __attribute__ to equivalent __packed, __unused and __dead macros from cdefs.h
|
1.4 | 11-Dec-2005 |
christos | branches: 1.4.46; 1.4.52; 1.4.56; 1.4.60; merge ktrace-lwp.
|
1.3 | 02-Nov-2003 |
wiz | branches: 1.3.16; boundary, not boundry. Inspired by Tom Cosgrove.
|
1.2 | 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.1 | 02-Jun-2003 |
gmcgarry | branches: 1.1.2; Port hp300 driver for HPIB/GPIB disks to MI gpib framework.
|
1.1.2.3 | 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.1.2.2 | 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.1.2.1 | 03-Aug-2004 |
skrll | Sync with HEAD
|
1.3.16.1 | 21-Jan-2008 |
yamt | sync with head
|
1.4.60.1 | 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.4.56.1 | 26-Dec-2007 |
ad | Sync with head.
|
1.4.52.1 | 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.4.46.1 | 09-Jan-2008 |
matt | sync with HEAD
|
1.5.40.1 | 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.5.38.1 | 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.5.32.1 | 05-Mar-2011 |
rmind | sync with head
|