The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.95 / (download) - annotate - [select for diffs], Sun Feb 4 05:43:06 2024 UTC (7 weeks, 4 days ago) by mrg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored) to selected 1.27.2.6 (colored)

update my email address.

Revision 1.75.2.3 / (download) - annotate - [select for diffs], Sat Nov 5 11:19:49 2022 UTC (16 months, 3 weeks ago) by martin
Branch: netbsd-9
Changes since 1.75.2.2: +3 -11 lines
Diff to previous 1.75.2.2 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.27.2.6 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #1550):

	sys/dev/usb/uhidev.c: revision 1.94

Back out r1.82 ("Do not explicitly set the HID Report Protocol upon attach")
due to the regression reported in PR 57031

Revision 1.94 / (download) - annotate - [select for diffs], Fri Nov 4 19:46:55 2022 UTC (16 months, 3 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.93: +3 -11 lines
Diff to previous 1.93 (colored) to selected 1.27.2.6 (colored)

Back out r1.82 ("Do not explicitly set the HID Report Protocol upon attach")
due to the regression reported in PR# 57031

Revision 1.93 / (download) - annotate - [select for diffs], Mon Mar 28 12:44:45 2022 UTC (2 years ago) by riastradh
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.92: +5 -2 lines
Diff to previous 1.92 (colored) to selected 1.27.2.6 (colored)

uhidev(9): Assert uhidev is open when writing.

(Maybe we could have uhidevs that are output-only, in which case a
driver could, in principle, want to issue writes without getting any
input report interrupts.  But we can cross that bridge when we come
to it.)

Revision 1.92 / (download) - annotate - [select for diffs], Mon Mar 28 12:44:37 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.91: +9 -12 lines
Diff to previous 1.91 (colored) to selected 1.27.2.6 (colored)

uhidev(9): Define UHIDEV_MAXREPID = 255.

Report ids are limited by the HID spec to a single byte.

- Clamp max report id in report descriptor to this.

- Prune dead refcnt-overflow error branches.  Assert instead.

Revision 1.91 / (download) - annotate - [select for diffs], Mon Mar 28 12:44:28 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.90: +6 -49 lines
Diff to previous 1.90 (colored) to selected 1.27.2.6 (colored)

uhidev(9): Omit needless sc_dying.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Mar 28 12:44:17 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.89: +68 -61 lines
Diff to previous 1.89 (colored) to selected 1.27.2.6 (colored)

uhidev(9): Make uhidev state opaque.

This makes the API simpler and clearer and gives us more latitude to
fix bugs in the state management without breaking the ABI.

XXX kernel ABI change to signature of uhidev_get_report_desc and
uhidev_open, and to struct uhidev_attach_arg, requires bump for
uhidev driver modules

Revision 1.89 / (download) - annotate - [select for diffs], Mon Mar 28 12:44:06 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.88: +22 -7 lines
Diff to previous 1.88 (colored) to selected 1.27.2.6 (colored)

uhidev(9): Fix race between uhidev_close and uhidev_intr.

uhidev_intr currently relies on the kernel lock to serialize access
to struct uhidev::sc_state, but if the driver's sc_intr function
sleeps (which it may do, even though this runs is softint context --
it may sleep on an adaptive lock), uhidev_close might return while
the driver's sc_intr function is still in flight.

This avoids that race, and makes progress toward MP-safe uhidev.

Revision 1.88 / (download) - annotate - [select for diffs], Mon Mar 28 12:43:58 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.87: +12 -14 lines
Diff to previous 1.87 (colored) to selected 1.27.2.6 (colored)

uhidev(9): Refactor error branch to use one label.

No functional change intended.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Mar 28 12:43:48 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.86: +10 -10 lines
Diff to previous 1.86 (colored) to selected 1.27.2.6 (colored)

uhidev(9): Make some private functions static and fix comment.

No functional change.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Mar 28 12:43:39 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.85: +101 -13 lines
Diff to previous 1.85 (colored) to selected 1.27.2.6 (colored)

uhidev(9): Make uhidev_stop work reliably.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Mar 28 12:43:22 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.84: +42 -2 lines
Diff to previous 1.84 (colored) to selected 1.27.2.6 (colored)

uhidev(9): Move struct uhidev_softc into uhidev.c.

No longer part of any ABI for uhidev modules.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Mar 28 12:43:03 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.83: +73 -2 lines
Diff to previous 1.83 (colored) to selected 1.27.2.6 (colored)

uhidev(9): New uhidev_write_async.

Like uhidev_write but issues the transfer asynchronously with a
callback.

Use it in ucycom(4).

Also, clear endpoint stalls asynchronously -- can't do them
synchronously in xfer callbacks which run at softint and therefore
can't wait in cv_wait as usbd_do_request does.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Mar 28 12:42:54 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.82: +10 -4 lines
Diff to previous 1.82 (colored) to selected 1.27.2.6 (colored)

uhidev(9): Partially fix uhidev_write aborting.

In my previous change, I intended to make uhidev_stop abort any
pending write -- but I forgot to initialize sc->sc_writereportid, so
it never did anything.

This changes the API and ABI of uhidev_write so it takes the struct
uhidev pointer, rather than the struct uhidev_softc pointer; this way
uhidev_write knows what the report id of the client is, so it can
arrange to have uhidev_stop abort only this one.

XXX Except it still doesn't actually work because we do this
unlocked, ugh, so the write might complete before we abort anything.
To be fixed some more in a later change.

XXX kernel ABI change to uhidev_write signature, used by uhidev
driver modules, requires bump

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Wed Feb 16 14:36:12 2022 UTC (2 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.75.2.1: +11 -3 lines
Diff to previous 1.75.2.1 (colored) to branchpoint 1.75 (colored) to selected 1.27.2.6 (colored)

Pull up following revision(s) (requested by jakllsch in ticket #1428):

	sys/dev/usb/uhidev.c: revision 1.82

Do not explicitly set the HID Report Protocol upon attach, some devices
don't like it and should be in Report Protocol after enumeration/reset
anyway.

May address PR kern/55019.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Feb 9 18:09:48 2022 UTC (2 years, 1 month ago) by jakllsch
Branch: MAIN
Changes since 1.81: +11 -3 lines
Diff to previous 1.81 (colored) to selected 1.27.2.6 (colored)

Do not explicitly set the HID Report Protocol upon attach, some devices
don't like it and should be in Report Protocol after enumeration/reset
anyway.

May address PR kern/55019.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:17 2021 UTC (2 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.80: +4 -5 lines
Diff to previous 1.80 (colored) to selected 1.27.2.6 (colored)

Merge thorpej-cfargs2.

Revision 1.80.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 23:07:57 2021 UTC (2 years, 7 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.80: +4 -5 lines
Diff to previous 1.80 (colored) next main 1.81 (colored) to selected 1.27.2.6 (colored)

Adapt to CFARGS().

Revision 1.80 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:59 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.79: +6 -5 lines
Diff to previous 1.79 (colored) to selected 1.27.2.6 (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.79.2.2 / (download) - annotate - [select for diffs], Mon Mar 22 16:23:46 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.79.2.1: +2 -3 lines
Diff to previous 1.79.2.1 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored) to selected 1.27.2.6 (colored)

Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Mon Mar 22 02:01:02 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.79: +7 -5 lines
Diff to previous 1.79 (colored) to selected 1.27.2.6 (colored)

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

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Thu Feb 4 19:16:01 2021 UTC (3 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE
Changes since 1.75: +335 -81 lines
Diff to previous 1.75 (colored) to selected 1.27.2.6 (colored)

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

	sys/dev/usb/uhid.c: revision 1.115
	sys/dev/usb/uhidev.h: revision 1.21
	sys/dev/usb/uhidev.c: revision 1.79
	(all via patch)

usb: Overhaul uhid(4) and uhidev(4) locking.

- uhidev API rules:
  1. Call uhidev_open when you want exclusive use of a report id.
     After it succeeds, you will get interrupts.
  2. Call uhidev_close when done with exclusive use of a report id.
     After it returns, you will no longer get interrupts.
     => uhidev_open/close do not nest.
  3. uhidev_write no longer requires the caller to have exclusive
     access -- if there is a write in progress, it will block
     interruptibly until done.  This way drivers for individual
     report ids need not work separately to coordinate their writes.
  4. You must uhidev_stop to abort any pending writes on the same
     report id.  (uhidev_stop no longer does anything else -- to
     ensure no more interrupts, just use uhidev_close.)
- Fix uhidev_open/close locking -- uhidev now has an interruptible
  config lock held only on first open and last close by any report id
  in the device, to serialize the transition between zero and nonzero
  numbers of references which requires opening/closing pipes and
  allocating/freeing buffers.
- Make /dev/uhidN selnotify(POLLHUP) when the device is yanked.
- Factor uhid device lookup and reference counting and dying
  detection and so on into uhid_enter/exit.
- Nix struct uhid_softc::sc_access_lock.  This served no purpose but
  to confuse me when trying to understand the logic of this beast
  (and to ensure uhidev_write exclusion, but it was uninterruptible,
  which is wrong for something that implements userland operations,
  and didn't actually work because uhidev_write did nothing to
  coordinate between different report ids).
- Fix locking in select/poll.
- Use atomics to manage UHID_IMMED to keep it simple.  (sc_lock would
  be fine too but it makes the code more verbose.)
- Omit needless UHID_ASLP -- cv_broadcast already has this
  micro-optimization.

With these changes, my Pinebook survives

for i in `jot 100`; do
        echo '###' $i
        for j in `jot 16`; do
                usbhidctl -rf /dev/uhid$j >/dev/null &
        done
        wait
done

while plugging and unplugging uhid(4) devices (U2F keys), and the U2F
keys still work as U2F keys.

ok nick, mrg

XXX pullup-9
XXX pullup-8?

Note on ABI and pullups: This changes the layout of struct
uhidev_softc, but with the sole exception of ucycom(4) -- which at
the moment is completely broken and unusable -- the only members that
USB HID drivers use are sc_udev and sc_iface, which haven't changed.
The layout of struct uhidev, which is allocated by each USB HID
driver in its own softc structure, is unchanged.

Revision 1.78.4.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:09 2020 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.78: +335 -81 lines
Diff to previous 1.78 (colored) next main 1.79 (colored) to selected 1.27.2.6 (colored)

Sync w/ HEAD.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Nov 29 22:54:51 2020 UTC (3 years, 3 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.78: +335 -81 lines
Diff to previous 1.78 (colored) to selected 1.27.2.6 (colored)

usb: Overhaul uhid(4) and uhidev(4) locking.

- uhidev API rules:

  1. Call uhidev_open when you want exclusive use of a report id.
     After it succeeds, you will get interrupts.

  2. Call uhidev_close when done with exclusive use of a report id.
     After it returns, you will no longer get interrupts.

     => uhidev_open/close do not nest.

  3. uhidev_write no longer requires the caller to have exclusive
     access -- if there is a write in progress, it will block
     interruptibly until done.  This way drivers for individual
     report ids need not work separately to coordinate their writes.

  4. You must uhidev_stop to abort any pending writes on the same
     report id.  (uhidev_stop no longer does anything else -- to
     ensure no more interrupts, just use uhidev_close.)

- Fix uhidev_open/close locking -- uhidev now has an interruptible
  config lock held only on first open and last close by any report id
  in the device, to serialize the transition between zero and nonzero
  numbers of references which requires opening/closing pipes and
  allocating/freeing buffers.

- Make /dev/uhidN selnotify(POLLHUP) when the device is yanked.

- Factor uhid device lookup and reference counting and dying
  detection and so on into uhid_enter/exit.

- Nix struct uhid_softc::sc_access_lock.  This served no purpose but
  to confuse me when trying to understand the logic of this beast
  (and to ensure uhidev_write exclusion, but it was uninterruptible,
  which is wrong for something that implements userland operations,
  and didn't actually work because uhidev_write did nothing to
  coordinate between different report ids).

- Fix locking in select/poll.

- Use atomics to manage UHID_IMMED to keep it simple.  (sc_lock would
  be fine too but it makes the code more verbose.)

- Omit needless UHID_ASLP -- cv_broadcast already has this
  micro-optimization.


With these changes, my Pinebook survives

for i in `jot 100`; do
        echo '###' $i
        for j in `jot 16`; do
                usbhidctl -rf /dev/uhid$j >/dev/null &
        done
        wait
done

while plugging and unplugging uhid(4) devices (U2F keys), and the U2F
keys still work as U2F keys.


ok nick, mrg

XXX pullup-9
XXX pullup-8?


Note on ABI and pullups: This changes the layout of struct
uhidev_softc, but with the sole exception of ucycom(4) -- which at
the moment is completely broken and unusable -- the only members that
USB HID drivers use are sc_udev and sc_iface, which haven't changed.
The layout of struct uhidev, which is allocated by each USB HID
driver in its own softc structure, is unchanged.

Revision 1.73.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:13 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.73.4.1: +13 -13 lines
Diff to previous 1.73.4.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.27.2.6 (colored)

Merge changes from current as of 20200406

Revision 1.78 / (download) - annotate - [select for diffs], Sat Mar 14 02:35:33 2020 UTC (4 years 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
Branch point for: thorpej-futex
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored) to selected 1.27.2.6 (colored)

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

Revision 1.77 / (download) - annotate - [select for diffs], Fri Mar 13 18:17:41 2020 UTC (4 years ago) by christos
Branch: MAIN
Changes since 1.76: +5 -5 lines
Diff to previous 1.76 (colored) to selected 1.27.2.6 (colored)

PR/55068: sc.dying: Fix printf formats:
- no %s/%p for kernel log
- 0x% -> %#
- always %j for kernel log

Revision 1.76 / (download) - annotate - [select for diffs], Fri Dec 6 07:12:39 2019 UTC (4 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.75: +12 -12 lines
Diff to previous 1.75 (colored) to selected 1.27.2.6 (colored)

localify

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:34 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Sun May 5 03:17:54 2019 UTC (4 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.27.2.6 (colored)

remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:47 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) next main 1.74 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.74 / (download) - annotate - [select for diffs], Thu Nov 15 23:01:46 2018 UTC (5 years, 4 months ago) by jakllsch
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, isaki-audio2-base, isaki-audio2
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.27.2.6 (colored)

Correctly handle signed/unsigned quantities in kernel HID parser.

Should fix PR kern/53605.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Dec 10 17:03:07 2017 UTC (6 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.27.2.6 (colored)

Factor out bus-independant HID code so that it can be shared by USB, bluetooth
and i2c.
dev/usb/ukbdmap.c is renamed to dev/hid/hidkbdmap.c
dev/usb/hid.[ch] moved to dev/hid/
usage pages moved from dev/usb/usbhid.h moved to dev/hid/hid.h,
and updated with OpenBSD entries.
bus-independant code moved from dev/usb/ums.c to dev/hid/hidms.c
(the same should be done for keyboard and touchpad drivers)

Needed for the upcoming HID over I2C support, proposed on tech-kern@
on Dec, 1.

Revision 1.56.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:34 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.56.2.1: +147 -104 lines
Diff to previous 1.56.2.1 (colored) to branchpoint 1.56 (colored) next main 1.57 (colored) to selected 1.27.2.6 (colored)

update from HEAD

Revision 1.61.2.4 / (download) - annotate - [select for diffs], Fri Oct 13 08:11:20 2017 UTC (6 years, 5 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.61.2.3: +3 -6 lines
Diff to previous 1.61.2.3 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.27.2.6 (colored)

Pull up following revision(s) (requested by jakllsch in ticket #1503):
	sys/dev/usb/uhidev.c: revision 1.71
	sys/dev/usb/ukbd.c: revision 1.137-1.138
Fix memory leak in report parsing error paths.
--
Support more varieties of USB keyboard reports.
The previous code asssumed reports would closely match the Bootstrap
Keyboard Protocol.  This is no longer always the case, particularly
with higher-end keyboards.
--
Always try to set USB HID devices into Report Protocol.  (Unless the
device is known to be quirky.)
Some of the most-widely-compatible methods of implementing USB Keyboard
NKRO depend on this Request to function as designed.
Issuing this Request is recommended by the HID 1.11 spec (7.2.6):
... "the host should not make any assumptions about the device's state
and should set the desired protocol whenever initializing a device."

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Mon Sep 4 06:43:14 2017 UTC (6 years, 6 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.70: +3 -6 lines
Diff to previous 1.70 (colored) next main 1.71 (colored) to selected 1.27.2.6 (colored)

Pull up following revision(s) (requested by jakllsch in ticket #263):
	sys/dev/usb/uhidev.c: revision 1.71
	sys/dev/usb/ukbd.c: revision 1.137-1.138
Fix memory leak in report parsing error paths.
--
Support more varieties of USB keyboard reports.
The previous code asssumed reports would closely match the Bootstrap
Keyboard Protocol.  This is no longer always the case, particularly
with higher-end keyboards.
--
Always try to set USB HID devices into Report Protocol.  (Unless the
device is known to be quirky.)
Some of the most-widely-compatible methods of implementing USB Keyboard
NKRO depend on this Request to function as designed.
Issuing this Request is recommended by the HID 1.11 spec (7.2.6):
... "the host should not make any assumptions about the device's state
and should set the desired protocol whenever initializing a device."

Revision 1.72 / (download) - annotate - [select for diffs], Sat Sep 2 04:35:51 2017 UTC (6 years, 6 months ago) by ryoon
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.71: +24 -6 lines
Diff to previous 1.71 (colored) to selected 1.27.2.6 (colored)

Support some Wacom pen tablets:

* Graphire (pen)
* Graphire2 (pen)
* Intuos2 A4 (pen)
* Intuos Art (pen, no finger touch)

Remove report descriptor override workaround for
Graphire and Graphire2.

Revision 1.61.4.15 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:28 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.14: +5 -20 lines
Diff to previous 1.61.4.14 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD

Revision 1.71 / (download) - annotate - [select for diffs], Sun Aug 13 22:29:42 2017 UTC (6 years, 7 months ago) by jakllsch
Branch: MAIN
CVS Tags: nick-nhusb-base-20170825
Changes since 1.70: +3 -6 lines
Diff to previous 1.70 (colored) to selected 1.27.2.6 (colored)

Always try to set USB HID devices into Report Protocol.  (Unless the
device is known to be quirky.)

Some of the most-widely-compatible methods of implementing USB Keyboard
NKRO depend on this Request to function as designed.

Issuing this Request is recommended by the HID 1.11 spec (7.2.6):

... "the host should not make any assumptions about the device's state
and should set the desired protocol whenever initializing a device."

Revision 1.70 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:12 2017 UTC (6 years, 9 months ago) by chs
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base
Branch point for: netbsd-8
Changes since 1.69: +4 -16 lines
Diff to previous 1.69 (colored) to selected 1.27.2.6 (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.61.2.3 / (download) - annotate - [select for diffs], Wed Apr 5 19:54:20 2017 UTC (6 years, 11 months ago) by snj
Branch: netbsd-7
Changes since 1.61.2.2: +79 -78 lines
Diff to previous 1.61.2.2 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (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.61.2.2.4.2 / (download) - annotate - [select for diffs], Thu Jan 26 21:54:24 2017 UTC (7 years, 2 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.61.2.2.4.1: +3 -3 lines
Diff to previous 1.61.2.2.4.1 (colored) to branchpoint 1.61.2.2 (colored) next main 1.61.2.3 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD/nhusb

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:42 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.27.2.6 (colored)

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

Revision 1.61.4.14 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:18 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.13: +3 -3 lines
Diff to previous 1.61.4.13 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD

Revision 1.69 / (download) - annotate - [select for diffs], Sun Dec 4 10:12:35 2016 UTC (7 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) to selected 1.27.2.6 (colored)

Whitespace

Revision 1.61.2.2.4.1 / (download) - annotate - [select for diffs], Tue Sep 6 20:33:09 2016 UTC (7 years, 6 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.61.2.2: +79 -78 lines
Diff to previous 1.61.2.2 (colored) to selected 1.27.2.6 (colored)

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

Revision 1.61.4.13 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:16 2016 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.12: +4 -6 lines
Diff to previous 1.61.4.12 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD

Revision 1.68 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:42 2016 UTC (7 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.67: +4 -6 lines
Diff to previous 1.67 (colored) to selected 1.27.2.6 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.61.4.12 / (download) - annotate - [select for diffs], Sun May 29 08:44:31 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.11: +7 -4 lines
Diff to previous 1.61.4.11 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD

Revision 1.67 / (download) - annotate - [select for diffs], Sat Apr 30 18:40:26 2016 UTC (7 years, 10 months ago) by jakllsch
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.66: +3 -4 lines
Diff to previous 1.66 (colored) to selected 1.27.2.6 (colored)

Make #if 0 code that sets the protocol mode compilable.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Apr 27 19:35:17 2016 UTC (7 years, 11 months ago) by jakllsch
Branch: MAIN
Changes since 1.65: +6 -2 lines
Diff to previous 1.65 (colored) to selected 1.27.2.6 (colored)

Pull in opt_usb.h in _KERNEL_OPT case for various *_DEBUG options.
Makes various driver-specific debugging options work again.

XXX more to fix in dev/usb

Revision 1.65 / (download) - annotate - [select for diffs], Sat Apr 23 10:15:32 2016 UTC (7 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.64: +72 -72 lines
Diff to previous 1.64 (colored) to selected 1.27.2.6 (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.61.4.11 / (download) - annotate - [select for diffs], Mon Dec 28 10:15:09 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.10: +3 -3 lines
Diff to previous 1.61.4.10 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

Use IPL_SOFTUSB instead of IPL_USB appropriately.  Transfer completions
are executed as a softint and so this is the priority level required.

Revision 1.61.4.10 / (download) - annotate - [select for diffs], Tue Oct 6 21:32:15 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.9: +9 -9 lines
Diff to previous 1.61.4.9 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

Move from usbd_{alloc,free}_xfer and usbd_{alloc,free}_buffer to
usbd_{create,destroy}_xfer.  The API change will allow future changes
to HCDs to simplify the transfer resource allocation and activation.

Several devices tested including ucom, umass, smsc, uvideo, and uaudio.

Revision 1.61.4.9 / (download) - annotate - [select for diffs], Tue Sep 29 11:38:29 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.8: +8 -8 lines
Diff to previous 1.61.4.8 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

sizeof KNF

Revision 1.61.4.8 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:14 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.7: +3 -2 lines
Diff to previous 1.61.4.7 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD

Revision 1.64 / (download) - annotate - [select for diffs], Mon Apr 13 16:33:25 2015 UTC (8 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.63: +3 -2 lines
Diff to previous 1.63 (colored) to selected 1.27.2.6 (colored)

Convert sys/dev to use <sys/rndsource.h>.

Revision 1.61.4.7 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:13 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.6: +56 -18 lines
Diff to previous 1.61.4.6 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD

Revision 1.61.2.2 / (download) - annotate - [select for diffs], Sat Mar 21 17:30:43 2015 UTC (9 years 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, 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-nhusb
Changes since 1.61.2.1: +28 -19 lines
Diff to previous 1.61.2.1 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

Pull up following revision(s) (requested by mrg in ticket #626):
	sys/dev/usb/TODO.usbmp: revision 1.9
	sys/dev/usb/uatp.c: revision 1.11
	sys/dev/usb/ucycom.c: revision 1.42
	sys/dev/usb/uhid.c: revision 1.93, 1.94
	sys/dev/usb/uhidev.c: revision 1.63
	sys/dev/usb/uhidev.h: revision 1.17
	sys/dev/usb/ukbd.c: revision 1.130
	sys/dev/usb/uyurex.c: revision 1.10
properly protect uhid's sc_q member with sc_lock.  should fix PR#49728.
while here, remove D_MPSAFE from uhid* and all uhid users, as it really
needs all the callers to be safe and they're not.
--
don't take the device lock when stopping the uhidev.  that calls
to abort and close pipes, both of which may take an adaptive lock.
fixes a LOCKDEBUG abort see on one particular machine.

Revision 1.61.4.6 / (download) - annotate - [select for diffs], Sat Mar 21 11:33:37 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.5: +23 -23 lines
Diff to previous 1.61.4.5 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

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

Revision 1.61.4.5 / (download) - annotate - [select for diffs], Thu Mar 19 17:26:43 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.4: +5 -5 lines
Diff to previous 1.61.4.4 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

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

Revision 1.63 / (download) - annotate - [select for diffs], Sat Mar 7 20:20:55 2015 UTC (9 years ago) by mrg
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.62: +28 -19 lines
Diff to previous 1.62 (colored) to selected 1.27.2.6 (colored)

properly protect uhid's sc_q member with sc_lock.  should fix PR#49728.
while here, remove D_MPSAFE from uhid* and all uhid users, as it really
needs all the callers to be safe and they're not.

XXX: pullup-7

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Wed Feb 11 08:25:40 2015 UTC (9 years, 1 month ago) by snj
Branch: netbsd-7
Changes since 1.61: +31 -2 lines
Diff to previous 1.61 (colored) to selected 1.27.2.6 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #502):
	sys/dev/usb/uhidev.c: revision 1.62
	sys/dev/usb/uhidev.h: revision 1.16
	sys/dev/usb/x1input_rdesc.h: revision 1.1
Add Xbox One controller support. Report
descriptor from https://github.com/lloeki/xbox_one_controller

Revision 1.62 / (download) - annotate - [select for diffs], Sun Feb 8 19:22:45 2015 UTC (9 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.61: +31 -2 lines
Diff to previous 1.61 (colored) to selected 1.27.2.6 (colored)

Add Xbox One controller support. Report descriptor from https://github.com/lloeki/xbox_one_controller

Revision 1.61.4.4 / (download) - annotate - [select for diffs], Fri Dec 5 09:37:49 2014 UTC (9 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.3: +12 -12 lines
Diff to previous 1.61.4.3 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

KNF. Remove ( ) from return statements.

Revision 1.61.4.3 / (download) - annotate - [select for diffs], Wed Dec 3 14:18:07 2014 UTC (9 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.2: +18 -18 lines
Diff to previous 1.61.4.2 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

Replace malloc(9) with kmem(9)

Revision 1.61.4.2 / (download) - annotate - [select for diffs], Mon Dec 1 13:03:05 2014 UTC (9 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61.4.1: +3 -3 lines
Diff to previous 1.61.4.1 (colored) to branchpoint 1.61 (colored) to selected 1.27.2.6 (colored)

Remove the lbl argument from usbd_{bulk,intr}_transfer.

Revision 1.61.4.1 / (download) - annotate - [select for diffs], Sun Nov 30 12:18:58 2014 UTC (9 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.61: +6 -6 lines
Diff to previous 1.61 (colored) to selected 1.27.2.6 (colored)

Use C99 types. u_int{8,16,32,64}_t to uint{8,16,32,64}_t.

No functional change.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:51 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.56: +25 -28 lines
Diff to previous 1.56 (colored) to selected 1.27.2.6 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:36 2014 UTC (9 years, 7 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, nick-nhusb-base, netbsd-7-base
Branch point for: nick-nhusb, netbsd-7
Changes since 1.60: +4 -3 lines
Diff to previous 1.60 (colored) to selected 1.27.2.6 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.59.2.2 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:59 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.59.2.1: +11 -2 lines
Diff to previous 1.59.2.1 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored) to selected 1.27.2.6 (colored)

Rebase.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jun 17 09:35:46 2014 UTC (9 years, 9 months ago) by skrll
Branch: MAIN
CVS Tags: tls-earlyentropy-base
Changes since 1.59: +11 -2 lines
Diff to previous 1.59 (colored) to selected 1.27.2.6 (colored)

PR/48908: Cannot open /dev/uhid? when another report id at the same uhidev
was already opened.

Restore the sc reference counting lost in usbmp merge.

Revision 1.52.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:37 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.52.2.2: +14 -27 lines
Diff to previous 1.52.2.2 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.27.2.6 (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.56.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:48 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.56: +14 -27 lines
Diff to previous 1.56 (colored) next main 1.57 (colored) to selected 1.27.2.6 (colored)

sync with head

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 03:37:33 2014 UTC (9 years, 11 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.59: +4 -3 lines
Diff to previous 1.59 (colored) to selected 1.27.2.6 (colored)

Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
   RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
   and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
   places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
   that had stubbed out code, other minor cleanups.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Dec 26 15:32:48 2013 UTC (10 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.58: +6 -3 lines
Diff to previous 1.58 (colored) to selected 1.27.2.6 (colored)

from "Just a Normal Person", make sure that we set things to NULL after
we free them.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Oct 5 07:05:01 2013 UTC (10 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.57: +10 -10 lines
Diff to previous 1.57 (colored) to selected 1.27.2.6 (colored)

Trailing whitespace.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Sep 26 07:25:31 2013 UTC (10 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.56: +2 -18 lines
Diff to previous 1.56 (colored) to selected 1.27.2.6 (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.52.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:08 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.52.2.1: +21 -13 lines
Diff to previous 1.52.2.1 (colored) to branchpoint 1.52 (colored) to selected 1.27.2.6 (colored)

sync with head

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jun 10 06:15:54 2012 UTC (11 years, 9 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.55: +21 -13 lines
Diff to previous 1.55 (colored) to selected 1.27.2.6 (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.52.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:08 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.52: +2 -10 lines
Diff to previous 1.52 (colored) to selected 1.27.2.6 (colored)

sync with head

Revision 1.52.6.3 / (download) - annotate - [select for diffs], Sat Feb 25 10:26:23 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.52.6.2: +4 -4 lines
Diff to previous 1.52.6.2 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.27.2.6 (colored)

copyright maintenence.

Revision 1.52.6.2 / (download) - annotate - [select for diffs], Thu Feb 23 09:31:56 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.52.6.1: +19 -11 lines
Diff to previous 1.52.6.1 (colored) to branchpoint 1.52 (colored) to selected 1.27.2.6 (colored)

- remove redundant sc_refcnt member
- protect sc_state with a mutex

Revision 1.52.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:09 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.52: +2 -10 lines
Diff to previous 1.52 (colored) to selected 1.27.2.6 (colored)

merge to -current.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Feb 2 19:43:07 2012 UTC (12 years, 1 month ago) by tls
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, 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, netbsd-6, 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-base10
Changes since 1.54: +2 -10 lines
Diff to previous 1.54 (colored) to selected 1.27.2.6 (colored)

Entropy-pool implementation move and cleanup.

1) Move core entropy-pool code and source/sink/sample management code
   to sys/kern from sys/dev.

2) Remove use of NRND as test for presence of entropy-pool code throughout
   source tree.

3) Remove use of RND_ENABLED in device drivers as microoptimization to
   avoid expensive operations on disabled entropy sources; make the
   rnd_add calls do this directly so all callers benefit.

4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might
   have lead to slight entropy overestimation for some sources.

5) Add new source types for environmental sensors, power sensors, VM
   system events, and skew between clocks, with a sample implementation
   for each.

ok releng to go in before the branch due to the difficulty of later
pullup (widespread #ifdef removal and moved files).  Tested with release
builds on amd64 and evbarm and live testing on amd64.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Dec 23 00:51:46 2011 UTC (12 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.53: +10 -10 lines
Diff to previous 1.53 (colored) to selected 1.27.2.6 (colored)

Revert previous due to active usbmp branch(es).

Revision 1.53 / (download) - annotate - [select for diffs], Thu Dec 22 20:07:01 2011 UTC (12 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.52: +10 -10 lines
Diff to previous 1.52 (colored) to selected 1.27.2.6 (colored)

Adjust-away inconsistent and trailing whitespace.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Oct 25 16:12:02 2011 UTC (12 years, 5 months ago) by aymeric
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, mrg-ohci-jmcneill-usbmp-base, mrg-ohci-jmcneill-usbmp, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.51: +22 -2 lines
Diff to previous 1.51 (colored) to selected 1.27.2.6 (colored)

enable Sony's Six Axis and DualShock 3 USB controllers

Revision 1.51 / (download) - annotate - [select for diffs], Sat Jul 30 12:15:44 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.50: +11 -2 lines
Diff to previous 1.50 (colored) to selected 1.27.2.6 (colored)

add support for game controllers in "XInput" mode, they are basically
HID devices without a report descriptor

Revision 1.50 / (download) - annotate - [select for diffs], Wed Jul 20 19:27:53 2011 UTC (12 years, 8 months ago) by ryoon
Branch: MAIN
Changes since 1.49: +2 -6 lines
Diff to previous 1.49 (colored) to selected 1.27.2.6 (colored)

Fix PR kern/42570

* Graphire uses the descriptor as same as Graphire 3.
  This is confirmed by USB analysis on Windows.
  That is done with Wacom's official device driver and USB Snoopy.

* Old rev. 1.1 descriptor supports stylus only, probably 4D mouse
  is not supported. Graphire 3's one probably supports 4D mouse.

* Graphire also needs 0x0202 sending.

Revision 1.48.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:43 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.48: +3 -2 lines
Diff to previous 1.48 (colored) next main 1.49 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:54:14 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.47: +28 -23 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.27.2.6 (colored)

sync with head

Revision 1.48.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:56 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.48: +3 -2 lines
Diff to previous 1.48 (colored) next main 1.49 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jan 29 14:20:18 2011 UTC (13 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.48: +3 -2 lines
Diff to previous 1.48 (colored) to selected 1.27.2.6 (colored)

kern/44483: Support for WACOM Graphire2 ET-0405A-U graphics tablet.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:38 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.47: +27 -23 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Nov 3 22:34:24 2010 UTC (13 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base4, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.47: +27 -23 lines
Diff to previous 1.47 (colored) to selected 1.27.2.6 (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.42.16.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:27:53 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.42: +17 -11 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.27.2.6 (colored)

sync to netbsd-5

Revision 1.39.10.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:06 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.39.10.2: +37 -25 lines
Diff to previous 1.39.10.2 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored) to selected 1.27.2.6 (colored)

sync with head

Revision 1.47 / (download) - annotate - [select for diffs], Tue Jan 12 16:50:58 2010 UTC (14 years, 2 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.46: +16 -2 lines
Diff to previous 1.46 (colored) to selected 1.27.2.6 (colored)

Adjust report descriptor for Logitech USB Receiver M/N C-BT44 to
more closely match what is in the report.  (This corrects the
off-by-one usages of most of the gray multimedia keys on a EX110
wireless keyboard so they can sensibly be used with libusbhid(3),
usbhidctl(1) and usbhidaction(1).)

This device also uses officially reserved usages (in the approximate
range of 0x1000 to 0x1100) in the Consumer usage page, but these
are out of the logical range the device reports as being valid.

Revision 1.42.8.2 / (download) - annotate - [select for diffs], Sat Jan 9 01:37:04 2010 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: 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, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.42.8.1: +11 -5 lines
Diff to previous 1.42.8.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.27.2.6 (colored)

Pull up following revision(s) (requested by jakllsch in ticket #1219):
	sys/dev/usb/uhidev.c: revision 1.46
The Dell DRAC5 gives us a zero-length report immediately following
a normal report.  Thus, ignore zero-length reports.  Move some related
report size insanity checking into the UHIDEV_DEBUG case.
Should fix PR/39911.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Dec 30 23:42:22 2009 UTC (14 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.45: +11 -5 lines
Diff to previous 1.45 (colored) to selected 1.27.2.6 (colored)

The Dell DRAC5 gives us a zero-length report immediately following
a normal report.  Thus, ignore zero-length reports.  Move some related
report size insanity checking into the UHIDEV_DEBUG case.

Should fix PR/39911.

Revision 1.42.8.1 / (download) - annotate - [select for diffs], Fri Nov 27 08:54:13 2009 UTC (14 years, 4 months ago) by sborrill
Branch: netbsd-5
Changes since 1.42: +10 -10 lines
Diff to previous 1.42 (colored) to selected 1.27.2.6 (colored)

Pull up the following revisions(s) (requested by rafal in ticket #1162):
	sys/dev/usb/uhidev.c:	revision 1.44
	sys/dev/usb/ums.c:	revision 1.75
	sys/dev/usb/usbdevs:	revision 1.536

Fix kern/41737. Add quirks to make MS Wireless Laser Mouse 6000 work.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Nov 12 19:58:27 2009 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.44: +4 -15 lines
Diff to previous 1.44 (colored) to selected 1.27.2.6 (colored)

Simplify activation hooks.  (sc_dying must die!)

Revision 1.44 / (download) - annotate - [select for diffs], Fri Nov 6 04:42:27 2009 UTC (14 years, 4 months ago) by rafal
Branch: MAIN
Changes since 1.43: +10 -10 lines
Diff to previous 1.43 (colored) to selected 1.27.2.6 (colored)

Fix kern/41737 -- add quirks to make MS Wireless Laser Mouse 6000 work.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Sep 23 19:07:19 2009 UTC (14 years, 6 months ago) by plunky
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.42: +6 -3 lines
Diff to previous 1.42 (colored) to selected 1.27.2.6 (colored)

fix up USB drivers printing of autoconf information

1. expand the USB_ATTACH_SETUP macro (requested by jmcneill)

2. reorder the attach function so that the first thing it does is print
   newlines.

3. after this, we can call usbd_devinfo_alloc(), which polls the device
   allowing a context switch, and aprint_normal() the device information.

this avoids problems where autoconf messages are getting mixed up.

Revision 1.39.10.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:21 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.39.10.1: +37 -30 lines
Diff to previous 1.39.10.1 (colored) to branchpoint 1.39 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:37 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.40: +37 -30 lines
Diff to previous 1.40 (colored) next main 1.41 (colored) to selected 1.27.2.6 (colored)

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

Revision 1.39.8.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:20 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.39.8.1: +37 -30 lines
Diff to previous 1.39.8.1 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored) to selected 1.27.2.6 (colored)

sync with head

Revision 1.39.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:54 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.39: +37 -37 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Mon May 26 19:01:51 2008 UTC (15 years, 10 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-nfs-mp-base8, yamt-nfs-mp-base7, 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, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, 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, mjf-devfs2-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, 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, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: netbsd-5, matt-nb5-mips64
Changes since 1.41: +25 -15 lines
Diff to previous 1.41 (colored) to selected 1.27.2.6 (colored)

Fix a dereference if a softc pointer which can legally be zero, leading
to a crash reported by Christoph Egger in a followup to PR kern/38528.
For consistency, keep track of the device_t pointer to child devices
rather than the softc. We really shouldn't mess with child's softc data.

Revision 1.41 / (download) - annotate - [select for diffs], Sat May 24 16:40:58 2008 UTC (15 years, 10 months ago) by cube
Branch: MAIN
Changes since 1.40: +20 -23 lines
Diff to previous 1.40 (colored) to selected 1.27.2.6 (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.39.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:51 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.39: +2 -9 lines
Diff to previous 1.39 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.39.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:10 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.39: +2 -9 lines
Diff to previous 1.39 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.40 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:59 2008 UTC (15 years, 11 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.39: +2 -9 lines
Diff to previous 1.39 (colored) to selected 1.27.2.6 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.35.10.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:54 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.35.10.2: +27 -7 lines
Diff to previous 1.35.10.2 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored) to selected 1.27.2.6 (colored)

sync with HEAD

Revision 1.27.2.7 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:47 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.6: +27 -7 lines
Diff to previous 1.27.2.6 (colored) next main 1.28 (colored)

sync with head.

Revision 1.36.4.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:26 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.36.4.2: +27 -7 lines
Diff to previous 1.36.4.2 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Feb 18 05:24:24 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, 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: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.38: +27 -7 lines
Diff to previous 1.38 (colored) to selected 1.27.2.6 (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.27.2.6 / (download) - annotate - [selected], Mon Jan 21 09:44:46 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.5: +7 -2 lines
Diff to previous 1.27.2.5 (colored)

sync with head

Revision 1.35.10.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:43 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.35.10.1: +18 -9 lines
Diff to previous 1.35.10.1 (colored) to branchpoint 1.35 (colored) to selected 1.27.2.6 (colored)

sync with HEAD

Revision 1.36.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:32 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.36.4.1: +7 -2 lines
Diff to previous 1.36.4.1 (colored) to branchpoint 1.36 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:47:26 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.37: +7 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.27.2.6 (colored)

Sync with head.

Revision 1.37.6.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:56:06 2007 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.37: +7 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:40:03 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-kmem
Changes since 1.37: +7 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Dec 11 03:45:57 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, matt-armv6-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.37: +7 -2 lines
Diff to previous 1.37 (colored) to selected 1.27.2.6 (colored)

Register with pmf

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:05 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.36: +13 -9 lines
Diff to previous 1.36 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Revision 1.27.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:31:36 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.4: +13 -9 lines
Diff to previous 1.27.2.4 (colored) to selected 1.27.2.6 (colored)

sync with head

Revision 1.35.8.2 / (download) - annotate - [select for diffs], Mon Dec 3 16:14:40 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.35.8.1: +13 -9 lines
Diff to previous 1.35.8.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Dec 1 23:40:29 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem, vmlocking2, bouyer-xeni386
Changes since 1.36: +13 -9 lines
Diff to previous 1.36 (colored) to selected 1.27.2.6 (colored)

aprintify, on behalf of xtraeme

Revision 1.35.10.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:30:38 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.35: +4 -2 lines
Diff to previous 1.35 (colored) to selected 1.27.2.6 (colored)

sync with HEAD

Revision 1.27.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:34:36 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.3: +4 -2 lines
Diff to previous 1.27.2.3 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.33.6.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:42:10 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.33.6.2: +4 -2 lines
Diff to previous 1.33.6.2 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.27.2.6 (colored)

Sync with head.

Revision 1.35.12.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:31:34 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.35: +4 -2 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.35.8.1 / (download) - annotate - [select for diffs], Thu Oct 4 15:44:50 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.35: +4 -2 lines
Diff to previous 1.35 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Oct 3 15:01:28 2007 UTC (16 years, 5 months ago) by veego
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.35: +4 -2 lines
Diff to previous 1.35 (colored) to selected 1.27.2.6 (colored)

Add support to ignore hid attachments for some devices, right now MGE and
APC UPS devices.
No objections on tech-kern at the end of June 2007
Patch is from PR kern/31884

Revision 1.27.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:39:14 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.2: +6 -23 lines
Diff to previous 1.27.2.2 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.33.8.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:39 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.33: +6 -23 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.27.2.6 (colored)

Sync with head.

Revision 1.33.10.3 / (download) - annotate - [select for diffs], Thu Jun 21 15:17:29 2007 UTC (16 years, 9 months ago) by itohy
Branch: itohy-usb1
Changes since 1.33.10.2: +3 -16 lines
Diff to previous 1.33.10.2 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored) to selected 1.27.2.6 (colored)

Pullup 1.35: use generic submatch function

Revision 1.33.10.2 / (download) - annotate - [select for diffs], Mon Jun 18 13:49:20 2007 UTC (16 years, 9 months ago) by itohy
Branch: itohy-usb1
Changes since 1.33.10.1: +14 -2 lines
Diff to previous 1.33.10.1 (colored) to branchpoint 1.33 (colored) to selected 1.27.2.6 (colored)

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

Revision 1.33.10.1 / (download) - annotate - [select for diffs], Tue May 22 14:57:42 2007 UTC (16 years, 10 months ago) by itohy
Branch: itohy-usb1
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored) to selected 1.27.2.6 (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.33.6.2 / (download) - annotate - [select for diffs], Tue Apr 10 13:24:34 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.33.6.1: +3 -16 lines
Diff to previous 1.33.6.1 (colored) to branchpoint 1.33 (colored) to selected 1.27.2.6 (colored)

Sync with head.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Sat Mar 24 14:55:50 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.33: +6 -23 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Sun Mar 18 00:06:44 2007 UTC (17 years ago) by reinoud
Branch: reinoud-bufcleanup
Changes since 1.34: +3 -16 lines
Diff to previous 1.34 (colored) next main 1.35 (colored) to selected 1.27.2.6 (colored)

First attempt to bring branch in sync with HEAD

Revision 1.35 / (download) - annotate - [select for diffs], Thu Mar 15 15:11:54 2007 UTC (17 years ago) by drochner
Branch: MAIN
CVS Tags: yamt-x86pmap-base, yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, 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: yamt-x86pmap, matt-armv6, jmcneill-pm
Changes since 1.34: +3 -16 lines
Diff to previous 1.34 (colored) to selected 1.27.2.6 (colored)

kill the private submatch function, use the generic one

Revision 1.33.6.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:50:52 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.33: +5 -9 lines
Diff to previous 1.33 (colored) to selected 1.27.2.6 (colored)

Sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Mar 13 13:51:55 2007 UTC (17 years ago) by drochner
Branch: MAIN
Branch point for: reinoud-bufcleanup
Changes since 1.33: +5 -9 lines
Diff to previous 1.33 (colored) to selected 1.27.2.6 (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.27.2.2 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:45 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27.2.1: +5 -3 lines
Diff to previous 1.27.2.1 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.32.6.1 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:29 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.32: +5 -3 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.27.2.6 (colored)

Sync with head.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Tue Jan 23 18:45:56 2007 UTC (17 years, 2 months ago) by tron
Branch: netbsd-3
Changes since 1.24: +5 -3 lines
Diff to previous 1.24 (colored) next main 1.25 (colored) to selected 1.27.2.6 (colored)

Pull up following revision(s) (requested by ghen in ticket #1654):
	sys/dev/usb/usbdevs: revision 1.450
	sys/dev/usb/uhidev.c: revision 1.33
	sys/dev/usb/ugraphire_rdesc.h: revision 1.5
Add ID's for the Graphire3 6x8 (from PR 35111) and Graphire4 4x5 (tested by
myself).

Revision 1.32.10.1 / (download) - annotate - [select for diffs], Tue Jan 23 18:39:04 2007 UTC (17 years, 2 months ago) by tron
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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.32: +5 -3 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.27.2.6 (colored)

Pull up following revision(s) (requested by ghen in ticket #384):
	sys/dev/usb/usbdevs: revision 1.450
	sys/dev/usb/uhidev.c: revision 1.33
	sys/dev/usb/ugraphire_rdesc.h: revision 1.5
Add ID's for the Graphire3 6x8 (from PR 35111) and Graphire4 4x5 (tested by
myself).

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jan 22 19:39:37 2007 UTC (17 years, 2 months ago) by ghen
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base, itohy-usb1-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, vmlocking, mjf-ufs-trans, itohy-usb1
Changes since 1.32: +5 -3 lines
Diff to previous 1.32 (colored) to selected 1.27.2.6 (colored)

Add ID's for the Graphire3 6x8 (from PR 35111) and Graphire4 4x5 (tested by
myself).

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:55:33 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.31: +10 -3 lines
Diff to previous 1.31 (colored) next main 1.32 (colored) to selected 1.27.2.6 (colored)

sync with head

Revision 1.31.8.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:28 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.31: +10 -3 lines
Diff to previous 1.31 (colored) next main 1.32 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:07:44 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.27: +20 -25 lines
Diff to previous 1.27 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.31.14.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:05:49 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.31: +10 -3 lines
Diff to previous 1.31 (colored) next main 1.32 (colored) to selected 1.27.2.6 (colored)

Sync with head.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jun 12 21:01:58 2006 UTC (17 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, rpaulo-netinet-merge-pcb-base, netbsd-4-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2, netbsd-4
Changes since 1.31: +10 -3 lines
Diff to previous 1.31 (colored) to selected 1.27.2.6 (colored)

Don't allocate >1K on the stack.

Revision 1.14.2.7 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:06 2005 UTC (18 years, 3 months ago) by christos
Branch: ktrace-lwp
Changes since 1.14.2.6: +2 -10 lines
Diff to previous 1.14.2.6 (colored) next main 1.15 (colored) to selected 1.27.2.6 (colored)

Sync with head.

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:16 2005 UTC (18 years, 4 months ago) by yamt
Branch: yamt-readahead
Changes since 1.30: +2 -10 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Nov 23 08:54:48 2005 UTC (18 years, 4 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-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, ktrace-lwp-base, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb, chap-midi
Changes since 1.30: +2 -10 lines
Diff to previous 1.30 (colored) to selected 1.27.2.6 (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.14.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:08:05 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.14.2.5: +158 -55 lines
Diff to previous 1.14.2.5 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD. Here we go again...

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Wed Oct 26 08:32:45 2005 UTC (18 years, 5 months ago) by yamt
Branch: yamt-vop
Changes since 1.29: +3 -5 lines
Diff to previous 1.29 (colored) next main 1.30 (colored) to selected 1.27.2.6 (colored)

sync with head

Revision 1.30 / (download) - annotate - [select for diffs], Thu Oct 20 13:09:18 2005 UTC (18 years, 5 months ago) by itohy
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, 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.29: +3 -5 lines
Diff to previous 1.29 (colored) to selected 1.27.2.6 (colored)

If an unknown endpoint is found, ignore it, rather than abort attach.
This change allows to use HID-like devices with additional functions.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Aug 26 12:42:11 2005 UTC (18 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-vop-base
Branch point for: yamt-vop
Changes since 1.28: +7 -7 lines
Diff to previous 1.28 (colored) to selected 1.27.2.6 (colored)

s/locdesc_t/int/g

Revision 1.28 / (download) - annotate - [select for diffs], Thu Aug 25 18:35:40 2005 UTC (18 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.27: +8 -10 lines
Diff to previous 1.27 (colored) to selected 1.27.2.6 (colored)

replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jun 19 10:29:47 2005 UTC (18 years, 9 months ago) by augustss
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.26: +15 -2 lines
Diff to previous 1.26 (colored) to selected 1.27.2.6 (colored)

Add a fix to turn on the Hosiden ParaParaParadide controller.  From
Sergey Svishchev in kern/30554.

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 11 10:02:28 2005 UTC (18 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.25: +7 -5 lines
Diff to previous 1.25 (colored) to selected 1.27.2.6 (colored)

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

Revision 1.25 / (download) - annotate - [select for diffs], Sun May 8 06:19:10 2005 UTC (18 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.24: +132 -40 lines
Diff to previous 1.24 (colored) to selected 1.27.2.6 (colored)

Add support for optional interrupt output pipes as described in the
HID specicification version 1.11.

Reviewed by Lennart. Thanks.

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:18 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.22: +9 -9 lines
Diff to previous 1.22 (colored) next main 1.23 (colored) to selected 1.27.2.6 (colored)

sync with -current

Revision 1.22.6.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:58 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.22.6.1: +4 -4 lines
Diff to previous 1.22.6.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.27.2.6 (colored)

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

Revision 1.14.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:50:55 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.14.2.4: +4 -4 lines
Diff to previous 1.14.2.4 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.24 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:51 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, kent-audio2-base
Branch point for: netbsd-3
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored) to selected 1.27.2.6 (colored)

nuke trailing whitespace

Revision 1.22.6.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:51 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.22: +7 -7 lines
Diff to previous 1.22 (colored) to selected 1.27.2.6 (colored)

sync with head.

Revision 1.14.2.4 / (download) - annotate - [select for diffs], Wed Feb 9 08:26:13 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.14.2.3: +7 -7 lines
Diff to previous 1.14.2.3 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Feb 7 08:54:42 2005 UTC (19 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.22: +7 -7 lines
Diff to previous 1.22 (colored) to selected 1.27.2.6 (colored)

Never deliver HID data to subdrivers if the length is wrong.

Revision 1.14.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:33:46 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.14.2.2: +2 -2 lines
Diff to previous 1.14.2.2 (colored) to selected 1.27.2.6 (colored)

Fix the sync with head I botched.

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:46 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.14.2.1: +20 -9 lines
Diff to previous 1.14.2.1 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Sep 13 12:55:49 2004 UTC (19 years, 6 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.21: +20 -9 lines
Diff to previous 1.21 (colored) to selected 1.27.2.6 (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.14.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:36 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.14: +42 -9 lines
Diff to previous 1.14 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Fri Apr 23 17:25:25 2004 UTC (19 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored) to selected 1.27.2.6 (colored)

use bounded string ops (snprintf, strl*)

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jan 4 11:11:56 2004 UTC (20 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.19: +10 -8 lines
Diff to previous 1.19 (colored) to selected 1.27.2.6 (colored)

Cosmetic changes.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jan 4 08:35:52 2004 UTC (20 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.18: +4 -3 lines
Diff to previous 1.18 (colored) to selected 1.27.2.6 (colored)

make uhid_graphire*_report_descr[] const

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jan 4 02:13:11 2004 UTC (20 years, 2 months ago) by dsainty
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) to selected 1.27.2.6 (colored)

Correct buffer selection in uhidev_set_report for non-zero report IDs (rare!)

Spotted by Dave Huang, noted in tech-kern.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jan 4 01:29:11 2004 UTC (20 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.16: +32 -8 lines
Diff to previous 1.16 (colored) to selected 1.27.2.6 (colored)

Support Graphire 4x5.  From Dave Huang in kern/23965.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Oct 25 18:28:31 2003 UTC (20 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.15: +5 -2 lines
Diff to previous 1.15 (colored) to selected 1.27.2.6 (colored)

Fix uninitialized variable warnings.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 14 15:47:29 2003 UTC (20 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.14: +4 -1 lines
Diff to previous 1.14 (colored) to selected 1.27.2.6 (colored)

add missing __KERNEL_RCSID()

Revision 1.14 / (download) - annotate - [select for diffs], Tue Mar 11 16:44:00 2003 UTC (21 years ago) by augustss
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.27.2.6 (colored)

Update URLs for the HID spec.

(Committed at 36000 feet above the Atlantic on board LH418 using
a broadband satellite connection.)

Revision 1.3.2.7 / (download) - annotate - [select for diffs], Fri Jan 3 17:08:17 2003 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.3.2.6: +19 -13 lines
Diff to previous 1.3.2.6 (colored) next main 1.4 (colored) to selected 1.27.2.6 (colored)

Sync with HEAD.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 2 11:00:21 2003 UTC (21 years, 2 months ago) by dsainty
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.12: +17 -11 lines
Diff to previous 1.12 (colored) to selected 1.27.2.6 (colored)

Knock off some XXX'd code: Use malloc() instead of a fixed length buffer
on the stack.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 1 00:10:26 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.27.2.6 (colored)

Use aprint_normal() in cfprint routines.

Revision 1.3.2.6 / (download) - annotate - [select for diffs], Mon Nov 11 22:12:53 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.5: +1 -3 lines
Diff to previous 1.3.2.5 (colored) to selected 1.27.2.6 (colored)

Catch up to -current

Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 8 22:03:50 2002 UTC (21 years, 4 months ago) by kristerw
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.10: +1 -3 lines
Diff to previous 1.10 (colored) to selected 1.27.2.6 (colored)

Removed unused global variable "int repproto".

Revision 1.3.2.5 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:33 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.4: +13 -3 lines
Diff to previous 1.3.2.4 (colored) to selected 1.27.2.6 (colored)

Catch up to -current.

Revision 1.3.4.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:39 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.3.4.5: +2 -3 lines
Diff to previous 1.3.4.5 (colored) next main 1.4 (colored) to selected 1.27.2.6 (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.10 / (download) - annotate - [select for diffs], Wed Oct 9 06:27:09 2002 UTC (21 years, 5 months ago) by fair
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.27.2.6 (colored)

correct LP64 bug in RND code and close PR 18592

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 8 09:56:17 2002 UTC (21 years, 5 months ago) by dan
Branch: MAIN
Changes since 1.8: +12 -1 lines
Diff to previous 1.8 (colored) to selected 1.27.2.6 (colored)

Add support for uhidev children (eg, ums, ukbd) as rnd entropy
sources.

Multifunction devices, such as keyboards with built-in mice or
scrollwheels on different interfaces and/or repid's are each handled
as a separate entropy source.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 27 03:18:21 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.27.2.6 (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.7 / (download) - annotate - [select for diffs], Mon Sep 23 05:51:21 2002 UTC (21 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored) to selected 1.27.2.6 (colored)

Remove breaks after returns, unreachable returns and returns after
returns(!).

Revision 1.3.4.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:46:57 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.3.4.4: +11 -11 lines
Diff to previous 1.3.4.4 (colored) to selected 1.27.2.6 (colored)

sync kqueue branch with HEAD

Revision 1.3.2.4 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:58 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.3: +11 -11 lines
Diff to previous 1.3.2.3 (colored) to selected 1.27.2.6 (colored)

Catch up to -current.

Revision 1.5.8.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:08 2002 UTC (21 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.5: +11 -11 lines
Diff to previous 1.5 (colored) next main 1.6 (colored) to selected 1.27.2.6 (colored)

catch up with -current.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 11 21:14:29 2002 UTC (21 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.5: +11 -11 lines
Diff to previous 1.5 (colored) to selected 1.27.2.6 (colored)

Get rid of trailing white space.

Revision 1.3.4.4 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:38 2002 UTC (22 years ago) by jdolecek
Branch: kqueue
Changes since 1.3.4.3: +3 -3 lines
Diff to previous 1.3.4.3 (colored) to selected 1.27.2.6 (colored)

Catch up with -current.

Revision 1.3.2.3 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:31 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.2: +6 -6 lines
Diff to previous 1.3.2.2 (colored) to selected 1.27.2.6 (colored)

Catch up to -current.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Feb 27 01:30:50 2002 UTC (22 years, 1 month ago) by augustss
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.4: +3 -3 lines
Diff to previous 1.4 (colored) to selected 1.27.2.6 (colored)

Avoid a race condition spotted by UCHIYAMA Yasushi <uch@vnop.net>.

Revision 1.3.4.3 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:17 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.3.4.2: +4 -4 lines
Diff to previous 1.3.4.2 (colored) to selected 1.27.2.6 (colored)

Sync w/ -current.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jan 27 18:10:34 2002 UTC (22 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored) to selected 1.27.2.6 (colored)

Don't dereference NULL pointer when no device attaches.

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:58:58 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.3.4.1: +501 -0 lines
Diff to previous 1.3.4.1 (colored) to selected 1.27.2.6 (colored)

Sync kqueue branch with -current.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:10 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3.2.1: +501 -0 lines
Diff to previous 1.3.2.1 (colored) to selected 1.27.2.6 (colored)

Catch up to -current.

Revision 1.3.4.1, Sat Dec 29 20:50:16 2001 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.3: +0 -501 lines
FILE REMOVED

file uhidev.c was added on branch kqueue on 2002-01-10 19:58:58 +0000

Revision 1.3.2.1, Sat Dec 29 20:50:16 2001 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.3: +0 -501 lines
FILE REMOVED

file uhidev.c was added on branch nathanw_sa on 2002-01-08 00:32:10 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Sat Dec 29 20:50:16 2001 UTC (22 years, 3 months ago) by augustss
Branch: MAIN
Branch point for: nathanw_sa, kqueue
Changes since 1.2: +3 -5 lines
Diff to previous 1.2 (colored) to selected 1.27.2.6 (colored)

Make the driver a little less talkative on errors.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 29 18:56:52 2001 UTC (22 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.1: +13 -2 lines
Diff to previous 1.1 (colored) to selected 1.27.2.6 (colored)

Be more paranoid about input sizes.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Dec 28 17:32:36 2001 UTC (22 years, 3 months ago) by augustss
Branch: MAIN
Diff to selected 1.27.2.6 (colored)

Introduce an extra driver level for HID devices, uhidev.  This uhidev driver
attaches to the hub, and HID drivers (ums, ukbd, and uhid) attach to
uhidev.  The reason for this change is that some HID devices report multiple
components (like a keyboard and a mouse) using the same interface, but with
different report identifiers.  The report identifier can be specified with
a locator for the HID drivers.
Furthermore, change the ukbd driver to handle other formats than the boot
protocol.

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>