The NetBSD Project

CVS log for src/sys/dev/scsipi/ss.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / scsipi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.91 / (download) - annotate - [select for diffs], Wed Feb 23 21:54:41 2022 UTC (11 months, 2 weeks ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

fix various typos in comments, mainly immediatly/immediately/,
as well shared and recently fixed typos in OpenBSD code by Jonathan Grey.

Revision 1.90 / (download) - annotate - [select for diffs], Tue Sep 29 02:58:52 2020 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

s/occurence/occurrence/

Revision 1.84.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:32 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.84.2.2: +22 -17 lines
Diff to previous 1.84.2.2 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored)

update from HEAD

Revision 1.86.4.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:27 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.86.4.1: +3 -3 lines
Diff to previous 1.86.4.1 (colored) to branchpoint 1.86 (colored) next main 1.87 (colored)

Sync with HEAD

Revision 1.88.8.1 / (download) - annotate - [select for diffs], Wed Jun 21 18:18:55 2017 UTC (5 years, 7 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #53):
	sys/dev/scsipi/atapiconf.c: revision 1.91
	sys/dev/scsipi/cd.c: revision 1.341
	sys/dev/scsipi/scsi_base.c: revision 1.92
	sys/dev/scsipi/scsiconf.c: revision 1.280
	sys/dev/scsipi/scsipi_base.c: revisions 1.176, 1.177
	sys/dev/scsipi/sd.c: revision 1.325
	sys/dev/scsipi/ss.c: revision 1.89
	sys/dev/scsipi/st.c: revision 1.231
The atapibus detach path did hold the channel mutex while calling into autoconf,
which would trigger a panic when unplugging a USB ATAPI CDROM.
Align detach code for scsibus and atapibus to fix this.
Also avoid races when detaching devices by replacing callout_stop with
callout_halt.
--
pass config_detach error to caller.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Jun 17 22:35:50 2017 UTC (5 years, 7 months ago) by mlelstv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, jdolecek-ncqfixes-base, jdolecek-ncqfixes, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

The atapibus detach path did hold the channel mutex while calling into autoconf,
which would trigger a panic when unplugging a USB ATAPI CDROM.

Align detach code for scsibus and atapibus to fix this.

Also avoid races when detaching devices by replacing callout_stop with
callout_halt.

Revision 1.86.8.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:41 2017 UTC (6 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.86: +23 -18 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.86.4.1 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:17 2016 UTC (6 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.86: +23 -18 lines
Diff to previous 1.86 (colored)

Sync with HEAD

Revision 1.88 / (download) - annotate - [select for diffs], Sun Nov 20 15:37:19 2016 UTC (6 years, 2 months ago) by mlelstv
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.87: +21 -16 lines
Diff to previous 1.87 (colored)

Make scsipi framework MPSAFE.

Data structures are now protected by a per-adapter mutex at IPL_BIO
that is created by the scsibus or atapibus instance when the adapter
is configured.
The enable reference counter and the channel freeze counter which are
currently used by HBA code before the adapter is configured, are made
atomic.
The target drivers are now all tagged as D_MPSAFE.

Almost all HBA drivers still require the kernel lock to present,
so all callbacks into HBA code are still protected by kernel lock
unless the driver is tagged as SCSIPI_ADAPT_MPSAFE.

TODO: refactor sd and cd to use dksubr.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Nov 20 02:38:24 2016 UTC (6 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored)

Avoid calling bufq_free() from critical code sections.

Revision 1.84.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:50 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.84.2.1: +14 -4 lines
Diff to previous 1.84.2.1 (colored) to branchpoint 1.84 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:58 2014 UTC (8 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.85: +3 -2 lines
Diff to previous 1.85 (colored) next main 1.86 (colored)

Rebase.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:39 2014 UTC (8 years, 6 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, localcount-20160914
Branch point for: pgoyette-localcount, nick-nhusb
Changes since 1.85: +3 -2 lines
Diff to previous 1.85 (colored)

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.80.12.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:35 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.80.12.1: +13 -4 lines
Diff to previous 1.80.12.1 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored)

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")

Revision 1.84.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:46 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.84: +13 -4 lines
Diff to previous 1.84 (colored) next main 1.85 (colored)

sync with head

Revision 1.85 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:29 2014 UTC (8 years, 10 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.84: +13 -4 lines
Diff to previous 1.84 (colored)

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.

Revision 1.84.2.1 / (download) - annotate - [select for diffs], Wed Sep 12 06:15:33 2012 UTC (10 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.84: +11 -2 lines
Diff to previous 1.84 (colored)

Initial snapshot of work to eliminate 64K MAXPHYS.  Basically works for
physio (I/O to raw devices); needs more doing to get it going with the
filesystems, but it shouldn't damage data.

All work's been done on amd64 so far.  Not hard to add support to other
ports.  If others want to pitch in, one very helpful thing would be to
sort out when and how IDE disks can do 128K or larger transfers, and
adjust the various PCI IDE (or at least ahcisata) drivers and wd.c
accordingly -- it would make testing much easier.  Another very helpful
thing would be to implement a smart minphys() for RAIDframe along the
lines detailed in the MAXPHYS-NOTES file.

Revision 1.80.12.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:02 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.80: +62 -75 lines
Diff to previous 1.80 (colored)

sync with head

Revision 1.80.16.3 / (download) - annotate - [select for diffs], Tue Mar 6 18:26:45 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.80.16.2: +62 -75 lines
Diff to previous 1.80.16.2 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored)

sync to -current

Revision 1.80.16.2 / (download) - annotate - [select for diffs], Tue Mar 6 09:56:21 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.80.16.1: +75 -62 lines
Diff to previous 1.80.16.1 (colored) to branchpoint 1.80 (colored)

sync to -current

Revision 1.80.16.1 / (download) - annotate - [select for diffs], Sun Mar 4 00:46:26 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.80: +62 -75 lines
Diff to previous 1.80 (colored)

sync to latest -current.

Revision 1.80.18.1 / (download) - annotate - [select for diffs], Fri Mar 2 16:34:47 2012 UTC (10 years, 11 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.80: +62 -61 lines
Diff to previous 1.80 (colored) next main 1.81 (colored)

Pull up following revision(s) (requested by mbalmer in ticket #65):
	sys/dev/scsipi/ss_scanjet.c: revision 1.52
	sys/dev/scsipi/ss.c: revision 1.81
	sys/dev/scsipi/ssvar.h: revision 1.19
	sys/dev/scsipi/ss_mustek.c: revision 1.41
Convert to device_t, aka softc/device_t split, and clean up a bit the code.

Revision 1.84 / (download) - annotate - [select for diffs], Tue Feb 28 14:04:19 2012 UTC (10 years, 11 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base4, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.83: +6 -14 lines
Diff to previous 1.83 (colored)

one line comments on one line.

Revision 1.83 / (download) - annotate - [select for diffs], Tue Feb 28 14:01:03 2012 UTC (10 years, 11 months ago) by mbalmer
Branch: MAIN
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

Unbreak the build.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Feb 28 11:59:37 2012 UTC (10 years, 11 months ago) by mbalmer
Branch: MAIN
Changes since 1.81: +4 -10 lines
Diff to previous 1.81 (colored)

Remove a pointless #if 0, compiler will eliminate the code anways.
Noticed by skrll.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Feb 28 11:41:00 2012 UTC (10 years, 11 months ago) by mbalmer
Branch: MAIN
Changes since 1.80: +62 -61 lines
Diff to previous 1.80 (colored)

Convert to device_t, aka softc/device_t split, and clean up a bit the code.

Revision 1.73.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:03 2010 UTC (12 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.73.4.2: +3 -24 lines
Diff to previous 1.73.4.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

sync with head

Revision 1.80 / (download) - annotate - [select for diffs], Sun Dec 6 22:48:17 2009 UTC (13 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, netbsd-6-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base5, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.79: +3 -23 lines
Diff to previous 1.79 (colored)

Delete do-nothing device-activation hooks.

Revision 1.79 / (download) - annotate - [select for diffs], Mon Nov 23 02:13:47 2009 UTC (13 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.78: +2 -3 lines
Diff to previous 1.78 (colored)

Remove some unecessary includes sys/user.h header.

Revision 1.73.4.2 / (download) - annotate - [select for diffs], Sat May 16 10:41:44 2009 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.73.4.1: +10 -10 lines
Diff to previous 1.73.4.1 (colored) to branchpoint 1.73 (colored)

sync with head

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:23 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.76: +10 -10 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.78 / (download) - annotate - [select for diffs], Tue May 12 14:44:31 2009 UTC (13 years, 9 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.77: +10 -10 lines
Diff to previous 1.77 (colored)

struct device * -> device_t, no functional changes intended.

Revision 1.77 / (download) - annotate - [select for diffs], Tue May 12 13:20:33 2009 UTC (13 years, 9 months ago) by cegger
Branch: MAIN
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored)

struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:18 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.73: +12 -14 lines
Diff to previous 1.73 (colored)

sync with head.

Revision 1.74.6.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:03 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.74: +5 -5 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

Sync with HEAD.

Revision 1.72.26.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:08 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.72.26.4: +3 -3 lines
Diff to previous 1.72.26.4 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored)

Sync with HEAD.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Jan 13 13:35:54 2009 UTC (14 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.75: +4 -4 lines
Diff to previous 1.75 (colored)

g/c BUFQ_FOO() macros and use bufq_foo() directly.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Jan 11 10:47:37 2009 UTC (14 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

make this compile

Revision 1.72.26.4 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:10 2008 UTC (14 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.72.26.3: +7 -9 lines
Diff to previous 1.72.26.3 (colored) to branchpoint 1.72 (colored)

Sync with HEAD.

Revision 1.73.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:29 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.73: +9 -11 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Tue Jun 17 09:14:58 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.73: +9 -11 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

sync with head.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Jun 8 18:18:34 2008 UTC (14 years, 8 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.73: +9 -11 lines
Diff to previous 1.73 (colored)

Use device_lookup_private() rather than using cd_devs[] directly to get softc.

XXX maybe we should change a type of cd_devs[] in struct cfdriver
    from (void *) to device_t.

Revision 1.72.26.3 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:51 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.72.26.2: +3 -3 lines
Diff to previous 1.72.26.2 (colored) to branchpoint 1.72 (colored)

Sync with HEAD.

Revision 1.72.26.2 / (download) - annotate - [select for diffs], Sun Apr 6 09:58:51 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.72.26.1: +3 -3 lines
Diff to previous 1.72.26.1 (colored) to branchpoint 1.72 (colored)

- after some discussion with agc@ i agreed it would be a good idea to move
  device_unregister_* to device_deregister_* to be more like the pmf(9)
  functions, especially since a lot of the time the function calls are next
  to each other.

- add device_register_name() support for dk(4).

Revision 1.72.26.1 / (download) - annotate - [select for diffs], Sat Apr 5 23:33:22 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.72: +15 -2 lines
Diff to previous 1.72 (colored)

- add "file-system DEVFS" and "pseudo-device devfsctl" to conf/std seeing
  as these are always needed.

- convert many, many drivers over to the New Devfs World Order. For a
  list of device drivers yet to be converted see,
  http://www.netbsd.org/~mjf/devfs-todo.html.

- add a new device_unregister_all(device_t) function to remove all device
  names associated with a device_t, which saves us having to construct
  device names when the driver is detached.

- add a DEV_AUDIO type for devices.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Apr 5 15:47:01 2008 UTC (14 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

use aprint_*_dev and device_xname

Revision 1.61.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:38:42 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.61.2.2: +5 -9 lines
Diff to previous 1.61.2.2 (colored) next main 1.62 (colored)

sync with head.

Revision 1.70.2.3 / (download) - annotate - [select for diffs], Sun Aug 19 19:24:34 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.70.2.2: +11 -8 lines
Diff to previous 1.70.2.2 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

- Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:44 2007 UTC (15 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.71: +2 -6 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Sync with HEAD.

Revision 1.72.28.2 / (download) - annotate - [select for diffs], Sun Jul 29 12:50:24 2007 UTC (15 years, 6 months ago) by ad
Branch: matt-mips64
Changes since 1.72.28.1: +591 -0 lines
Diff to previous 1.72.28.1 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored)

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.

Revision 1.72.28.1, Sun Jul 29 12:50:23 2007 UTC (15 years, 6 months ago) by ad
Branch: matt-mips64
Changes since 1.72: +0 -591 lines
FILE REMOVED

file ss.c was added on branch matt-mips64 on 2007-07-29 12:50:24 +0000

Revision 1.72 / (download) - annotate - [select for diffs], Sun Jul 29 12:50:23 2007 UTC (15 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1
Branch point for: mjf-devfs2, matt-mips64
Changes since 1.71: +2 -6 lines
Diff to previous 1.71 (colored)

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.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:20 2007 UTC (15 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with head.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jul 9 21:01:22 2007 UTC (15 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.70.2.2 / (download) - annotate - [select for diffs], Sun Jul 1 21:48:59 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.70.2.1: +3 -3 lines
Diff to previous 1.70.2.1 (colored) to branchpoint 1.70 (colored)

Adapt to callout API change.

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Sun May 13 17:36:29 2007 UTC (15 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.70: +8 -15 lines
Diff to previous 1.70 (colored)

- 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.

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:57:10 2007 UTC (15 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Sync with HEAD.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:44 2007 UTC (15 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.61.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:34 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.61.2.1: +5 -4 lines
Diff to previous 1.61.2.1 (colored)

sync with head.

Revision 1.67.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:16 2006 UTC (16 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.67.4.1: +9 -9 lines
Diff to previous 1.67.4.1 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

sync with head.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:49 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.67: +4 -3 lines
Diff to previous 1.67 (colored) next main 1.68 (colored)

Sync with head.

Revision 1.69 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:26 2006 UTC (16 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.68: +9 -9 lines
Diff to previous 1.68 (colored)

__unused removal on arguments; approved by core.

Revision 1.67.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:47 2006 UTC (16 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.67: +10 -9 lines
Diff to previous 1.67 (colored)

sync with head

Revision 1.68 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:57 2006 UTC (16 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.67: +10 -9 lines
Diff to previous 1.67 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:54:25 2006 UTC (16 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.63: +10 -10 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

sync with head

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Sun Sep 3 15:24:49 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.64.2.1: +3 -3 lines
Diff to previous 1.64.2.1 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored)

sync with head.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Sep 3 05:30:48 2006 UTC (16 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

add missing initializer

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:06:47 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.61: +18 -18 lines
Diff to previous 1.61 (colored)

sync with head.

Revision 1.63.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:29 2006 UTC (16 years, 9 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.63: +9 -9 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Sync with head.

Revision 1.64.4.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:26:20 2006 UTC (16 years, 9 months ago) by elad
Branch: elad-kernelauth
Changes since 1.64: +5 -5 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

sync with head.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:28 2006 UTC (16 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.64: +5 -5 lines
Diff to previous 1.64 (colored)

sync with head.

Revision 1.64.6.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:25 2006 UTC (16 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.64: +5 -5 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Mar 30 16:09:28 2006 UTC (16 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored)

Use device_private().

Revision 1.65 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:34 2006 UTC (16 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Use device_unit().

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:28 2006 UTC (16 years, 11 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.63: +6 -6 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

sync with head.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Feb 20 16:50:37 2006 UTC (16 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.63: +6 -6 lines
Diff to previous 1.63 (colored)

Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Dec 11 12:23:51 2005 UTC (17 years, 2 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.62: +6 -6 lines
Diff to previous 1.62 (colored)

merge ktrace-lwp.

Revision 1.49.2.10 / (download) - annotate - [select for diffs], Thu Nov 10 14:07:47 2005 UTC (17 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.49.2.9: +8 -8 lines
Diff to previous 1.49.2.9 (colored) next main 1.50 (colored)

Sync with HEAD. Here we go again...

Revision 1.62 / (download) - annotate - [select for diffs], Sat Oct 15 17:29:25 2005 UTC (17 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.61: +7 -7 lines
Diff to previous 1.61 (colored)

- 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)

Revision 1.61 / (download) - annotate - [select for diffs], Mon May 30 04:25:32 2005 UTC (17 years, 8 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

- remove bogus casts
- add more const

Revision 1.57.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:17 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.57: +3 -9 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

sync with -current

Revision 1.59.4.1 / (download) - annotate - [select for diffs], Wed Apr 6 11:56:31 2005 UTC (17 years, 10 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.59: +3 -9 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

Pull up revision 1.60 (requested by yamt in ticket #112):
introduce a function to drain bufq and use it where appropriate.

Revision 1.49.2.9 / (download) - annotate - [select for diffs], Fri Apr 1 14:30:33 2005 UTC (17 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.49.2.8: +3 -9 lines
Diff to previous 1.49.2.8 (colored)

Sync with HEAD.

Revision 1.60 / (download) - annotate - [select for diffs], Thu Mar 31 11:28:53 2005 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.59: +3 -9 lines
Diff to previous 1.59 (colored)

introduce a function to drain bufq and use it where appropriate.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Feb 1 00:19:34 2005 UTC (18 years ago) by reinoud
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, netbsd-3-base
Branch point for: netbsd-3
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

Backing out changes to clean up scsipi. I was pointed out there were
problems i hadn't seen. To prevent lossage i'd decided to back off all
changes and let them be reviewed on tech-kern.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jan 31 23:06:41 2005 UTC (18 years ago) by reinoud
Branch: MAIN
Changes since 1.57: +4 -4 lines
Diff to previous 1.57 (colored)

Part of the cleanup of sys/scsipi's use of types; rename all u_int* to
uint* and change the u_long's to uint32_t's where possible. Note that the
iocl definitions/hooks have to be ulong (or u_long) or they'll bomb out.

Revision 1.49.2.8 / (download) - annotate - [select for diffs], Tue Nov 2 07:52:46 2004 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.49.2.7: +3 -2 lines
Diff to previous 1.49.2.7 (colored)

Sync with HEAD.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Oct 28 07:07:45 2004 UTC (18 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base, yamt-km, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: kent-audio2
Changes since 1.56: +3 -2 lines
Diff to previous 1.56 (colored)

move buffer queue related stuffs from buf.h to their own header, bufq.h.

Revision 1.49.2.7 / (download) - annotate - [select for diffs], Tue Oct 19 15:57:31 2004 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.49.2.6: +3 -3 lines
Diff to previous 1.49.2.6 (colored)

Sync with HEAD

Revision 1.56 / (download) - annotate - [select for diffs], Sun Oct 17 17:49:04 2004 UTC (18 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

Adjust some debug printfs after b_bcount was changed from long to int.
From Patrick Welche on current-users@

Revision 1.49.2.6 / (download) - annotate - [select for diffs], Tue Sep 21 13:33:25 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.49.2.5: +6 -6 lines
Diff to previous 1.49.2.5 (colored)

Fix the sync with head I botched.

Revision 1.49.2.5 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:25 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.49.2.4: +22 -7 lines
Diff to previous 1.49.2.4 (colored)

Sync with HEAD.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Sep 17 23:13:02 2004 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.54: +3 -8 lines
Diff to previous 1.54 (colored)

Oops; fix ssrestart().

Revision 1.54 / (download) - annotate - [select for diffs], Fri Sep 17 23:10:52 2004 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.53: +24 -4 lines
Diff to previous 1.53 (colored)

Do not manipulate xs->bp in "generic" code -- do it only in the psw_done
routine.  As part of this, pass down our pre-parsed error code -- though this
interface will probably change later to accomodate better error handling.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Sat Sep 11 12:56:41 2004 UTC (18 years, 5 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.51: +17 -3 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Pull up revision 1.53 (via patch, requested by bouyer in ticket #837):
  Improve handling of memory shortage, to fix problems like:
    sd3(mpt0:0:1:0): unable to allocate scsipi_xfer
    sd3: not queued, error 12
  The theory is that other consumers of pool memory is causing
  this memory shortage in certain somewhat hard to reproduce
  situations.
  This is done by giving scsipi_command an extra argument to
  optionally pass a preallocated scsipi_xfer, and allocating a
  scsipi_xfer before dequeueing a buffer in the various *start()
  functions.  If the allocation of a scsipi_xfer fails, schedule
  a callout for delayed invocation of the start function.  Also
  reserve one page for scsipi_xfer structs, to ensure that we will
  eventually have some available once pending commands complete.
  Should fix PR#25670.

Revision 1.49.2.4 / (download) - annotate - [select for diffs], Fri Sep 3 12:45:39 2004 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.49.2.3: +17 -3 lines
Diff to previous 1.49.2.3 (colored)

Sync with HEAD

Revision 1.53 / (download) - annotate - [select for diffs], Fri Aug 27 20:37:29 2004 UTC (18 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.52: +17 -3 lines
Diff to previous 1.52 (colored)

Improve handling of memory shortage, to fix problems like:
sd3(mpt0:0:1:0): unable to allocate scsipi_xfer
sd3: not queued, error 12
Havard Eidnes's analysis of this problem is that the scsipi_xfer pool is
competing for resources with other pools, including the the inode and vnode
pools which can grow quite large.

*_scsipi_cmd(): don't biodone the buffer if scsipi_make_xs() fails, let the
   caller deal with the problem
start function of block devices drivers: dequeue the buffer after the
   scsipi_command() call. If scsipi_command() fails with ENOMEM don't dequeue
   the buffer, and schedule a callout to call the start function after
   some delay.
scsipi_init(): prime the scsipi_xfer_pool with one page. This ensure that
   there is always some scsipi_xfer to play with. If scsipi_command() fails
   because of pool_get(), we're sure there will be resources available later,
   when the pending commands have completed.

Reviewed by Jason Thorpe and Havard Eidnes.
Todo: remove the "unable to allocate scsipi_xfer" and "not queued, error %d"
printfs, but I choose to keep them for now, to help make sure the code does
what it should.

Revision 1.49.2.3 / (download) - annotate - [select for diffs], Wed Aug 25 06:58:43 2004 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.49.2.2: +29 -39 lines
Diff to previous 1.49.2.2 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Aug 21 22:02:31 2004 UTC (18 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.51: +29 -39 lines
Diff to previous 1.51 (colored)

Use ANSI function decls and make use of static.

Revision 1.49.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:15 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.49.2.1: +4 -4 lines
Diff to previous 1.49.2.1 (colored)

Sync with HEAD

Revision 1.51 / (download) - annotate - [select for diffs], Sun Mar 14 00:17:37 2004 UTC (18 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Use scsipi_adapter_minphys().

Revision 1.50 / (download) - annotate - [select for diffs], Mon Sep 8 01:27:10 2003 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

Use the const shaker.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:19 2003 UTC (19 years, 7 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.49: +7 -7 lines
Diff to previous 1.49 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:44 2003 UTC (19 years, 7 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.48: +5 -5 lines
Diff to previous 1.48 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:44 2003 UTC (19 years, 7 months ago) by darrenr
Branch: MAIN
Changes since 1.47: +7 -7 lines
Diff to previous 1.47 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.47 / (download) - annotate - [select for diffs], Thu Mar 20 05:49:22 2003 UTC (19 years, 10 months ago) by dbj
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

use PRId64 to printf bp->b_blkno, which is of type daddr_t

Revision 1.46 / (download) - annotate - [select for diffs], Tue Jan 21 00:24:20 2003 UTC (20 years ago) by simonb
Branch: MAIN
Changes since 1.45: +2 -3 lines
Diff to previous 1.45 (colored)

Remove a line of unreachable code.  It seems to be a remnant of starting
off with a different driver, and the way this code is structured the
offending line isn't needed.

Revision 1.33.2.8 / (download) - annotate - [select for diffs], Mon Nov 11 22:12:26 2002 UTC (20 years, 3 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.33.2.7: +1 -1 lines
Diff to previous 1.33.2.7 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Catch up to -current

Revision 1.45 / (download) - annotate - [select for diffs], Wed Oct 23 09:13:50 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.33.2.7 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:21 2002 UTC (20 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.6: +2 -3 lines
Diff to previous 1.33.2.6 (colored) to branchpoint 1.33 (colored)

Catch up to -current.

Revision 1.35.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:19 2002 UTC (20 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.35.2.3: +20 -9 lines
Diff to previous 1.35.2.3 (colored) next main 1.36 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.44 / (download) - annotate - [select for diffs], Wed Oct 2 16:52:55 2002 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Sep 30 23:12:52 2002 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +4 -5 lines
Diff to previous 1.42 (colored)

Use CFATTACH_DECL().

Revision 1.42 / (download) - annotate - [select for diffs], Fri Sep 27 20:41:49 2002 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Declare all cfattach structures const.

Revision 1.33.2.6 / (download) - annotate - [select for diffs], Tue Sep 17 21:21:19 2002 UTC (20 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.5: +16 -4 lines
Diff to previous 1.33.2.5 (colored) to branchpoint 1.33 (colored)

Catch up to -current.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Sep 14 21:41:24 2002 UTC (20 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.40: +7 -3 lines
Diff to previous 1.40 (colored)

recognize HP ScanJet 4c.
add a catch-all case for other HP scanners.
remove a local version of atoi() in favor of strtoul() from libkern.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (20 years, 5 months ago) by gehenna
Branch: MAIN
Changes since 1.39: +13 -5 lines
Diff to previous 1.39 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.35.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:46:27 2002 UTC (20 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.35.2.2: +12 -11 lines
Diff to previous 1.35.2.2 (colored)

sync kqueue branch with HEAD

Revision 1.38.8.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:55 2002 UTC (20 years, 5 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.38.8.1: +12 -11 lines
Diff to previous 1.38.8.1 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

catch up with -current.

Revision 1.33.2.5 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:46 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.4: +12 -11 lines
Diff to previous 1.33.2.4 (colored) to branchpoint 1.33 (colored)

Catch up to -current.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jul 22 14:59:44 2002 UTC (20 years, 6 months ago) by hannken
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.38: +12 -11 lines
Diff to previous 1.38 (colored)

Convert to new device buffer queue interface.

Revision 1.38.8.1 / (download) - annotate - [select for diffs], Thu May 16 11:41:21 2002 UTC (20 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.38: +13 -5 lines
Diff to previous 1.38 (colored)

Add the character device switch.
Replace the direct-access to devsw table with calling devsw API.

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:58:27 2002 UTC (21 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.35.2.1: +4 -2 lines
Diff to previous 1.35.2.1 (colored)

Sync kqueue branch with -current.

Revision 1.33.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:31:55 2002 UTC (21 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.3: +2 -3 lines
Diff to previous 1.33.2.3 (colored) to branchpoint 1.33 (colored)

Catch up to -current.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Nov 15 09:48:18 2001 UTC (21 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.37: +2 -3 lines
Diff to previous 1.37 (colored)

don't need <sys/types.h> when including <sys/param.h>

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:05 2001 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.2: +4 -1 lines
Diff to previous 1.33.2.2 (colored) to branchpoint 1.33 (colored)

Catch up to -current.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Nov 13 06:56:41 2001 UTC (21 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.36: +4 -1 lines
Diff to previous 1.36 (colored)

add RCSIDs

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:18 2001 UTC (21 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.36.2.1: +28 -14 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

* add a VCLONED vnode flag that indicates a vnode representing a cloned
  device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
  to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
  clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
  to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
  clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
  to the specinfo of a cloned vnode. could possibly redirect getattr to
  the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
  original device, and reassociates it with the specified dev_t. to be
  used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
  to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
  when debugging race conditions that still exist wrt. locking and
  revoking vnodes.
* make the locking state of a vnode consistent when passed to
  d_open and d_close (unlocked). locked would be better, but has
  some deadlock issues

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:32 2001 UTC (21 years, 5 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.36: +21 -17 lines
Diff to previous 1.36 (colored)

Commit my "devvp" changes to the thorpej-devvp branch.  This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:10:55 2001 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.1: +3 -3 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored)

Catch up with -current.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:33 2001 UTC (21 years, 6 months ago) by lukem
Branch: kqueue
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

update to -current

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jul 18 18:25:41 2001 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

bcopy -> memcpy

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jun 26 12:46:56 2001 UTC (21 years, 7 months ago) by bouyer
Branch: MAIN
Branch point for: kqueue
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

Make it compile with SCSIPI_DEBUG

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:03 2001 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33: +45 -39 lines
Diff to previous 1.33 (colored)

Catch up to -current.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Apr 25 17:53:41 2001 UTC (21 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.33: +45 -39 lines
Diff to previous 1.33 (colored)

Pull up the thorpej_scsipi branch to main branch.
This is a completely rewritten scsipi_xfer execution engine, and the
associated changes to HBA drivers. Overview of changes & features:
- All xfers are queued in the mid-layer, rather than doing so in an
  ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
  to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
  peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
  recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
  scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
  (no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
  set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
  the need to use buggy tag ID allocation schemes in many adapter drivers).
- support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command
  will be requeued, or a REQUEST SENSE will be sent as appropriate.

Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge

Revision 1.26.2.6 / (download) - annotate - [select for diffs], Sat Apr 21 19:37:20 2001 UTC (21 years, 9 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.5: +2 -2 lines
Diff to previous 1.26.2.5 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)

Get rid of references to sc_link/scsipi_link in debug or comments.

Revision 1.26.2.5 / (download) - annotate - [select for diffs], Sat Jan 6 16:15:17 2001 UTC (22 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.4: +4 -3 lines
Diff to previous 1.26.2.4 (colored) to branchpoint 1.26 (colored)

Make compile.

Revision 1.26.2.4 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:27 2001 UTC (22 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.3: +92 -26 lines
Diff to previous 1.26.2.3 (colored) to branchpoint 1.26 (colored)

Sync with HEAD

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jan 1 18:34:12 2001 UTC (22 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored)

Call vdevgone() with correct minor range.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jan 1 18:28:49 2001 UTC (22 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.31: +90 -25 lines
Diff to previous 1.31 (colored)

Support device detach.
Don't call scanjet_attach() for all HP scanners.
Also, ANSIfy while I'm here.

Revision 1.26.2.3 / (download) - annotate - [select for diffs], Mon Nov 20 09:59:28 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.2: +11 -21 lines
Diff to previous 1.26.2.2 (colored) to branchpoint 1.26 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Main changes to the scsipi code itself:
- add a scsipi_channel->type to allow umass to attach to both atapibus and
  scsibus. Will die when IDE is converted from ata_atapi_attach to
  scsipi_channel/scsipi_adapter
- Add a chan_defquirks to scsipi_channel so that adapters can pass a default
  set of quirks to be set for each device attached
- add adapt_getgeom and adapt_accesschk callbacks

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:08:19 2000 UTC (22 years, 7 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 31 23:10:39 2000 UTC (22 years, 8 months ago) by phil
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored)

Add an entry for the HP ScanJet 6300C.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Mar 30 00:00:56 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Get rid of register declarations.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jan 21 23:40:00 2000 UTC (23 years ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.28: +6 -18 lines
Diff to previous 1.28 (colored)

Update for sys/buf.h/disksort_*() changes.

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Thu Jan 20 20:49:43 2000 UTC (23 years ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.25.2.1: +3 -1 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Pull up revision 1.28 (requested by abs):
  Newline terminate 'ss:' attach message.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jan 19 01:00:07 2000 UTC (23 years ago) by abs
Branch: MAIN
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)

newline terminate ss: atatch message - from Roger Brooks

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Mon Jan 17 18:22:14 2000 UTC (23 years ago) by he
Branch: netbsd-1-4
Changes since 1.25: +1 -3 lines
Diff to previous 1.25 (colored)

Pull up revision 1.27 (requested by abs):
  Allow ioctl() on all scanner device nodes - allows SANE to work.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jan 17 11:25:31 2000 UTC (23 years ago) by abs
Branch: MAIN
Changes since 1.26: +1 -3 lines
Diff to previous 1.26 (colored)

allow ioctl() on all scanner device nodes - now SANE can work with ss* driver

Revision 1.26.8.1 / (download) - annotate - [select for diffs], Tue Dec 21 23:19:56 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Mon Nov 1 22:54:21 1999 UTC (23 years, 3 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.26.2.1: +8 -8 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored)

Fixup the SC_DEBUG() stuff for the new world order.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Tue Oct 19 17:39:42 1999 UTC (23 years, 3 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.26: +35 -30 lines
Diff to previous 1.26 (colored)

Completely rewritten scsipi_xfer execution engine:
- All xfers are queued in the mid-layer, rather than doing so in an
  ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
  to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
  peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
  recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
  scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
  (no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
  set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
  the need to use buggy tag ID allocation schemes in many adapter drivers).

There is a lot more work to do, but this correctly functions for the most
part on several file servers I run.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Sep 30 22:57:54 1999 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

Cleanup the scsipi_xfer flags:
- `flags' is now gone, replaced with `xs_control' and `xs_status'.
- Massive cleanup of the control flags.  Now we explicitly say that
  a job is to complete asynchronously, rather than relying on side-effects,
  and use a new flag to now that device discovery is being performed.
- Do SCSI device discovery interrupt-driven.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Feb 10 12:29:51 1999 UTC (24 years ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Branch point for: netbsd-1-4
Changes since 1.24: +8 -1 lines
Diff to previous 1.24 (colored)

Abort transfer if b_blkno is negative. Closes PR kern/5553 by Johan Danielsson.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Dec 8 00:19:27 1998 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

When closing, wait for pending xfers to drain before deleting the reference
to the adapter.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Nov 20 00:35:40 1998 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +8 -2 lines
Diff to previous 1.22 (colored)

Add adapter reference counting for SCSI and ATAPI devices.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Aug 31 22:28:07 1998 UTC (24 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.21: +1 -9 lines
Diff to previous 1.21 (colored)

kill the last remnants of __BROKEN_INDIRECT_CONFIG.  (only the pica port
used it, and it's non-working and apparently slated for replacement.)

Revision 1.21 / (download) - annotate - [select for diffs], Wed Aug 19 08:40:31 1998 UTC (24 years, 5 months ago) by explorer
Branch: MAIN
Changes since 1.20: +8 -8 lines
Diff to previous 1.20 (colored)

ss->special could be NULL, so sane would crash the kernel.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Apr 22 19:44:18 1998 UTC (24 years, 9 months ago) by pk
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)

Set a flag during auto-configuration, so SCSI_AUTOCONF can be passed
when doing additional I/O from the scanner attach functions.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jan 12 09:49:17 1998 UTC (25 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.18: +2 -4 lines
Diff to previous 1.18 (colored)

Adjust for changes to config.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sat Nov 22 04:01:56 1997 UTC (25 years, 2 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Pull rev 1.18 up from trunk (augustss)

Revision 1.18 / (download) - annotate - [select for diffs], Wed Nov 19 03:03:15 1997 UTC (25 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored)

Recognize HP ScanJet 5p.

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Tue Oct 14 10:25:33 1997 UTC (25 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.16.2.2: +2 -2 lines
Diff to previous 1.16.2.2 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 1 01:19:18 1997 UTC (25 years, 4 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-3-base, marc-pcmcia-base
Branch point for: netbsd-1-3
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Cosmetic changes to keep coding style consistency in this directory;

- Indent with tab of width 8.
- Use four column to indent continuation line.
- Fold long line if possible.
- Use return (xx) instead of return xx.
- Compare pointer against NULL instead of testing like boolean.
- Delete whitespace at the end of line.
- Delete whitespace in front of function call operator.
- Delete whitespace after cast.
- Dereference a pointer to function explicitly.
- Add an empty line after local variable declaration.
- Use NULL instead of (char *)0.
- Dont use block for single statement.

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Wed Aug 27 23:33:34 1997 UTC (25 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.16.2.1: +495 -0 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.16.2.1, Wed Aug 27 11:27:04 1997 UTC (25 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.16: +0 -495 lines
FILE REMOVED

file ss.c was added on branch marc-pcmcia on 1997-08-27 23:33:34 +0000

Revision 1.16 / (download) - annotate - [select for diffs], Wed Aug 27 11:27:04 1997 UTC (25 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Branch point for: marc-pcmcia
Changes since 1.15: +21 -20 lines
Diff to previous 1.15 (colored)

Merge scsipi branch in the mainline. This add support for ATAPI devices
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Dec 5 01:06:44 1996 UTC (26 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.14: +11 -2 lines
Diff to previous 1.14 (colored)

update these so they compile whether or not __BROKEN_INDIRECT_CONFIG
is defined.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Nov 29 19:53:32 1996 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)

Add an inquiry pattern for the HP ScanJet 4p.
From Valtteri Vuorikoski <vuori@notcom.org>, PR #2957.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Oct 12 23:23:21 1996 UTC (26 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

revert previous kprintf change

Revision 1.12 / (download) - annotate - [select for diffs], Thu Oct 10 23:34:23 1996 UTC (26 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jul 12 16:49:50 1996 UTC (26 years, 7 months ago) by is
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Some MUSTEK scanners fill the vendor string in the SCSI identify
string with 0xFF instead of 0x20. Shorten the compare to 6 bytes to
take care of this.

Fixes PR #2617 by myself, which is based on a private problem report
by Neil Brewitt.

Revision 1.10 / (download) - annotate - [select for diffs], Sun May 5 19:52:55 1996 UTC (26 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Cleanup the rest of the SCSIDEBUG printfs. From Bernd Ernesti.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 30 21:47:00 1996 UTC (26 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.8: +7 -7 lines
Diff to previous 1.8 (colored)

- Eliminate scsi_conf.h
- Fix prototypes
- Fix PR/2248 [Problems with HP scanjet...]

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 17 00:59:52 1996 UTC (26 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +15 -11 lines
Diff to previous 1.7 (colored)

New device attachment scheme:

	- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Mar 5 00:15:18 1996 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +3 -1 lines
Diff to previous 1.6 (colored)

Normalize SCSI autoconfiguration output.
From Chris Demetriou <cgd@NetBSD.ORG>.  Fixes PR #1958.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Feb 19 00:06:07 1996 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

Handle EOF a little differently.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Feb 18 23:21:48 1996 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

Change variable name to avoid GCC warning.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Feb 18 20:44:40 1996 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Minor tweak; make sure window size is 0 on close.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Feb 18 20:41:18 1996 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +7 -4 lines
Diff to previous 1.2 (colored)

Missed some prototyping foo.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Feb 18 20:38:44 1996 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +4 -21 lines
Diff to previous 1.1 (colored)

Truncate to the window size in ssminphys(), not ssread().

Revision 1.1 / (download) - annotate - [select for diffs], Sun Feb 18 20:32:46 1996 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN

Add SCSI scanner support by Kenneth Stailey and Joachim Koenig-Baltes,
hacked a bit.  Needs more work.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>