The NetBSD Project

CVS log for src/sys/dev/usb/usb_subr.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.277 / (download) - annotate - [select for diffs], Wed Apr 6 22:01:45 2022 UTC (9 months, 3 weeks ago) by mlelstv
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.276: +1 -12 lines
Diff to previous 1.276 (colored)

revert accidental last commit (except ukbd.c)

Revision 1.276 / (download) - annotate - [select for diffs], Wed Apr 6 21:51:29 2022 UTC (9 months, 3 weeks ago) by mlelstv
Branch: MAIN
Changes since 1.275: +14 -3 lines
Diff to previous 1.275 (colored)

remove debug printf

Revision 1.275 / (download) - annotate - [select for diffs], Sat Mar 19 20:50:32 2022 UTC (10 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.274: +3 -2 lines
Diff to previous 1.274 (colored)

usb: Insert assertion to diagnose ud_cdesc/ud_ifaces inconsistency.

Syzbot found a way to see ud_cdesc=NULL but ud_ifaces!=NULL:

https://syzkaller.appspot.com/bug?id=e6d4449a128e73a9a88100a5cc833e5cae9fecae

Maybe it's a race with two threads somehow doing usbd_free_device at
the same time when only one should, but let's rule this case out
early on to make it easier to prove it has to be a race.

Revision 1.274 / (download) - annotate - [select for diffs], Sun Mar 13 20:44:06 2022 UTC (10 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.273: +3 -3 lines
Diff to previous 1.273 (colored)

usb: Fix debug build.

Revision 1.273 / (download) - annotate - [select for diffs], Sun Mar 13 13:18:22 2022 UTC (10 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.272: +23 -21 lines
Diff to previous 1.272 (colored)

usbdi(9): Fix mistake in previous change to usbd_fill_iface_data.

The previous change stopped and rejected any descriptors smaller than
an endpoint descriptor.  Restore the previous behaviour: just skip
over them (but it will now reject descriptors that are smaller than
_any_ descriptor, which is legitimately a hardware error).

Revision 1.272 / (download) - annotate - [select for diffs], Sun Mar 13 11:30:12 2022 UTC (10 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.271: +24 -19 lines
Diff to previous 1.271 (colored)

usb: Parse descriptors a little more robustly.

- Avoid reading past the end in the event of bogus bLength.
- Avoid arithmetic overflow by rearranging inequalities.

Reported-by: syzbot+511227c050a2f164e34c@syzkaller.appspotmail.com

Revision 1.271 / (download) - annotate - [select for diffs], Sun Mar 13 11:28:42 2022 UTC (10 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.270: +5 -2 lines
Diff to previous 1.270 (colored)

usbdi(9): Assert no concurrent aborts on a single pipe.

It is a driver bug to try to abort a pipe at the same time in two
different threads.

HCI drivers may release the bus lock to sleep in upm_abort while
waiting for the hardware to acknowledge an abort, so it won't try to,
e.g., scribble over a DMA buffer in the xfer that we've recycled
after usbd_abort_pipe returns.

If this happens, a concurrent usbd_abort_pipe might try to apply
upm_abort to the same xfer, which HCI drivers are not prepared for
and may wreak havoc.

To avoid this, allow only one usbd_abort_pipe in flight at any given
time.

Revision 1.270 / (download) - annotate - [select for diffs], Thu Mar 3 06:13:35 2022 UTC (10 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.269: +3 -2 lines
Diff to previous 1.269 (colored)

usbdi(9): Suspend control pipe on detach.

The device is gone so control transfers won't complete anyway.  This
obviates the need to wait for usbd_do_request to time out.

Seems like maybe we should make _all_ xfers fail with USBD_CANCELLED
when the device is detached, but there's no list of pipes we can just
walk down to suspend them, so we'd have to find another way to do so.
For now, we'll just keep having drivers suspend/abort pipes other
than the control pipe.

Revision 1.269 / (download) - annotate - [select for diffs], Sat Nov 6 06:44:42 2021 UTC (14 months, 3 weeks ago) by skrll
Branch: MAIN
Changes since 1.268: +7 -7 lines
Diff to previous 1.268 (colored)

USB style. NFC.

Revision 1.268 / (download) - annotate - [select for diffs], Sat Nov 6 06:41:02 2021 UTC (14 months, 3 weeks ago) by skrll
Branch: MAIN
Changes since 1.267: +4 -3 lines
Diff to previous 1.267 (colored)

config_pending_incr doesn't need KERNEL_LOCK protection

Revision 1.267 / (download) - annotate - [select for diffs], Tue Sep 7 10:44:18 2021 UTC (16 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.266: +7 -3 lines
Diff to previous 1.266 (colored)

usb(4): Fix xfer race between software abort and hardware completion.

This fixes a bug in the API contract of usbd_abort_pipe: with the
change, the caller is guaranteed the xfer completion callbacks have
returned; without the change, completion callbacks could still be
running on the queued xfers while the caller of usbd_abort_pipe
proceeds to concurrently issue usbd_destroy_xfer.

This also fixes the following problem for interrupt pipes, whose
xfers stay on the queue until the pipe is aborted:

Thread 1: Hardware completion interrupt calls usb_transfer_complete.
Thread 1: pipe->up_repeat is 1, so usb_transfer_complete keeps xfer
  queued.
Thread 2: Calls usbd_abort_pipe (e.g., in detach).
Thread 2: usbd_abort_pipe waits for bus lock.
Thread 1: usb_transfer_complete releases bus lock to invoke callback.
Thread 2: Sets pipe->up_repeat := 0 (too late for thread 1 to see).
Thread 1: usb_transfer_complete waits to reacquire bus lock before
  resetting xfer status to USBD_NOT_STARTED.
Thread 2: Repeatdly calls upm_abort on the same xfer, which does
  nothing because upm_abort just does usbd_abort_xfer which does
  nothing because the xfer status is (e.g.) USBD_IOERROR and not
  USBD_IN_PROGRESS.

Thread 2 is now spinning forever with the bus lock held (and possibly
the kernel lock) waiting for queue or xfer status to change, which
will never happen as long as it holds the bus lock.

The resolution is for thread 2 to notice that thread 1 is busy
invoking a callback, and to wait until thread 1 has finished invoking
the callback and updated the xfer status to reset it to
USBD_NOT_STARTED at which point thread 1 can make progress again.

XXX pullup-9

Revision 1.266 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:17 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.265: +9 -12 lines
Diff to previous 1.265 (colored)

Merge thorpej-cfargs2.

Revision 1.265.2.1 / (download) - annotate - [select for diffs], Wed Aug 4 23:07:57 2021 UTC (17 months, 3 weeks ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.265: +9 -12 lines
Diff to previous 1.265 (colored) next main 1.266 (colored)

Adapt to CFARGS().

Revision 1.250.2.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:31 2021 UTC (19 months, 1 week ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.250: +251 -45 lines
Diff to previous 1.250 (colored) next main 1.251 (colored)

Sync w/ HEAD.

Revision 1.265 / (download) - annotate - [select for diffs], Sun Jun 13 14:48:10 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base
Branch point for: thorpej-cfargs2
Changes since 1.264: +8 -7 lines
Diff to previous 1.264 (colored)

usb(4): Bus exploration is single-threaded -- assert it so.

New usb_in_event_thread(dev) returns true if dev is a USB device --
that is, a device with a usbN ancestor -- and the current thread is
the USB event thread.

(Kinda kludgey to pass around the device_t instead of, say, struct
usbd_bus, but I don't see a good way to get to the usbN device_t or
struct usb_softc from there.)

Revision 1.264 / (download) - annotate - [select for diffs], Sun Jun 13 09:12:24 2021 UTC (19 months, 2 weeks ago) by mlelstv
Branch: MAIN
Changes since 1.263: +3 -3 lines
Diff to previous 1.263 (colored)

Fix last patch.

Revision 1.263 / (download) - annotate - [select for diffs], Sun Jun 13 08:50:33 2021 UTC (19 months, 2 weeks ago) by mlelstv
Branch: MAIN
Changes since 1.262: +6 -6 lines
Diff to previous 1.262 (colored)

Use correct integer lengths for properties.
Change property names vendor -> vendor-id, product -> product-id to match other users.

Revision 1.262 / (download) - annotate - [select for diffs], Sun Jun 13 08:48:29 2021 UTC (19 months, 2 weeks ago) by mlelstv
Branch: MAIN
Changes since 1.261: +3 -3 lines
Diff to previous 1.261 (colored)

Fix non-DIAGNOSTIC build.

Revision 1.261 / (download) - annotate - [select for diffs], Sun Jun 13 00:13:24 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.260: +121 -25 lines
Diff to previous 1.260 (colored)

usb(4): Tighten interface locking and pipe references.

- Just use a reference count, not a list of pipes.

- Take the reference in usbd_open_pipe*, before we even look up the
  endpoint by address; the endpoint is not stable until we hold the
  interface and prevent usbd_set_interface.

- Make opening pipes just fail if usbd_set_interface is in progress.
  => No need to block -- might block for a while, and this is
     essentially a driver error rather than a legitimate reason to
     block.
  => This should maybe be a kassert, but it's not clear that ugen(4)
     doesn't have a user-triggerable path to that kassert, so let's
     keep it as a graceful failure for now until someone can audit
     ugen(4) and make an informed decision.

- No need for a separate interface pipe lock; just use the bus lock.

This is a little bit longer than before, but makes the bracketed
nature of the references a little clearer and introduces more
kasserts to detect mistakes with internal API usage.

Revision 1.260 / (download) - annotate - [select for diffs], Sat Jun 12 15:49:45 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.259: +2 -4 lines
Diff to previous 1.259 (colored)

usb(4): Nix unused struct usbd_interface::ui_priv.

Revision 1.259 / (download) - annotate - [select for diffs], Sat Jun 12 15:41:22 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.258: +27 -18 lines
Diff to previous 1.258 (colored)

usb(4): Make usbd_fill_iface_data atomic.

Now either it replaces and frees the old endpoints array, or it
leaves everything in place; it never leaves a partial update nor
requires the caller to free the old array.

Revision 1.258 / (download) - annotate - [select for diffs], Sat Jun 12 15:39:57 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.257: +5 -11 lines
Diff to previous 1.257 (colored)

usb(4): Merge logic in usbd_kill_pipe and usbd_close_pipe.

usbd_kill_pipe is now just usbd_abort/close_pipe.

No functional change intended.

Revision 1.257 / (download) - annotate - [select for diffs], Sat Jun 12 15:39:46 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.256: +15 -2 lines
Diff to previous 1.256 (colored)

usb(4): Fix fix for interface change pipe fix.

If there is an interface:
- Always put the pipe on the list in usbd_setup_pipe (if successful).
- Always have the pipe on the list from _before_ upm_open.
- Always keep the pipe on the list to _after_ upm_close, and after
  the async task has completed.

This brings the logic in usbd_close_pipe and usbd_kill_pipe closer.

Revision 1.256 / (download) - annotate - [select for diffs], Sat Jun 12 14:43:27 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.255: +58 -8 lines
Diff to previous 1.255 (colored)

usb(4): Fix races between usbd_open_pipe* and usbd_set_interface.

Revision 1.255 / (download) - annotate - [select for diffs], Sat Jun 12 13:58:05 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.254: +38 -4 lines
Diff to previous 1.254 (colored)

usb(4): Fix racy endpoint reference counting.

Rules:

1. After usbd_setup_pipe*, must usbd_kill_pipe.
2. After usbd_open_pipe*, must usbd_close_pipe.

Still haven't merged the logic in usbd_kill_pipe and usbd_close_pipe,
but getting closer.

Revision 1.254 / (download) - annotate - [select for diffs], Sat Jun 12 12:13:23 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.253: +6 -2 lines
Diff to previous 1.253 (colored)

usb(4), uhub(4): Sprinkle usbhist.

Revision 1.253 / (download) - annotate - [select for diffs], Sat Jun 12 12:13:10 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.252: +11 -2 lines
Diff to previous 1.252 (colored)

usb(4): Sprinkle kernel lock assertions.

Revision 1.252 / (download) - annotate - [select for diffs], Sat Jun 12 12:11:27 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.251: +3 -3 lines
Diff to previous 1.251 (colored)

usb(4): Verify dev->ud_subdevs is still there before freeing it.

usbd_attachinterfaces may sleep, and if it does, it releases the
kernel lock, in which case another thread may free dev->ud_subdevs.

Revision 1.251 / (download) - annotate - [select for diffs], Sat Jun 12 12:11:11 2021 UTC (19 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.250: +2 -4 lines
Diff to previous 1.250 (colored)

usb(4): kmem_zalloc(KM_SLEEP) cannot fail; nix error branch.

Revision 1.250 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:59 2021 UTC (21 months ago) by thorpej
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.249: +15 -7 lines
Diff to previous 1.249 (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.248.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:50 2021 UTC (21 months, 3 weeks ago) by thorpej
Branch: thorpej-futex
Changes since 1.248: +32 -6 lines
Diff to previous 1.248 (colored) next main 1.249 (colored)

Sync with HEAD.

Revision 1.249.2.2 / (download) - annotate - [select for diffs], Fri Apr 2 22:17:45 2021 UTC (21 months, 3 weeks ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.249.2.1: +5 -3 lines
Diff to previous 1.249.2.1 (colored) to branchpoint 1.249 (colored) next main 1.250 (colored)

config_found_ia() -> config_found() w/ CFARG_IATTR.

Revision 1.249.2.1 / (download) - annotate - [select for diffs], Mon Mar 22 02:01:02 2021 UTC (22 months, 1 week ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.249: +12 -6 lines
Diff to previous 1.249 (colored)

Mechanical conversion of config_found_sm_loc() -> config_found().
CFARG_IATTR usage needs to be audited.

Revision 1.249 / (download) - annotate - [select for diffs], Wed Feb 17 06:30:57 2021 UTC (23 months, 1 week ago) by mlelstv
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.248: +32 -6 lines
Diff to previous 1.248 (colored)

Expose more descriptor items as device properties.

Revision 1.248 / (download) - annotate - [select for diffs], Thu Jun 11 02:39:30 2020 UTC (2 years, 7 months ago) by thorpej
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.247: +3 -3 lines
Diff to previous 1.247 (colored)

Update for proplib(3) API changes.

Revision 1.247 / (download) - annotate - [select for diffs], Sun May 31 18:33:08 2020 UTC (2 years, 7 months ago) by maxv
Branch: MAIN
Changes since 1.246: +10 -3 lines
Diff to previous 1.246 (colored)

Reset ud_ifaces and ud_cdesc to NULL, to prevent use-after-free in
usb_free_device().

Reported-by: syzbot+c7e74d0ae89e9f08f863@syzkaller.appspotmail.com

Revision 1.246 / (download) - annotate - [select for diffs], Sun May 31 18:20:23 2020 UTC (2 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.245: +3 -2 lines
Diff to previous 1.245 (colored)

also set ifc->ui_endpoints to NULL in usbd_free_iface_data() when the value
is freed, to make it impossible to re-enter this by mistake

very likely has no effect for the syzbot problem, but good to do nevetheless

Reported-by: syzbot+c555801d6bc0d768f402@syzkaller.appspotmail.com

Revision 1.245 / (download) - annotate - [select for diffs], Sun May 31 17:52:58 2020 UTC (2 years, 7 months ago) by maxv
Branch: MAIN
Changes since 1.244: +13 -6 lines
Diff to previous 1.244 (colored)

If we failed because we didn't encounter an endpoint, do not attempt to
read 'ed', because its value is past the end of the buffer, and we thus
perform out-of-bounds accesses.

Detected thanks to vHCI+KASAN. First bug found by USB fuzzing.

Reported-by: syzbot+59e7f6b3f353584ac810@syzkaller.appspotmail.com

Revision 1.224.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:50 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.224.2.1: +117 -155 lines
Diff to previous 1.224.2.1 (colored) to branchpoint 1.224 (colored) next main 1.225 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.244 / (download) - annotate - [select for diffs], Sat Mar 14 03:01:36 2020 UTC (2 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.243: +3 -3 lines
Diff to previous 1.243 (colored)

fix more broken kernhist formats (now I got them all).

Revision 1.243 / (download) - annotate - [select for diffs], Sat Mar 14 02:35:33 2020 UTC (2 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.242: +12 -12 lines
Diff to previous 1.242 (colored)

revert the 0x% -> %# change for fixed width formats pointed out by uwe.

Revision 1.241.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:16 2020 UTC (2 years, 10 months ago) by ad
Branch: ad-namecache
Changes since 1.241: +2 -95 lines
Diff to previous 1.241 (colored) next main 1.242 (colored)

Sync with head.

Revision 1.242 / (download) - annotate - [select for diffs], Sat Feb 8 08:47:27 2020 UTC (2 years, 11 months ago) by maxv
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Changes since 1.241: +2 -95 lines
Diff to previous 1.241 (colored)

Move three functions into usbdi_util.c, where they belong. No functional
change.

Revision 1.196.4.6 / (download) - annotate - [select for diffs], Sat Nov 16 16:13:56 2019 UTC (3 years, 2 months ago) by martin
Branch: netbsd-7
Changes since 1.196.4.5: +14 -7 lines
Diff to previous 1.196.4.5 (colored) to branchpoint 1.196 (colored) next main 1.197 (colored)

Pull up following revision(s) (requested by mrg in ticket #1713):

	sys/dev/usb/usbdi.h: revision 1.97 (via patch)
	sys/dev/usb/usbdi.c: revision 1.186 (via patch)
	sys/dev/usb/usb_subr.c: revision 1.239 (via patch)

add new usbd_do_request_len() that can allocate a larger than
request size buffer.  reimplement usbd_do_request_flags() in
terms of this.  use this for fetching string descriptors.

fixes a very strange problem where an axe(4) attaching (either
has ugen(4) or axe(4)) would ask for 2 bytes, usb_mem.c would
allocate a 2 byte fragment, perform the operation, and sometime
shortly afterwards (usually by the time the next allocation
is made for this fragment), would become corrupted (usually
two bytes were written with 0x0304.)
(initial request of 4 bytes also avoids the problem on this
device.  it really seems like a HC problem -- host should not
allow the device to write more than req.wLength!  nor should
it allow this write to happen after completion.)

avoid an (almost) always double-log in usbd_transfer().

Revision 1.241 / (download) - annotate - [select for diffs], Thu Oct 3 05:20:31 2019 UTC (3 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.240: +11 -2 lines
Diff to previous 1.240 (colored)

Fix memory leaks. Was wondering where memory had gone after several hours
of attach/detach with vHCI.

Revision 1.240 / (download) - annotate - [select for diffs], Sun Sep 15 09:24:38 2019 UTC (3 years, 4 months ago) by maxv
Branch: MAIN
Changes since 1.239: +8 -2 lines
Diff to previous 1.239 (colored)

Reset ud_pipe0 to NULL before calling usbd_setup_pipe_flags(). If the call
fails we call usbd_remove_device(), which tries to free ud_pipe0, but it
was already freed.

While here, add two sanity checks, to prevent possible surprises.

Revision 1.235.2.1 / (download) - annotate - [select for diffs], Sun Sep 1 13:00:36 2019 UTC (3 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.235: +103 -70 lines
Diff to previous 1.235 (colored) next main 1.236 (colored)

Pull up following revision(s) (requested by mrg in ticket #135):

	distrib/sets/lists/comp/mi			1.2279
	distrib/sets/lists/modules/mi			1.123
	share/man/man9/Makefile				1.438
	share/man/man9/usbnet.9				1.1-1.9
	sys/dev/ic/rndisreg.h				1.3
	sys/dev/usb/TODO				1.47-1.52
	sys/dev/usb/TODO.usbmp				1.15,1.16
	sys/dev/usb/files.usb				1.157-1.167
	sys/dev/usb/if_aue.c				1.155-1.161
	sys/dev/usb/if_auereg.h				1.30-1.32
	sys/dev/usb/if_axe.c				1.103-1.119
	sys/dev/usb/if_axen.c				1.51-1.53,1.55-1.67
	sys/dev/usb/if_axenreg.h			1.15
	sys/dev/usb/if_cdce.c				1.54-1.67
	sys/dev/usb/if_cue.c				1.85,1.86
	sys/dev/usb/if_cuereg.h				1.23
	sys/dev/usb/if_kue.c				1.97-1.100
	sys/dev/usb/if_kuereg.h				1.23,1.24
	sys/dev/usb/if_mue.c				1.51-1.55
	sys/dev/usb/if_muereg.h				1.6
	sys/dev/usb/if_muevar.h				1.9
	sys/dev/usb/if_smsc.c				1.46-1.61
	sys/dev/usb/if_smscreg.h			1.6
	sys/dev/usb/if_smscvar.h			delete
	sys/dev/usb/if_udav.c				1.60-1.71
	sys/dev/usb/if_udavreg.h			1.14,1.15
	sys/dev/usb/if_upl.c				1.65,1.66
	sys/dev/usb/if_ure.c				1.15-1.31
	sys/dev/usb/if_urevar.h				1.4,1.5
	sys/dev/usb/if_url.c				1.67-1.70
	sys/dev/usb/if_urlreg.h				1.14
	sys/dev/usb/if_urndis.c				1.22-1.33
	sys/dev/usb/if_urtwn.c				1.72
	sys/dev/usb/ohci.c				1.290
	sys/dev/usb/uhub.c				1.143
	sys/dev/usb/usb.c				1.180
	sys/dev/usb/usb.h				1.118
	sys/dev/usb/usb_mem.c				1.71
	sys/dev/usb/usb_subr.c				1.238,1.239
	sys/dev/usb/usbdevs				1.772
	sys/dev/usb/usbdi.c				1.183,1.186
	sys/dev/usb/usbdi.h				1.97
	sys/dev/usb/usbdi_util.c			1.75
	sys/dev/usb/usbhist.h				1.5,1.6
	sys/dev/usb/usbnet.c				1.1-1.24
	sys/dev/usb/usbnet.h				1.1-1.14
	sys/dev/usb/usbroothub.c			1.9
	sys/dev/usb/xhci.c				1.109,1.110
	sys/modules/Makefile				1.223
	sys/modules/usbnet/Makefile			1.1

usbnet(9): Add common framework for USB network devices.
This bring various safety fixes to all updated drivers,
and includes locking clean up, detach safety when being
used or not, separate rx/tx locks to improve performance,
porting to NET_MPSAFE, many edge/error case bugs in
drivers fixed, as well as resovling PRs 54303 and 54308.
These drivers are converted: axe(4), axen(4), aue(4),
cdce(4), cue(4), kue(4), mue(4), smsc(4), udav(4),
upl(4), ure(4), url(4), and urndis(4).

Revision 1.239 / (download) - annotate - [select for diffs], Wed Aug 28 01:44:39 2019 UTC (3 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.238: +14 -7 lines
Diff to previous 1.238 (colored)

add new usbd_do_request_len() that can allocate a larger than
request size buffer.  reimplement usbd_do_request_flags() in
terms of this.  use this for fetching string descriptors.

fixes a very strange problem where an axe(4) attaching (either
has ugen(4) or axe(4)) would ask for 2 bytes, usb_mem.c would
allocate a 2 byte fragment, perform the operation, and sometime
shortly afterwards (usually by the time the next allocation
is made for this fragment), would become corrupted (usually
two bytes were written with 0x0304.)

(initial request of 4 bytes also avoids the problem on this
device.  it really seems like a HC problem -- host should not
allow the device to write more than req.wLength!  nor should
it allow this write to happen after completion.)

avoid an (almost) always double-log in usbd_transfer().

Revision 1.238 / (download) - annotate - [select for diffs], Wed Aug 21 10:48:37 2019 UTC (3 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.237: +32 -30 lines
Diff to previous 1.237 (colored)

convert pairs of USBHIST_CALLED()+USBHIST_LOG*() into
USBHIST_CALLARGS() calls.  this reduces the number of
kernel history lines consumed by these callers, and
for the +LOGN versions, add useful log info to a
message that just says "called!".

reduces the line spam which means the total info in a
full log is significantly increased.

Revision 1.237 / (download) - annotate - [select for diffs], Wed Aug 7 08:47:09 2019 UTC (3 years, 5 months ago) by maxv
Branch: MAIN
Changes since 1.236: +57 -35 lines
Diff to previous 1.236 (colored)

Introduce USB_DESCRIPTOR_SIZE (3), and fix two bugs:

 1) In usbd_find_idesc(), make sure the tables we're reading fit in the
    allocated buffer, otherwise small overflow (seen on KASAN, with
    bLength=1).
 2) Modify usbd_find_edesc(), to fix the same issues as 1).

ok mrg@

Revision 1.236 / (download) - annotate - [select for diffs], Wed Jul 31 19:40:59 2019 UTC (3 years, 5 months ago) by maxv
Branch: MAIN
Changes since 1.235: +6 -4 lines
Diff to previous 1.235 (colored)

 1) Make sure we have a complete endpoint descriptor header, otherwise
    small overflow.
 2) Make sure the total length of the bos descriptor did not change in
    the meantime, otherwise severe memory corruption.
 3) Make sure we have a complete hid descriptor header, otherwise
    small overflow.
 4) Error out if the report descriptor is zero-sized, otherwise panic.

ok skrll@ mrg@

Revision 1.235 / (download) - annotate - [select for diffs], Tue Jul 23 17:21:33 2019 UTC (3 years, 6 months ago) by maxv
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.234: +11 -4 lines
Diff to previous 1.234 (colored)

 1) If the descriptor length is bigger than the USB string descriptor
    itself, error out. Otherwise there is a small overflow (seen on KASAN,
    with bLength=255).
 2) Make sure we have a config descriptor header, otherwise there are small
    overflows (seen on KASAN, with wTotalLength=1).
 3) Once we have the complete config descriptor, make sure its size didn't
    change in the meantime. Otherwise there could be severe overflows.
 4) Make sure we have a bos descriptor header, otherwise overflow, same
    as 2).

ok mrg@ skrll@

Revision 1.234 / (download) - annotate - [select for diffs], Fri Jul 19 04:18:49 2019 UTC (3 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.233: +2 -38 lines
Diff to previous 1.233 (colored)

revert previous.  meant to delete that change...

Revision 1.233 / (download) - annotate - [select for diffs], Fri Jul 19 04:17:34 2019 UTC (3 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.232: +38 -2 lines
Diff to previous 1.232 (colored)

call ure_stop_locked(), not ure_stop(), from ure_init_locked() to
avoid locking botch.  fixes assert reported by sc.dying.

Revision 1.232 / (download) - annotate - [select for diffs], Sat Jul 6 08:00:19 2019 UTC (3 years, 6 months ago) by maxv
Branch: MAIN
Changes since 1.231: +4 -4 lines
Diff to previous 1.231 (colored)

Revert previous, for now.

Revision 1.231 / (download) - annotate - [select for diffs], Sat Jul 6 05:05:53 2019 UTC (3 years, 6 months ago) by maxv
Branch: MAIN
Changes since 1.230: +6 -6 lines
Diff to previous 1.230 (colored)

Fix two length checks, otherwise a malicious USB key plugged in the
system could trigger overflows, seen with KASAN.

Revision 1.224.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:34 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.224: +14 -83 lines
Diff to previous 1.224 (colored)

Sync with HEAD

Revision 1.230 / (download) - annotate - [select for diffs], Tue Feb 12 14:17:44 2019 UTC (3 years, 11 months ago) by rin
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.229: +2 -3 lines
Diff to previous 1.229 (colored)

Do not set p->up_serialise twice in usbd_setup_pipe_flags().
No functional changes.

Revision 1.229 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:42 2019 UTC (4 years ago) by pgoyette
Branch: MAIN
Changes since 1.228: +3 -75 lines
Diff to previous 1.228 (colored)

Merge the [pgoyette-compat] branch

Revision 1.223.2.5 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:47 2018 UTC (4 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.223.2.4: +9 -8 lines
Diff to previous 1.223.2.4 (colored) to branchpoint 1.223 (colored) next main 1.224 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.220.2.6 / (download) - annotate - [select for diffs], Sun Nov 4 11:08:10 2018 UTC (4 years, 2 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.220.2.5: +12 -11 lines
Diff to previous 1.220.2.5 (colored) to branchpoint 1.220 (colored) next main 1.221 (colored)

Pull up following revision(s) (requested by manu in ticket #1078):

	sys/dev/usb/uhub.c: revision 1.140
	sys/dev/usb/uhub.c: revision 1.141
	sys/dev/usb/usb_subr.c: revision 1.228

Make USB port numbers display consistent

Make sure USB ports numbers are displayed with the first one as number one
and not number zero when rescanning bus. The change makes the display
consistent with the display at boot time USB discovery.

While we are there, make port iteration consistent everywhere in the code,
always starting at one instead of zero.

 -

Make USB port iteration code consistent, always startint at port #1
This complements change in revision 1.140

Revision 1.228 / (download) - annotate - [select for diffs], Tue Oct 23 01:49:37 2018 UTC (4 years, 3 months ago) by manu
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.227: +12 -11 lines
Diff to previous 1.227 (colored)

Make USB port iteration code consistent, always startint at port #1

This complements change in revision 1.140

Revision 1.223.2.4 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:51 2018 UTC (4 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.223.2.3: +4 -2 lines
Diff to previous 1.223.2.3 (colored) to branchpoint 1.223 (colored)

Ssync with HEAD

Revision 1.220.2.5 / (download) - annotate - [select for diffs], Thu Sep 27 14:52:26 2018 UTC (4 years, 4 months ago) by martin
Branch: netbsd-8
Changes since 1.220.2.4: +4 -2 lines
Diff to previous 1.220.2.4 (colored) to branchpoint 1.220 (colored)

Pull up following revision(s) (requested by mrg in ticket #1037):

	sys/dev/usb/uhub.c: revision 1.139
	sys/external/bsd/dwc2/dwc2.c: revision 1.55
	sys/ddb/db_output.c: revision 1.34
	sys/ddb/db_command.c: revision 1.160
	sys/dev/usb/ehci.c: revision 1.264
	sys/dev/usb/xhci.c: revision 1.99
	sys/dev/usb/ehci.c: revision 1.265
	sys/kern/subr_userconf.c: revision 1.27
	sys/dev/usb/ehcivar.h: revision 1.46
	sys/dev/usb/ohci.c: revision 1.287
	sys/dev/usb/uhci.c: revision 1.284
	sys/dev/usb/usbdi.c: revision 1.178
	sys/dev/usb/usb.c: revision 1.172
	sys/dev/pci/xhci_pci.c: revision 1.14
	sys/dev/usb/usb.c: revision 1.173
	sys/dev/usb/usb.c: revision 1.174
	share/man/man4/usb.4: revision 1.110
	sys/ddb/db_command.c: revision 1.159
	sys/dev/usb/usb_subr.c: revision 1.227
	sys/dev/usb/uhcivar.h: revision 1.56
	(all via patch)

consolidate the handling of polling across HC drivers, and generic USB:
- don't take mutexes if polling
- normalise the code across all drivers
- add some not yet code to block discovery to/from polling
- minor CSE
- adjust comment for usbd_set_polling() to reality now i properly
  understand what it is used for and why.

this, with a hack to make RB_ASKNAME to wait 5 seconds allows boot -a
work with USB keyboards.  there are still multiple issues remaining:
- discovery and polling need to be mutually exclusive
- attachment of ukbd and wskbd is not handled by config_pending, and
  the 5 second delay isn't going to always be enough.

call cnpollc(1) and cnpollc(0) around cngetc().
(christos has a good idea to add a function that does all 3,
and we should switch all the callers in this sequence to use
it (and fix the MD ones missing it still).  not all can, as
eg, line-grabbing functions can use cngetsn(), which only
calls cnpollc() twice.)


When this file is used when not building the kernel (eg: /usr/sbin/crash)
make cnpollc() go away.


reorder some struct members to remove holes.


add config_pending usage to uhub and general USB device attachment.
- call config_pending_incr() and config_pending_decr() around attaching
  devices against "usbdevif" attribute.

uhub:
- convert sc_explorepending and sc_running to bool.  add new sc_first_explore.
- call config_pending_incr() at the start of uhub_attach().  dropped in
  uhub_explore(), if this is the first explore.


implement a gross hack to fix "boot -a" on systems with usb keyboards on
systems with ehci handover to uhci (and maybe ohci), and fix a similar
problem for "boot -s".

there is effort to ensure that all devices attached via USB are probed
before RB_ASKNAME or RB_SINGLE attempts to ask any questions on the console,
and largely this works, often by chance, today, for USB disks and root.
i've recently pushed this more into uhub and general USB device attachment
as well, and kept a config_pending reference across the first explore of
a bus.  these fix many issues with directly attached hubs.

however, on systems where devices connected to ehci ports are handed over
to a companion uhci or ohci port, it may not be the first, or even second,
bus explore that finds the device finally before attachment, and at this
point all config_pending references are dropped.

there is no direct communication between drivers, the potentials are
looked up but their device_t is only used for generic things like the name,
so informing the correct companion to expect a device and deal with the
config_pending references is not possible without some fairly ugly layer
violations or multi-level callbacks (eg, we have "ehci0", and usually an
the relevant companion, eg, "uhci2", but it is the uhub that uhci2 has
attached that will deal with the device attachment.)

with the above fixes to generic USB code, the disown happens during the
first explore.  the hack works by, at this point, checking if (a) root
is not mounted, (b) single user or ask name are set, and (c) if the hack
as not been triggered already.  if all 3 conditions are true, then a
config_pending_incr() is called and a callback is triggered for (default)
5 seconds to call config_pending_decr().  ehci detach pauses waiting for
this callback if scheduled.

this allows enough time for the uhub and the ukbd/wskbd to attach before
the RK_ASKROOT prompts appear.  testing shows it takes between 1.5 and
2 seconds for the keyboard to appear after the disown occurs.

Index: dev/usb/ehcivar.c
- new sc_compcallout, sc_compcallout, sc_complock, and a state for th
  handover hack.

Index: dev/usb/ehci.c
ehci_init():
- use aprint_normal_dev() instead of manual device_xname().
- initialise sc_compcallout, sc_compcallout, sc_complock, and sc_comp_state.
ehci_detach():
- if there are companion controllers, tear own the above, including waiting
  if there is a callback scheduled.
ehci_disown_callback():
- new callout to call config_pending_decr() in the the future.
  schedule this ca
ehci_disown_sched_callback():
- if booting to single user or asking names, call config_pending_incr() and
  schedule the callout above, default 5 second delay.
ehci_disown():
- if disowning a port call ehci_disown_sched_callback().
deal with partial attach failures in usb_attach vs usb_detach aka PR 53598.
- make sure xhci's sc->sc_ios is NULL if failure happens.
- rearrange usb_attach() / usb_doattach() to make it simpler to clean up.
- move usb_async_intr softint into usb_once_init().  previously, each USB
  controller would start a new one, and leave the old one leaked.
- handle controller interrupts without a bus attached


remove usb(4)'s "flags 1" code.  it has been dead for a while,
as it runs during the interrupts part of configuration now,
and all the devices try attach as early as possible, including
any root or boot required disk or keyboard device, which is
what this flag was for.

Revision 1.227 / (download) - annotate - [select for diffs], Tue Sep 18 01:36:44 2018 UTC (4 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.226: +4 -2 lines
Diff to previous 1.226 (colored)

add config_pending usage to uhub and general USB device attachment.

- call config_pending_incr() and config_pending_decr() around attaching
  devices against "usbdevif" attribute.

uhub:
- convert sc_explorepending and sc_running to bool.  add new sc_first_explore.
- call config_pending_incr() at the start of uhub_attach().  dropped in
  uhub_explore(), if this is the first explore.

Revision 1.223.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:05 2018 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.223.2.2: +4 -3 lines
Diff to previous 1.223.2.2 (colored) to branchpoint 1.223 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.220.2.4 / (download) - annotate - [select for diffs], Sun Aug 26 08:05:16 2018 UTC (4 years, 5 months ago) by martin
Branch: netbsd-8
Changes since 1.220.2.3: +12 -7 lines
Diff to previous 1.220.2.3 (colored) to branchpoint 1.220 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #990):

	sys/dev/usb/usb_subr.c: revision 1.224

add missing KERNEL_LOCK protection around autoconf calls.

Also replace NULL argument with curlwp for style.

Revision 1.220.2.3 / (download) - annotate - [select for diffs], Wed Aug 8 10:28:35 2018 UTC (4 years, 5 months ago) by martin
Branch: netbsd-8
Changes since 1.220.2.2: +4 -3 lines
Diff to previous 1.220.2.2 (colored) to branchpoint 1.220 (colored)

Pull up following revision(s) (requested by riastradh in ticket #963):

	sys/dev/usb/if_cue.c: revision 1.80
	sys/dev/usb/umcs.c: revision 1.11
	sys/dev/usb/umcs.c: revision 1.12
	sys/dev/usb/if_ural.c: revision 1.56
	sys/dev/usb/if_run.c: revision 1.28
	sys/dev/usb/if_ural.c: revision 1.57
	sys/dev/usb/if_run.c: revision 1.29
	sys/dev/usb/uatp.c: revision 1.16
	sys/dev/usb/uatp.c: revision 1.17
	sys/dev/usb/if_axe.c: revision 1.91
	sys/dev/usb/if_axe.c: revision 1.92
	sys/dev/usb/if_zyd.c: revision 1.49
	sys/dev/usb/if_axen.c: revision 1.15
	sys/dev/usb/if_url.c: revision 1.60
	sys/dev/usb/if_udav.c: revision 1.54
	sys/dev/usb/if_axen.c: revision 1.16
	sys/dev/usb/if_udav.c: revision 1.55
	sys/dev/usb/if_athn_usb.c: revision 1.28
	sys/dev/usb/if_athn_usb.c: revision 1.29
	sys/dev/usb/if_urtw.c: revision 1.16
	sys/dev/usb/if_urtw.c: revision 1.17
	sys/dev/usb/if_cue.c: revision 1.79
	sys/dev/usb/if_rum.c: revision 1.62
	sys/dev/usb/if_urtwn.c: revision 1.61
	sys/dev/usb/if_rum.c: revision 1.63
	sys/dev/usb/if_urtwn.c: revision 1.63
	sys/dev/usb/usb.c: revision 1.170
	sys/dev/usb/usb.c: revision 1.171
	sys/dev/usb/if_smsc.c: revision 1.35
	sys/dev/usb/if_smsc.c: revision 1.36
	sys/dev/usb/if_zyd.c: revision 1.50
	sys/dev/usb/if_aue.c: revision 1.144
	sys/dev/usb/if_aue.c: revision 1.145
	sys/dev/usb/usb_subr.c: revision 1.225
	sys/dev/usb/usb_subr.c: revision 1.226
	sys/dev/usb/if_upgt.c: revision 1.21
	sys/dev/usb/usbdi.h: revision 1.93
	sys/dev/usb/if_upgt.c: revision 1.22
	sys/dev/usb/if_url.c: revision 1.59
	sys/dev/usb/usbdi.h: revision 1.95
	sys/dev/usb/if_otus.c: revision 1.34
	sys/dev/usb/if_atu.c: revision 1.62
	sys/dev/usb/if_otus.c: revision 1.35
	sys/dev/usb/if_atu.c: revision 1.63

New function usb_rem_task_wait(dev, task, queue).

If task is scheduled to run, removes it from the queue.  If it may
have already begun to run, waits for it to complete.  Caller must
guarantee it will not switch to another queue.  If caller guarantees
it will not be scheduled again, then usb_rem_task_wait guarantees it
is not running on return.

This will enable us to fix a litany of bugs in detach where we
currently fail to wait for a pending task.

Use usb_rem_task_wait in various drivers.

Revision 1.196.4.5 / (download) - annotate - [select for diffs], Wed Aug 8 10:17:11 2018 UTC (4 years, 5 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.196.4.4: +4 -3 lines
Diff to previous 1.196.4.4 (colored) to branchpoint 1.196 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1626):

	sys/dev/usb/if_cue.c: revision 1.80
	sys/dev/usb/umcs.c: revision 1.11
	sys/dev/usb/umcs.c: revision 1.12
	sys/dev/usb/if_ural.c: revision 1.56
	sys/dev/usb/if_run.c: revision 1.28
	sys/dev/usb/if_ural.c: revision 1.57
	sys/dev/usb/if_run.c: revision 1.29
	sys/dev/usb/uatp.c: revision 1.16
	sys/dev/usb/uatp.c: revision 1.17
	sys/dev/usb/if_axe.c: revision 1.91
	sys/dev/usb/if_axe.c: revision 1.92
	sys/dev/usb/if_zyd.c: revision 1.49
	sys/dev/usb/if_axen.c: revision 1.15
	sys/dev/usb/if_url.c: revision 1.60
	sys/dev/usb/if_udav.c: revision 1.54
	sys/dev/usb/if_axen.c: revision 1.16
	sys/dev/usb/if_udav.c: revision 1.55
	sys/dev/usb/if_athn_usb.c: revision 1.28
	sys/dev/usb/if_athn_usb.c: revision 1.29
	sys/dev/usb/if_urtw.c: revision 1.16
	sys/dev/usb/if_urtw.c: revision 1.17
	sys/dev/usb/if_cue.c: revision 1.79
	sys/dev/usb/if_rum.c: revision 1.62
	sys/dev/usb/if_urtwn.c: revision 1.61
	sys/dev/usb/if_rum.c: revision 1.63
	sys/dev/usb/if_urtwn.c: revision 1.63
	sys/dev/usb/usb.c: revision 1.170
	sys/dev/usb/usb.c: revision 1.171
	sys/dev/usb/if_smsc.c: revision 1.35
	sys/dev/usb/if_smsc.c: revision 1.36
	sys/dev/usb/if_zyd.c: revision 1.50
	sys/dev/usb/if_aue.c: revision 1.144
	sys/dev/usb/if_aue.c: revision 1.145
	sys/dev/usb/usb_subr.c: revision 1.225
	sys/dev/usb/usb_subr.c: revision 1.226
	sys/dev/usb/if_upgt.c: revision 1.21
	sys/dev/usb/usbdi.h: revision 1.93
	sys/dev/usb/if_upgt.c: revision 1.22
	sys/dev/usb/if_url.c: revision 1.59
	sys/dev/usb/usbdi.h: revision 1.95
	sys/dev/usb/if_otus.c: revision 1.34
	sys/dev/usb/if_atu.c: revision 1.62
	sys/dev/usb/if_otus.c: revision 1.35
	sys/dev/usb/if_atu.c: revision 1.63

New function usb_rem_task_wait(dev, task, queue).

If task is scheduled to run, removes it from the queue.  If it may
have already begun to run, waits for it to complete.  Caller must
guarantee it will not switch to another queue.  If caller guarantees
it will not be scheduled again, then usb_rem_task_wait guarantees it
is not running on return.

This will enable us to fix a litany of bugs in detach where we
currently fail to wait for a pending task.

Use usb_rem_task_wait in various drivers.

Revision 1.226 / (download) - annotate - [select for diffs], Thu Aug 2 06:09:04 2018 UTC (4 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-0906, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Changes since 1.225: +4 -3 lines
Diff to previous 1.225 (colored)

Fix usb_rem_task_wait API.

- Return whether it removed task from queue or not.
  . True if it was on the queue and we intercepted it before it ran.
  . False if we could not intercept it: either it wasn't queued,
    or it already ran.  (Up to caller to distinguish these cases.)
- Pass an optional interlock like callout_halt.

While here, simplify.

ok mrg@

Revision 1.225 / (download) - annotate - [select for diffs], Sun Jul 29 02:08:07 2018 UTC (4 years, 6 months ago) by riastradh
Branch: MAIN
Changes since 1.224: +3 -3 lines
Diff to previous 1.224 (colored)

Use usb_rem_task_wait in usbd_kill_pipe.

Revision 1.223.2.2 / (download) - annotate - [select for diffs], Wed May 2 07:20:11 2018 UTC (4 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.223.2.1: +12 -7 lines
Diff to previous 1.223.2.1 (colored) to branchpoint 1.223 (colored)

Synch with HEAD

Revision 1.224 / (download) - annotate - [select for diffs], Mon Apr 30 05:04:34 2018 UTC (4 years, 9 months ago) by mlelstv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502
Branch point for: phil-wifi
Changes since 1.223: +12 -7 lines
Diff to previous 1.223 (colored)

add missing KERNEL_LOCK protection around autoconf calls.

Also replace NULL argument with curlwp for style.

Revision 1.223.2.1 / (download) - annotate - [select for diffs], Thu Mar 29 11:20:03 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.223: +3 -75 lines
Diff to previous 1.223 (colored)

Split out the usb compat_30 code and add it to the module

Revision 1.196.4.4 / (download) - annotate - [select for diffs], Wed Jan 3 21:18:03 2018 UTC (5 years ago) by snj
Branch: netbsd-7
Changes since 1.196.4.3: +16 -2 lines
Diff to previous 1.196.4.3 (colored) to branchpoint 1.196 (colored)

Pull up following revision(s) (requested by khorben in ticket #1541):
	sys/dev/usb/usb_subr.c: revision 1.222
Be more defensive towards malicious USB devices
This avoids potential panics due to 0-sized memory allocation attempts,
which could be triggered by malicious USB devices.
Tested on NetBSD/amd64 with a Sony Xperia X (SailfishOS).
Based on an initial patch by Nick Hudson <skrll@NetBSD.org>, thanks!
Fixes PR kern/52383.

Revision 1.223 / (download) - annotate - [select for diffs], Tue Dec 26 18:44:52 2017 UTC (5 years, 1 month ago) by khorben
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.222: +3 -3 lines
Diff to previous 1.222 (colored)

Fix typo in a comment

Revision 1.220.2.2 / (download) - annotate - [select for diffs], Thu Dec 21 21:32:10 2017 UTC (5 years, 1 month ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.220.2.1: +16 -2 lines
Diff to previous 1.220.2.1 (colored) to branchpoint 1.220 (colored)

Pull up following revision(s) (requested by khorben in ticket #447):
	sys/dev/usb/usb_subr.c: revision 1.222
Be more defensive towards malicious USB devices
This avoids potential panics due to 0-sized memory allocation attempts,
which could be triggered by malicious USB devices.
Tested on NetBSD/amd64 with a Sony Xperia X (SailfishOS).
Based on an initial patch by Nick Hudson <skrll@NetBSD.org>, thanks!
Fixes PR kern/52383.

Revision 1.222 / (download) - annotate - [select for diffs], Fri Dec 8 14:46:18 2017 UTC (5 years, 1 month ago) by khorben
Branch: MAIN
Changes since 1.221: +16 -2 lines
Diff to previous 1.221 (colored)

Be more defensive towards malicious USB devices

This avoids potential panics due to 0-sized memory allocation attempts,
which could be triggered by malicious USB devices.

Tested on NetBSD/amd64 with a Sony Xperia X (SailfishOS).

Based on an initial patch by Nick Hudson <skrll@NetBSD.org>, thanks!

Fixes PR kern/52383.

XXX pull-up to netbsd-7, netbsd-8

LGTM xtos@

Revision 1.183.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:34 2017 UTC (5 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.183.2.3: +740 -620 lines
Diff to previous 1.183.2.3 (colored) to branchpoint 1.183 (colored) next main 1.184 (colored)

update from HEAD

Revision 1.220.2.1 / (download) - annotate - [select for diffs], Thu Nov 2 21:29:52 2017 UTC (5 years, 2 months ago) by snj
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.220: +82 -71 lines
Diff to previous 1.220 (colored)

Pull up following revision(s) (requested by pgoyette in ticket #335):
	share/man/man9/kernhist.9: 1.5-1.8
	sys/arch/acorn26/acorn26/pmap.c: 1.39
	sys/arch/arm/arm32/fault.c: 1.105 via patch
	sys/arch/arm/arm32/pmap.c: 1.350, 1.359
	sys/arch/arm/broadcom/bcm2835_bsc.c: 1.7
	sys/arch/arm/omap/if_cpsw.c: 1.20
	sys/arch/arm/omap/tiotg.c: 1.7
	sys/arch/evbarm/conf/RPI2_INSTALL: 1.3
	sys/dev/ic/sl811hs.c: 1.98
	sys/dev/usb/ehci.c: 1.256
	sys/dev/usb/if_axe.c: 1.83
	sys/dev/usb/motg.c: 1.18
	sys/dev/usb/ohci.c: 1.274
	sys/dev/usb/ucom.c: 1.119
	sys/dev/usb/uhci.c: 1.277
	sys/dev/usb/uhub.c: 1.137
	sys/dev/usb/umass.c: 1.160-1.162
	sys/dev/usb/umass_quirks.c: 1.100
	sys/dev/usb/umass_scsipi.c: 1.55
	sys/dev/usb/usb.c: 1.168
	sys/dev/usb/usb_mem.c: 1.70
	sys/dev/usb/usb_subr.c: 1.221
	sys/dev/usb/usbdi.c: 1.175
	sys/dev/usb/usbdi_util.c: 1.67-1.70
	sys/dev/usb/usbroothub.c: 1.3
	sys/dev/usb/xhci.c: 1.75
	sys/external/bsd/drm2/dist/drm/i915/i915_gem.c: 1.34
	sys/kern/kern_history.c: 1.15
	sys/kern/kern_xxx.c: 1.74
	sys/kern/vfs_bio.c: 1.275-1.276
	sys/miscfs/genfs/genfs_io.c: 1.71
	sys/sys/kernhist.h: 1.21
	sys/ufs/ffs/ffs_balloc.c: 1.63
	sys/ufs/lfs/lfs_vfsops.c: 1.361
	sys/ufs/lfs/ulfs_inode.c: 1.21
	sys/ufs/lfs/ulfs_vnops.c: 1.52
	sys/ufs/ufs/ufs_inode.c: 1.102
	sys/ufs/ufs/ufs_vnops.c: 1.239
	sys/uvm/pmap/pmap.c: 1.37-1.39
	sys/uvm/pmap/pmap_tlb.c: 1.22
	sys/uvm/uvm_amap.c: 1.108
	sys/uvm/uvm_anon.c: 1.64
	sys/uvm/uvm_aobj.c: 1.126
	sys/uvm/uvm_bio.c: 1.91
	sys/uvm/uvm_device.c: 1.66
	sys/uvm/uvm_fault.c: 1.201
	sys/uvm/uvm_km.c: 1.144
	sys/uvm/uvm_loan.c: 1.85
	sys/uvm/uvm_map.c: 1.353
	sys/uvm/uvm_page.c: 1.194
	sys/uvm/uvm_pager.c: 1.111
	sys/uvm/uvm_pdaemon.c: 1.109
	sys/uvm/uvm_swap.c: 1.175
	sys/uvm/uvm_vnode.c: 1.103
	usr.bin/vmstat/vmstat.c: 1.219
Reorder to test for null before null deref in debug code
--
Reorder to test for null before null deref in debug code
--
KNF
--
No need for '\n' in UVMHIST_LOG
--
normalise a BIOHIST log message
--
Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...
(As proposed on tech-kern@ with additional changes and enhancements.)
Details of changes:
* All history arguments are now stored as uintmax_t values[1], both in
   the kernel and in the structures used for exporting the history data
   to userland via sysctl(9).  This avoids problems on some architectures
   where passing a 64-bit (or larger) value to printf(3) can cause it to
   process the value as multiple arguments.  (This can be particularly
   problematic when printf()'s format string is not a literal, since in
   that case the compiler cannot know how large each argument should be.)
* Update the data structures used for exporting kernel history data to
   include a version number as well as the length of history arguments.
* All [2] existing users of kernhist(9) have had their format strings
   updated.  Each format specifier now includes an explicit length
   modifier 'j' to refer to numeric values of the size of uintmax_t.
* All [2] existing users of kernhist(9) have had their format strings
   updated to replace uses of "%p" with "%#jx", and the pointer
   arguments are now cast to (uintptr_t) before being subsequently cast
   to (uintmax_t).  This is needed to avoid compiler warnings about
   casting "pointer to integer of a different size."
* All [2] existing users of kernhist(9) have had instances of "%s" or
   "%c" format strings replaced with numeric formats; several instances
   of mis-match between format string and argument list have been fixed.
* vmstat(1) has been modified to handle the new size of arguments in the
   history data as exported by sysctl(9).
* vmstat(1) now provides a warning message if the history requested with
   the -u option does not exist (previously, this condition was silently
   ignored, with only a single blank line being printed).
* vmstat(1) now checks the version and argument length included in the
   data exported via sysctl(9) and exits if they do not match the values
   with which vmstat was built.
* The kernhist(9) man-page has been updated to note the additional
   requirements imposed on the format strings, along with several other
   minor changes and enhancements.
[1] It would have been possible to use an explicit length (for example,
     uint64_t) for the history arguments.  But that would require another
     "rototill" of all the users in the future when we add support for an
     architecture that supports a larger size.  Also, the printf(3)
format
     specifiers for explicitly-sized values, such as "%"PRIu64, are much
     more verbose (and less aesthetically appealing, IMHO) than simply
     using "%ju".
[2] I've tried very hard to find "all [the] existing users of
kernhist(9)"
     but it is possible that I've missed some of them.  I would be glad
to
     update any stragglers that anyone identifies.
--
For some reason this single kernel seems to have outgrown its declared
size as a result of the kernhist(9) changes.  Bump the size.
XXX The amount of increase may be excessive - anyone with more detailed
XXX knowledge please feel free to further adjust the value
appropriately.
--
Misssed one cast of pointer --> uintptr_t in previous kernhist(9) commit
--
And yet another one.  :(
--
Use correct mark-up for NetBSD version.
--
More improvements in grammar and readability.
--
Remove a stray '"' (obvious typo) and add a couple of casts that are
probably needed.
--
And replace an instance of "%p" conversion with "%#jx"
--
Whitespace fix. Give Bl tag table a width. Fix Xr.

Revision 1.221 / (download) - annotate - [select for diffs], Sat Oct 28 00:37:12 2017 UTC (5 years, 3 months ago) by pgoyette
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.220: +82 -71 lines
Diff to previous 1.220 (colored)

Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...

(As proposed on tech-kern@ with additional changes and enhancements.)

Details of changes:

* All history arguments are now stored as uintmax_t values[1], both in
  the kernel and in the structures used for exporting the history data
  to userland via sysctl(9).  This avoids problems on some architectures
  where passing a 64-bit (or larger) value to printf(3) can cause it to
  process the value as multiple arguments.  (This can be particularly
  problematic when printf()'s format string is not a literal, since in
  that case the compiler cannot know how large each argument should be.)

* Update the data structures used for exporting kernel history data to
  include a version number as well as the length of history arguments.

* All [2] existing users of kernhist(9) have had their format strings
  updated.  Each format specifier now includes an explicit length
  modifier 'j' to refer to numeric values of the size of uintmax_t.

* All [2] existing users of kernhist(9) have had their format strings
  updated to replace uses of "%p" with "%#jx", and the pointer
  arguments are now cast to (uintptr_t) before being subsequently cast
  to (uintmax_t).  This is needed to avoid compiler warnings about
  casting "pointer to integer of a different size."

* All [2] existing users of kernhist(9) have had instances of "%s" or
  "%c" format strings replaced with numeric formats; several instances
  of mis-match between format string and argument list have been fixed.

* vmstat(1) has been modified to handle the new size of arguments in the
  history data as exported by sysctl(9).

* vmstat(1) now provides a warning message if the history requested with
  the -u option does not exist (previously, this condition was silently
  ignored, with only a single blank line being printed).

* vmstat(1) now checks the version and argument length included in the
  data exported via sysctl(9) and exits if they do not match the values
  with which vmstat was built.

* The kernhist(9) man-page has been updated to note the additional
  requirements imposed on the format strings, along with several other
  minor changes and enhancements.

[1] It would have been possible to use an explicit length (for example,
    uint64_t) for the history arguments.  But that would require another
    "rototill" of all the users in the future when we add support for an
    architecture that supports a larger size.  Also, the printf(3) format
    specifiers for explicitly-sized values, such as "%"PRIu64, are much
    more verbose (and less aesthetically appealing, IMHO) than simply
    using "%ju".

[2] I've tried very hard to find "all [the] existing users of kernhist(9)"
    but it is possible that I've missed some of them.  I would be glad to
    update any stragglers that anyone identifies.

Revision 1.198.2.40 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:28 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.39: +25 -51 lines
Diff to previous 1.198.2.39 (colored) to branchpoint 1.198 (colored) next main 1.199 (colored)

Sync with HEAD

Revision 1.220 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:12 2017 UTC (5 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base
Branch point for: netbsd-8
Changes since 1.219: +13 -40 lines
Diff to previous 1.219 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.217.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:53 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.217: +41 -28 lines
Diff to previous 1.217 (colored) next main 1.218 (colored)

Sync with HEAD

Revision 1.196.4.3 / (download) - annotate - [select for diffs], Wed Apr 5 19:54:20 2017 UTC (5 years, 9 months ago) by snj
Branch: netbsd-7
Changes since 1.196.4.2: +670 -572 lines
Diff to previous 1.196.4.2 (colored) to branchpoint 1.196 (colored)

Pull up following revision(s) (requested by skrll in ticket #1395):
	share/man/man4/axe.4: netbsd-7-nhusb
	share/man/man4/axen.4: netbsd-7-nhusb
	share/man/man4/cdce.4: netbsd-7-nhusb
	share/man/man4/uaudio.4: netbsd-7-nhusb
	share/man/man4/ucom.4: netbsd-7-nhusb
	share/man/man4/uep.4: netbsd-7-nhusb
	share/man/man4/urtw.4: netbsd-7-nhusb
	share/man/man4/usb.4: netbsd-7-nhusb
	share/man/man4/uyap.4: netbsd-7-nhusb
	share/man/man4/xhci.4: netbsd-7-nhusb
	share/man/man9/usbdi.9: netbsd-7-nhusb
	sys/arch/amd64/conf/ALL: netbsd-7-nhusb
	sys/arch/amd64/conf/GENERIC: netbsd-7-nhusb
	sys/arch/amiga/dev/slhci_zbus.c: netbsd-7-nhusb
	sys/arch/arm/allwinner/awin_otg.c: netbsd-7-nhusb
	sys/arch/arm/allwinner/awin_usb.c: netbsd-7-nhusb
	sys/arch/arm/amlogic/amlogic_dwctwo.c: netbsd-7-nhusb
	sys/arch/arm/at91/at91ohci.c: netbsd-7-nhusb
	sys/arch/arm/broadcom/bcm2835_dwctwo.c: netbsd-7-nhusb
	sys/arch/arm/broadcom/bcm53xx_usb.c: netbsd-7-nhusb
	sys/arch/arm/ep93xx/epohci.c: netbsd-7-nhusb
	sys/arch/arm/gemini/obio_ehci.c: netbsd-7-nhusb
	sys/arch/arm/imx/files.imx23: netbsd-7-nhusb
	sys/arch/arm/imx/imxusb.c: netbsd-7-nhusb
	sys/arch/arm/imx/imxusbreg.h: netbsd-7-nhusb
	sys/arch/arm/omap/obio_ohci.c: netbsd-7-nhusb
	sys/arch/arm/omap/omap3_ehci.c: netbsd-7-nhusb
	sys/arch/arm/omap/omapl1x_ohci.c: netbsd-7-nhusb
	sys/arch/arm/omap/tiotg.c: netbsd-7-nhusb
	sys/arch/arm/s3c2xx0/ohci_s3c24x0.c: netbsd-7-nhusb
	sys/arch/arm/samsung/exynos_usb.c: netbsd-7-nhusb
	sys/arch/arm/xscale/pxa2x0_ohci.c: netbsd-7-nhusb
	sys/arch/arm/zynq/zynq_usb.c: netbsd-7-nhusb
	sys/arch/hpcarm/dev/nbp_slhci.c: netbsd-7-nhusb
	sys/arch/hpcmips/dev/plumohci.c: netbsd-7-nhusb
	sys/arch/i386/conf/ALL: netbsd-7-nhusb
	sys/arch/i386/conf/GENERIC: netbsd-7-nhusb
	sys/arch/i386/pci/gcscehci.c: netbsd-7-nhusb
	sys/arch/luna68k/conf/GENERIC: netbsd-7-nhusb
	sys/arch/mips/adm5120/dev/ahci.c: netbsd-7-nhusb
	sys/arch/mips/adm5120/dev/ahcivar.h: netbsd-7-nhusb
	sys/arch/mips/alchemy/dev/ohci_aubus.c: netbsd-7-nhusb
	sys/arch/mips/atheros/dev/ehci_arbus.c: netbsd-7-nhusb
	sys/arch/mips/atheros/dev/ohci_arbus.c: netbsd-7-nhusb
	sys/arch/mips/conf/files.adm5120: netbsd-7-nhusb
	sys/arch/mips/ralink/ralink_ehci.c: netbsd-7-nhusb
	sys/arch/mips/ralink/ralink_ohci.c: netbsd-7-nhusb
	sys/arch/mips/rmi/rmixl_ehci.c: netbsd-7-nhusb
	sys/arch/mips/rmi/rmixl_ohci.c: netbsd-7-nhusb
	sys/arch/playstation2/dev/ohci_sbus.c: netbsd-7-nhusb
	sys/arch/powerpc/booke/dev/pq3ehci.c: netbsd-7-nhusb
	sys/arch/powerpc/ibm4xx/dev/dwctwo_plb.c: netbsd-7-nhusb
	sys/arch/x68k/dev/slhci_intio.c: netbsd-7-nhusb
	sys/conf/files: netbsd-7-nhusb
	sys/dev/cardbus/ehci_cardbus.c: netbsd-7-nhusb
	sys/dev/cardbus/ohci_cardbus.c: netbsd-7-nhusb
	sys/dev/cardbus/uhci_cardbus.c: netbsd-7-nhusb
	sys/dev/ic/sl811hs.c: netbsd-7-nhusb
	sys/dev/ic/sl811hsvar.h: netbsd-7-nhusb
	sys/dev/isa/slhci_isa.c: netbsd-7-nhusb
	sys/dev/marvell/ehci_mv.c: netbsd-7-nhusb
	sys/dev/pci/ehci_pci.c: netbsd-7-nhusb
	sys/dev/pci/ohci_pci.c: netbsd-7-nhusb
	sys/dev/pci/uhci_pci.c: netbsd-7-nhusb
	sys/dev/pci/xhci_pci.c: netbsd-7-nhusb
	sys/dev/pcmcia/slhci_pcmcia.c: netbsd-7-nhusb
	sys/dev/usb/Makefile.usbdevs: netbsd-7-nhusb
	sys/dev/usb/TODO: netbsd-7-nhusb
	sys/dev/usb/TODO.usbmp: netbsd-7-nhusb
	sys/dev/usb/aubtfwl.c: netbsd-7-nhusb
	sys/dev/usb/auvitek.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_audio.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_dtv.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_i2c.c: netbsd-7-nhusb
	sys/dev/usb/auvitek_video.c: netbsd-7-nhusb
	sys/dev/usb/auvitekvar.h: netbsd-7-nhusb
	sys/dev/usb/ehci.c: netbsd-7-nhusb
	sys/dev/usb/ehcireg.h: netbsd-7-nhusb
	sys/dev/usb/ehcivar.h: netbsd-7-nhusb
	sys/dev/usb/emdtv.c: netbsd-7-nhusb
	sys/dev/usb/emdtv_dtv.c: netbsd-7-nhusb
	sys/dev/usb/emdtv_ir.c: netbsd-7-nhusb
	sys/dev/usb/emdtvvar.h: netbsd-7-nhusb
	sys/dev/usb/ezload.c: netbsd-7-nhusb
	sys/dev/usb/ezload.h: netbsd-7-nhusb
	sys/dev/usb/files.usb: netbsd-7-nhusb
	sys/dev/usb/hid.c: netbsd-7-nhusb
	sys/dev/usb/hid.h: netbsd-7-nhusb
	sys/dev/usb/if_athn_usb.c: netbsd-7-nhusb
	sys/dev/usb/if_athn_usb.h: netbsd-7-nhusb
	sys/dev/usb/if_atu.c: netbsd-7-nhusb
	sys/dev/usb/if_atureg.h: netbsd-7-nhusb
	sys/dev/usb/if_aue.c: netbsd-7-nhusb
	sys/dev/usb/if_auereg.h: netbsd-7-nhusb
	sys/dev/usb/if_axe.c: netbsd-7-nhusb
	sys/dev/usb/if_axen.c: netbsd-7-nhusb
	sys/dev/usb/if_axenreg.h: netbsd-7-nhusb
	sys/dev/usb/if_axereg.h: netbsd-7-nhusb
	sys/dev/usb/if_cdce.c: netbsd-7-nhusb
	sys/dev/usb/if_cdcereg.h: netbsd-7-nhusb
	sys/dev/usb/if_cue.c: netbsd-7-nhusb
	sys/dev/usb/if_cuereg.h: netbsd-7-nhusb
	sys/dev/usb/if_kue.c: netbsd-7-nhusb
	sys/dev/usb/if_kuereg.h: netbsd-7-nhusb
	sys/dev/usb/if_otus.c: netbsd-7-nhusb
	sys/dev/usb/if_otusvar.h: netbsd-7-nhusb
	sys/dev/usb/if_rum.c: netbsd-7-nhusb
	sys/dev/usb/if_rumreg.h: netbsd-7-nhusb
	sys/dev/usb/if_rumvar.h: netbsd-7-nhusb
	sys/dev/usb/if_run.c: netbsd-7-nhusb
	sys/dev/usb/if_runvar.h: netbsd-7-nhusb
	sys/dev/usb/if_smsc.c: netbsd-7-nhusb
	sys/dev/usb/if_smscreg.h: netbsd-7-nhusb
	sys/dev/usb/if_smscvar.h: netbsd-7-nhusb
	sys/dev/usb/if_udav.c: netbsd-7-nhusb
	sys/dev/usb/if_udavreg.h: netbsd-7-nhusb
	sys/dev/usb/if_upgt.c: netbsd-7-nhusb
	sys/dev/usb/if_upgtvar.h: netbsd-7-nhusb
	sys/dev/usb/if_upl.c: netbsd-7-nhusb
	sys/dev/usb/if_ural.c: netbsd-7-nhusb
	sys/dev/usb/if_uralreg.h: netbsd-7-nhusb
	sys/dev/usb/if_uralvar.h: netbsd-7-nhusb
	sys/dev/usb/if_url.c: netbsd-7-nhusb
	sys/dev/usb/if_urlreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urndis.c: netbsd-7-nhusb
	sys/dev/usb/if_urndisreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urtw.c: netbsd-7-nhusb
	sys/dev/usb/if_urtwn.c: netbsd-7-nhusb
	sys/dev/usb/if_urtwn_data.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwnreg.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwnvar.h: netbsd-7-nhusb
	sys/dev/usb/if_urtwreg.h: netbsd-7-nhusb
	sys/dev/usb/if_zyd.c: netbsd-7-nhusb
	sys/dev/usb/if_zydreg.h: netbsd-7-nhusb
	sys/dev/usb/irmce.c: netbsd-7-nhusb
	sys/dev/usb/moscom.c: netbsd-7-nhusb
	sys/dev/usb/motg.c: netbsd-7-nhusb
	sys/dev/usb/motgvar.h: netbsd-7-nhusb
	sys/dev/usb/ohci.c: netbsd-7-nhusb
	sys/dev/usb/ohcireg.h: netbsd-7-nhusb
	sys/dev/usb/ohcivar.h: netbsd-7-nhusb
	sys/dev/usb/pseye.c: netbsd-7-nhusb
	sys/dev/usb/slurm.c: netbsd-7-nhusb
	sys/dev/usb/stuirda.c: netbsd-7-nhusb
	sys/dev/usb/u3g.c: netbsd-7-nhusb
	sys/dev/usb/uark.c: netbsd-7-nhusb
	sys/dev/usb/uatp.c: netbsd-7-nhusb
	sys/dev/usb/uaudio.c: netbsd-7-nhusb
	sys/dev/usb/uberry.c: netbsd-7-nhusb
	sys/dev/usb/ubsa.c: netbsd-7-nhusb
	sys/dev/usb/ubsa_common.c: netbsd-7-nhusb
	sys/dev/usb/ubsavar.h: netbsd-7-nhusb
	sys/dev/usb/ubt.c: netbsd-7-nhusb
	sys/dev/usb/uchcom.c: netbsd-7-nhusb
	sys/dev/usb/ucom.c: netbsd-7-nhusb
	sys/dev/usb/ucomvar.h: netbsd-7-nhusb
	sys/dev/usb/ucycom.c: netbsd-7-nhusb
	sys/dev/usb/udl.c: netbsd-7-nhusb
	sys/dev/usb/udl.h: netbsd-7-nhusb
	sys/dev/usb/udsbr.c: netbsd-7-nhusb
	sys/dev/usb/udsir.c: netbsd-7-nhusb
	sys/dev/usb/uep.c: netbsd-7-nhusb
	sys/dev/usb/uftdi.c: netbsd-7-nhusb
	sys/dev/usb/uftdireg.h: netbsd-7-nhusb
	sys/dev/usb/ugen.c: netbsd-7-nhusb
	sys/dev/usb/ugensa.c: netbsd-7-nhusb
	sys/dev/usb/uhci.c: netbsd-7-nhusb
	sys/dev/usb/uhcireg.h: netbsd-7-nhusb
	sys/dev/usb/uhcivar.h: netbsd-7-nhusb
	sys/dev/usb/uhid.c: netbsd-7-nhusb
	sys/dev/usb/uhidev.c: netbsd-7-nhusb
	sys/dev/usb/uhidev.h: netbsd-7-nhusb
	sys/dev/usb/uhmodem.c: netbsd-7-nhusb
	sys/dev/usb/uhso.c: netbsd-7-nhusb
	sys/dev/usb/uhub.c: netbsd-7-nhusb
	sys/dev/usb/uipad.c: netbsd-7-nhusb
	sys/dev/usb/uipaq.c: netbsd-7-nhusb
	sys/dev/usb/uirda.c: netbsd-7-nhusb
	sys/dev/usb/uirdavar.h: netbsd-7-nhusb
	sys/dev/usb/ukbd.c: netbsd-7-nhusb
	sys/dev/usb/ukbdmap.c: netbsd-7-nhusb
	sys/dev/usb/ukyopon.c: netbsd-7-nhusb
	sys/dev/usb/ukyopon.h: netbsd-7-nhusb
	sys/dev/usb/ulpt.c: netbsd-7-nhusb
	sys/dev/usb/umass.c: netbsd-7-nhusb
	sys/dev/usb/umass_isdata.c: netbsd-7-nhusb
	sys/dev/usb/umass_isdata.h: netbsd-7-nhusb
	sys/dev/usb/umass_quirks.c: netbsd-7-nhusb
	sys/dev/usb/umass_quirks.h: netbsd-7-nhusb
	sys/dev/usb/umass_scsipi.c: netbsd-7-nhusb
	sys/dev/usb/umass_scsipi.h: netbsd-7-nhusb
	sys/dev/usb/umassvar.h: netbsd-7-nhusb
	sys/dev/usb/umcs.c: netbsd-7-nhusb
	sys/dev/usb/umct.c: netbsd-7-nhusb
	sys/dev/usb/umidi.c: netbsd-7-nhusb
	sys/dev/usb/umidi_quirks.c: netbsd-7-nhusb
	sys/dev/usb/umidi_quirks.h: netbsd-7-nhusb
	sys/dev/usb/umodem.c: netbsd-7-nhusb
	sys/dev/usb/umodem_common.c: netbsd-7-nhusb
	sys/dev/usb/umodemvar.h: netbsd-7-nhusb
	sys/dev/usb/ums.c: netbsd-7-nhusb
	sys/dev/usb/uplcom.c: netbsd-7-nhusb
	sys/dev/usb/urio.c: netbsd-7-nhusb
	sys/dev/usb/urio.h: netbsd-7-nhusb
	sys/dev/usb/usb.c: netbsd-7-nhusb
	sys/dev/usb/usb.h: netbsd-7-nhusb
	sys/dev/usb/usb_mem.c: netbsd-7-nhusb
	sys/dev/usb/usb_mem.h: netbsd-7-nhusb
	sys/dev/usb/usb_quirks.c: netbsd-7-nhusb
	sys/dev/usb/usb_quirks.h: netbsd-7-nhusb
	sys/dev/usb/usb_subr.c: netbsd-7-nhusb
	sys/dev/usb/usbdevices.config: netbsd-7-nhusb
	sys/dev/usb/usbdevs: netbsd-7-nhusb
	sys/dev/usb/usbdevs.h: netbsd-7-nhusb
	sys/dev/usb/usbdevs_data.h: netbsd-7-nhusb
	sys/dev/usb/usbdi.c: netbsd-7-nhusb
	sys/dev/usb/usbdi.h: netbsd-7-nhusb
	sys/dev/usb/usbdi_util.c: netbsd-7-nhusb
	sys/dev/usb/usbdi_util.h: netbsd-7-nhusb
	sys/dev/usb/usbdivar.h: netbsd-7-nhusb
	sys/dev/usb/usbhid.h: netbsd-7-nhusb
	sys/dev/usb/usbhist.h: netbsd-7-nhusb
	sys/dev/usb/usbroothub.c: netbsd-7-nhusb
	sys/dev/usb/usbroothub.h: netbsd-7-nhusb
	sys/dev/usb/usbroothub_subr.c: delete
	sys/dev/usb/usbroothub_subr.h: delete
	sys/dev/usb/uscanner.c: netbsd-7-nhusb
	sys/dev/usb/uslsa.c: netbsd-7-nhusb
	sys/dev/usb/usscanner.c: netbsd-7-nhusb
	sys/dev/usb/ustir.c: netbsd-7-nhusb
	sys/dev/usb/uthum.c: netbsd-7-nhusb
	sys/dev/usb/utoppy.c: netbsd-7-nhusb
	sys/dev/usb/uts.c: netbsd-7-nhusb
	sys/dev/usb/uvideo.c: netbsd-7-nhusb
	sys/dev/usb/uvisor.c: netbsd-7-nhusb
	sys/dev/usb/uvscom.c: netbsd-7-nhusb
	sys/dev/usb/uyap.c: netbsd-7-nhusb
	sys/dev/usb/uyap_firmware.h: netbsd-7-nhusb
	sys/dev/usb/uyurex.c: netbsd-7-nhusb
	sys/dev/usb/x1input_rdesc.h: netbsd-7-nhusb
	sys/dev/usb/xhci.c: netbsd-7-nhusb
	sys/dev/usb/xhcireg.h: netbsd-7-nhusb
	sys/dev/usb/xhcivar.h: netbsd-7-nhusb
	sys/dev/usb/xinput_rdesc.h: netbsd-7-nhusb
	sys/external/bsd/common/conf/files.linux: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/err.h: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/kernel.h: netbsd-7-nhusb
	sys/external/bsd/common/include/linux/workqueue.h: netbsd-7-nhusb
	sys/external/bsd/common/linux/linux_work.c: netbsd-7-nhusb
	sys/external/bsd/drm2/dist/drm/radeon/atombios_encoders.c: netbsd-7-nhusb
	sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_encoders.c: netbsd-7-nhusb
	sys/external/bsd/drm2/drm/files.drmkms: netbsd-7-nhusb
	sys/external/bsd/drm2/i915drm/files.i915drmkms: netbsd-7-nhusb
	sys/external/bsd/drm2/include/linux/err.h: delete
	sys/external/bsd/drm2/include/linux/workqueue.h: delete
	sys/external/bsd/drm2/linux/files.drmkms_linux: netbsd-7-nhusb
	sys/external/bsd/drm2/linux/linux_work.c: delete
	sys/external/bsd/dwc2/dwc2.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwc2.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwc2var.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dwctwo2netbsd: netbsd-7-nhusb
	sys/external/bsd/dwc2/conf/files.dwc2: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_core.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_core.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_coreintr.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcd.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcd.h: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdddma.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdintr.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c: netbsd-7-nhusb
	sys/external/bsd/dwc2/dist/dwc2_hw.h: netbsd-7-nhusb
	sys/modules/drmkms_linux/Makefile: netbsd-7-nhusb
	sys/modules/i915drmkms/Makefile: netbsd-7-nhusb
	sys/rump/dev/lib/libugenhc/ugenhc.c: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/Makefile: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/USB.ioconf: netbsd-7-nhusb
	sys/rump/dev/lib/libusb/usb_at_ugenhc.c: delete
	sys/rump/dev/lib/libusb/opt/opt_usb.h: delete
	sys/rump/dev/lib/libusb/opt/opt_usbverbose.h: delete
	sys/sys/mbuf.h: netbsd-7-nhusb
	usr.sbin/usbdevs/usbdevs.8: netbsd-7-nhusb
	usr.sbin/usbdevs/usbdevs.c: netbsd-7-nhusb
Merge netbsd-7-nhusb:
- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
     - kern/48308
     - uhub status notification improvements
     - umass(4) probe fix (applied to HEAD already)
     - ohci(4) short transfer fix
- Change the SOFTINT level from NET to SERIAL for the USB softint handler.
  This gives the callback a chance of running when another softint handler
  at SOFTINT_NET has blocked holding a lock, e.g. softnet_lock and most of
  the network stack.
     - kern/49065 - ifconfig tun0 ... sequence locks up system / lockup:
       softnet_lock held across usb xfr
     - kern/50491 - unkillable wait in usbd_transfer while using usmsc0
       on raspberry pi 2
     - kern/51395 - USB Ethernet makes xhci hang
- Various improvements to slhci(4)
- Various improvements to dwc2(4)

Revision 1.211.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:38 2017 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.211.2.1: +89 -23 lines
Diff to previous 1.211.2.1 (colored) to branchpoint 1.211 (colored) next main 1.212 (colored)

Sync with HEAD

Revision 1.219 / (download) - annotate - [select for diffs], Tue Mar 14 19:40:42 2017 UTC (5 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Changes since 1.218: +14 -13 lines
Diff to previous 1.218 (colored)

use x alt format and print vendor and product in hex too

Revision 1.196.4.2.2.3 / (download) - annotate - [select for diffs], Thu Jan 26 21:54:25 2017 UTC (6 years ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.196.4.2.2.2: +31 -19 lines
Diff to previous 1.196.4.2.2.2 (colored) to branchpoint 1.196.4.2 (colored) next main 1.196.4.3 (colored)

Sync with HEAD/nhusb

Revision 1.218 / (download) - annotate - [select for diffs], Thu Jan 19 16:05:00 2017 UTC (6 years ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Changes since 1.217: +29 -17 lines
Diff to previous 1.217 (colored)

Pull across xhci(4) improvemnts from nick-nhusb

Revision 1.211.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:42 2017 UTC (6 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.211: +4 -4 lines
Diff to previous 1.211 (colored)

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

Revision 1.198.2.39 / (download) - annotate - [select for diffs], Tue Jan 3 12:50:50 2017 UTC (6 years ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.38: +9 -7 lines
Diff to previous 1.198.2.38 (colored) to branchpoint 1.198 (colored)

Improve handling of roothub device and free up a bus address for LS/FS/HS
controllers.

Revision 1.198.2.38 / (download) - annotate - [select for diffs], Thu Dec 29 08:40:27 2016 UTC (6 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.37: +8 -3 lines
Diff to previous 1.198.2.37 (colored) to branchpoint 1.198 (colored)

Take bus lock while removing a device from the bus list and announce
detach once complete (not before)

Revision 1.198.2.37 / (download) - annotate - [select for diffs], Thu Dec 29 08:38:19 2016 UTC (6 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.36: +5 -5 lines
Diff to previous 1.198.2.36 (colored) to branchpoint 1.198 (colored)

Whitespace

Revision 1.198.2.36 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:18 2016 UTC (6 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.35: +4 -4 lines
Diff to previous 1.198.2.35 (colored) to branchpoint 1.198 (colored)

Sync with HEAD

Revision 1.217 / (download) - annotate - [select for diffs], Sun Dec 4 10:12:35 2016 UTC (6 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.216: +4 -4 lines
Diff to previous 1.216 (colored)

Whitespace

Revision 1.198.2.35 / (download) - annotate - [select for diffs], Wed Oct 26 07:31:24 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.34: +7 -2 lines
Diff to previous 1.198.2.34 (colored) to branchpoint 1.198 (colored)

PR kern/48243 (inconsistant usage of 'up->parent' in usb_subr.c)

Add a KASSERT and comment to explain what's going on.

Revision 1.198.2.34 / (download) - annotate - [select for diffs], Fri Oct 7 10:37:42 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.33: +4 -4 lines
Diff to previous 1.198.2.33 (colored) to branchpoint 1.198 (colored)

Sprinkle const

Revision 1.198.2.33 / (download) - annotate - [select for diffs], Fri Oct 7 10:35:25 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.32: +3 -2 lines
Diff to previous 1.198.2.32 (colored) to branchpoint 1.198 (colored)

Actually add sshub_p for previous

Revision 1.198.2.32 / (download) - annotate - [select for diffs], Fri Oct 7 10:32:49 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.31: +4 -5 lines
Diff to previous 1.198.2.31 (colored) to branchpoint 1.198 (colored)

Make the code match the comment wrt port powered status

Revision 1.198.2.31 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:57 2016 UTC (6 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.30: +62 -59 lines
Diff to previous 1.198.2.30 (colored) to branchpoint 1.198 (colored)

Sync with HEAD

Revision 1.196.4.2.2.2 / (download) - annotate - [select for diffs], Wed Sep 7 10:26:39 2016 UTC (6 years, 4 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.196.4.2.2.1: +62 -59 lines
Diff to previous 1.196.4.2.2.1 (colored) to branchpoint 1.196.4.2 (colored)

Sync with HEAD

Revision 1.196.4.2.2.1 / (download) - annotate - [select for diffs], Tue Sep 6 20:33:09 2016 UTC (6 years, 4 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.196.4.2: +617 -534 lines
Diff to previous 1.196.4.2 (colored)

First pass at netbsd-7 updated with USB code from HEAD

Revision 1.216 / (download) - annotate - [select for diffs], Tue Sep 6 06:46:15 2016 UTC (6 years, 4 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161004, localcount-20160914
Changes since 1.215: +5 -3 lines
Diff to previous 1.215 (colored)

Reduce scope of a variable.  No functional change.

Revision 1.215 / (download) - annotate - [select for diffs], Sat Sep 3 07:29:16 2016 UTC (6 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.214: +9 -11 lines
Diff to previous 1.214 (colored)

Style.  No functional change.

Revision 1.214 / (download) - annotate - [select for diffs], Sat Sep 3 07:23:27 2016 UTC (6 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.213: +6 -6 lines
Diff to previous 1.213 (colored)

Reduce scope of a variable.  No functional change.

Revision 1.213 / (download) - annotate - [select for diffs], Sat Sep 3 07:20:12 2016 UTC (6 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.212: +59 -56 lines
Diff to previous 1.212 (colored)

Bail out early from usbd_fill_devinfo if we're not a hub to use less
indentation in the code.

No functional change.  Same code before and after.

Revision 1.212 / (download) - annotate - [select for diffs], Sat Sep 3 07:14:19 2016 UTC (6 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.211: +4 -4 lines
Diff to previous 1.211 (colored)

Use __arraycount.  No functional change.

Revision 1.198.2.30 / (download) - annotate - [select for diffs], Mon May 2 13:10:15 2016 UTC (6 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.29: +3 -3 lines
Diff to previous 1.198.2.29 (colored) to branchpoint 1.198 (colored)

s/kmem_intr_free/kmem_free/ in usbd_setup_pipe_flags

Revision 1.211 / (download) - annotate - [select for diffs], Mon May 2 11:55:21 2016 UTC (6 years, 8 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529
Branch point for: pgoyette-localcount
Changes since 1.210: +2 -5 lines
Diff to previous 1.210 (colored)

Remove the "usb_disconnect_port: no device" DIAGNOSTIC message

Revision 1.198.2.29 / (download) - annotate - [select for diffs], Mon May 2 11:52:20 2016 UTC (6 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.28: +2 -5 lines
Diff to previous 1.198.2.28 (colored) to branchpoint 1.198 (colored)


Remove the DIAGNOSTIC message "usb_disconnect_port: no device".  These
can happen normally now.

Revision 1.210 / (download) - annotate - [select for diffs], Sat Apr 23 10:15:32 2016 UTC (6 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.209: +534 -457 lines
Diff to previous 1.209 (colored)

Merge nick-nhusb

- API / infrastructure changes to support memory management changes.
- Memory management improvements and bug fixes.
- HCDs should now be MP safe
- conversion to KERNHIST based debug
- FS/LS isoc support on ehci(4).
- conversion to kmem(9)
- Some USB 3 support - mostly from Takahiro HAYASHI (t-hash).
- interrupt transfers now get proper DMA operations
- general bug fixes
    - kern/48308
    - uhub status notification improvements
    - umass(4) probe fix (applied to HEAD already)
    - ohci(4) short transfer fix

Revision 1.198.2.28 / (download) - annotate - [select for diffs], Fri Apr 22 15:44:14 2016 UTC (6 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.27: +6 -2 lines
Diff to previous 1.198.2.27 (colored) to branchpoint 1.198 (colored)

Sync with HEAD

Revision 1.209 / (download) - annotate - [select for diffs], Thu Apr 21 15:42:56 2016 UTC (6 years, 9 months ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422
Changes since 1.208: +6 -2 lines
Diff to previous 1.208 (colored)

autoconf(9) requires the kernel_lock so take it while discovering new
devices.

PR/51081: calling ioctl while attaching wifi device causes a jump to NULL

Revision 1.198.2.27 / (download) - annotate - [select for diffs], Sat Apr 16 15:11:45 2016 UTC (6 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.26: +3 -2 lines
Diff to previous 1.198.2.26 (colored) to branchpoint 1.198 (colored)

Explicitly initialise up_serialise to true

Revision 1.198.2.26 / (download) - annotate - [select for diffs], Sat Mar 19 07:12:21 2016 UTC (6 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.25: +6 -2 lines
Diff to previous 1.198.2.25 (colored) to branchpoint 1.198 (colored)

Initialise up_serialise to true and add a KASSERT.

Revision 1.198.2.25 / (download) - annotate - [select for diffs], Tue Mar 8 21:16:27 2016 UTC (6 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.24: +3 -3 lines
Diff to previous 1.198.2.24 (colored) to branchpoint 1.198 (colored)

Remove "\n" from DPRINTF - it is not required.

Revision 1.196.4.2 / (download) - annotate - [select for diffs], Sat Feb 6 20:58:13 2016 UTC (6 years, 11 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, 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
Branch point for: netbsd-7-nhusb
Changes since 1.196.4.1: +66 -18 lines
Diff to previous 1.196.4.1 (colored) to branchpoint 1.196 (colored)

Pull up following revision(s) (requested by skrll in ticket #1097):
	sys/dev/usb/usb.c: revision 1.161
	sys/dev/usb/usb_subr.c: revisions 1.207, 1.208
	sys/dev/usb/usbdivar.h: revision 1.111
	sys/dev/usb/xhci.c: revision 1.33
Get the iManufacturer, iProduct, and iSerialNumber strings before probing
for drivers and cache them for later use.  This reduces bus transactions
and fixes attachment for at least two of my umass(4)s.
--
Need sys/kmem.h

Revision 1.198.2.24 / (download) - annotate - [select for diffs], Sat Feb 6 08:06:17 2016 UTC (6 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.23: +43 -27 lines
Diff to previous 1.198.2.23 (colored) to branchpoint 1.198 (colored)

More debug

Revision 1.198.2.23 / (download) - annotate - [select for diffs], Sun Jan 10 10:33:43 2016 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.22: +66 -18 lines
Diff to previous 1.198.2.22 (colored) to branchpoint 1.198 (colored)

Bring the following change from HEAD

Get the iManufacturer, iProduct, and iSerialNumber strings before probing
for drivers and cache them for later use.  This reduces bus transactions
and fixes attachment for at least two of my umass(4)s.

Revision 1.208 / (download) - annotate - [select for diffs], Thu Jan 7 07:59:08 2016 UTC (7 years ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20160319
Changes since 1.207: +3 -2 lines
Diff to previous 1.207 (colored)

Need sys/kmem.h

Revision 1.207 / (download) - annotate - [select for diffs], Wed Jan 6 22:12:49 2016 UTC (7 years ago) by skrll
Branch: MAIN
Changes since 1.206: +65 -18 lines
Diff to previous 1.206 (colored)

Get the iManufacturer, iProduct, and iSerialNumber strings before probing
for drivers and cache them for later use.  This reduces bus transactions
and fixes attachment for at least two of my umass(4)s.

Revision 1.198.2.22 / (download) - annotate - [select for diffs], Mon Dec 28 09:26:33 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.21: +2 -3 lines
Diff to previous 1.198.2.21 (colored) to branchpoint 1.198 (colored)

Strictly follow the sequence abort pipe, destroy xfers, and close pipe as
API now requires.  Plug some memory leaks in some drivers while doing
this.

Also, remove up_refcnt as it was broken and helped leak more memory.

Revision 1.198.2.21 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:59 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.20: +26 -4 lines
Diff to previous 1.198.2.20 (colored) to branchpoint 1.198 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.198.2.20 / (download) - annotate - [select for diffs], Sat Dec 19 09:20:35 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.19: +3 -3 lines
Diff to previous 1.198.2.19 (colored) to branchpoint 1.198 (colored)

Whitespace.

Revision 1.198.2.19 / (download) - annotate - [select for diffs], Sat Dec 19 09:18:58 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.18: +7 -4 lines
Diff to previous 1.198.2.18 (colored) to branchpoint 1.198 (colored)

Improve debug a little.

Revision 1.206 / (download) - annotate - [select for diffs], Thu Dec 10 09:19:42 2015 UTC (7 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226
Changes since 1.205: +10 -6 lines
Diff to previous 1.205 (colored)

Make this actually compile with USB_DEBUG.  oops.

Revision 1.205 / (download) - annotate - [select for diffs], Thu Dec 10 09:04:08 2015 UTC (7 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.204: +96 -104 lines
Diff to previous 1.204 (colored)

Pull across the conversion to usbhist from nick-nhusb.

Revision 1.196.4.1 / (download) - annotate - [select for diffs], Mon Nov 16 14:45:03 2015 UTC (7 years, 2 months ago) by msaitoh
Branch: netbsd-7
Changes since 1.196: +24 -2 lines
Diff to previous 1.196 (colored)

Pull up following revision(s) (requested by joerg in ticket #1032):
	sys/dev/usb/usb_subr.c: revision 1.204
Attach serial number as property to all USB devices having one.

Revision 1.204 / (download) - annotate - [select for diffs], Sun Nov 8 23:25:17 2015 UTC (7 years, 2 months ago) by joerg
Branch: MAIN
Changes since 1.203: +24 -2 lines
Diff to previous 1.203 (colored)

Attach serial number as property to all USB devices having one.

Revision 1.203 / (download) - annotate - [select for diffs], Mon Oct 26 15:07:07 2015 UTC (7 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.202: +3 -3 lines
Diff to previous 1.202 (colored)

Correct a comment.  From Robert Sprowson.

Revision 1.198.2.18 / (download) - annotate - [select for diffs], Tue Sep 29 11:38:29 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.17: +3 -3 lines
Diff to previous 1.198.2.17 (colored) to branchpoint 1.198 (colored)

sizeof KNF

Revision 1.198.2.17 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:01 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.16: +3 -3 lines
Diff to previous 1.198.2.16 (colored) to branchpoint 1.198 (colored)

Sync with HEAD

Revision 1.202 / (download) - annotate - [select for diffs], Thu Jul 9 07:20:57 2015 UTC (7 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.201: +4 -3 lines
Diff to previous 1.201 (colored)

Fix typo in usbd_attachinterfaces - look for interface drivers when there
is no interface (i.e. default) locator

Revision 1.198.2.16 / (download) - annotate - [select for diffs], Fri Jun 26 16:19:28 2015 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.15: +23 -29 lines
Diff to previous 1.198.2.15 (colored) to branchpoint 1.198 (colored)

Don't give doing SET_CONFIG if usbd_set_config_index fails to get the
full BOS descriptor.  Mark ud_bdesc as NULL instead

Revision 1.198.2.15 / (download) - annotate - [select for diffs], Sat Jun 6 15:26:15 2015 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.14: +48 -2 lines
Diff to previous 1.198.2.14 (colored) to branchpoint 1.198 (colored)

Read Binary Object Store descriptor and store to ud_bdesc.

From t-hash

Revision 1.198.2.14 / (download) - annotate - [select for diffs], Sat Jun 6 15:21:57 2015 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.13: +6 -5 lines
Diff to previous 1.198.2.13 (colored) to branchpoint 1.198 (colored)

Use USB_IS_SS macro and update a comment.

From t-hash.

Revision 1.198.2.13 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:14 2015 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.12: +5 -4 lines
Diff to previous 1.198.2.12 (colored) to branchpoint 1.198 (colored)

Sync with HEAD

Revision 1.201 / (download) - annotate - [select for diffs], Sat Apr 11 10:10:14 2015 UTC (7 years, 9 months ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.200: +5 -4 lines
Diff to previous 1.200 (colored)

Use NULL not 0 for pointers.

Add a '\n' to a DPRINTF (old style)

Revision 1.198.2.12 / (download) - annotate - [select for diffs], Tue Apr 7 07:58:56 2015 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.11: +3 -3 lines
Diff to previous 1.198.2.11 (colored) to branchpoint 1.198 (colored)

Oops.  Fix previous.

Revision 1.198.2.11 / (download) - annotate - [select for diffs], Tue Apr 7 07:16:47 2015 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.10: +9 -2 lines
Diff to previous 1.198.2.10 (colored) to branchpoint 1.198 (colored)

Deal with super speed port powered reporting.  From Takahiro HAYASHI.

Revision 1.198.2.10 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:13 2015 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.9: +22 -6 lines
Diff to previous 1.198.2.9 (colored) to branchpoint 1.198 (colored)

Sync with HEAD

Revision 1.200 / (download) - annotate - [select for diffs], Sun Apr 5 09:12:06 2015 UTC (7 years, 9 months ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.199: +16 -5 lines
Diff to previous 1.199 (colored)

More debug.

Revision 1.199 / (download) - annotate - [select for diffs], Fri Mar 27 07:28:56 2015 UTC (7 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.198: +3 -3 lines
Diff to previous 1.198 (colored)

Remove '\n' in panic message.

Revision 1.198.2.9 / (download) - annotate - [select for diffs], Sat Mar 21 11:33:37 2015 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.8: +66 -65 lines
Diff to previous 1.198.2.8 (colored) to branchpoint 1.198 (colored)

Add prefixes to attach_arg structure member names. No functional change.

Revision 1.198.2.8 / (download) - annotate - [select for diffs], Thu Mar 19 17:26:43 2015 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.7: +46 -46 lines
Diff to previous 1.198.2.7 (colored) to branchpoint 1.198 (colored)

Do the same as OpenBSD and get rid of the *_handle typedefs and use
plain structures insteads

Revision 1.198.2.7 / (download) - annotate - [select for diffs], Tue Mar 10 06:40:56 2015 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.6: +3 -3 lines
Diff to previous 1.198.2.6 (colored) to branchpoint 1.198 (colored)

Remove '\n' from DPRINTF

Revision 1.198.2.6 / (download) - annotate - [select for diffs], Sun Mar 1 08:10:12 2015 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.5: +92 -97 lines
Diff to previous 1.198.2.5 (colored) to branchpoint 1.198 (colored)

Convert to USBHIST

Revision 1.198.2.5 / (download) - annotate - [select for diffs], Fri Dec 5 09:37:50 2014 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.4: +67 -67 lines
Diff to previous 1.198.2.4 (colored) to branchpoint 1.198 (colored)

KNF. Remove ( ) from return statements.

Revision 1.198.2.4 / (download) - annotate - [select for diffs], Wed Dec 3 14:18:07 2014 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.3: +42 -39 lines
Diff to previous 1.198.2.3 (colored) to branchpoint 1.198 (colored)

Replace malloc(9) with kmem(9)

Revision 1.198.2.3 / (download) - annotate - [select for diffs], Wed Dec 3 13:30:51 2014 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.2: +2 -3 lines
Diff to previous 1.198.2.2 (colored) to branchpoint 1.198 (colored)

G/C M_USBHC

Revision 1.198.2.2 / (download) - annotate - [select for diffs], Wed Dec 3 12:52:07 2014 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198.2.1: +241 -241 lines
Diff to previous 1.198.2.1 (colored) to branchpoint 1.198 (colored)

The grand renaming of structure members.

No functional change.

Revision 1.198.2.1 / (download) - annotate - [select for diffs], Mon Dec 1 12:38:39 2014 UTC (8 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.198: +6 -6 lines
Diff to previous 1.198 (colored)

Add prefixes to method structures member names. No functional change.

Revision 1.198 / (download) - annotate - [select for diffs], Sun Sep 21 14:30:22 2014 UTC (8 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.197: +5 -43 lines
Diff to previous 1.197 (colored)

Merge the 3 copies of devlist2h.awk that deal with 16 bit key and value
pairs to the compressed one that matt wrote.

Revision 1.197 / (download) - annotate - [select for diffs], Fri Sep 12 16:40:38 2014 UTC (8 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.196: +3 -2 lines
Diff to previous 1.196 (colored)

Improve USB debugging with USBHIST based on KERNHIST.

Convert some DPRINTFs to USBHIST_LOG and allow usbdebug, ehcidebug and
umassdebug to be changed via sysctl.

Remove the #define mess in usb.h.

This was started by mrg@ and updated by reinoud@

Revision 1.183.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:51 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.183.2.2: +27 -18 lines
Diff to previous 1.183.2.2 (colored) to branchpoint 1.183 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.180.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:40:37 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.180.2.3: +34 -21 lines
Diff to previous 1.180.2.3 (colored) to branchpoint 1.180 (colored) next main 1.181 (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.190.6.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:48 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.190.6.1: +28 -19 lines
Diff to previous 1.190.6.1 (colored) to branchpoint 1.190 (colored) next main 1.191 (colored)

sync with head

Revision 1.196 / (download) - annotate - [select for diffs], Mon Feb 17 07:34:21 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, netbsd-7-base, 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
Branch point for: netbsd-7
Changes since 1.195: +12 -2 lines
Diff to previous 1.195 (colored)

Re-establish the default pipe after the initial reading of the device
descriptor.

This fixes usbd_new_device so that there is no really need to touch
QHs/EDs in [eo]hci_device_request.

KASSERT the address and maximum packet length now.

Revision 1.180.8.1 / (download) - annotate - [select for diffs], Fri Feb 7 11:33:34 2014 UTC (8 years, 11 months ago) by sborrill
Branch: netbsd-6
Changes since 1.180: +15 -11 lines
Diff to previous 1.180 (colored) next main 1.181 (colored)

Pull up the following revisions(s) (requested by skrll in ticket #1015):
	sys/dev/usb/usb_subr.c:	revision 1.190, 1.192

Fix PR/48496. Only set wMaxPacketSize to 64 for HS/FS and set to 8 for LS to be within
the USB spec.
Reload the full device descriptor after re-establishing the default pipe
with the new address.

Revision 1.162.12.1 / (download) - annotate - [select for diffs], Tue Nov 5 18:36:31 2013 UTC (9 years, 2 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.162: +37 -7 lines
Diff to previous 1.162 (colored) next main 1.163 (colored)

Pull down xhci support from HEAD

Revision 1.195 / (download) - annotate - [select for diffs], Thu Oct 3 07:35:37 2013 UTC (9 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.194: +2 -4 lines
Diff to previous 1.194 (colored)

Simply the code now that all (real) HCDs provide a get_lock method.

Revision 1.194 / (download) - annotate - [select for diffs], Thu Sep 26 07:25:31 2013 UTC (9 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.193: +3 -3 lines
Diff to previous 1.193 (colored)

Remove usbd_do_request_async. It's callback was calling usbd_free_xfer
from softint context.

Adjust callers appropriately

	- usbd_clear_endpoint_stall_async is already triggered via a
	  usb_task, so simply call usbd_do_request.

	- uhidev_set_report_async had one caller in ukbd_set_leds.
	  Convert this usage to use usb_task as well.

Discussed with mrg@

Revision 1.193 / (download) - annotate - [select for diffs], Sat Sep 14 00:40:31 2013 UTC (9 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.192: +9 -8 lines
Diff to previous 1.192 (colored)

Add work-in-progress xhci(4) driver code.  Currently (mostly) supports
interrupt-driven control, interrupt and bulk transfers at the three USB
2.0 speeds on root hub ports.

Revision 1.192 / (download) - annotate - [select for diffs], Sat Sep 7 16:39:15 2013 UTC (9 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.191: +10 -10 lines
Diff to previous 1.191 (colored)

Reload the full device descriptor after re-establishing the default pipe
with the new address.

Some HCDs, e.g. dwc2, need wMaxPacketSize to be the value returned from
the device to complete transfers after the set address.  Opening the pipe
again gives the HCD access to the correct value.

Revision 1.190.6.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:27 2013 UTC (9 years, 5 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.190: +3 -3 lines
Diff to previous 1.190 (colored)

sync with head

Revision 1.191 / (download) - annotate - [select for diffs], Wed Aug 21 17:59:40 2013 UTC (9 years, 5 months ago) by jakllsch
Branch: MAIN
Changes since 1.190: +3 -3 lines
Diff to previous 1.190 (colored)

Use NULL instead of 0 as appropriate.

Revision 1.183.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:22 2013 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.183.2.1: +7 -3 lines
Diff to previous 1.183.2.1 (colored) to branchpoint 1.183 (colored)

resync from head

Revision 1.190 / (download) - annotate - [select for diffs], Wed Mar 20 11:14:51 2013 UTC (9 years, 10 months ago) by skrll
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.189: +7 -3 lines
Diff to previous 1.189 (colored)

Only set wMaxPacketSize to 64 for HS/FS and set to 8 for LS to be within
the USB spec.

Should help PR/46696.

Requesting 64 bytes via wLength is indeed common, but fallback to 8
would probably help.

Revision 1.183.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:41 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.183: +21 -11 lines
Diff to previous 1.183 (colored)

resync with head

Revision 1.180.2.3 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:14 2013 UTC (10 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.180.2.2: +19 -9 lines
Diff to previous 1.180.2.2 (colored) to branchpoint 1.180 (colored)

sync with head

Revision 1.189 / (download) - annotate - [select for diffs], Tue Jan 22 14:01:19 2013 UTC (10 years ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.188: +6 -6 lines
Diff to previous 1.188 (colored)

default pipe is mpsafe, deal with it

Revision 1.188 / (download) - annotate - [select for diffs], Tue Jan 22 12:40:43 2013 UTC (10 years ago) by jmcneill
Branch: MAIN
Changes since 1.187: +12 -3 lines
Diff to previous 1.187 (colored)

- Add a USBD_MPSAFE flag to usbd_open_pipe. If not set, acquire KERNEL_LOCK
  before invoking xfer callbacks on this pipe.
- Add an extra flags parameter to usb_init_task. If USBD_TASKQ_MPSAFE is not
  present, acquire KERNEL_LOCK before invoking the task callback.

Revision 1.180.2.2 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:35 2013 UTC (10 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.180.2.1: +4 -4 lines
Diff to previous 1.180.2.1 (colored) to branchpoint 1.180 (colored)

sync with (a bit old) head

Revision 1.187 / (download) - annotate - [select for diffs], Sat Jan 5 23:34:20 2013 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.186: +2 -3 lines
Diff to previous 1.186 (colored)

fix debug variables.
- include opt_usb.h in usb.h so that USB_DEBUG gets set properly in it.
- normalize and sort debugging variables

Revision 1.186 / (download) - annotate - [select for diffs], Sat Jan 5 01:30:17 2013 UTC (10 years ago) by christos
Branch: MAIN
Changes since 1.185: +4 -2 lines
Diff to previous 1.185 (colored)

- need opt_usb.h if depending on USB_DEBUG
- remove trailing whitespace
- add missing KERNEL_RCSID

Revision 1.185 / (download) - annotate - [select for diffs], Wed Jan 2 09:53:58 2013 UTC (10 years ago) by skrll
Branch: MAIN
Changes since 1.184: +3 -3 lines
Diff to previous 1.184 (colored)

Use NULL not 0 for pointer assignment.

Revision 1.184 / (download) - annotate - [select for diffs], Tue Dec 11 12:59:03 2012 UTC (10 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base7
Changes since 1.183: +4 -4 lines
Diff to previous 1.183 (colored)

DPRINTF improvement - print the address of the pipe we return not where
in memory we return the address (which is mostly useless)

Revision 1.180.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:10 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.180: +26 -5 lines
Diff to previous 1.180 (colored)

sync with head

Revision 1.183 / (download) - annotate - [select for diffs], Sun Jul 15 21:13:31 2012 UTC (10 years, 6 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.182: +4 -2 lines
Diff to previous 1.182 (colored)

commit my workaround for PR 46648 for now, as the more involved
fix is not ready yet:

move the clear endpoint stall async call into the task thread,
to avoid trying to call kmem_alloc() from a softint thread.

XXX ideally moving callbacks into the task thread (or perhaps
a different high priority task thread) would be better than this
workaround, once that method is working.

Revision 1.182 / (download) - annotate - [select for diffs], Sun Jun 10 06:15:54 2012 UTC (10 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.181: +23 -5 lines
Diff to previous 1.181 (colored)

merge the jmcneill-usbmp branch.  many thanks to jared for the
initial work, and every one else who has tested things for me.
this is largely my fault at this point :-)

the main changes are something like:

        - usbd_bus_methods{} gains a get_lock() to enable the
          host controller to provide a lock for the USB code.
          if the lock isn't provided, old-style protection is
          (partially) applied.

        - ehci/ohci/uhci have been converted to the new
          interfaces, including mutex/cv/etc conversion.

        - usbdivar.h contains a discussion about locking and
          what locks are held for which method calls.  more
          to come for usbdi(9) here.

        - audio drivers (uaudio, umidi, auvitek) have been
          properly SMPified now that USB is ready.

        - scsi drivers have been modified to take the kernel
          lock explicitly before calling into scsi code.

        - usb pipes are associated with a lock, that is the
          same as the controller lock.  (this could be split
          up further in the future.)

        - several usbfoo_locked() or usbfoo_unlocked()
          functions have been added to the usbdi(9) to
          enable functionality with or without the USB
          lock (per controller) already being held.

the TODO.usbmp file has specific details on what is left to
do, including what device-specific changes should be done now
that the whole framework is ready.

Revision 1.180.6.5 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:30 2012 UTC (10 years, 7 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.180.6.4: +3 -2 lines
Diff to previous 1.180.6.4 (colored) to branchpoint 1.180 (colored) next main 1.181 (colored)

sync to latest -current.

Revision 1.181 / (download) - annotate - [select for diffs], Tue May 22 19:11:21 2012 UTC (10 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: jmcneill-usbmp-base10
Changes since 1.180: +3 -2 lines
Diff to previous 1.180 (colored)

Include opt_usb.h for USB_DEBUG.

Revision 1.180.6.4 / (download) - annotate - [select for diffs], Sun Feb 26 06:59:38 2012 UTC (10 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.180.6.3: +18 -5 lines
Diff to previous 1.180.6.3 (colored) to branchpoint 1.180 (colored)

use kpause() in usb{d,}_delay_ms(), and add a version that takes a mutex

Revision 1.180.6.3 / (download) - annotate - [select for diffs], Fri Dec 9 01:53:00 2011 UTC (11 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
CVS Tags: jmcneill-usbmp-pre-base2
Changes since 1.180.6.2: +7 -2 lines
Diff to previous 1.180.6.2 (colored) to branchpoint 1.180 (colored)

- make pipe->close method take the thread lock

- convert usb_taskq to use mutex/cv

- convert needs_explore usage into a cv on the thread lock

- remove KERNEL_*LOCK from uaudio and umidi, since we're supposedly
  MPSAFE here now

- use IPL_SCHED instead of IPL_USB (aka biglocked) interrupts

- drop the audio thread lock when calling into usb when it may sleep,
  avoiding a deadlock between audiowrite and audioioctl.  this fixes
  mixerctl -a vs. playing hanging the system
  XXX probably need to check this in a bunch more places.

Revision 1.180.6.1.2.4 / (download) - annotate - [select for diffs], Thu Dec 8 22:04:56 2011 UTC (11 years, 1 month ago) by mrg
Branch: mrg-ohci-jmcneill-usbmp
Changes since 1.180.6.1.2.3: +2 -9 lines
Diff to previous 1.180.6.1.2.3 (colored) to branchpoint 1.180.6.1 (colored) next main 1.180.6.2 (colored)

sync usb_subr.c and usbdivar.h with the branch entirely, and most of
usbdi.c as well.

Revision 1.180.6.1.2.3 / (download) - annotate - [select for diffs], Thu Dec 8 10:41:28 2011 UTC (11 years, 1 month ago) by mrg
Branch: mrg-ohci-jmcneill-usbmp
Changes since 1.180.6.1.2.2: +4 -2 lines
Diff to previous 1.180.6.1.2.2 (colored) to branchpoint 1.180.6.1 (colored)

merge a few more changes from the main branch.

Revision 1.180.6.1.2.2 / (download) - annotate - [select for diffs], Thu Dec 8 10:22:40 2011 UTC (11 years, 1 month ago) by mrg
Branch: mrg-ohci-jmcneill-usbmp
Changes since 1.180.6.1.2.1: +2 -6 lines
Diff to previous 1.180.6.1.2.1 (colored) to branchpoint 1.180.6.1 (colored)

merge a few more things from the main branch.  uaudio@ohci still works.

Revision 1.180.6.1.2.1 / (download) - annotate - [select for diffs], Thu Dec 8 09:36:49 2011 UTC (11 years, 1 month ago) by mrg
Branch: mrg-ohci-jmcneill-usbmp
Changes since 1.180.6.1: +6 -2 lines
Diff to previous 1.180.6.1 (colored)

at little closer to the main branch.

Revision 1.180.6.2 / (download) - annotate - [select for diffs], Thu Dec 8 02:51:08 2011 UTC (11 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.180.6.1: +2 -7 lines
Diff to previous 1.180.6.1 (colored) to branchpoint 1.180 (colored)

- convert usbd_bus_methods{} and usbd_pipe_methods{} to use
  c99 struct initialisers

- move the locks from the pipe to the bus, since we'll need
  access to them from bus-level ops

- remove dead-for-years SPLUSBCHECK and replaced it with
  asserts that the thread lock is held

- begin to document the locking scheme

- convert usbd_*lock_pipe() into real function-like macros

Revision 1.180.6.1 / (download) - annotate - [select for diffs], Sun Dec 4 13:23:17 2011 UTC (11 years, 1 month ago) by jmcneill
Branch: jmcneill-usbmp
CVS Tags: mrg-ohci-jmcneill-usbmp-base
Branch point for: mrg-ohci-jmcneill-usbmp
Changes since 1.180: +7 -2 lines
Diff to previous 1.180 (colored)

Make ehci mpsafe.

Revision 1.179.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:10 2011 UTC (11 years, 7 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.179: +3 -3 lines
Diff to previous 1.179 (colored) next main 1.180 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.167.4.6 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:27 2011 UTC (11 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.167.4.5: +1 -1 lines
Diff to previous 1.167.4.5 (colored) to branchpoint 1.167 (colored) next main 1.168 (colored)

sync with head

Revision 1.180 / (download) - annotate - [select for diffs], Thu Jun 9 19:08:33 2011 UTC (11 years, 7 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, 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, jmcneill-usbmp-base9, 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
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.179: +3 -3 lines
Diff to previous 1.179 (colored)

Move EHCI_DEBUG, OHCI_DEBUG, UHCI_DEBUG, USB_DEBUG, UHUB_DEBUG to opt_usb.h
(ya dependencies).
Cleanup usb_mem.c a little more and add block tracking code.  Help find
corruption problems.
Comment out the SPEED check for ETTF.  XXX why doesn't that work right?

Revision 1.177.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:44 2011 UTC (11 years, 7 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.177: +10 -2 lines
Diff to previous 1.177 (colored) next main 1.178 (colored)

Sync with HEAD.

Revision 1.167.4.5 / (download) - annotate - [select for diffs], Tue May 31 03:04:56 2011 UTC (11 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.167.4.4: +4 -0 lines
Diff to previous 1.167.4.4 (colored) to branchpoint 1.167 (colored)

sync with head

Revision 1.179 / (download) - annotate - [select for diffs], Fri May 27 17:19:18 2011 UTC (11 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.178: +6 -2 lines
Diff to previous 1.178 (colored)

remember the data toggle bit per (bulk) endpoint rather than per
pipe, as required by the spec
This helps in cases where pipes are opened/closed without reconfiguring
the device in between, eg with the ugen driver.
only for UHCI/EHCI, don't have an OHCI to test

Revision 1.167.4.4 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:03 2011 UTC (11 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.167.4.3: +4 -0 lines
Diff to previous 1.167.4.3 (colored) to branchpoint 1.167 (colored)

sync with head

Revision 1.178 / (download) - annotate - [select for diffs], Sun Mar 20 17:38:11 2011 UTC (11 years, 10 months ago) by tsutsui
Branch: MAIN
Changes since 1.177: +6 -2 lines
Diff to previous 1.177 (colored)

Move MALLOC_DEFINE()s from usb_mem.c to usb_subr.c.
usb_mem.c provides functions for DMA memory allocation
that is required by DMA capable host controllers only,
but MALLOC_DEFINE() isn't DMA specific and could be required
by any USB drivers.

Discussed on current-users.

Revision 1.167.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:54:16 2011 UTC (11 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.167.4.2: +82 -50 lines
Diff to previous 1.167.4.2 (colored) to branchpoint 1.167 (colored)

sync with head

Revision 1.167.2.4 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:40 2010 UTC (12 years, 2 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.167.2.3: +4 -4 lines
Diff to previous 1.167.2.3 (colored) to branchpoint 1.167 (colored) next main 1.168 (colored)

Sync with HEAD.

Revision 1.177 / (download) - annotate - [select for diffs], Wed Nov 3 22:34:24 2010 UTC (12 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base4, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.176: +4 -4 lines
Diff to previous 1.176 (colored)

Stop using the compatibility macros USB_ATTACH(), USB_DETACH(),
USB_MATCH(), et cetera.  These files produce the same assembly
(according to objdump -d) before and after the change

Revision 1.167.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:19 2010 UTC (12 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.167.2.2: +1 -4 lines
Diff to previous 1.167.2.2 (colored) to branchpoint 1.167 (colored)

Sync with HEAD (-D20101022).

Revision 1.152.4.7 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:27 2010 UTC (12 years, 3 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.152.4.6: +3 -6 lines
Diff to previous 1.152.4.6 (colored) to branchpoint 1.152 (colored) next main 1.153 (colored)

sync with head

Revision 1.176 / (download) - annotate - [select for diffs], Sat Aug 21 13:18:36 2010 UTC (12 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base3
Changes since 1.175: +3 -6 lines
Diff to previous 1.175 (colored)

Update the various xxx_verbose modules to conform to the module subsystem's
new locking protocol.

Revision 1.167.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:46 2010 UTC (12 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.167.2.1: +108 -65 lines
Diff to previous 1.167.2.1 (colored) to branchpoint 1.167 (colored)

Sync with HEAD.

Revision 1.152.4.6 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:16 2010 UTC (12 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.152.4.5: +118 -75 lines
Diff to previous 1.152.4.5 (colored) to branchpoint 1.152 (colored)

sync with head.

Revision 1.175 / (download) - annotate - [select for diffs], Sat Aug 7 21:09:48 2010 UTC (12 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.174: +33 -29 lines
Diff to previous 1.174 (colored)

Pass the lengths of the buffers and use bound string functions where easy
to do so.

Revision 1.174 / (download) - annotate - [select for diffs], Tue Jul 27 16:15:30 2010 UTC (12 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.173: +6 -2 lines
Diff to previous 1.173 (colored)

do a port reset between initial device descriptor fetch and
address assignment - not required by the spec but Windows does so,
fixes a problem with a Sun Keyboard reported by Jonathan Perkin,
verified by Jonathan Kollasch

Revision 1.173 / (download) - annotate - [select for diffs], Sun Jul 25 13:19:27 2010 UTC (12 years, 6 months ago) by pgoyette
Branch: MAIN
Changes since 1.172: +7 -9 lines
Diff to previous 1.172 (colored)

Move setting of the usb_verbose_loaded flag into the module's init routine.
This ensures that the flag is set even if the module was manually loaded
by the user rather than just auto-loaded.

Revision 1.172 / (download) - annotate - [select for diffs], Tue Jul 20 20:56:06 2010 UTC (12 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.171: +43 -14 lines
Diff to previous 1.171 (colored)

another iteration in the eternal device enumeration struggle:
use a request of 64 bytes for the initial device descriptor fetch.
This is what windows does, and I've seen USB device firmware which
really depends on this. (sends 8 bytes if 64 are requested and
the full descriptor which is more than NetBSD's USB_MAX_IPACKET
otherwise) This is the world...

Revision 1.167.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:42 2010 UTC (12 years, 6 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.167.4.1: +33 -23 lines
Diff to previous 1.167.4.1 (colored) to branchpoint 1.167 (colored)

sync with head

Revision 1.171 / (download) - annotate - [select for diffs], Sun Jun 6 18:58:26 2010 UTC (12 years, 7 months ago) by pgoyette
Branch: MAIN
Changes since 1.170: +33 -23 lines
Diff to previous 1.170 (colored)

Update usbverbose 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.167.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:45 2010 UTC (12 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.167: +45 -47 lines
Diff to previous 1.167 (colored)

sync with head

Revision 1.170 / (download) - annotate - [select for diffs], Sat May 29 06:44:22 2010 UTC (12 years, 8 months ago) by cegger
Branch: MAIN
Changes since 1.169: +3 -3 lines
Diff to previous 1.169 (colored)

unload usbverbose, not pciverbose

Revision 1.169 / (download) - annotate - [select for diffs], Sat May 29 01:14:29 2010 UTC (12 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.168: +37 -39 lines
Diff to previous 1.168 (colored)

Extract USBVERBOSE into a kernel module.  The module can be builtin
by defining 'options USBVERBOSE' 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 USB support
exists.

Revision 1.167.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:53 2010 UTC (12 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.167: +10 -10 lines
Diff to previous 1.167 (colored)

Sync with HEAD.

Revision 1.168 / (download) - annotate - [select for diffs], Sun Apr 25 09:14:38 2010 UTC (12 years, 9 months ago) by matthias
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.167: +10 -10 lines
Diff to previous 1.167 (colored)

Fix for PR#42572. I was running with this patch for several month without
any problems.

Revision 1.152.4.5 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:07 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.152.4.4: +24 -20 lines
Diff to previous 1.152.4.4 (colored) to branchpoint 1.152 (colored)

sync with head

Revision 1.167 / (download) - annotate - [select for diffs], Thu Nov 12 20:11:35 2009 UTC (13 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.166: +17 -12 lines
Diff to previous 1.166 (colored)

Re-order operations in usb_detach() so that if a usb(4) instance's
children will not detach, the instance is not left in an inconsistent
state.

If uhub(4) port is disconnected, forcefully detach the children on
that port.

Simplify detachment hooks.  (sc_dying must die!)

Pass along and respect detachment flags, esp. DETACH_FORCE,
throughout.

Revision 1.166 / (download) - annotate - [select for diffs], Thu Nov 12 08:41:49 2009 UTC (13 years, 2 months ago) by uebayasi
Branch: MAIN
Changes since 1.165: +6 -8 lines
Diff to previous 1.165 (colored)

Style.

Revision 1.165 / (download) - annotate - [select for diffs], Wed Nov 11 15:49:05 2009 UTC (13 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.164: +5 -4 lines
Diff to previous 1.164 (colored)

be a little more verbose in DIAGNOSTIC printf

Revision 1.152.4.4 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:58 2009 UTC (13 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.152.4.3: +29 -29 lines
Diff to previous 1.152.4.3 (colored) to branchpoint 1.152 (colored)

sync with head

Revision 1.164 / (download) - annotate - [select for diffs], Thu Sep 3 20:54:03 2009 UTC (13 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, jym-xensuspend-nbase
Changes since 1.163: +29 -29 lines
Diff to previous 1.163 (colored)

Expand some of the portability macros from sys/dev/usb/usb_port.h.
There is no change in the generated assembly.

Revision 1.152.4.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:21 2009 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.152.4.2: +11 -4 lines
Diff to previous 1.152.4.2 (colored) to branchpoint 1.152 (colored)

sync with head.

Revision 1.163 / (download) - annotate - [select for diffs], Sun Aug 16 13:06:32 2009 UTC (13 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7
Changes since 1.162: +11 -4 lines
Diff to previous 1.162 (colored)

If we are attaching a high speed device, request a full size descriptor
block - we know the device will be able to handle it already.
This fixes a strange failure mode when attaching a (apparently non standard
conformant) USB ATA device I have, and *should* not cause any harm.
Apparently the device in question answered with the full descriptor despite
our short request - a failure mode not handled gracefully, leading to a
port reset. From Jeremy Morse.

Revision 1.152.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:22 2009 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.152.4.1: +256 -270 lines
Diff to previous 1.152.4.1 (colored) to branchpoint 1.152 (colored)

sync with head.

Revision 1.159.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:10 2008 UTC (14 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.159: +145 -73 lines
Diff to previous 1.159 (colored) next main 1.160 (colored)

Sync with HEAD.

Revision 1.150.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:34 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.150.6.3: +143 -71 lines
Diff to previous 1.150.6.3 (colored) to branchpoint 1.150 (colored) next main 1.151 (colored)

Sync with HEAD.

Revision 1.153.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:12 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.153.2.1: +170 -98 lines
Diff to previous 1.153.2.1 (colored) to branchpoint 1.153 (colored) next main 1.154 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.162 / (download) - annotate - [select for diffs], Mon Aug 18 18:03:21 2008 UTC (14 years, 5 months ago) by kent
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, 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-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: matt-nb5-mips64
Changes since 1.161: +63 -8 lines
Diff to previous 1.161 (colored)

Implement uhub_rescan().  After this change, "modload uaudio.kmod"
configures an audio device correctly for a device which is already
plugged.

* usb_subr.c
 Add locators parameter to usbd_attachinterfaces()
 Add usbd_reatach_device()

* usbdivar.h
 Export usbd_reatach_device()

Revision 1.161 / (download) - annotate - [select for diffs], Tue Aug 12 16:30:42 2008 UTC (14 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.160: +3 -3 lines
Diff to previous 1.160 (colored)

fix an inconsistency in a check for invalid configuration index vs. value;
noticed by Frank Wille in PR kern/39211, but unrelated to the problem
described (The check can practically never be hit.)

Revision 1.158.2.2 / (download) - annotate - [select for diffs], Thu Jul 31 04:51:02 2008 UTC (14 years, 6 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.158.2.1: +87 -70 lines
Diff to previous 1.158.2.1 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored)

Sync with head.

Revision 1.160 / (download) - annotate - [select for diffs], Mon Jul 28 15:22:01 2008 UTC (14 years, 6 months ago) by drochner
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.159: +87 -70 lines
Diff to previous 1.159 (colored)

-in usbd_probe_and_attach(), split out the code for per-device and
 per-interface attachment into individual functions, to ease
 maintainance and allow easier plugin of new attachment functions
-keep a counter of USB interfaces in use on a device, and try to
 keep track of interfaces claimed by drivers behind the framework's
 back

Revision 1.150.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:11 2008 UTC (14 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.150.6.2: +48 -28 lines
Diff to previous 1.150.6.2 (colored) to branchpoint 1.150 (colored)

Sync with HEAD.

Revision 1.158.2.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:28 2008 UTC (14 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.158: +27 -27 lines
Diff to previous 1.158 (colored)

Sync with head.

Revision 1.153.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:37 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.153: +106 -192 lines
Diff to previous 1.153 (colored)

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

Revision 1.159 / (download) - annotate - [select for diffs], Sun Jun 22 21:31:51 2008 UTC (14 years, 7 months ago) by jmcneill
Branch: MAIN
Branch point for: haad-dm
Changes since 1.158: +27 -27 lines
Diff to previous 1.158 (colored)

PR 39023: usbd_new_device: do not set address early, from FreeBSD.

Revision 1.152.2.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:02 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.152.2.2: +25 -5 lines
Diff to previous 1.152.2.2 (colored) to branchpoint 1.152 (colored) next main 1.153 (colored)

sync with head.

Revision 1.158 / (download) - annotate - [select for diffs], Fri Jun 6 17:52:02 2008 UTC (14 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.157: +25 -5 lines
Diff to previous 1.157 (colored)

oops, forgot to pass locators when I simplified the autoconf code

Revision 1.152.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:21 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.152.2.1: +87 -193 lines
Diff to previous 1.152.2.1 (colored) to branchpoint 1.152 (colored)

sync with head

Revision 1.150.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:56 2008 UTC (14 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.150.6.1: +86 -199 lines
Diff to previous 1.150.6.1 (colored) to branchpoint 1.150 (colored)

Sync with HEAD.

Revision 1.157 / (download) - annotate - [select for diffs], Tue May 27 20:46:16 2008 UTC (14 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pf42-base3
Changes since 1.156: +8 -8 lines
Diff to previous 1.156 (colored)

kill USB_DO_ATTACH

Revision 1.156 / (download) - annotate - [select for diffs], Mon May 26 18:00:33 2008 UTC (14 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.155: +5 -77 lines
Diff to previous 1.155 (colored)

some cleanup:
-unifdef
-since the roothub attach doesn't use locators, don't call
 config_stdsubmatch() -- it is a no-op in that case
-ifsubmatch has configuration and interface always set to useful values,
 remove unnecessary checks
-remove now unused locator definitions from shared header

Revision 1.155 / (download) - annotate - [select for diffs], Sun May 25 21:41:35 2008 UTC (14 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.154: +85 -119 lines
Diff to previous 1.154 (colored)

-make the list of USB child devices a (possibly sparse) array rather
 than a zero-terminated list; this makes the code simpler and also
 hopefully fixes the recent "childdet" botch, see PR kern/38528
-handle the root hub specially a bit earlier, this allows to kick out
 the "submatch" functions completely which needed to second-guess
 from the port number (where "0" meant root hub")
 (we could handle the root hub specially even earlier, but as done
 now big parts of the hub emulation code are exercised regularely,
 this would bitrot otherwise)

Revision 1.154 / (download) - annotate - [select for diffs], Sat May 24 16:40:58 2008 UTC (14 years, 8 months ago) by cube
Branch: MAIN
Changes since 1.153: +4 -4 lines
Diff to previous 1.153 (colored)

Split device_t and softc for all USB device drivers, and related cosmetic
changes.

Matthias Drochner kindly reviewed this patch, and tested ums, ubt, uaudio
and ral.  I tested umass myself.

Revision 1.152.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:52 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.152: +2 -9 lines
Diff to previous 1.152 (colored)

sync with head.

Revision 1.152.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:11 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.152: +2 -9 lines
Diff to previous 1.152 (colored)

sync with head.

Revision 1.153 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:00 2008 UTC (14 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.152: +2 -9 lines
Diff to previous 1.152 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.152 / (download) - annotate - [select for diffs], Sat Apr 5 16:35:35 2008 UTC (14 years, 9 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.151: +3 -3 lines
Diff to previous 1.151 (colored)

use aprint_*_dev and device_xname

Revision 1.150.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:57 2008 UTC (14 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.150: +6 -6 lines
Diff to previous 1.150 (colored)

Sync with HEAD.

Revision 1.151 / (download) - annotate - [select for diffs], Fri Mar 28 17:14:46 2008 UTC (14 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.150: +6 -6 lines
Diff to previous 1.150 (colored)

split device/softc for USB host controllers and the usb (control)
device,
this is hairy stuff, and I've only tested with uhci/ehci at pci,
please test the rest and report problems

Revision 1.148.8.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:54 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.148.8.1: +2 -3 lines
Diff to previous 1.148.8.1 (colored) to branchpoint 1.148 (colored) next main 1.149 (colored)

sync with HEAD

Revision 1.128.2.6 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:47 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.128.2.5: +2 -3 lines
Diff to previous 1.128.2.5 (colored) next main 1.129 (colored)

sync with head.

Revision 1.149.2.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:26 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.149: +2 -3 lines
Diff to previous 1.149 (colored) next main 1.150 (colored)

Sync with HEAD.

Revision 1.150 / (download) - annotate - [select for diffs], Mon Feb 18 05:24:24 2008 UTC (14 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.149: +2 -3 lines
Diff to previous 1.149 (colored)

Use device_t and its accessor functions.

Register _childdetached methods with drivers that attach children.
Wait to set child references to NULL there, instead of doing that
in the detach method.

Replace many uses of USB_DECLARE_DRIVER() with CFATTACH_DECL2().

Revision 1.148.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:30:42 2007 UTC (15 years, 2 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored)

sync with HEAD

Revision 1.128.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:34:41 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.128.2.4: +3 -3 lines
Diff to previous 1.128.2.4 (colored)

sync with head.

Revision 1.148.6.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:47:57 2007 UTC (15 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored) next main 1.149 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.148.12.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:39:52 2007 UTC (15 years, 3 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored) next main 1.149 (colored)

Sync with HEAD.

Revision 1.143.4.5 / (download) - annotate - [select for diffs], Tue Oct 23 20:09:55 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.143.4.4: +3 -3 lines
Diff to previous 1.143.4.4 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored)

Sync with head.

Revision 1.149 / (download) - annotate - [select for diffs], Fri Oct 19 12:01:22 2007 UTC (15 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.128.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:39:22 2007 UTC (15 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.128.2.3: +102 -20 lines
Diff to previous 1.128.2.3 (colored)

sync with head.

Revision 1.138.2.1.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:44 2007 UTC (15 years, 4 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.138.2.1: +14 -3 lines
Diff to previous 1.138.2.1 (colored) next main 1.138.2.2 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.138.2.3 / (download) - annotate - [select for diffs], Tue Jul 24 10:24:04 2007 UTC (15 years, 6 months ago) by liamjfoy
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-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, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.138.2.2: +1 -1 lines
Diff to previous 1.138.2.2 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #780):
	sys/dev/usb/usb_subr.c: revision 1.148
Fix typo that prevents port reset after several retries.

Revision 1.143.4.4 / (download) - annotate - [select for diffs], Sun Jul 15 13:21:49 2007 UTC (15 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.143.4.3: +3 -3 lines
Diff to previous 1.143.4.3 (colored) to branchpoint 1.143 (colored)

Sync with head.

Revision 1.143.6.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:46 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.143: +110 -19 lines
Diff to previous 1.143 (colored) next main 1.144 (colored)

Sync with head.

Revision 1.148 / (download) - annotate - [select for diffs], Sat Jun 30 09:17:45 2007 UTC (15 years, 7 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.147: +3 -3 lines
Diff to previous 1.147 (colored)

Fix typo that prevents port reset after several retries.

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Mon Jun 25 10:01:01 2007 UTC (15 years, 7 months ago) by liamjfoy
Branch: netbsd-4
Changes since 1.138.2.1: +12 -1 lines
Diff to previous 1.138.2.1 (colored) to branchpoint 1.138 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #745):
	sys/dev/usb/usb_subr.c: revision 1.147
Retry set_address function for very slow (out of spec) devices, just
like FreeBSD.

Revision 1.143.8.3 / (download) - annotate - [select for diffs], Thu Jun 21 15:27:58 2007 UTC (15 years, 7 months ago) by itohy
Branch: itohy-usb1
Changes since 1.143.8.2: +22 -5 lines
Diff to previous 1.143.8.2 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored)

Pullup 1.145-1.147
Most of the changes are already included since I started this work
based on the FreeBSD version.

Revision 1.143.8.2 / (download) - annotate - [select for diffs], Mon Jun 18 14:15:10 2007 UTC (15 years, 7 months ago) by itohy
Branch: itohy-usb1
Changes since 1.143.8.1: +161 -13 lines
Diff to previous 1.143.8.1 (colored) to branchpoint 1.143 (colored)

Pullup 1.144 (attach driver per interface) with #ifdef USB_USE_IFATTACH.

Revision 1.143.4.3 / (download) - annotate - [select for diffs], Sun May 27 14:30:30 2007 UTC (15 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.143.4.2: +14 -3 lines
Diff to previous 1.143.4.2 (colored) to branchpoint 1.143 (colored)

Sync with head.

Revision 1.143.8.1 / (download) - annotate - [select for diffs], Tue May 22 14:57:48 2007 UTC (15 years, 8 months ago) by itohy
Branch: itohy-usb1
Changes since 1.143: +243 -106 lines
Diff to previous 1.143 (colored)

Overhaul of USB stack, mostly DMA related

This applies to NetBSD 4.99.13 (March 1, 2007)

usbdi(9) interface is based on FreeBSD version, excluding
 - removal of portability code

Patch most NetBSD changes, excluding
 - DMA memory "reserve", since we don't need contiguous buffers any longer
 - volatiles in DMA structure, since it should not be needed
   with proper bus_dmamap_sync(9)s

DMA/non-DMA memory management overhaul
 - Move all DMA related code to usb_mem.[ch]
   (add usb_alloc_buffer_dma(), usb_free_buffer_dma(), etc.).
   XXX Should usb_mem.[ch] be renamed as usb_mem_dma.[ch] ?
 - Add corresponding non-DMA code to usb_mem_nodma.[ch] .
   Currently just use malloc(9).
 - Above files are conditionally used by config framework (added
   attributes to conf/files and dev/usb/files.usb).
 - Add diagnostic panics when resource allocation is requested
   on interrupt context.
 - Change memory allocations (that require context) from NOWAIT to WAITOK.

Allocate DMA/non-DMA buffer per host interface, not globally.
 advantage:	Buffers can be freed on detaching host interface.
		Activity of a host interface does not affect others.
 disadvantages:	It possibly consumes more memory.

API changes
 - usbd_alloc_xfer() is changed:
    old: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev);
    new: usbd_xfer_handle usbd_alloc_xfer(usbd_device_handle dev,
		usbd_pipe_handle pipe);
 - pipe argument of usbd_setup_*xfer() are now unused
   XXX the pipe argument should be removed?
 - add mapping APIs
 - async request will be processed as a task (kernel thread context),
   and delayed to some extent
 - usbdivar.h: struct usbd_xfer: renamed a member "allocbuf" to "hcbuffer"
   (mapped/allocated/refered buffer for HCI driver)
 - usb_port.h: change usb_proc_ptr from  struct ptoc *  to struct lwp *
 - usb_port.h: add usb_sigproc_ptr for psignal(9) (struct proc *)
 - usb.h: add UE_MAXPKTSZ(ep) and UE_MAXPKTSZ_MASK macros for USB 2.0

changes to USB device drivers
 - atu, aue, axe, cdce, cue, kue, rum, udav, upl, ural, url,
   uaudio, ubt, ucom, ugen, uhidev, uirda, ulpt, umidi, urio,
   uscanner, ustir, utoppy:
    * catch up API change of usbd_alloc_xfer()
 - umass, usscanner:
    * catch up API change of usbd_alloc_xfer()
    * eliminate memory copy for large transfer

ohci
 - free resources on detach
 - add lots of bus_dmamap_sync() operations
 - simplify the code of loading std chain
 - rewrite code of looking up TD/ITD from DMA addr by using allocation chunk
 - add workaround for CMD Tech 670 and 673 chipsets
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf

slhci
 - allocate xfer and slhci_xfer at once, and simplify relevant code
 - add slhci_detach()
 - remove second arg of slhci_attach() since it is the same as the first arg.
 - add support for "mapping" (no, it doesn't map since it doesn't do DMA)
   buffer and mbuf
 - add pcmcia frontend
 - NOT TESTED, missing hardware

ehci
 - add lots of bus_dmamap_sync() operations, possibly too many
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf
 - done only simple test

uhci
 - add lots of bus_dmamap_sync() operations, possibly too many
 - make sure resources are not allocated in interrupt context
 - add support for mapping buffer and mbuf

To do
 - review, test, debug
 - rewrite network drivers to utilize usbd_map_buffer_mbuf()
 - rewrite uaudio(4) to eliminate memcpy
 - "pipe" argument of usbd_setup_*xfer() should eventually be removed

Revision 1.147 / (download) - annotate - [select for diffs], Sun May 20 09:24:55 2007 UTC (15 years, 8 months ago) by mlelstv
Branch: MAIN
Changes since 1.146: +14 -3 lines
Diff to previous 1.146 (colored)

Retry set_address function for very slow (out of spec) devices, just
like FreeBSD.

Revision 1.142.2.3 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:32 2007 UTC (15 years, 9 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.142.2.2: +12 -3 lines
Diff to previous 1.142.2.2 (colored) to branchpoint 1.142 (colored) next main 1.143 (colored)

sync with head.

Revision 1.143.4.2 / (download) - annotate - [select for diffs], Tue Apr 10 13:24:34 2007 UTC (15 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.143.4.1: +19 -3 lines
Diff to previous 1.143.4.1 (colored) to branchpoint 1.143 (colored)

Sync with head.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Fri Apr 6 18:43:51 2007 UTC (15 years, 9 months ago) by bouyer
Branch: netbsd-4
Branch point for: wrstuden-fixsa
Changes since 1.138: +77 -10 lines
Diff to previous 1.138 (colored)

Pull up following revision(s) (requested by pavel in ticket #556):
	sys/dev/usb/ugen.c: revision 1.89
	sys/dev/usb/usb.c: revisions 1.92, 1.93
	sys/dev/usb/usb_subr.c: revision 1.139, 1.140
	sys/dev/usb/usb.h: revision 1.75
	sys/dev/usb/usbdi.h: revisions 1.71, 1.72
	sys/dev/usb/usbdi.c: revision 1.115, 1.116
	sys/dev/usb/uhid.c: revision 1.73
Restore compatibility of USB_DEVICEINFO ioctl and reads from /dev/usb with
NetBSD 3.x.  The code is conditionally compiled depending on COMPAT_30.

Revision 1.146 / (download) - annotate - [select for diffs], Fri Mar 30 16:52:12 2007 UTC (15 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic
Changes since 1.145: +12 -3 lines
Diff to previous 1.145 (colored)

PR/36102: Yojiro UO: Restore revision 1.142's way of reading the descriptor
because uplcom hangs otherwise. Also reported by Anon Ymous.

Revision 1.142.2.2 / (download) - annotate - [select for diffs], Sat Mar 24 14:55:53 2007 UTC (15 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.142.2.1: +88 -17 lines
Diff to previous 1.142.2.1 (colored) to branchpoint 1.142 (colored)

sync with head.

Revision 1.144.2.1 / (download) - annotate - [select for diffs], Sun Mar 18 00:06:44 2007 UTC (15 years, 10 months ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.144: +9 -2 lines
Diff to previous 1.144 (colored) next main 1.145 (colored)

First attempt to bring branch in sync with HEAD

Revision 1.145 / (download) - annotate - [select for diffs], Thu Mar 15 15:11:19 2007 UTC (15 years, 10 months ago) by drochner
Branch: MAIN
Changes since 1.144: +9 -2 lines
Diff to previous 1.144 (colored)

in usbd_set_config_index, range-check the index

Revision 1.143.4.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:51:05 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.143: +81 -17 lines
Diff to previous 1.143 (colored)

Sync with head.

Revision 1.144 / (download) - annotate - [select for diffs], Tue Mar 13 13:51:56 2007 UTC (15 years, 10 months ago) by drochner
Branch: MAIN
Branch point for: reinoud-bufcleanup
Changes since 1.143: +81 -17 lines
Diff to previous 1.143 (colored)

Introduce different autoconf interface attributes for USB drivers
matching (and handling) a whole device and those which match an
interface only. This will allow to enforce some rules, eg that
the former don't use interface information for matching or that the
latter don't modify global device state.
The previous way left too much freedom do the drivers which led to
inconsistencies and abuse.
For now, I've not changed locators and submatch rules, this will
happen later.
There should not be any change in behaviour, except in the case of
some drivers which did behave inconsistently:
if_atu, if_axe, uep: matched the configured device in the interface
 stage, but did configuration again. I've converted them to match
 in the device stage.
ustir, utoppy: matched in the interface stage, but only against
 vendor/device information, and used any configuration/interface
 without checking. Changed to match in device stage, and added
 some simple code to configure and use the first interface.
If you have one of those devices, please test!

Revision 1.142.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:09 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.142: +3 -12 lines
Diff to previous 1.142 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.143 / (download) - annotate - [select for diffs], Mon Feb 26 15:16:59 2007 UTC (15 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: itohy-usb1-base, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans, itohy-usb1
Changes since 1.142: +3 -12 lines
Diff to previous 1.142 (colored)

Another attempt to read string descriptors at once, this time with
the largest size which makes sense (254). See rev. 1.114-116 for
possible problems, but that was with len=255 which is an impossible
size for a string descriptor.
Someone with a "kue" please test this.

Revision 1.128.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:48 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.128.2.2: +31 -44 lines
Diff to previous 1.128.2.2 (colored)

sync with head.

Revision 1.135.6.3 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:30 2007 UTC (15 years, 11 months ago) by ad
Branch: newlock2
Changes since 1.135.6.2: +31 -44 lines
Diff to previous 1.135.6.2 (colored) to branchpoint 1.135 (colored) next main 1.136 (colored)

Sync with head.

Revision 1.142 / (download) - annotate - [select for diffs], Wed Jan 24 12:36:56 2007 UTC (16 years ago) by drochner
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base
Branch point for: yamt-idlelwp
Changes since 1.141: +16 -4 lines
Diff to previous 1.141 (colored)

There are devices which don't report the "self powered" state correctly
in the device status word (at least Palmpilot; comments in Linux
indicate that there are more).
So don't use this information, just use the bit in the configuration
descriptor we are attempting to set. (It is of little use anyway,
perhaps the code can be simplified further.)
Thanks to Steven M. Bellovin for running some tests with a Palmpilot.

Revision 1.141 / (download) - annotate - [select for diffs], Fri Jan 19 22:42:05 2007 UTC (16 years ago) by drochner
Branch: MAIN
Changes since 1.140: +17 -42 lines
Diff to previous 1.140 (colored)

In usbd_set_config_index(), remove the code which tries to draw conclusions
from the attempted power state instead of the real one. The configuration
descriptor is a constant thing and doesn't reflect the actual state, so
this doesn't make any sense. The actual state can be read by a device
status read, so use this as the first and only instance and remove
the device specific quirks which were based on wrong assumptions.
(It is possible that one of the 3 devices with quirk entries still
needs some special treatment, but this would need better research. For
now I'd prefer to avoid a quirk database which isn't maintained anyway.)
Btw, don't be confused by messages about self powered hubs which don't
have external power connected. This is legal, see the specs.

Revision 1.135.6.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:49 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.135.6.1: +77 -10 lines
Diff to previous 1.135.6.1 (colored) to branchpoint 1.135 (colored)

Sync with head.

Revision 1.128.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:39 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.128.2.1: +79 -11 lines
Diff to previous 1.128.2.1 (colored)

sync with head.

Revision 1.135.8.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:17 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.135.8.1: +78 -11 lines
Diff to previous 1.135.8.1 (colored) to branchpoint 1.135 (colored) next main 1.136 (colored)

sync with head.

Revision 1.140 / (download) - annotate - [select for diffs], Tue Dec 5 08:17:03 2006 UTC (16 years, 1 month ago) by pavel
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3
Changes since 1.139: +3 -2 lines
Diff to previous 1.139 (colored)

Add forgotten #include "opt_compat_netbsd.h" because COMPAT_30 is used.
Should fix a build problem reported by Blair Sadewitz.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Dec 3 22:34:58 2006 UTC (16 years, 1 month ago) by pavel
Branch: MAIN
Changes since 1.138: +76 -10 lines
Diff to previous 1.138 (colored)

Restore compatibility of USB_DEVICEINFO ioctl and reads from /dev/usb with
NetBSD 3.x. Patch from Stephan Thesing provided in
http://mail-index.netbsd.org/current-users/2006/03/21/0002.html, with some
modifications by me.
See also
http://mail-index.netbsd.org/current-users/2006/08/29/0017.html

The code is conditionally compiled depending on COMPAT_30.

Also fix a leak of struct usb_event in usbread() introduced while converting
on-stack variables to dynamic allocation.

Reviewed by martin@.

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

Sync with head.

Revision 1.138 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:27 2006 UTC (16 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.137: +3 -3 lines
Diff to previous 1.137 (colored)

__unused removal on arguments; approved by core.

Revision 1.135.8.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:52 2006 UTC (16 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.135: +5 -4 lines
Diff to previous 1.135 (colored)

sync with head

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

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

Revision 1.136 / (download) - annotate - [select for diffs], Wed Oct 4 16:02:06 2006 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.135: +4 -3 lines
Diff to previous 1.135 (colored)

fix empty if

Revision 1.131.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:55:33 2006 UTC (16 years, 4 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.131: +25 -7 lines
Diff to previous 1.131 (colored) next main 1.132 (colored)

sync with head

Revision 1.131.8.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:28 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.131: +25 -7 lines
Diff to previous 1.131 (colored) next main 1.132 (colored)

sync with head.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:07:44 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.128: +27 -30 lines
Diff to previous 1.128 (colored)

sync with head.

Revision 1.131.14.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:05:49 2006 UTC (16 years, 7 months ago) by chap
Branch: chap-midi
Changes since 1.131: +25 -7 lines
Diff to previous 1.131 (colored) next main 1.132 (colored)

Sync with head.

Revision 1.135 / (download) - annotate - [select for diffs], Sun Jun 11 16:00:08 2006 UTC (16 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.134: +2 -4 lines
Diff to previous 1.134 (colored)

Don't free subdevs on normal completion. The detach code needs it.

Revision 1.134 / (download) - annotate - [select for diffs], Fri Jun 9 21:33:01 2006 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.133: +7 -4 lines
Diff to previous 1.133 (colored)

stack police: Don't allocate 1k on the stack, only use malloc when we need to.

Revision 1.131.6.1 / (download) - annotate - [select for diffs], Wed Jun 7 15:51:25 2006 UTC (16 years, 7 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.131: +22 -5 lines
Diff to previous 1.131 (colored) next main 1.132 (colored)

Sync with head.

Revision 1.133 / (download) - annotate - [select for diffs], Sun Jun 4 19:38:32 2006 UTC (16 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: simonb-timecounters-base
Changes since 1.132: +11 -4 lines
Diff to previous 1.132 (colored)

save another 1K on the stack.

Revision 1.132 / (download) - annotate - [select for diffs], Sun Jun 4 19:34:16 2006 UTC (16 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.131: +13 -3 lines
Diff to previous 1.131 (colored)

Don't allocate 1K on the stack.

Revision 1.104.2.7 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:06 2005 UTC (17 years, 1 month ago) by christos
Branch: ktrace-lwp
Changes since 1.104.2.6: +2 -14 lines
Diff to previous 1.104.2.6 (colored) next main 1.105 (colored)

Sync with head.

Revision 1.111.2.1.2.1 / (download) - annotate - [select for diffs], Tue Dec 6 16:55:30 2005 UTC (17 years, 1 month ago) by tron
Branch: netbsd-2
Changes since 1.111.2.1: +2 -11 lines
Diff to previous 1.111.2.1 (colored) next main 1.112 (colored)

Pull up following revision(s) (requested by riz in ticket #10181):
	sys/dev/usb/usb_subr.c: revision 1.130
usbd_setup_pipe(): Don't call usbd_clear_endpoint_stall(). It's not
necessary for normal devices, and it prevents some common (but
apparantly buggy) devices from working, including the Apple iPod (mini
and photo) and certain M-Systems DiskOnKey flash devices.
If (also buggy) devices resurface that need this when they are
attached, they can be addressed, ideally in each device's driver.

Revision 1.130.6.1 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:16 2005 UTC (17 years, 2 months ago) by yamt
Branch: yamt-readahead
Changes since 1.130: +2 -14 lines
Diff to previous 1.130 (colored) next main 1.131 (colored)

sync with head.

Revision 1.131 / (download) - annotate - [select for diffs], Wed Nov 23 08:54:48 2005 UTC (17 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-readahead-base3, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timcounters-final, peter-altq-base, peter-altq, ktrace-lwp-base, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, chap-midi
Changes since 1.130: +2 -14 lines
Diff to previous 1.130 (colored)

Normally a ugen device only attaches if no other driver wants the device.
Add the ability to force ugen to attach with very high priority if "flags 1"
is specified.  This can be used with the vendor and product locators to
force ugen to be used for certain devices.
Similarly, uhid only attaches if no other HID driver (ums or ukbd) wants it.
Again, "flags 1" will force uhid to attach anyway.

Revision 1.104.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:08:06 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.104.2.5: +65 -70 lines
Diff to previous 1.104.2.5 (colored)

Sync with HEAD. Here we go again...

Revision 1.122.2.1 / (download) - annotate - [select for diffs], Thu Oct 6 11:40:52 2005 UTC (17 years, 3 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.122: +2 -11 lines
Diff to previous 1.122 (colored) next main 1.123 (colored)

Pull up following revision(s) (requested by nathanw in ticket #861):
	sys/dev/usb/usb_subr.c: revision 1.130
usbd_setup_pipe(): Don't call usbd_clear_endpoint_stall(). It's not
necessary for normal devices, and it prevents some common (but
apparantly buggy) devices from working, including the Apple iPod (mini
and photo) and certain M-Systems DiskOnKey flash devices.
If (also buggy) devices resurface that need this when they are
attached, they can be addressed, ideally in each device's driver.

Revision 1.130 / (download) - annotate - [select for diffs], Wed Sep 21 20:17:22 2005 UTC (17 years, 4 months ago) by nathanw
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead
Changes since 1.129: +2 -11 lines
Diff to previous 1.129 (colored)

usbd_setup_pipe(): Don't call usbd_clear_endpoint_stall(). It's not
necessary for normal devices, and it prevents some common (but
apparantly buggy) devices from working, including the Apple iPod (mini
and photo) and certain M-Systems DiskOnKey flash devices.

If (also buggy) devices resurface that need this when they are
attached, they can be addressed, ideally in each device's driver.

Revision 1.129 / (download) - annotate - [select for diffs], Fri Aug 26 12:42:11 2005 UTC (17 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.128: +4 -4 lines
Diff to previous 1.128 (colored)

s/locdesc_t/int/g

Revision 1.128 / (download) - annotate - [select for diffs], Sun Jun 19 04:01:36 2005 UTC (17 years, 7 months ago) by enami
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.127: +32 -52 lines
Diff to previous 1.127 (colored)

Actually, usbd_trim_spaces was not writing to const memory, so revert
unnecessary changes.  Instead, make the caller code easier to read.
After all, it is enough to suppress warning due to constfy.

Revision 1.127 / (download) - annotate - [select for diffs], Thu Jun 16 12:55:25 2005 UTC (17 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.126: +5 -5 lines
Diff to previous 1.126 (colored)

Return the beginning of the string, not the end.

Revision 1.126 / (download) - annotate - [select for diffs], Mon May 30 04:20:46 2005 UTC (17 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.125: +17 -14 lines
Diff to previous 1.125 (colored)

- const poisoning
- avoid shadowing
- usbd_trim_spaces was writing to const memory; give it a buffer.

Revision 1.125 / (download) - annotate - [select for diffs], Mon May 23 16:35:26 2005 UTC (17 years, 8 months ago) by soren
Branch: MAIN
Changes since 1.124: +2 -4 lines
Diff to previous 1.124 (colored)

Sync 1284 id printing with the devinfo change, but leave it disabled for now.

Revision 1.124 / (download) - annotate - [select for diffs], Wed May 11 10:02:29 2005 UTC (17 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.123: +22 -3 lines
Diff to previous 1.123 (colored)

Don't keep the devinfo string on the stack, instead use malloc/free.
This should cure some rare stack overflows.

Revision 1.123 / (download) - annotate - [select for diffs], Mon May 2 15:32:18 2005 UTC (17 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.122: +21 -17 lines
Diff to previous 1.122 (colored)

Use UTF8 to encode strings read from the device (instead of using '?' for
characters >=0x100).

Also add serial number string to the device information struct.

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:19 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.120: +20 -24 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

sync with -current

Revision 1.120.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:58 2005 UTC (17 years, 10 months ago) by yamt
Branch: yamt-km
Changes since 1.120: +20 -24 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.104.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:50:55 2005 UTC (17 years, 10 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.104.2.4: +20 -24 lines
Diff to previous 1.104.2.4 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.122 / (download) - annotate - [select for diffs], Fri Mar 4 05:03:19 2005 UTC (17 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, kent-audio2-base
Branch point for: netbsd-3
Changes since 1.121: +19 -23 lines
Diff to previous 1.121 (colored)

Separate out vendors from the product table, to reduce string duplication.
Saves ~10K.

Revision 1.121 / (download) - annotate - [select for diffs], Wed Mar 2 11:37:27 2005 UTC (17 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored)

Copyright maintenance.

Revision 1.104.2.4 / (download) - annotate - [select for diffs], Tue Nov 2 07:53:03 2004 UTC (18 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.104.2.3: +33 -58 lines
Diff to previous 1.104.2.3 (colored)

Sync with HEAD.

Revision 1.120 / (download) - annotate - [select for diffs], Sat Oct 23 16:17:56 2004 UTC (18 years, 3 months ago) by augustss
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.119: +25 -10 lines
Diff to previous 1.119 (colored)

Keep track of what high speed port (if any) a device belongs to so we can
set the transaction translator fields for the transfer.
Add a gross hack for split transaction completion in the ehci driver that
allows control transfers to be translated.  Interrupt transfers do not work.
Warn when any low/full speed device is opened.

Revision 1.119 / (download) - annotate - [select for diffs], Sat Oct 23 13:26:33 2004 UTC (18 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.118: +10 -50 lines
Diff to previous 1.118 (colored)

Make an iterator abstraction for looping through all descriptors.

Move usb_get_string() and make it public.

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

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.118 / (download) - annotate - [select for diffs], Mon Sep 13 12:55:49 2004 UTC (18 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.117: +7 -5 lines
Diff to previous 1.117 (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.117 / (download) - annotate - [select for diffs], Wed Sep 8 19:59:15 2004 UTC (18 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.116: +3 -4 lines
Diff to previous 1.116 (colored)

remove a redundant check

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:39 2004 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.104: +83 -48 lines
Diff to previous 1.104 (colored)

Sync with HEAD

Revision 1.111.2.1 / (download) - annotate - [select for diffs], Fri Jul 2 17:23:33 2004 UTC (18 years, 7 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
Branch point for: netbsd-2
Changes since 1.111: +22 -9 lines
Diff to previous 1.111 (colored) next main 1.112 (colored)

Pull up revisions 1.114-1.116 (requested by mycroft in ticket #572):
  Several fixes mostly related to USB:
   o Add a general workaround for devices returning incorrect
     lengths in string descriptors, so that we don't need
     separate quirk entries for these.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Jun 23 06:27:54 2004 UTC (18 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.115: +26 -5 lines
Diff to previous 1.115 (colored)

In the "seemed like a good idea until I found the fatal flaw" department...
Attempting to read a maximum-size string descriptor causes my kue device to go
completely apeshit.  So, go back to the original method, but allow the device
to return a shorter string than it claimed.

Revision 1.115 / (download) - annotate - [select for diffs], Wed Jun 23 05:23:19 2004 UTC (18 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored)

Whoops, use the correct value for the maximum string descriptor length.

Revision 1.114 / (download) - annotate - [select for diffs], Wed Jun 23 02:30:52 2004 UTC (18 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.113: +12 -20 lines
Diff to previous 1.113 (colored)

Yes, some devices return incorrect lengths in their string descriptors.  Rather
than losing, do what Windows does: just request the maximum size, and allow a
shorter response.  Obsoletes the need for UQ_NO_STRINGS, and therefore these
"quirks" are removed.

Revision 1.113 / (download) - annotate - [select for diffs], Fri Apr 23 17:25:26 2004 UTC (18 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.112: +18 -15 lines
Diff to previous 1.112 (colored)

use bounded string ops (snprintf, strl*)

Revision 1.112 / (download) - annotate - [select for diffs], Thu Apr 22 00:17:14 2004 UTC (18 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.111: +15 -10 lines
Diff to previous 1.111 (colored)

sprintf -> snprintf

Revision 1.111 / (download) - annotate - [select for diffs], Mon Mar 15 10:35:04 2004 UTC (18 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.110: +17 -17 lines
Diff to previous 1.110 (colored)

Set the device address before reading the device descriptor.
This makes certain non-conforming devices work.
Suggested by Peter Burnett in kern/24716.

Revision 1.110 / (download) - annotate - [select for diffs], Wed Feb 25 21:52:59 2004 UTC (18 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.109: +3 -2 lines
Diff to previous 1.109 (colored)

On disconnect, set the "subdev" pointer to NULL, otherwise
free()d memory will be referenced through
usbd_add_dev_event(USB_EVENT_DEVICE_DETACH)->
usbd_fill_deviceinfo()
later.
might need more review, but at least it doesn't crash on
amd64 anymore

Revision 1.109 / (download) - annotate - [select for diffs], Wed Jan 28 22:37:50 2004 UTC (19 years ago) by augustss
Branch: MAIN
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

Fix pasto.

Revision 1.108 / (download) - annotate - [select for diffs], Wed Jan 28 22:00:06 2004 UTC (19 years ago) by augustss
Branch: MAIN
Changes since 1.107: +7 -3 lines
Diff to previous 1.107 (colored)

If vendor or product is the empty string, ignore it.
From FreeBSD.

Revision 1.107 / (download) - annotate - [select for diffs], Mon Jan 5 13:32:23 2004 UTC (19 years ago) by augustss
Branch: MAIN
Changes since 1.106: +6 -3 lines
Diff to previous 1.106 (colored)

Try harder to get initial descriptor.  Do a port reset now and then
in the retry loop.

Revision 1.106 / (download) - annotate - [select for diffs], Tue Sep 23 21:44:42 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.105: +4 -3 lines
Diff to previous 1.105 (colored)

Allow a device to reject CLEAR_FEATURE ENDPOINT_STALL (with a STALL) -- the
assumption being that the device will never use a STALL of a non-control pipe,
I guess.

Revision 1.105 / (download) - annotate - [select for diffs], Fri Sep 12 16:22:57 2003 UTC (19 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.104: +9 -4 lines
Diff to previous 1.104 (colored)

In usbd_setup_pipe(), check the return value from usbd_clear_endpoint_stall().

Revision 1.104 / (download) - annotate - [select for diffs], Mon Jun 23 11:02:01 2003 UTC (19 years, 7 months ago) by martin
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.103: +4 -2 lines
Diff to previous 1.103 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.85.2.9 / (download) - annotate - [select for diffs], Wed Jan 15 18:44:25 2003 UTC (20 years ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.85.2.8: +12 -5 lines
Diff to previous 1.85.2.8 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored)

Sync with HEAD.

Revision 1.103 / (download) - annotate - [select for diffs], Fri Jan 10 11:19:13 2003 UTC (20 years ago) by augustss
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.102: +12 -5 lines
Diff to previous 1.102 (colored)

Try to get full device descriptor a few times.  This makes some slow
devices work.  From FreeBSD.

Revision 1.85.2.8 / (download) - annotate - [select for diffs], Fri Jan 3 17:08:22 2003 UTC (20 years ago) by thorpej
Branch: nathanw_sa
Changes since 1.85.2.7: +17 -11 lines
Diff to previous 1.85.2.7 (colored) to branchpoint 1.85 (colored)

Sync with HEAD.

Revision 1.102 / (download) - annotate - [select for diffs], Wed Jan 1 16:21:50 2003 UTC (20 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.101: +10 -4 lines
Diff to previous 1.101 (colored)

Try getting string descriptors in a slightly different way to works around
some problematic devices.  From Alexander Kabaev <kan@FreeBSD.ORG>.

Revision 1.101 / (download) - annotate - [select for diffs], Wed Jan 1 00:10:26 2003 UTC (20 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.100: +9 -9 lines
Diff to previous 1.100 (colored)

Use aprint_normal() in cfprint routines.

Revision 1.85.2.7 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:38 2002 UTC (20 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.85.2.6: +1 -1 lines
Diff to previous 1.85.2.6 (colored) to branchpoint 1.85 (colored)

Catch up to -current.

Revision 1.86.2.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:45 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.86.2.5: +3 -3 lines
Diff to previous 1.86.2.5 (colored) next main 1.87 (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.100 / (download) - annotate - [select for diffs], Fri Sep 27 03:18:22 2002 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (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.86.2.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:47:12 2002 UTC (20 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.86.2.4: +23 -23 lines
Diff to previous 1.86.2.4 (colored)

sync kqueue branch with HEAD

Revision 1.85.2.6 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:05 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.85.2.5: +23 -23 lines
Diff to previous 1.85.2.5 (colored) to branchpoint 1.85 (colored)

Catch up to -current.

Revision 1.98.8.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:16 2002 UTC (20 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.98: +23 -23 lines
Diff to previous 1.98 (colored) next main 1.99 (colored)

catch up with -current.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Jul 11 21:14:34 2002 UTC (20 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.98: +23 -23 lines
Diff to previous 1.98 (colored)

Get rid of trailing white space.

Revision 1.86.2.4 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:40 2002 UTC (20 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.86.2.3: +23 -23 lines
Diff to previous 1.86.2.3 (colored)

Catch up with -current.

Revision 1.85.2.5 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:34 2002 UTC (20 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.85.2.4: +24 -25 lines
Diff to previous 1.85.2.4 (colored) to branchpoint 1.85 (colored)

Catch up to -current.

Revision 1.98 / (download) - annotate - [select for diffs], Wed Feb 20 20:30:13 2002 UTC (20 years, 11 months ago) by christos
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.97: +23 -23 lines
Diff to previous 1.97 (colored)

Prefix structure members to protect them against clashes with eg. c++ keywords.
Suggested by Alfred Perlstein, from FreeBSD, ok'd by augustss

Revision 1.86.2.3 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:18 2002 UTC (20 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.86.2.2: +3 -4 lines
Diff to previous 1.86.2.2 (colored)

Sync w/ -current.

Revision 1.97 / (download) - annotate - [select for diffs], Sat Jan 12 17:11:03 2002 UTC (21 years ago) by tsutsui
Branch: MAIN
Changes since 1.96: +3 -4 lines
Diff to previous 1.96 (colored)

Call malloc(9) with M_ZERO flag instead of memset() after malloc().

Revision 1.86.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:06 2002 UTC (21 years ago) by thorpej
Branch: kqueue
Changes since 1.86.2.1: +60 -20 lines
Diff to previous 1.86.2.1 (colored)

Sync kqueue branch with -current.

Revision 1.85.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:18 2002 UTC (21 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.85.2.3: +57 -14 lines
Diff to previous 1.85.2.3 (colored) to branchpoint 1.85 (colored)

Catch up to -current.

Revision 1.96 / (download) - annotate - [select for diffs], Thu Nov 22 21:59:33 2001 UTC (21 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Correct a comment.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Nov 20 16:09:01 2001 UTC (21 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.94: +39 -6 lines
Diff to previous 1.94 (colored)

Sanity check max packet lengths.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Nov 20 13:50:07 2001 UTC (21 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.93: +16 -9 lines
Diff to previous 1.93 (colored)

Update for new speed handling.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Nov 17 01:49:53 2001 UTC (21 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored)

Make it possible to report device speeds with ioctl(USB_DEVICEINFO).

Revision 1.92 / (download) - annotate - [select for diffs], Fri Nov 16 01:57:47 2001 UTC (21 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.91: +5 -2 lines
Diff to previous 1.91 (colored)

Handle devices that disappear during reset gracefully.

Revision 1.85.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:21 2001 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.85.2.2: +5 -8 lines
Diff to previous 1.85.2.2 (colored) to branchpoint 1.85 (colored)

Catch up to -current.

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

add RCSIDs

Revision 1.87.4.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:35 2001 UTC (21 years, 2 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.87: +2 -8 lines
Diff to previous 1.87 (colored) next main 1.88 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.90 / (download) - annotate - [select for diffs], Sat Nov 10 17:11:38 2001 UTC (21 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.89: +1 -2 lines
Diff to previous 1.89 (colored)

Get rid of unused abort_handle.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Nov 10 17:10:42 2001 UTC (21 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.88: +2 -1 lines
Diff to previous 1.88 (colored)

Abort any xfers on the control pipe before closing it on detach.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Nov 10 16:53:32 2001 UTC (21 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.87: +1 -7 lines
Diff to previous 1.87 (colored)

Small portability improvement.

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:40 2001 UTC (21 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.86: +13 -1 lines
Diff to previous 1.86 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.85.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:11:11 2001 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.85.2.1: +13 -1 lines
Diff to previous 1.85.2.1 (colored) to branchpoint 1.85 (colored)

Catch up with -current.

Revision 1.87 / (download) - annotate - [select for diffs], Wed Aug 15 00:04:59 2001 UTC (21 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.86: +13 -1 lines
Diff to previous 1.86 (colored)

Add a little infrastructure so that individual drivers can easily check
if thee was a vendor+product locator match.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:26 2001 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.85: +1 -2 lines
Diff to previous 1.85 (colored)

Catch up to -current.

Revision 1.86 / (download) - annotate - [select for diffs], Wed May 16 04:50:11 2001 UTC (21 years, 8 months ago) by lukem
Branch: MAIN
Branch point for: kqueue
Changes since 1.85: +1 -2 lines
Diff to previous 1.85 (colored)

delint: remove unnecessary assignment to same objection (hidden in #define)

Revision 1.52.2.4 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:30 2001 UTC (21 years, 11 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52.2.3: +14 -10 lines
Diff to previous 1.52.2.3 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored)

Sync with HEAD.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Jan 21 02:34:34 2001 UTC (22 years ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.84: +12 -8 lines
Diff to previous 1.84 (colored)

Trim space off both ends of device product and vendor strings.

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

constify

Revision 1.52.2.3 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:39 2001 UTC (22 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52.2.2: +16 -2 lines
Diff to previous 1.52.2.2 (colored) to branchpoint 1.52 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.83 / (download) - annotate - [select for diffs], Mon Jan 8 20:21:16 2001 UTC (22 years ago) by augustss
Branch: MAIN
Changes since 1.82: +17 -3 lines
Diff to previous 1.82 (colored)

Cosmetic changes.

Revision 1.52.2.2 / (download) - annotate - [select for diffs], Wed Dec 13 15:50:16 2000 UTC (22 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52.2.1: +15 -8 lines
Diff to previous 1.52.2.1 (colored) to branchpoint 1.52 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.82 / (download) - annotate - [select for diffs], Wed Dec 13 04:05:14 2000 UTC (22 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.81: +15 -8 lines
Diff to previous 1.81 (colored)

Don't try to access a device that is being disconnected when generating
the detach event.  Fixes (I hope) PR 11713 from itohy@netbsd.org (ITOH Yasufumi).

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:43:30 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.52: +358 -314 lines
Diff to previous 1.52 (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.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Oct 24 15:01:26 2000 UTC (22 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.80: +36 -10 lines
Diff to previous 1.80 (colored)

Add a hack to try and figure out if the TI UTUSB41 hub is bus powered
despite claiming to be self powered (it's important to know so that the
power budget can be met).

Revision 1.80 / (download) - annotate - [select for diffs], Thu Oct 12 23:11:04 2000 UTC (22 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

Avoid empty strings for vendor&product.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:08:44 2000 UTC (22 years, 7 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.76: +55 -125 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.79 / (download) - annotate - [select for diffs], Thu Jun 1 14:37:51 2000 UTC (22 years, 8 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
Changes since 1.78: +2 -6 lines
Diff to previous 1.78 (colored)

Improve some portability items.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Jun 1 14:29:02 2000 UTC (22 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.77: +46 -116 lines
Diff to previous 1.77 (colored)

Bring the coding style into the 80s, i.e., get rid of __P and use
ANSI prototypes and declarations.

Revision 1.77 / (download) - annotate - [select for diffs], Wed May 31 16:15:49 2000 UTC (22 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.76: +9 -5 lines
Diff to previous 1.76 (colored)

Be more careful when setting the alternate interface.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Apr 27 15:26:50 2000 UTC (22 years, 9 months ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored)

Change my email address.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Apr 23 00:47:00 2000 UTC (22 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.74: +16 -7 lines
Diff to previous 1.74 (colored)

Make it possible to move a device to its unconfigured state by
using config #0.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Apr 21 20:58:56 2000 UTC (22 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.73: +13 -5 lines
Diff to previous 1.73 (colored)

Add some comments.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Apr 21 15:58:55 2000 UTC (22 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.72: +3 -5 lines
Diff to previous 1.72 (colored)

Change error reporting in port reset function.

Revision 1.72 / (download) - annotate - [select for diffs], Fri Apr 14 14:13:56 2000 UTC (22 years, 9 months ago) by augustss
Branch: MAIN
Changes since 1.71: +34 -27 lines
Diff to previous 1.71 (colored)

Make attach of ugen work as it should so product&vendor locators can be used.

Revision 1.71 / (download) - annotate - [select for diffs], Wed Mar 29 18:24:53 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.70: +2 -1 lines
Diff to previous 1.70 (colored)

Some OpenBSD portability fixes.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Mar 29 01:45:20 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.69: +2 -1 lines
Diff to previous 1.69 (colored)

Do not accept new xfers for queuing while a pipe is aborting.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Mar 27 12:33:58 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.68: +13 -13 lines
Diff to previous 1.68 (colored)

Change (almost) all static to Static.  The symbol `Static' can then be defined
to `' or `static' depending on if you want to debug or not.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Mar 25 18:02:33 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored)

Rename and move around callout handles to make it more sane.
Add some DIAGNOSTIC.
Fix buglet in isoc abort on UHCI.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Mar 13 23:52:37 2000 UTC (22 years, 10 months ago) by soren
Branch: MAIN
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)

Fix doubled 'the's in comments.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Feb 20 14:45:05 2000 UTC (22 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.65: +7 -7 lines
Diff to previous 1.65 (colored)

usbd_devinfo_vp(): search the know devs array also if the device
	doesn't return product description (e.g. Kye's Genius NetScroll
	mouse returns vendor, but not product); the strings
	returned by device are still preferred to those in the array, though

Revision 1.65 / (download) - annotate - [select for diffs], Wed Feb 2 07:34:00 2000 UTC (23 years ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.64: +26 -6 lines
Diff to previous 1.64 (colored)

Change the USB event mechanism to include more information about devices
and drivers.  Partly from FreeBSD.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Feb 1 17:46:17 2000 UTC (23 years ago) by augustss
Branch: MAIN
Changes since 1.63: +4 -2 lines
Diff to previous 1.63 (colored)

Make sure to use delay() in usb_delay_ms() while cold booting.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Jan 19 00:23:58 2000 UTC (23 years ago) by augustss
Branch: MAIN
Changes since 1.62: +6 -3 lines
Diff to previous 1.62 (colored)

Add an argument to usbd_open_pipe_intr() to specify the polling interval
for an interrupt pipe in case we don't what what the descriptor suggests.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jan 16 23:11:43 2000 UTC (23 years ago) by augustss
Branch: MAIN
Changes since 1.61: +19 -6 lines
Diff to previous 1.61 (colored)

Add usbd_reload_device_desc() to get the device descriptor again from a device.
Useful if e.g. downloading firmware updates the revision number.

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:45 1999 UTC (23 years, 1 month ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.48: +217 -171 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

Pull up to last week's -current.

Revision 1.61 / (download) - annotate - [select for diffs], Sat Dec 18 22:51:58 1999 UTC (23 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.60: +3 -2 lines
Diff to previous 1.60 (colored)

Add another debug printf.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Dec 15 23:00:05 1999 UTC (23 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.59: +4 -1 lines
Diff to previous 1.59 (colored)

Add even more debug output.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Dec 15 20:05:08 1999 UTC (23 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.58: +10 -5 lines
Diff to previous 1.58 (colored)

More debug printfs.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Dec 6 21:07:00 1999 UTC (23 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.57: +10 -10 lines
Diff to previous 1.57 (colored)

Cosmetics and a couple of diagnostic messages.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Nov 24 23:14:39 1999 UTC (23 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.56: +9 -18 lines
Diff to previous 1.56 (colored)

Avoid the special when disconnecting devices with no config descriptor.
It was wrong.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Nov 18 23:32:32 1999 UTC (23 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.55: +20 -13 lines
Diff to previous 1.55 (colored)

Cosmetic changes and some small improvements.  From FreeBSD and Nick Hibma.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Nov 16 22:15:50 1999 UTC (23 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

Fix a pointer test that I got wrong in the big code cleanup.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Nov 16 12:04:29 1999 UTC (23 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.53: +18 -1 lines
Diff to previous 1.53 (colored)

Some minor changes from OpenBSD.

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

Sync with -current

Revision 1.53 / (download) - annotate - [select for diffs], Fri Nov 12 00:34:58 1999 UTC (23 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.52: +108 -107 lines
Diff to previous 1.52 (colored)

A number of stylistic changes to increase readability (many suggested
by Nick Hibma):
	use NULL not 0
	declare all local definitions static
	rename s/usbd_request/usbd_xfer/ s/reqh/xfer/
	rename s/r/err/
	use implicit test for no err
	KNF

Revision 1.52 / (download) - annotate - [select for diffs], Wed Oct 13 08:10:58 1999 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi, fvdl-softdep
Changes since 1.51: +39 -24 lines
Diff to previous 1.51 (colored)

Merge in a large batch of changes from Nick Hibma <hibma@skylink.it> so
the USB stack compiles on FreeBSD again.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Oct 12 20:02:48 1999 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.50: +9 -7 lines
Diff to previous 1.50 (colored)

Fix some bugs in USB controller detach code.

Revision 1.50 / (download) - annotate - [select for diffs], Tue Oct 12 11:54:56 1999 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.49: +5 -2 lines
Diff to previous 1.49 (colored)

Add an event mechanism so that a userland process can watch devices come
and go.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Oct 11 09:16:39 1999 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.48: +3 -2 lines
Diff to previous 1.48 (colored)

Add a quirk for devices that lie about how they are powered.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Sep 16 19:20:34 1999 UTC (23 years, 4 months ago) by augustss
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.47: +8 -1 lines
Diff to previous 1.47 (colored)

More DIAGNOSTIC paranoia.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Sep 15 10:25:31 1999 UTC (23 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.46: +58 -1 lines
Diff to previous 1.46 (colored)

Add preliminary (untested) code for detaching the USB host controller
(needed for CardBus based controllers).

Revision 1.46 / (download) - annotate - [select for diffs], Mon Sep 13 19:18:17 1999 UTC (23 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.45: +3 -1 lines
Diff to previous 1.45 (colored)

Rearrange the code a little so we can decide if we are in process
or interrupt context in a reliable way.  Mainly used for DIAGNOSTIC.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Sep 9 12:26:47 1999 UTC (23 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Change the internal API to allow DMA buffers to be pre-allocated by
the device driver instead of happening automagically in the HC driver.
This affects both the HC-USBD interface as well as the USBD-device
interface.
This change will allow DMA buffers to be reused e.g. in isochronous
traffic.

Add isochronous support to the UHCI driver (not for OHCI yet).

Revision 1.44 / (download) - annotate - [select for diffs], Sun Sep 5 21:22:39 1999 UTC (23 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

Change some printf to DPRINTF for consistency.  From Nick Hibma, FreeBSD.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Sep 5 19:32:19 1999 UTC (23 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.42: +10 -10 lines
Diff to previous 1.42 (colored)

Change the way the `struct device' base part of all driver softc are
declared and accessed to make it more portable.  Idea from Nick Hibma, FreeBSD.
No functional changes.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Aug 29 19:41:27 1999 UTC (23 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +4 -11 lines
Diff to previous 1.41 (colored)

Make usbd_errstr() always return a useful error message; it's not like
the strings are that big.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Aug 28 21:42:35 1999 UTC (23 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Change some 'struct device' to 'bdevice'.  From FreeBSD.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Aug 22 20:12:39 1999 UTC (23 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.39: +1 -49 lines
Diff to previous 1.39 (colored)

Move more of the transfer completion processing to HC independent code.
Fix some problems with transfer abort & timeout.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Aug 19 19:51:37 1999 UTC (23 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.38: +42 -16 lines
Diff to previous 1.38 (colored)

Add a utility function, usbd_errstr(), to print error strings.  From FreeBSD.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Aug 17 20:59:04 1999 UTC (23 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.37: +4 -2 lines
Diff to previous 1.37 (colored)

Redo the UHCI data toggle handling.
Make sure data toggles get synchronized on open and
when clearing an endpoint stall.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Aug 17 16:06:21 1999 UTC (23 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.36: +16 -4 lines
Diff to previous 1.36 (colored)

Make some small changes to make it compile on OpenBSD.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Aug 16 20:24:33 1999 UTC (23 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.35: +2 -7 lines
Diff to previous 1.35 (colored)

Change the way transfers are dequeued so thet we know that they
are removed from the queue before being deallocated.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Aug 14 14:49:32 1999 UTC (23 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

Some changes from FreeBSD (no functional differences).

Revision 1.29.4.2 / (download) - annotate - [select for diffs], Thu Jul 1 23:40:23 1999 UTC (23 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.29.4.1: +52 -9 lines
Diff to previous 1.29.4.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

Sync w/ -current.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Jun 30 06:44:23 1999 UTC (23 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.33: +52 -9 lines
Diff to previous 1.33 (colored)

Totally redo the way device detach is done.  It now uses a kernel event
thread and the config detach method.
Squish a number of space leaks on detach.

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:19:29 1999 UTC (23 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.29: +49 -40 lines
Diff to previous 1.29 (colored)

Sync w/ -current.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jun 14 17:09:57 1999 UTC (23 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.32: +8 -38 lines
Diff to previous 1.32 (colored)

Get rid of a bunch of code that was part of an old USBDI proposal, but that
is unused in our USB stack.

Once upon a time, when I started writing the USB stack for NetBSD, there
was an effort to make a standard for how USB device drivers should interact
with the rest of the USB stack.  This effort had contributors from just
about all Un*x camps (but not Micro$oft :).  I based my design on one of their
early proposals since I thought it would be a good idea if we could all
share device drivers with a minimum effort.  Shortly after I started my work
all the free Un*x people were thrown out of the USBDI work since we did not
pay the USB membership fee.  Well, some time has passed now and the work of
the standardization group is almost public again.  But alas, the new standard
has grown to be a monster!  I do not want to have this as the basis for the
*BSD USB stack; it is far too complicated.
So, since we are not even close to being compilant with the standard, I've
thrown out some old baggage.

Revision 1.32 / (download) - annotate - [select for diffs], Sun May 16 13:51:05 1999 UTC (23 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.31: +32 -3 lines
Diff to previous 1.31 (colored)

Add vendor/product/release locators.  Added in frustration as my HID
devices appeared as different devices after some plugging and unplugging. :-)

Revision 1.31 / (download) - annotate - [select for diffs], Thu May 13 23:29:41 1999 UTC (23 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.30: +9 -1 lines
Diff to previous 1.30 (colored)

More DIAGNOSTIC tests.

Revision 1.30 / (download) - annotate - [select for diffs], Sun May 9 14:37:18 1999 UTC (23 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.29: +3 -1 lines
Diff to previous 1.29 (colored)

More debug.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 18 12:08:43 1999 UTC (23 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

Initialize pipe structure properly.  From Joel Chen <jchen@nc.com>

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jan 10 19:13:16 1999 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.27: +5 -1 lines
Diff to previous 1.27 (colored)

Some minor updates from FreeBSD.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jan 8 11:58:25 1999 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.26: +21 -18 lines
Diff to previous 1.26 (colored)

Various little fixes from the FreeBSD version.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Jan 7 22:12:08 1999 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.25: +2 -4 lines
Diff to previous 1.25 (colored)

Fix typo in FreeBSD part of the code.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jan 7 02:22:51 1999 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.24: +1 -3 lines
Diff to previous 1.24 (colored)

Fix some FreeBSD compiler warnings.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jan 1 15:21:42 1999 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.23: +11 -9 lines
Diff to previous 1.23 (colored)

Fix bug setting up endpoint descriptors for an interface.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Dec 30 18:06:25 1998 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.22: +17 -8 lines
Diff to previous 1.22 (colored)

Split usbd_delay_ms() into two functions, one can be used in
device drivers.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 29 16:02:55 1998 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.21: +13 -2 lines
Diff to previous 1.21 (colored)

Do not blindly assume that a device supports language id 0, instead
ask it what languages it supports.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Dec 29 15:27:16 1998 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.20: +5 -3 lines
Diff to previous 1.20 (colored)

Return more info in ioctl(USB_DEVICEINFO).

Revision 1.20 / (download) - annotate - [select for diffs], Mon Dec 28 21:05:26 1998 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.19: +18 -6 lines
Diff to previous 1.19 (colored)

Send more information to USB attach routines so that they can claim
multiple interfaces.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Dec 28 20:14:00 1998 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.18: +71 -15 lines
Diff to previous 1.18 (colored)

Change the host controller internal API a little and add some incomplete
support for isochronous transfers.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Dec 26 12:53:03 1998 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.17: +195 -93 lines
Diff to previous 1.17 (colored)

Merge changes to make the USB stack work with FreeBSD.  The original
diffs from Nick Hibma <n_hibma@freebsd.org>, but with substantial
changes from me.
XXX Not tested on FreeBSD yet.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Dec 12 12:18:26 1998 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.16: +1 -55 lines
Diff to previous 1.16 (colored)

Oops, I commited the wrong version before.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Dec 12 12:06:53 1998 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.15: +55 -1 lines
Diff to previous 1.15 (colored)

Initialize variable to make gcc happy.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Dec 10 16:13:48 1998 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.14: +6 -1 lines
Diff to previous 1.14 (colored)

Change a printf a little.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Dec 9 19:24:28 1998 UTC (24 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.13: +23 -12 lines
Diff to previous 1.13 (colored)

make compile without USB_DEBUG, wrap lines to 80 cols

Revision 1.13 / (download) - annotate - [select for diffs], Wed Dec 9 00:18:11 1998 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.12: +74 -48 lines
Diff to previous 1.12 (colored)

Improvement to the ugen driver.
Better error checking.
Some code rearrengment.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Dec 8 15:18:45 1998 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.11: +166 -45 lines
Diff to previous 1.11 (colored)

Some minor API changes and additions.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Dec 2 22:57:08 1998 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.10: +27 -8 lines
Diff to previous 1.10 (colored)

Add configuration and interface locators.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 2 17:20:20 1998 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.9: +5 -6 lines
Diff to previous 1.9 (colored)

Avoid wrapping lines in attach printfs.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 25 22:32:05 1998 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

Make the copyright header conform to the NetBSD template.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Nov 21 18:57:09 1998 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Fix some typos.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 2 22:30:53 1998 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.6: +26 -8 lines
Diff to previous 1.6 (colored)

Improve some error messages.
Make some preparations for isochronous transfers.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Aug 1 20:11:39 1998 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.5: +16 -8 lines
Diff to previous 1.5 (colored)

Make sure to abort the interrupt pipe on disconnect of a mouse or keyboard.
Improve some error messages.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Aug 1 18:16:20 1998 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.4: +5 -4 lines
Diff to previous 1.4 (colored)

Switch from a global flag to tell if the host controller should use
polling to a local one for each controller.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jul 23 01:46:27 1998 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored)

Use the pipe maximum packet length rather than the device max length when
setting up a transfer.
Update the UHCI data toggle correctly.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jul 22 12:22:09 1998 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.2: +22 -18 lines
Diff to previous 1.2 (colored)

Loop over all configurations when trying to probe for interface drivers.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jul 16 12:55:19 1998 UTC (24 years, 6 months ago) by is
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored)

Make this compile without USBVERBOSE.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 12 19:52:00 1998 UTC (24 years, 6 months ago) by augustss
Branch: MAIN

Add USB support.  Supported so far:
* UHCI and OHCI host controllers on PCI
* Hubs
* HID devices withe special drivers for mouse and keyboard
* Printers

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>