Home | History | Annotate | Download | only in gpib
History log of /src/sys/dev/gpib/mt.c
RevisionDateAuthorComments
 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.

RSS XML Feed