The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.95 / (download) - annotate - [select for diffs], Sat Apr 9 23:38:32 2022 UTC (9 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.94: +4 -4 lines
Diff to previous 1.94 (colored)

sys: Use membar_release/acquire around reference drop.

This just goes through my recent reference count membar audit and
changes membar_exit to membar_release and membar_enter to
membar_acquire -- this should make everything cheaper on most CPUs
without hurting correctness, because membar_acquire is generally
cheaper than membar_enter.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Mar 12 15:32:32 2022 UTC (10 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.93: +6 -3 lines
Diff to previous 1.93 (colored)

sys: Membar audit around reference count releases.

If two threads are using an object that is freed when the reference
count goes to zero, we need to ensure that all memory operations
related to the object happen before freeing the object.

Using an atomic_dec_uint_nv(&refcnt) == 0 ensures that only one
thread takes responsibility for freeing, but it's not enough to
ensure that the other thread's memory operations happen before the
freeing.

Consider:

	  Thread A			  Thread B
	obj->foo = 42;			obj->baz = 73;
	mumble(&obj->bar);		grumble(&obj->quux);
	/* membar_exit(); */		/* membar_exit(); */
	atomic_dec -- not last		atomic_dec -- last
					/* membar_enter(); */
					KASSERT(invariant(obj->foo,
					    obj->bar));
					free_stuff(obj);

The memory barriers ensure that

	obj->foo = 42;
	mumble(&obj->bar);

in thread A happens before

	KASSERT(invariant(obj->foo, obj->bar));
	free_stuff(obj);

in thread B.  Without them, this ordering is not guaranteed.

So in general it is necessary to do

	membar_exit();
	if (atomic_dec_uint_nv(&obj->refcnt) != 0)
		return;
	membar_enter();

to release a reference, for the `last one out hit the lights' style
of reference counting.  (This is in contrast to the style where one
thread blocks new references and then waits under a lock for existing
ones to drain with a condvar -- no membar needed thanks to mutex(9).)

I searched for atomic_dec to find all these.  Obviously we ought to
have a better abstraction for this because there's so much copypasta.
This is a stop-gap measure to fix actual bugs until we have that.  It
would be nice if an abstraction could gracefully handle the different
styles of reference counting in use -- some years ago I drafted an
API for this, but making it cover everything got a little out of hand
(particularly with struct vnode::v_usecount) and I ended up setting
it aside to work on psref/localcount instead for better scalability.

I got bored of adding #ifdef __HAVE_ATOMIC_AS_MEMBAR everywhere, so I
only put it on things that look performance-critical on 5sec review.
We should really adopt membar_enter_preatomic/membar_exit_postatomic
or something (except they are applicable only to atomic r/m/w, not to
atomic_load/store_*, making the naming annoying) and get rid of all
the ifdefs.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:16 2021 UTC (17 months, 3 weeks ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.92: +5 -5 lines
Diff to previous 1.92 (colored)

Merge thorpej-cfargs2.

Revision 1.92.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 23:14:04 2021 UTC (17 months, 4 weeks ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.92: +5 -5 lines
Diff to previous 1.92 (colored) next main 1.93 (colored)

Adapt to CFARGS().

Revision 1.92 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:58 2021 UTC (21 months, 1 week ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.91: +7 -6 lines
Diff to previous 1.91 (colored)

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

Revision 1.91.22.3 / (download) - annotate - [select for diffs], Sat Apr 3 01:57:18 2021 UTC (21 months, 4 weeks ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.91.22.2: +4 -3 lines
Diff to previous 1.91.22.2 (colored) to branchpoint 1.91 (colored) next main 1.92 (colored)

Give config_attach() the tagged variadic argument treatment and
mechanically convert all call sites.

Revision 1.91.22.2 / (download) - annotate - [select for diffs], Sun Mar 21 17:35:49 2021 UTC (22 months, 1 week ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.91.22.1: +2 -3 lines
Diff to previous 1.91.22.1 (colored) to branchpoint 1.91 (colored)

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.

Revision 1.91.22.1 / (download) - annotate - [select for diffs], Sat Mar 20 19:33:41 2021 UTC (22 months, 1 week ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.91: +7 -6 lines
Diff to previous 1.91 (colored)

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.

Revision 1.86.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:32 2017 UTC (5 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.86.2.1: +32 -30 lines
Diff to previous 1.86.2.1 (colored) to branchpoint 1.86 (colored) next main 1.87 (colored)

update from HEAD

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

Sync with HEAD

Revision 1.90.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.90: +13 -26 lines
Diff to previous 1.90 (colored) next main 1.91 (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.91 / (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, thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, 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
Branch point for: thorpej-cfargs
Changes since 1.90: +13 -26 lines
Diff to previous 1.90 (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.88.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:41 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.88: +29 -14 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

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

Revision 1.87.6.2 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:17 2016 UTC (6 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.87.6.1: +29 -14 lines
Diff to previous 1.87.6.1 (colored) to branchpoint 1.87 (colored)

Sync with HEAD

Revision 1.90 / (download) - annotate - [select for diffs], Tue Nov 29 03:23:00 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.89: +10 -5 lines
Diff to previous 1.89 (colored)

reference count adapter mutex possibly shared by multiple channels.

fix error in atapibusdetach, when a child device cannot be detached,
keep atapibus instance alive.

Revision 1.89 / (download) - annotate - [select for diffs], Sun Nov 20 15:37:19 2016 UTC (6 years, 2 months ago) by mlelstv
Branch: MAIN
Changes since 1.88: +24 -14 lines
Diff to previous 1.88 (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.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:19 2016 UTC (6 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Sync with HEAD

Revision 1.88 / (download) - annotate - [select for diffs], Sun Mar 13 09:01:04 2016 UTC (6 years, 10 months ago) by tsutsui
Branch: MAIN
CVS Tags: 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, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Sync with scsiconf.c. (use aprint_normal(9) for "not configured")

Revision 1.86.2.1 / (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.86: +5 -3 lines
Diff to previous 1.86 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.83.8.4 / (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.83.8.3: +5 -3 lines
Diff to previous 1.83.8.3 (colored) to branchpoint 1.83 (colored) next main 1.84 (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.86.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.86: +5 -3 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

sync with head

Revision 1.87 / (download) - annotate - [select for diffs], Wed Mar 5 08:45:13 2014 UTC (8 years, 11 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, 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
Branch point for: nick-nhusb
Changes since 1.86: +5 -3 lines
Diff to previous 1.86 (colored)

Don't probe beyond chan_ntargets in atapi_probe_bus in the "all" case.

PR/48626: ahci_atapi_probe_device panic with kmemguard

Revision 1.83.8.3 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:01 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.83.8.2: +12 -5 lines
Diff to previous 1.83.8.2 (colored) to branchpoint 1.83 (colored)

sync with head

Revision 1.83.14.3 / (download) - annotate - [select for diffs], Mon Jul 2 21:11:50 2012 UTC (10 years, 7 months ago) by jdc
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.83.14.2: +12 -5 lines
Diff to previous 1.83.14.2 (colored) to branchpoint 1.83 (colored) next main 1.84 (colored)

Pull up revision 1.86 (requested by riastradh in ticket #373).

Take the kernel lock in atapibusdetach just like atapibuschilddet.

Fixes kassert in scsipi_lookup_periph when I press the power button
on one of my laptops (and maybe another one) to power it off.

ok mrg

Revision 1.86 / (download) - annotate - [select for diffs], Sun Jun 24 07:48:01 2012 UTC (10 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.85: +12 -5 lines
Diff to previous 1.85 (colored)

Take the kernel lock in atapibusdetach just like atapibuschilddet.

Fixes kassert in scsipi_lookup_periph when I press the power button
on one of my laptops (and maybe another one) to power it off.

ok mrg

Revision 1.83.8.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:05 2012 UTC (10 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.83.8.1: +4 -3 lines
Diff to previous 1.83.8.1 (colored) to branchpoint 1.83 (colored)

sync with head.

Revision 1.83.12.1 / (download) - annotate - [select for diffs], Sun Apr 29 23:04:59 2012 UTC (10 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.83: +10 -3 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

sync to latest -current.

Revision 1.83.14.2 / (download) - annotate - [select for diffs], Mon Apr 23 16:28:30 2012 UTC (10 years, 9 months ago) by riz
Branch: netbsd-6
Changes since 1.83.14.1: +4 -3 lines
Diff to previous 1.83.14.1 (colored) to branchpoint 1.83 (colored)

Pull up following revision(s) (requested by bouyer in ticket #192):
	sys/dev/scsipi/cd.c: revision 1.307
	sys/dev/scsipi/scsiconf.c: revision 1.266
	sys/dev/scsipi/sd.c: revision 1.298
	sys/dev/scsipi/st_scsi.c: revision 1.35
	sys/dev/scsipi/atapiconf.c: revision 1.85
	sys/dev/scsipi/scsipiconf.h: revision 1.120
	sys/dev/usb/umass_scsipi.c: revision 1.44
	sys/dev/scsipi/scsiconf.h: revision 1.57
	sys/dev/scsipi/st_atapi.c: revision 1.29
	sys/dev/scsipi/scsipi_base.c: revision 1.158
	sys/dev/scsipi/st.c: revision 1.221
	sys/dev/scsipi/scsipi_ioctl.c: revision 1.67
Expand struct scsipi_bustype {} in a ABI-backward-compatible way to
pass more informations about the bus:
- bustype_type has 2 different bytes, one holding the existing
  SCSIPI_BUSTYPE_* (scsi, atapi, ata), and one for a per-SCSIPI_BUSTYPE_*
  subtype. Introduce macros to build or extract bustype_type.
- for SCSIPI_BUSTYPE_SCSI, define subtypes for parallel SCSI, Fibre Channel,
  SAS and USB, to specify the transport method. SCSIPI_BUSTYPE_SCSI_PSCSI
  is 0 so that bustype_type value doesn't change for existing code
- for non-SCSIPI_BUSTYPE_SCSI busses there's no defined subtype yet,
  so the bustype_type value doesn't change.
- provide scsi_fc_bustype, scsi_sas_bustype and scsi_usb_bustype
  along with scsi_bustype to be used by bus driver where appropriate
- scsipi_print_xfer_mode(): more existing code under a
  (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_PSCSI) case, as
  sync/wide parameters only make sense for parallel SCSI.
  For (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_FC) and
  (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_SAS), only print
  tagged queing status if enabled. Just be silent for other
  bustypes.
This change is prompted by this problem:
right now, FC (e.g. isp(4)) and SAS (e.g. mfi(4)) don't
  do anything for ADAPTER_REQ_SET_XFER_MODE, and especially never
  call scsipi_async_event(ASYNC_EVENT_XFER_MODE), so sd(4) always
  runs untagged. Doing a scsipi_async_event(ASYNC_EVENT_XFER_MODE) with
  appropriate parameters is enough to enable tagged queuing,
  but then scsipi will print:
  sd0: async, 8-bit transfers, tagged queueing
  which is harmless (async, 8-bit transfers doens't make sense on SAS anyway)
  but will confuse users. With this change scsipi will only print:
  sd0: tagged queueing
  which is correct.
In the long run, knowning the underlying transport in scsipi will
allow better handling of device which are not parallel SCSI.
Another change adding an extra callback to struct scsipi_bustype {}
will come (so that scsipi_print_xfer_mode(), which is SCSI-specific,
can be moved out of scsipi_base, and split into per-subtype callback),
but this will break kernel ABI and so is not suitable for
netbsd-6, so will be commmited later. The above is enough to get
tagged queuing on FC and SAS in netbsd-6.

Revision 1.85 / (download) - annotate - [select for diffs], Thu Apr 19 17:45:20 2012 UTC (10 years, 9 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Changes since 1.84: +4 -3 lines
Diff to previous 1.84 (colored)

Expand struct scsipi_bustype {} in a ABI-backward-compatible way to
pass more informations about the bus:
- bustype_type has 2 different bytes, one holding the existing
  SCSIPI_BUSTYPE_* (scsi, atapi, ata), and one for a per-SCSIPI_BUSTYPE_*
  subtype. Introduce macros to build or extract bustype_type.
- for SCSIPI_BUSTYPE_SCSI, define subtypes for parallel SCSI, Fibre Channel,
  SAS and USB, to specify the transport method. SCSIPI_BUSTYPE_SCSI_PSCSI
  is 0 so that bustype_type value doesn't change for existing code
- for non-SCSIPI_BUSTYPE_SCSI busses there's no defined subtype yet,
  so the bustype_type value doesn't change.
- provide scsi_fc_bustype, scsi_sas_bustype and scsi_usb_bustype
  along with scsi_bustype to be used by bus driver where appropriate
- scsipi_print_xfer_mode(): more existing code under a
  (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_PSCSI) case, as
  sync/wide parameters only make sense for parallel SCSI.
  For (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_FC) and
  (SCSIPI_BUSTYPE_SCSI, SCSIPI_BUSTYPE_SCSI_SAS), only print
  tagged queing status if enabled. Just be silent for other
  bustypes.

This change is prompted by this problem:
right now, FC (e.g. isp(4)) and SAS (e.g. mfi(4)) don't
  do anything for ADAPTER_REQ_SET_XFER_MODE, and especially never
  call scsipi_async_event(ASYNC_EVENT_XFER_MODE), so sd(4) always
  runs untagged. Doing a scsipi_async_event(ASYNC_EVENT_XFER_MODE) with
  appropriate parameters is enough to enable tagged queuing,
  but then scsipi will print:
  sd0: async, 8-bit transfers, tagged queueing
  which is harmless (async, 8-bit transfers doens't make sense on SAS anyway)
  but will confuse users. With this change scsipi will only print:
  sd0: tagged queueing
  which is correct.

In the long run, knowning the underlying transport in scsipi will
allow better handling of device which are not parallel SCSI.

Another change adding an extra callback to struct scsipi_bustype {}
will come (so that scsipi_print_xfer_mode(), which is SCSI-specific,
can be moved out of scsipi_base, and split into per-subtype callback),
but this will break kernel ABI and so is not suitable for
netbsd-6, so will be commmited later. The above is enough to get
tagged queuing on FC and SAS in netbsd-6.

Revision 1.83.8.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:02 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.83: +8 -2 lines
Diff to previous 1.83 (colored)

sync with head

Revision 1.83.14.1 / (download) - annotate - [select for diffs], Mon Apr 9 17:54:20 2012 UTC (10 years, 9 months ago) by riz
Branch: netbsd-6
Changes since 1.83: +8 -2 lines
Diff to previous 1.83 (colored)

Pull up following revision(s) (requested by chs in ticket #166):
	sys/dev/scsipi/atapiconf.c: revision 1.84
take the kernel lock during detach of atapibus as well.

Revision 1.84 / (download) - annotate - [select for diffs], Fri Apr 6 17:12:45 2012 UTC (10 years, 9 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.83: +8 -2 lines
Diff to previous 1.83 (colored)

take the kernel lock during detach of atapibus as well.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Jun 7 01:41:39 2010 UTC (12 years, 7 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, 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.82: +2 -4 lines
Diff to previous 1.82 (colored)

Update scsiverbose module to use module_autoload() rather than module_load().
Load the module right before each attempt to use its features, and let the
module subsystem handle unloading.

Revision 1.82 / (download) - annotate - [select for diffs], Sun May 30 04:38:04 2010 UTC (12 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.81: +4 -2 lines
Diff to previous 1.81 (colored)

Extract SCSIVERBOSE into a kernel module.  The module can be builtin
by defining 'options SCSIVERBOSE' in the kernel config file (no change
from current behavior), or it can be loaded at boot time on those
architectures that support the boot loader's "load" command.

The module is built for all architectures, whether or not SCSI or
atapi support exists.

Revision 1.77.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:02 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.77.4.2: +3 -39 lines
Diff to previous 1.77.4.2 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored)

sync with head

Revision 1.81 / (download) - annotate - [select for diffs], Thu Nov 12 19:44:17 2009 UTC (13 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock, matt-premerge-20091211
Changes since 1.80: +3 -34 lines
Diff to previous 1.80 (colored)

Remove superfluous activation hooks.

Revision 1.80 / (download) - annotate - [select for diffs], Mon Oct 19 18:41:16 2009 UTC (13 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.79: +2 -7 lines
Diff to previous 1.79 (colored)

Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !

Revision 1.77.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.77.4.1: +3 -3 lines
Diff to previous 1.77.4.1 (colored) to branchpoint 1.77 (colored)

sync with head

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

Sync with HEAD.

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

Revision 1.79 / (download) - annotate - [select for diffs], Tue May 12 13:20:33 2009 UTC (13 years, 8 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-base
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

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

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

sync with head.

Revision 1.77.12.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:32 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored) next main 1.78 (colored)

Sync with HEAD.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Apr 7 18:35:17 2009 UTC (13 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored)

Detach atapibus(4), scsibus(4), cd(4), and sd(4) during shutdown.
Destroy sd->sc_callout in sddetach().  Delete some dead code in
cddetach().

Revision 1.75.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:55 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.75: +13 -16 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

Sync with HEAD.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Mar 24 14:44:26 2008 UTC (14 years, 10 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base2, 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, mjf-devfs2-base, 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, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, jym-xensuspend
Changes since 1.76: +12 -13 lines
Diff to previous 1.76 (colored)

Split device_t and softc for atapibus(4).

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:08 2008 UTC (14 years, 10 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.75: +3 -5 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

sync with head.

Revision 1.72.24.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:52 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.72.24.1: +35 -18 lines
Diff to previous 1.72.24.1 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored)

sync with HEAD

Revision 1.67.2.6 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:27 2008 UTC (14 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.67.2.5: +3 -5 lines
Diff to previous 1.67.2.5 (colored) next main 1.68 (colored)

sync with head.

Revision 1.76 / (download) - annotate - [select for diffs], Sat Mar 8 10:31:52 2008 UTC (14 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Changes since 1.75: +3 -5 lines
Diff to previous 1.75 (colored)

fix a double-free bug introduced by the following change.  PR/38179.

    revision 1.75
    date: 2008/01/29 17:26:57;  author: dyoung;  state: Exp;  lines: +34 -15
    Use device_t.  Add a handler for child detachment.  Now I can detach
    cd0 at atapibus0 without getting a panic when atapibus0 detaches,
    later.

Revision 1.72.30.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:24 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.72.30.2: +34 -15 lines
Diff to previous 1.72.30.2 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored)

Sync with HEAD.

Revision 1.67.2.5 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:34 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.67.2.4: +34 -15 lines
Diff to previous 1.67.2.4 (colored)

sync with head.

Revision 1.75 / (download) - annotate - [select for diffs], Tue Jan 29 17:26:57 2008 UTC (15 years ago) by dyoung
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.74: +34 -15 lines
Diff to previous 1.74 (colored)

Use device_t.  Add a handler for child detachment.  Now I can detach
cd0 at atapibus0 without getting a panic when atapibus0 detaches,
later.

Revision 1.67.2.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:33 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.67.2.3: +5 -2 lines
Diff to previous 1.67.2.3 (colored)

sync with head

Revision 1.72.24.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:29 2008 UTC (15 years ago) by matt
Branch: matt-armv6
Changes since 1.72: +7 -3 lines
Diff to previous 1.72 (colored)

sync with HEAD

Revision 1.72.30.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:27 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.72.30.1: +5 -2 lines
Diff to previous 1.72.30.1 (colored) to branchpoint 1.72 (colored)

Sync with HEAD.

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:47:21 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.73: +5 -2 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

Sync with head.

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:39:58 2007 UTC (15 years, 1 month ago) by yamt
Branch: yamt-kmem
Changes since 1.73: +5 -2 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

sync with head.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:22 2007 UTC (15 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, matt-armv6-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Changes since 1.73: +5 -2 lines
Diff to previous 1.73 (colored)

Merge jmcneill-pm branch.

Revision 1.72.30.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:19:57 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.72: +4 -3 lines
Diff to previous 1.72 (colored)

Sync with HEAD.

Revision 1.72.22.3 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:34 2007 UTC (15 years, 1 month ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.72.22.2: +3 -3 lines
Diff to previous 1.72.22.2 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.67.2.3 / (download) - annotate - [select for diffs], Fri Dec 7 17:31:07 2007 UTC (15 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.67.2.2: +4 -3 lines
Diff to previous 1.67.2.2 (colored)

sync with head

Revision 1.72.22.2 / (download) - annotate - [select for diffs], Sat Dec 1 14:46:39 2007 UTC (15 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.72.22.1: +4 -3 lines
Diff to previous 1.72.22.1 (colored) to branchpoint 1.72 (colored)

Sync with HEAD.

Revision 1.73 / (download) - annotate - [select for diffs], Sat Dec 1 14:46:04 2007 UTC (15 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem, vmlocking2
Changes since 1.72: +4 -3 lines
Diff to previous 1.72 (colored)

aprintify

Revision 1.72.22.1 / (download) - annotate - [select for diffs], Mon Nov 12 12:09:45 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.72: +5 -2 lines
Diff to previous 1.72 (colored)

Add null handlers for atapibus, it doesn't seem to need any magic.

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

sync with head.

Revision 1.70.10.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:15 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.70.10.1: +7 -7 lines
Diff to previous 1.70.10.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

sync with head.

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

Sync with head.

Revision 1.72 / (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-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, 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, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-audiomp-base, ad-audiomp
Branch point for: mjf-devfs, matt-armv6, jmcneill-pm
Changes since 1.71: +7 -7 lines
Diff to previous 1.71 (colored)

__unused removal on arguments; approved by core.

Revision 1.70.10.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.70: +8 -7 lines
Diff to previous 1.70 (colored)

sync with head

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

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

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

sync with head

Revision 1.67.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.67: +7 -7 lines
Diff to previous 1.67 (colored)

sync with head.

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

Sync with head.

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

sync with head.

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

sync with head.

Revision 1.69.12.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.69: +5 -5 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

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

Revision 1.70 / (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-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.69: +5 -5 lines
Diff to previous 1.69 (colored)

Use device_private().

Revision 1.69 / (download) - annotate - [select for diffs], Sun Dec 11 12:23:50 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

merge ktrace-lwp.

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

Sync with HEAD. Here we go again...

Revision 1.68 / (download) - annotate - [select for diffs], Fri Aug 26 12:42:11 2005 UTC (17 years, 5 months ago) by drochner
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.67: +4 -4 lines
Diff to previous 1.67 (colored)

s/locdesc_t/int/g

Revision 1.67 / (download) - annotate - [select for diffs], Sun May 29 22:00:50 2005 UTC (17 years, 8 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.66: +5 -5 lines
Diff to previous 1.66 (colored)

- Sprinkle const
- Avoid variable shadowing.
- Eliminate some caddr_t abuse.

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

Fix the sync with head I botched.

Revision 1.57.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:24 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.57.2.2: +8 -6 lines
Diff to previous 1.57.2.2 (colored)

Sync with HEAD.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Sep 13 12:55:48 2004 UTC (18 years, 4 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, 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, netbsd-3, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Changes since 1.65: +8 -6 lines
Diff to previous 1.65 (colored)

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"

Revision 1.57.2.2 / (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.57.2.1: +29 -50 lines
Diff to previous 1.57.2.1 (colored)

Sync with HEAD.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Aug 21 21:30:29 2004 UTC (18 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Const poison scsipi_dtype().

Revision 1.64 / (download) - annotate - [select for diffs], Sat Aug 21 17:40:25 2004 UTC (18 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.63: +28 -49 lines
Diff to previous 1.63 (colored)

Use ANSI function decls and make use of static.

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

Sync with HEAD

Revision 1.63 / (download) - annotate - [select for diffs], Fri Oct 17 00:19:46 2003 UTC (19 years, 3 months ago) by mycroft
Branch: MAIN
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-base, 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-0, netbsd-2
Changes since 1.62: +2 -4 lines
Diff to previous 1.62 (colored)

Remove the Fuji quirk from here, too.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Oct 8 10:58:13 2003 UTC (19 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.61: +2 -8 lines
Diff to previous 1.61 (colored)

Make the ATA mid-layer appears as atabus, as proposed in
http://mail-index.netbsd.org/tech-kern/2003/09/25/0006.html
This adds a device (atabus) between IDE controllers and wd or atapibus, to
have each ATA channel show up in the device tree. Later there will be atabus
devices in /dev, so that we can do IOCTL on them.
Each atabus has its own kernel thread, to handle operations that needs polling,
e.g. reset and others.

Device probing on each bus it defered to the atabus thread creation.
This allows to do the reset and basic device probes in parallel, which reduce
boot time on systems with several pciide controllers.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Sep 18 00:06:31 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.60: +3 -10 lines
Diff to previous 1.60 (colored)

Merge the geometry and cache handling code for all direct access and optical
devices, as it's general to all SCSI MMC devices.  In the process, remove
PQUIRK_NO_FLEX_PAGE.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Sep 17 19:14:57 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.59: +3 -6 lines
Diff to previous 1.59 (colored)

Remove PQUIRK_BYTE5_ZERO.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Sep 9 02:37:55 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.58: +2 -4 lines
Diff to previous 1.58 (colored)

Exorcise PQUIRK_NODOORLOCK.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Sep 8 18:51:33 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.57: +2 -6 lines
Diff to previous 1.57 (colored)

Do a START UNIT only if the TEST UNIT READY reports that the device is not
ready.  This avoids gratuitously starting the motor on floppy and CD-ROM
drives, and eliminates the need for the audio playing test in cdopen().

Therefore, also remove PQUIRK_NOSTARTUNIT.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Apr 3 17:41:51 2003 UTC (19 years, 10 months ago) by erh
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.56: +4 -2 lines
Diff to previous 1.56 (colored)

Add a quirk to allow my NEO Jukebox to work again.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Feb 19 14:33:15 2003 UTC (19 years, 11 months ago) by hannken
Branch: MAIN
Changes since 1.55: +4 -2 lines
Diff to previous 1.55 (colored)

Add PQUIRK_NO_FLEX_PAGE for Fujitsu MO MCJ3230AP.
This drive returns bogus geometry (0 heads, 0 sectors).

Revision 1.36.2.8 / (download) - annotate - [select for diffs], Fri Jan 3 17:08:09 2003 UTC (20 years, 1 month ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.36.2.7: +6 -6 lines
Diff to previous 1.36.2.7 (colored) next main 1.37 (colored)

Sync with HEAD.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Jan 1 00:10:25 2003 UTC (20 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.54: +6 -6 lines
Diff to previous 1.54 (colored)

Use aprint_normal() in cfprint routines.

Revision 1.36.2.7 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:13 2002 UTC (20 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.6: +8 -8 lines
Diff to previous 1.36.2.6 (colored)

Catch up to -current.

Revision 1.40.2.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:11 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.40.2.2: +7 -7 lines
Diff to previous 1.40.2.2 (colored) to branchpoint 1.40 (colored) next main 1.41 (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.54 / (download) - annotate - [select for diffs], Fri Oct 4 18:58:45 2002 UTC (20 years, 4 months ago) by soren
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

As in scsiconf.c, don't print the numberic device type in the attach message.

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

Add trailing ; to CFATTACH_DECL.

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

Use CFATTACH_DECL().

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

Declare all cfattach structures const.

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

Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller.  Use it
rather than invoking cfattach->ca_match directly.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Sep 19 08:31:05 2002 UTC (20 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.48: +4 -2 lines
Diff to previous 1.48 (colored)

Force the initial probes to happen within the newly forked off kthread.
This eliminates problems where the underlying interrupt handler isn't the
specific layer calling scsipi_complete() for a given scsi transaction.
This avoids deadlocks where the kthread that called the autoconf routines
to configure a scsibus shouldn't be the one put to sleep waiting on a
scsipi_complete (only the scsibus's kthread should be doing that).

To avoid jitter this will force the scsibus's to probe in the order they
run through autoconf (so machines with multiple bus's don't move sd* devices
around on every reboot).

Revision 1.40.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:48:43 2002 UTC (20 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.40.2.1: +4 -2 lines
Diff to previous 1.40.2.1 (colored) to branchpoint 1.40 (colored)

catch up with -current on kqueue branch

Revision 1.36.2.6 / (download) - annotate - [select for diffs], Wed Apr 17 00:06:11 2002 UTC (20 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.5: +4 -2 lines
Diff to previous 1.36.2.5 (colored)

Catch up to -current.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Apr 1 20:37:41 2002 UTC (20 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: 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, gehenna-devsw-base, gehenna-devsw
Changes since 1.47: +4 -2 lines
Diff to previous 1.47 (colored)

Add a chan_name to struct scsipi_channel, holding the channel's name.
Set this to dv_xname for scsibus and atapibus.
Set the name of the kernel thread to chan_name instead of controller's
name:channel number (so that we can use this name for controller-specific
threads).

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:58:16 2002 UTC (21 years ago) by thorpej
Branch: kqueue
Changes since 1.40: +26 -23 lines
Diff to previous 1.40 (colored)

Sync kqueue branch with -current.

Revision 1.36.2.5 / (download) - annotate - [select for diffs], Tue Jan 8 00:31:46 2002 UTC (21 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.4: +23 -23 lines
Diff to previous 1.36.2.4 (colored)

Catch up to -current.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Dec 22 13:29:50 2001 UTC (21 years, 1 month ago) by gehenna
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.46: +5 -2 lines
Diff to previous 1.46 (colored)

The FujiFilm USB storage drive doesn't have a flex geom page and
doesn't know REQUEST SENSE.

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

Update my copyrigth.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Dec 2 23:00:34 2001 UTC (21 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.44: +2 -3 lines
Diff to previous 1.44 (colored)

No need to include atavar.h here.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Dec 2 22:44:33 2001 UTC (21 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.43: +19 -20 lines
Diff to previous 1.43 (colored)

Clean up attach of wd/atapibus:
kill ata_atapi_attach. Change atapibus to use a struct scsipi_channel instead
of ata_atapi_attach as attach arch. Create a ata_device, compatible with
scsipi_channel, to attach wd.

Revision 1.43 / (download) - annotate - [select for diffs], Thu Nov 15 09:48:16 2001 UTC (21 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.42: +2 -3 lines
Diff to previous 1.42 (colored)

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

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

Catch up to -current.

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

add RCSIDs

Revision 1.40.4.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:46:21 2001 UTC (21 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Catch up with -current.

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:11 2001 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.2: +2 -2 lines
Diff to previous 1.36.2.2 (colored)

Catch up to -current.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Sep 13 06:27:23 2001 UTC (21 years, 4 months ago) by enami
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Pass the correct pointer to atapibusprint().

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:05:41 2001 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.1: +126 -127 lines
Diff to previous 1.36.2.1 (colored)

Catch up to -current.

Revision 1.40 / (download) - annotate - [select for diffs], Mon May 14 20:35:27 2001 UTC (21 years, 8 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp, kqueue
Changes since 1.39: +1 -2 lines
Diff to previous 1.39 (colored)

Use SCSI/ATAPI common definition for MODE_{SELECT,SENSE}{,_BIG}. Define
functions to send theses commands in scsipi_base.c and use them instead
of ad-hoc commands setups.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Apr 25 17:53:38 2001 UTC (21 years, 9 months ago) by bouyer
Branch: MAIN
Changes since 1.38: +126 -126 lines
Diff to previous 1.38 (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.28.2.10 / (download) - annotate - [select for diffs], Sat Apr 21 17:49:48 2001 UTC (21 years, 9 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.2.9: +3 -1 lines
Diff to previous 1.28.2.9 (colored) next main 1.29 (colored)

Sync with HEAD

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:57:26 2001 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36: +6 -1 lines
Diff to previous 1.36 (colored)

Catch up with -current.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Apr 1 19:05:44 2001 UTC (21 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.37: +3 -1 lines
Diff to previous 1.37 (colored)

The ZiO! MMC adapter doesn't have a flex geometry page.

Revision 1.28.2.9 / (download) - annotate - [select for diffs], Tue Mar 27 15:32:16 2001 UTC (21 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.2.8: +4 -1 lines
Diff to previous 1.28.2.8 (colored)

Sync with HEAD.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Mar 20 22:39:51 2001 UTC (21 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.36: +4 -1 lines
Diff to previous 1.36 (colored)

Add quirks for Panasonic MultiMediaCard adapter (attaches via USB).

Revision 1.28.2.8 / (download) - annotate - [select for diffs], Sun Feb 18 18:27:11 2001 UTC (21 years, 11 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.2.7: +1 -13 lines
Diff to previous 1.28.2.7 (colored)

Move atapiprint() to ic/wdc.c so that we can compile a kernel with IDE
controller but without atapibus.

Revision 1.28.2.7 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:18 2001 UTC (21 years, 11 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.2.6: +2 -2 lines
Diff to previous 1.28.2.6 (colored)

Sync with HEAD.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jan 18 20:28:21 2001 UTC (22 years ago) by jdolecek
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

constify

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Thu Dec 14 00:13:53 2000 UTC (22 years, 1 month ago) by he
Branch: netbsd-1-4
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.31 (requested by bouyer):
  Add a quirk entry for Hitachi CDR-7730.  Fixes PR#11654.

Revision 1.28.2.6 / (download) - annotate - [select for diffs], Mon Nov 20 09:59:23 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.2.5: +49 -141 lines
Diff to previous 1.28.2.5 (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.35 / (download) - annotate - [select for diffs], Sun Apr 2 23:38:19 2000 UTC (22 years, 10 months ago) by augustss
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, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.34: +3 -2 lines
Diff to previous 1.34 (colored)

Let the device thet gets an atapibus attached specify how to kill pending
transfers by giving a function pointer.
The old method always called wdc specific code.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Apr 1 14:32:26 2000 UTC (22 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.33: +33 -106 lines
Diff to previous 1.33 (colored)

- DMA code cleanup: pciide_dma_finish() doesn't stop/unload the current DMA op
  if an IRQ was not detected, unless the force flag was given. Use this to
  detect if the IRQ was for us (closer to shared IRQ for controllers which
  don't have their own IRQ handler in pciide.c) and to poll for DMA xfer.
  Also makes the timeout recovery code simpler.
- ATAPI cleanup: don't call controller-specific functions from atapiconf.c
  (wdc_*), so that it's possible to attach an atapibus to something else
  than a wdc/pciide (Hi Lennart :).
  Overload struct scsi_adapter with struct atapi_adapter, defined
  as struct scsi_adapter + atapi-specific callbacks. scsipi_link still points
  to an scsi_adapter, atapi code casts it to atapi_adapter if needed.
  Move atapi_softc to atapiconf.h so that it can be used by the underlying
  controller code (e.g. atapi_wdc.c).
  Add an atapi-specific callback *atapi_probedev(), which probe a drive
  in a controller-specific way, allocate the sc_link and fills in the
  ataparams if needed. It then calls atapi_probedev() (from atapiconf.c)
  to do the generic initialisations and attach the device.
- While I'm there merge and centralise the state definitions in atavar.h.
  It should now be possible to use a common ata/atapi routine to set the
  drive's modes (will do later).

Revision 1.33 / (download) - annotate - [select for diffs], Tue Mar 28 17:24:46 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Change a printf() to a panic() since the kernel is going to die on the next
line anyway.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Mar 17 11:23:23 2000 UTC (22 years, 10 months ago) by soren
Branch: MAIN
Changes since 1.31: +1 -3 lines
Diff to previous 1.31 (colored)

atapiprint() does not exist.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Feb 28 09:46:25 2000 UTC (22 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored)

Add ADEV_NOSENSE quirk for HITACHI CDR-7730.

Patch sent by Hume Smith in kern/9489.

Revision 1.28.2.5 / (download) - annotate - [select for diffs], Fri Feb 4 23:01:54 2000 UTC (23 years ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.28.2.4: +14 -6 lines
Diff to previous 1.28.2.4 (colored)

Make sure the channel's completion thread exits when the channel
is detached, and completely encapsulate the way periph's are stored
by the channel.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jan 20 17:10:19 2000 UTC (23 years ago) by mjacob
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

Nobody said no to adding a pointer to original scsi inquiry data
to the scsibus attach args. Make sure it's nulled for ATAPI. Also,
for scsiconf.c, modify SENA's quirk entry.

Revision 1.28.6.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:34 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Pull up to last week's -current.

Revision 1.25.6.1 / (download) - annotate - [select for diffs], Tue Nov 30 13:34:28 1999 UTC (23 years, 2 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:23 1999 UTC (23 years, 2 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Sync with -current

Revision 1.28.2.4 / (download) - annotate - [select for diffs], Mon Nov 1 22:54:18 1999 UTC (23 years, 3 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.28.2.3: +7 -6 lines
Diff to previous 1.28.2.3 (colored)

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

Revision 1.28.2.3 / (download) - annotate - [select for diffs], Wed Oct 20 22:53:31 1999 UTC (23 years, 3 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.28.2.2: +2 -1 lines
Diff to previous 1.28.2.2 (colored)

Sync w/ trunk.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Oct 20 15:22:27 1999 UTC (23 years, 3 months ago) by enami
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Cancel active transfers on aic/wdc detach.
Also makes LS-120 drive works for me again.

Revision 1.28.2.2 / (download) - annotate - [select for diffs], Wed Oct 20 10:14:54 1999 UTC (23 years, 3 months ago) by enami
Branch: thorpej_scsipi
Changes since 1.28.2.1: +2 -2 lines
Diff to previous 1.28.2.1 (colored)

Fix compilation error when ATAPI_DEBUG_PROBE is defined.

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Tue Oct 19 17:39:26 1999 UTC (23 years, 3 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.28: +164 -140 lines
Diff to previous 1.28 (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.28 / (download) - annotate - [select for diffs], Thu Sep 30 22:57:53 1999 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (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.27 / (download) - annotate - [select for diffs], Thu Sep 23 11:04:33 1999 UTC (23 years, 4 months ago) by enami
Branch: MAIN
Changes since 1.26: +72 -2 lines
Diff to previous 1.26 (colored)

Allow to detach wdc, atapibus, wd and cd.

Revision 1.25.4.1 / (download) - annotate - [select for diffs], Mon Aug 2 22:07:14 1999 UTC (23 years, 6 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Update from trunk.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Thu Jul 8 17:43:26 1999 UTC (23 years, 7 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

pullup 1.25->1.26 (bouyer); last minute but it looked okay

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jul 8 14:24:42 1999 UTC (23 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

Add another CD to the quirk table.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Feb 15 18:43:08 1999 UTC (23 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, kame_14_19990705, kame_14_19990628
Branch point for: netbsd-1-4, kame, chs-ubc2
Changes since 1.24: +0 -2 lines
Diff to previous 1.24 (colored)

Revert to 1.23, this was not supposed to be checked in yet.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Feb 15 18:41:04 1999 UTC (23 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

For CDIOCCLOSE, ignore media changes, as some drive seems to return this
info here.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Fri Feb 5 06:50:26 1999 UTC (24 years ago) by cgd
Branch: netbsd-1-3
Changes since 1.4.2.2: +7 -3 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

pull up rev 1.7 from trunk (bouyer)

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jan 26 10:00:08 1999 UTC (24 years ago) by bouyer
Branch: MAIN
CVS Tags: bouyer-ide-last-dist
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)

Another CD drive that doesn't support REQUEST SENSE, from Patrick Welche.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 21 10:31:39 1999 UTC (24 years ago) by bouyer
Branch: MAIN
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

Add a mitsumi CD that can't handle REQUEST SENSE command. From
Johan Danielsson <joda@pdc.kth.se>.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jan 19 10:57:11 1999 UTC (24 years ago) by bouyer
Branch: MAIN
Changes since 1.20: +16 -14 lines
Diff to previous 1.20 (colored)

Move test for SDEV_NOSTARTUNIT quirk from sd.c to scsipi_start().
Add a SDEV_NOSTARTUNIT quirk entry for BCD-16X 1997-04-25", "", "VER 2.2"
CD-rom (from Michael Santos).

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jan 19 09:31:58 1999 UTC (24 years ago) by bouyer
Branch: MAIN
Changes since 1.19: +6 -4 lines
Diff to previous 1.19 (colored)

"Memorex CRW-2642" CD-R can't properly handle REQUEST SENSE command.
Add it to the quick table, per PR kern/6844.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Dec 21 21:40:12 1998 UTC (24 years, 1 month ago) by leo
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Change quirk entry: "FX320S", "", " q01" to: "FX320S", "", "q01". This
space does seem to matter...

Revision 1.18 / (download) - annotate - [select for diffs], Thu Dec 17 13:05:05 1998 UTC (24 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored)

Add a new quirk flags, "ADEV_NOSENSE", for devices that don't
handle properly the request sense command. Add <FX320S, , q01> as being
sense-unfriendly in the quirk table.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Dec 16 13:06:52 1998 UTC (24 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Leave some room for the string-terminating char in temp. buffers.
Pointed out by Scott Presnell (thanks !).

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

When allocating a device's scsipi_link, initialize the pending_xfers
queue.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Nov 19 22:25:56 1998 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored)

Add a reference to the adapter before probing the bus, and delete it
once we are done probing.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Oct 13 02:09:47 1998 UTC (24 years, 3 months ago) by enami
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Make this file compile again with -DATAPI_DEBUG_PROBE.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Oct 12 16:09:24 1998 UTC (24 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.12: +48 -46 lines
Diff to previous 1.12 (colored)

Merge bouyer-ide

Revision 1.9.2.4 / (download) - annotate - [select for diffs], Sun Sep 20 20:13:33 1998 UTC (24 years, 4 months ago) by bouyer
Branch: bouyer-ide
CVS Tags: bouyer-ide-merge
Changes since 1.9.2.3: +1 -2 lines
Diff to previous 1.9.2.3 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Remove a stale 'XXX'.

Revision 1.9.2.3 / (download) - annotate - [select for diffs], Fri Sep 11 16:23:13 1998 UTC (24 years, 4 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.9.2.2: +1 -21 lines
Diff to previous 1.9.2.2 (colored) to branchpoint 1.9 (colored)

Sync with HEAD.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Aug 31 22:28:06 1998 UTC (24 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: bouyer-ide-base
Changes since 1.11: +1 -21 lines
Diff to previous 1.11 (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.9.2.2 / (download) - annotate - [select for diffs], Thu Aug 13 14:27:51 1998 UTC (24 years, 5 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.9.2.1: +11 -6 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored)

 - sync with HEAD
 - better error detection and report for wd drives
 - better wddump() support
 - wdcwait() now takes a timout argument, so that we can honnor the
   timeout argument of scsipi cmds.

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:51 1998 UTC (24 years, 6 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Aug 5 16:29:04 1998 UTC (24 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

Improve generation of default disklabels:
-store printable product ID in cd's and sd's softc, use it as "typename"
-for this, add a "destination buffer length" argument to scsipi_strvis()
-return ATAPI device type for ATAPI devices

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jul 31 03:00:51 1998 UTC (24 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored)

Use the pool allocator for scsipi_xfer structures.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Thu Jun 4 16:53:07 1998 UTC (24 years, 8 months ago) by bouyer
Branch: bouyer-ide
Changes since 1.9: +48 -47 lines
Diff to previous 1.9 (colored)

Commit changes to the IDE system in a branch. This allows a better separation
between higth-level and low-level (i.e. registers read/write) and generalize
the queue for all commands. This also add supports for IDE DMA.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jan 15 02:21:29 1998 UTC (25 years ago) by cgd
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t, bouyer-ide
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

add support for an ATAPI attachment for 'sd'.
fix 'cd' driver's NCD_SCSI bogosity (was using testing wrong macro!)
clean up in various ways:
* make common atapi_mode_{sense,select}() functions.
* put ATAPI data structures in more sensible headers, split up by
  device type.
* include headers a bit more carefully.
* pass flags to attachment-specific cd functions, and use them.
* get rid of SCSI bits in scsipi_base.h's scsipi_make_xs(), move
  them into the correct place in scsi_base.c.
* fix minor typo in struct name in scsipiconf.h (which was apparently
  never used except in a #define later in the same file).
* use __attribute__ to force 4-byte alignment for xs command store,
  so that architectures trying to bus_space_write_multi_N() (where
  N > 1) that data to a controller won't lose.
* clean up a few comments in typos, and make a few #defines easier to
  understand/maintain.
* rename cd_link.h to cdvar.h (via repository copy).  This is exactly
  what a 'var' file is supposed to be.

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

Adjust for changes to config.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jan 6 17:03:15 1998 UTC (25 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.6: +7 -3 lines
Diff to previous 1.6 (colored)

Add a few quirk entries from OpenBSD.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Thu Nov 6 22:17:32 1997 UTC (25 years, 3 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.4.2.1: +3 -1 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

Pull rev 1.6 up from trunk (bouyer)

Revision 1.6 / (download) - annotate - [select for diffs], Wed Nov 5 22:02:41 1997 UTC (25 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)

Add a quirk for a sanyo CD (From OpenBSD).

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Fri Oct 31 20:53:16 1997 UTC (25 years, 3 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

Pull rev 1.5 up from trunk (bouyer)

Revision 1.5 / (download) - annotate - [select for diffs], Fri Oct 31 09:11:06 1997 UTC (25 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

Add NOCAPACITY quirk entry for MATSHITA CR-574, rev 1.02.

Revision 1.2.2.4 / (download) - annotate - [select for diffs], Tue Oct 14 10:24:41 1997 UTC (25 years, 3 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.2.2.3: +39 -43 lines
Diff to previous 1.2.2.3 (colored) next main 1.3 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 1 01:18:41 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.3: +39 -43 lines
Diff to previous 1.3 (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.2.2.3 / (download) - annotate - [select for diffs], Mon Sep 1 20:58:57 1997 UTC (25 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.2.2.2: +5 -1 lines
Diff to previous 1.2.2.2 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Aug 28 14:02:31 1997 UTC (25 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Changes since 1.2: +5 -1 lines
Diff to previous 1.2 (colored)

Added a quirk entry for the SANYO CRD-254P (from OpenBSD), and
one for the MATSHITA CR-574 (from Josef Wulf <wulf@ping.net.au> via OpenBSD).

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Wed Aug 27 23:32:56 1997 UTC (25 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.2.2.1: +335 -0 lines
Diff to previous 1.2.2.1 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.2.2.1, Wed Aug 27 11:26:16 1997 UTC (25 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.2: +0 -335 lines
FILE REMOVED

file atapiconf.c was added on branch marc-pcmcia on 1997-08-27 23:32:56 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 27 11:26:16 1997 UTC (25 years, 5 months ago) by bouyer
Branch: MAIN
Branch point for: marc-pcmcia
Changes since 1.1: +335 -0 lines
Diff to previous 1.1 (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.1.2.3 / (download) - annotate - [select for diffs], Thu Jul 17 17:03:02 1997 UTC (25 years, 6 months ago) by bouyer
Branch: bouyer-scsipi
Changes since 1.1.2.2: +4 -2 lines
Diff to previous 1.1.2.2 (colored) next main 1.2 (colored)

Use "locator.h".

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Tue Jul 1 22:37:08 1997 UTC (25 years, 7 months ago) by thorpej
Branch: bouyer-scsipi
Changes since 1.1.2.1: +42 -39 lines
Diff to previous 1.1.2.1 (colored)

Purely cosmetic formatting changes: spaces -> tabs in a few places, and
a general KNF sweep.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Tue Jul 1 16:52:07 1997 UTC (25 years, 7 months ago) by bouyer
Branch: bouyer-scsipi
Changes since 1.1: +330 -0 lines
Diff to previous 1.1 (colored)

New merged scsi/atapi code. Tested on i386 and sparc. Commiting to a branch
for now, so that it can be tested on other ports too.
The config sheme is as follow:
New merged scsi/atapi code. Tested on i386 and sparc. Commiting to a branch
for now, so that it can be tested on other ports too.
The config sheme is as follow:
scsibus at aha
sd at scsibus
cd at scsibus
atapibus at wdc
cd at atapibus
cd has bus-specific config and function front-end in scsicd.c and atapicd.c
The call to theses functions from cd.c is conditionned to
NSCSICD and NATAPICD (all defined in cd.h by config).

Revision 1.1, Tue Jul 1 16:52:07 1997 UTC (25 years, 7 months ago) by bouyer
Branch: MAIN
Branch point for: bouyer-scsipi
FILE REMOVED

file atapiconf.c was initially added on branch bouyer-scsipi.

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>