The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.129 / (download) - annotate - [select for diffs], Sun Feb 4 05:43:06 2024 UTC (2 months, 1 week ago) by mrg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.128: +3 -3 lines
Diff to previous 1.128 (colored) to selected 1.92.4.11 (colored)

update my email address.

Revision 1.128 / (download) - annotate - [select for diffs], Mon Jul 31 17:41:18 2023 UTC (8 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.127: +4 -4 lines
Diff to previous 1.127 (colored) to selected 1.92.4.11 (colored)

Don't call versioned stuff "old". Follow the naming convention for versioning
and name them after the last version of the OS they appeared on.

Revision 1.127 / (download) - annotate - [select for diffs], Tue Mar 28 20:01:58 2023 UTC (12 months, 2 weeks ago) by andvar
Branch: MAIN
Changes since 1.126: +3 -3 lines
Diff to previous 1.126 (colored) to selected 1.92.4.11 (colored)

s/interrput/interrupt/ and s/accesss/access/ in comments.

Revision 1.126 / (download) - annotate - [select for diffs], Sat Sep 24 11:06:41 2022 UTC (18 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.125: +2 -5 lines
Diff to previous 1.125 (colored) to selected 1.92.4.11 (colored)

uhid(4): Don't wake waiters on changing sc_open.

This is only a diagnostic measure, not part of semantics.

Can probably safely eliminate the diagnostic measure at this point
now.

Revision 1.125 / (download) - annotate - [select for diffs], Thu Mar 31 17:43:50 2022 UTC (2 years ago) by christos
Branch: MAIN
Changes since 1.124: +5 -9 lines
Diff to previous 1.124 (colored) to selected 1.92.4.11 (colored)

simplify.

Revision 1.124 / (download) - annotate - [select for diffs], Tue Mar 29 06:59:19 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.123: +3 -3 lines
Diff to previous 1.123 (colored) to selected 1.92.4.11 (colored)

uhid(4): Make sure error is initialized in uhidkqfilter.

Revision 1.123 / (download) - annotate - [select for diffs], Mon Mar 28 12:44:17 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.122: +29 -28 lines
Diff to previous 1.122 (colored) to selected 1.92.4.11 (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.122 / (download) - annotate - [select for diffs], Mon Mar 28 12:43:12 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.121: +9 -6 lines
Diff to previous 1.121 (colored) to selected 1.92.4.11 (colored)

uhidev(9): Get the device and interface through attach args.

This way uhidev drivers don't need access to uhidev_softc itself for
it.

Revision 1.121 / (download) - annotate - [select for diffs], Mon Mar 28 12:42:54 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.120: +3 -4 lines
Diff to previous 1.120 (colored) to selected 1.92.4.11 (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.120 / (download) - annotate - [select for diffs], Mon Mar 28 12:42:45 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.119: +77 -198 lines
Diff to previous 1.119 (colored) to selected 1.92.4.11 (colored)

uhid(4): Use d_cfdriver/devtounit/cancel to avoid open/detach races.

- Split uhidclose into separate uhidcancel and uhidclose parts.
  uhidcancel interrupts pending I/O operations (open, read, write,
  ioctl, &c.); uhidclose doesn't run until all I/O operations are
  done.

- Handle case where, owing to revoke(2), uhidcancel/uhidclose run
  concurrently with a uhidopen that hasn't yet noticed that there
  isn't actually a device.

- Handle case where, owing to revoke(2), uhidread might be cancelled
  by mere revoke, not by detach, so it has to wake up when the device
  is closing, not (just) when dying (but dying will lead to closing
  so no need to check for dying).

- Omit needless reference-counting goo.  vdevgone takes care of this
  for us by cancelling all I/O operations with uhidcancel, waiting
  for I/O operations to drain, closing the device, and waiting until
  it is closed if that is already happening concurrently.

- Name the closed/changing/open states rather than using 0/1/2.

- Omit needless sc_dying.

Revision 1.119 / (download) - annotate - [select for diffs], Sun Sep 26 15:07:17 2021 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.118: +9 -16 lines
Diff to previous 1.118 (colored) to selected 1.92.4.11 (colored)

Use seltrue_filtops rather than rolling our own with filt_seltrue.

Revision 1.118 / (download) - annotate - [select for diffs], Sun Sep 26 01:16:09 2021 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.117: +4 -4 lines
Diff to previous 1.117 (colored) to selected 1.92.4.11 (colored)

Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89

Revision 1.108.2.3 / (download) - annotate - [select for diffs], Thu Feb 4 19:16:01 2021 UTC (3 years, 2 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.108.2.2: +206 -135 lines
Diff to previous 1.108.2.2 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored) to selected 1.92.4.11 (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.114.2.2 / (download) - annotate - [select for diffs], Sun Jan 3 16:35:02 2021 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.114.2.1: +4 -7 lines
Diff to previous 1.114.2.1 (colored) next main 1.115 (colored) to selected 1.92.4.11 (colored)

Sync w/ HEAD.

Revision 1.117 / (download) - annotate - [select for diffs], Fri Dec 18 01:40:20 2020 UTC (3 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.116: +4 -7 lines
Diff to previous 1.116 (colored) to selected 1.92.4.11 (colored)

Use sel{record,remove}_knote().

Revision 1.114.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:09 2020 UTC (3 years, 4 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.114: +218 -158 lines
Diff to previous 1.114 (colored) to selected 1.92.4.11 (colored)

Sync w/ HEAD.

Revision 1.116 / (download) - annotate - [select for diffs], Mon Nov 30 00:48:35 2020 UTC (3 years, 4 months ago) by riastradh
Branch: MAIN
Changes since 1.115: +15 -26 lines
Diff to previous 1.115 (colored) to selected 1.92.4.11 (colored)

uhid(4): Omit needless softint indirection.

USB xfer callbacks already run in softint context at IPL_SOFTSERIAL,
and I see no reason why the call to psignal must happen instead at
the lower priority of IPL_SOFTCLOCK, so let's avoid using up the
scarce resource of softints for something that doesn't need 'em.

While here, use atomic_store_relaxed to update sc->sc_async and
atomic_load_relaxed to optimisitcally test it without acquiring
proc_lock.

Revision 1.115 / (download) - annotate - [select for diffs], Sun Nov 29 22:54:51 2020 UTC (3 years, 4 months ago) by riastradh
Branch: MAIN
Changes since 1.114: +206 -135 lines
Diff to previous 1.114 (colored) to selected 1.92.4.11 (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.108.2.2 / (download) - annotate - [select for diffs], Wed Jul 15 14:09:04 2020 UTC (3 years, 9 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-1-RELEASE
Changes since 1.108.2.1: +34 -6 lines
Diff to previous 1.108.2.1 (colored) to branchpoint 1.108 (colored) to selected 1.92.4.11 (colored)

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

	sys/dev/usb/uhid.c: revision 1.112
	sys/dev/usb/uhid.c: revision 1.113
	sys/dev/hid/hid.h: revision 1.4
	sys/dev/hid/hid.h: revision 1.5
	sys/dev/usb/usbhid.h: revision 1.19

Add fido constants, and turn hid "raw" mode for fido devices.

Add ioctls to get and set raw mode.

Use unsigned to avoid undefined behavior. Found by kUBSan.

Revision 1.114 / (download) - annotate - [select for diffs], Sat May 23 23:42:42 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.113: +19 -19 lines
Diff to previous 1.113 (colored) to selected 1.92.4.11 (colored)

Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.101.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:13 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.101.4.1: +68 -30 lines
Diff to previous 1.101.4.1 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored) to selected 1.92.4.11 (colored)

Merge changes from current as of 20200406

Revision 1.113 / (download) - annotate - [select for diffs], Wed Mar 4 01:23:08 2020 UTC (4 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.112: +10 -2 lines
Diff to previous 1.112 (colored) to selected 1.92.4.11 (colored)

Add ioctls to get and set raw mode.

Revision 1.112 / (download) - annotate - [select for diffs], Mon Mar 2 18:15:28 2020 UTC (4 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp
Changes since 1.111: +26 -6 lines
Diff to previous 1.111 (colored) to selected 1.92.4.11 (colored)

Add fido constants, and turn hid "raw" mode for fido devices.

Revision 1.99.6.1 / (download) - annotate - [select for diffs], Thu Jan 2 09:43:56 2020 UTC (4 years, 3 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.99: +13 -3 lines
Diff to previous 1.99 (colored) next main 1.100 (colored) to selected 1.92.4.11 (colored)

Pull up following revision(s) (requested by maxv in ticket #1480):

	sys/dev/usb/uthum.c: revision 1.18
	sys/dev/usb/ucycom.c: revision 1.49
	sys/dev/usb/uhid.c: revision 1.111

Fix buffer overflows. sc_{o,f}len are controlled by the USB device. By
crafting the former the device can leak stack data. By crafting the latter
the device can overwrite the stack. The combination of the two means the
device can ROP the kernel and obtain code execution (demonstrated with an
actual exploit over vHCI).

Truncate the lengths to the size of the buffers, and also drop sc_ilen
since it is unused. Patch tested with vHCI+kASan.

 -

Fix buffer overflows. Also add missing mutex_exit.

 -

Fix buffer overflows: validate the lengths at attach time, given that they
are apparently not supposed to be variable. Drop sc_ilen since it is
unused.

Revision 1.108.2.1 / (download) - annotate - [select for diffs], Thu Jan 2 09:42:06 2020 UTC (4 years, 3 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.108: +13 -3 lines
Diff to previous 1.108 (colored) to selected 1.92.4.11 (colored)

Pull up following revision(s) (requested by maxv in ticket #595):

	sys/dev/usb/uthum.c: revision 1.18
	sys/dev/usb/ucycom.c: revision 1.49
	sys/dev/usb/uhid.c: revision 1.111

Fix buffer overflows. sc_{o,f}len are controlled by the USB device. By
crafting the former the device can leak stack data. By crafting the latter
the device can overwrite the stack. The combination of the two means the
device can ROP the kernel and obtain code execution (demonstrated with an
actual exploit over vHCI).

Truncate the lengths to the size of the buffers, and also drop sc_ilen
since it is unused. Patch tested with vHCI+kASan.

 -

Fix buffer overflows. Also add missing mutex_exit.

 -

Fix buffer overflows: validate the lengths at attach time, given that they
are apparently not supposed to be variable. Drop sc_ilen since it is
unused.

Revision 1.111 / (download) - annotate - [select for diffs], Wed Jan 1 09:05:03 2020 UTC (4 years, 3 months ago) by maxv
Branch: MAIN
CVS Tags: ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.110: +13 -3 lines
Diff to previous 1.110 (colored) to selected 1.92.4.11 (colored)

Fix buffer overflows. Also add missing mutex_exit.

Revision 1.110 / (download) - annotate - [select for diffs], Sun Dec 1 12:47:10 2019 UTC (4 years, 4 months ago) by maxv
Branch: MAIN
Changes since 1.109: +4 -4 lines
Diff to previous 1.109 (colored) to selected 1.92.4.11 (colored)

minor adjustments, to avoid warnings on debug builds

Revision 1.109 / (download) - annotate - [select for diffs], Sun Dec 1 08:27:54 2019 UTC (4 years, 4 months ago) by maxv
Branch: MAIN
Changes since 1.108: +24 -24 lines
Diff to previous 1.108 (colored) to selected 1.92.4.11 (colored)

localify

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

Sync with HEAD

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

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

Revision 1.107 / (download) - annotate - [select for diffs], Sat Mar 23 02:19:31 2019 UTC (5 years ago) by mrg
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.106: +7 -5 lines
Diff to previous 1.106 (colored) to selected 1.92.4.11 (colored)

use sc_lock not sc_access_lock to check UHIDEV_OPEN.

fixes a soft hang when usbhidaction has a uhid open and bzflag
tries to open it as well.

XXX: pullup-7, pullup-8 (where i saw this originally.)

Revision 1.106 / (download) - annotate - [select for diffs], Fri Mar 1 11:06:56 2019 UTC (5 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored) to selected 1.92.4.11 (colored)

Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.

NFCI intended.

Ride the earlier kernel bump - it;s getting crowded.

Revision 1.105 / (download) - annotate - [select for diffs], Thu Feb 7 13:20:41 2019 UTC (5 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.104: +7 -7 lines
Diff to previous 1.104 (colored) to selected 1.92.4.11 (colored)

Remove (mostly useless) usb_detach_{broadcast,wait} and replace with
cv_{broadcast,timedwait}

Really should loop on conditon.

Revision 1.104 / (download) - annotate - [select for diffs], Tue Jan 29 09:28:50 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored) to selected 1.92.4.11 (colored)

Normalize all the compat hooks' names to the form

	<subsystem>_<function>_<version>_hook

NFCI

XXX Note that although this introduces a change in the kernel-to-
XXX module interface, we are NOT bumping the kernel version number.
XXX We will bump the version number once the interface stabilizes.

Revision 1.103 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:42 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.102: +10 -7 lines
Diff to previous 1.102 (colored) to selected 1.92.4.11 (colored)

Merge the [pgoyette-compat] branch

Revision 1.101.2.9 / (download) - annotate - [select for diffs], Tue Jan 22 07:42:41 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.101.2.8: +7 -10 lines
Diff to previous 1.101.2.8 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored) to selected 1.92.4.11 (colored)

Convert the MODULE_{,VOID_}HOOK_CALL macros to do everything in-line
rather than defining an intermediate hook##call function.  Almost
all of the hooks are called only once, and although we lose the
ability of doing things like

	if (MODULE_HOOK_CALL(...) == 0) ...

we simplify things quite a bit.  With this change, we no longer need
to have both declaration and definition macros, and the definition
no longer needs to have both prototype argument list and a "real"
argument list.

FWIW, the above if now needs to written as

	int ret;

	MODULE_HOOK_CALL(..., ret);
	if (ret == 0) ...

with appropriate use of braces {}.

Revision 1.101.2.8 / (download) - annotate - [select for diffs], Fri Jan 18 00:01:01 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.101.2.7: +3 -3 lines
Diff to previous 1.101.2.7 (colored) to branchpoint 1.101 (colored) to selected 1.92.4.11 (colored)

Don't restrict hooks to having only int or void types.  Pass the hook's
type to the various macros, as needed.

Allows us to reduce diffs to original in at least one or two places (we
no longer have to provide an additional parameter to the hook routine
for returning a non-int return value).

Revision 1.101.2.7 / (download) - annotate - [select for diffs], Mon Jan 14 13:34:27 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.101.2.6: +6 -6 lines
Diff to previous 1.101.2.6 (colored) to branchpoint 1.101 (colored) to selected 1.92.4.11 (colored)

Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.

Revision 1.101.2.6 / (download) - annotate - [select for diffs], Sun Jan 13 10:49:50 2019 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.101.2.5: +4 -4 lines
Diff to previous 1.101.2.5 (colored) to branchpoint 1.101 (colored) to selected 1.92.4.11 (colored)

Remove the HOOK2 versions of the MODULE_HOOK macros.  There were
only a few uses, and using them led to some lack of clarity in the
code.  Instead, we now use two separate hooks, with names that
make it clear(er) what we're doing.

This also positions us to start unraveling some of the rtsock_50
mess, which will need (at least) five hooks.

Revision 1.101.2.5 / (download) - annotate - [select for diffs], Sat Sep 29 21:36:14 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.101.2.4: +3 -5 lines
Diff to previous 1.101.2.4 (colored) to branchpoint 1.101 (colored) to selected 1.92.4.11 (colored)

In MODULE_HOOK_CALL_DECL we don't need to provide the actual argument
list for calling the hook function, nor do we need to provide the
default value (for when the hook has not been set).

Revision 1.101.2.4 / (download) - annotate - [select for diffs], Tue Sep 18 23:03:55 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.101.2.3: +3 -3 lines
Diff to previous 1.101.2.3 (colored) to branchpoint 1.101 (colored) to selected 1.92.4.11 (colored)

The COMPAT_HOOK macros were renamed to MODULE_HOOK, adjust all callers

Revision 1.101.2.3 / (download) - annotate - [select for diffs], Tue Sep 18 01:15:58 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.101.2.2: +12 -5 lines
Diff to previous 1.101.2.2 (colored) to branchpoint 1.101 (colored) to selected 1.92.4.11 (colored)

Split the COMPAT_CALL_HOOK to separate the declaration from the
implementation.  Some hooks are called from multiple source files,
and the old method resulted in duplicate implementations.

Implement MP-safe hooks for the usb_subr_30 code.  Pass the helper
functions as arguments to the compat code so it does not have to
determine if the kernel contains usb code.

Revision 1.101.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:04 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.101.2.1: +4 -4 lines
Diff to previous 1.101.2.1 (colored) to branchpoint 1.101 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD

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

Revision 1.102 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:34 2018 UTC (5 years, 7 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.101: +4 -4 lines
Diff to previous 1.101 (colored) to selected 1.92.4.11 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Thu Mar 29 11:20:03 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.101: +8 -7 lines
Diff to previous 1.101 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.101 / (download) - annotate - [select for diffs], Sun Dec 10 17:03:07 2017 UTC (6 years, 4 months ago) by bouyer
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, 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.100: +3 -3 lines
Diff to previous 1.100 (colored) to selected 1.92.4.11 (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.88.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:34 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.88.2.2: +106 -79 lines
Diff to previous 1.88.2.2 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.92.4.11 (colored)

update from HEAD

Revision 1.100 / (download) - annotate - [select for diffs], Wed Oct 25 08:12:39 2017 UTC (6 years, 5 months ago) by maya
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.99: +14 -6 lines
Diff to previous 1.99 (colored) to selected 1.92.4.11 (colored)

Use C99 initializer for filterops

Mostly done with spatch with touchups for indentation

@@
expression a;
identifier b,c,d;
identifier p;
@@
const struct filterops p =
- 	{ a, b, c, d
+ 	{
+ 	.f_isfd = a,
+ 	.f_attach = b,
+ 	.f_detach = c,
+ 	.f_event = d,
};

Revision 1.92.4.12 / (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.92.4.11: +3 -3 lines
Diff to previous 1.92.4.11 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored)

Sync with HEAD

Revision 1.98.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:53 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored) next main 1.99 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Wed Apr 5 19:54:20 2017 UTC (7 years ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.92.2.1: +41 -35 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored) to selected 1.92.4.11 (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.98.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:38 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored) next main 1.99 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD

Revision 1.99 / (download) - annotate - [select for diffs], Sat Mar 11 12:41:14 2017 UTC (7 years, 1 month ago) by maya
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, 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, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored) to selected 1.92.4.11 (colored)

memcpy of overlapping arguments is UB. use memmove.
CID 1299071

ok riastradh

Revision 1.92.2.1.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.92.2.1.4.1: +9 -7 lines
Diff to previous 1.92.2.1.4.1 (colored) to branchpoint 1.92.2.1 (colored) next main 1.92.2.2 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD/nhusb

Revision 1.92.4.11 / (download) - annotate - [selected], Thu Oct 27 07:46:19 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.92.4.10: +9 -7 lines
Diff to previous 1.92.4.10 (colored) to branchpoint 1.92 (colored)

Retire usb_detach_{wait,broadcast} and simply use condvar(9) instead

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

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

Revision 1.92.4.10 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:16 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.92.4.9: +10 -11 lines
Diff to previous 1.92.4.9 (colored) to branchpoint 1.92 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD

Revision 1.98 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:42 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.97: +10 -11 lines
Diff to previous 1.97 (colored) to selected 1.92.4.11 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.92.4.9 / (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.92.4.8: +10 -5 lines
Diff to previous 1.92.4.8 (colored) to branchpoint 1.92 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD

Revision 1.97 / (download) - annotate - [select for diffs], Mon May 9 04:55:34 2016 UTC (7 years, 11 months ago) by mlelstv
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.96: +9 -5 lines
Diff to previous 1.96 (colored) to selected 1.92.4.11 (colored)

kmem_alloc doesn't support allocating 0 bytes.

Revision 1.96 / (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.95: +3 -2 lines
Diff to previous 1.95 (colored) to selected 1.92.4.11 (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.95 / (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.94: +20 -20 lines
Diff to previous 1.94 (colored) to selected 1.92.4.11 (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.92.4.8 / (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.92.4.7: +3 -3 lines
Diff to previous 1.92.4.7 (colored) to branchpoint 1.92 (colored) to selected 1.92.4.11 (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.92.4.7 / (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.92.4.6: +3 -3 lines
Diff to previous 1.92.4.6 (colored) to branchpoint 1.92 (colored) to selected 1.92.4.11 (colored)

sizeof KNF

Revision 1.92.4.6 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:13 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.92.4.5: +31 -16 lines
Diff to previous 1.92.4.5 (colored) to branchpoint 1.92 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD

Revision 1.92.2.1 / (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.92: +66 -51 lines
Diff to previous 1.92 (colored) to selected 1.92.4.11 (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.94 / (download) - annotate - [select for diffs], Fri Mar 20 03:04:48 2015 UTC (9 years ago) by mrg
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.93: +2 -4 lines
Diff to previous 1.93 (colored) to selected 1.92.4.11 (colored)

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.93 / (download) - annotate - [select for diffs], Sat Mar 7 20:20:55 2015 UTC (9 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.92: +68 -51 lines
Diff to previous 1.92 (colored) to selected 1.92.4.11 (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.92.4.5 / (download) - annotate - [select for diffs], Sat Dec 6 08:27:23 2014 UTC (9 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.92.4.4: +5 -5 lines
Diff to previous 1.92.4.4 (colored) to branchpoint 1.92 (colored) to selected 1.92.4.11 (colored)

KNF. Remove argument name from function declarations.

No functional change.

Revision 1.92.4.4 / (download) - annotate - [select for diffs], Fri Dec 5 09:37:49 2014 UTC (9 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.92.4.3: +39 -39 lines
Diff to previous 1.92.4.3 (colored) to branchpoint 1.92 (colored) to selected 1.92.4.11 (colored)

KNF. Remove ( ) from return statements.

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

Replace malloc(9) with kmem(9)

Revision 1.92.4.2 / (download) - annotate - [select for diffs], Sun Nov 30 13:14:11 2014 UTC (9 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.92.4.1: +10 -10 lines
Diff to previous 1.92.4.1 (colored) to branchpoint 1.92 (colored) to selected 1.92.4.11 (colored)

Whitespace

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

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

No functional change.

Revision 1.88.2.2 / (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.88.2.1: +16 -4 lines
Diff to previous 1.88.2.1 (colored) to branchpoint 1.88 (colored) to selected 1.92.4.11 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:59 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.90: +5 -2 lines
Diff to previous 1.90 (colored) next main 1.91 (colored) to selected 1.92.4.11 (colored)

Rebase.

Revision 1.92 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:39 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-base
Branch point for: nick-nhusb, netbsd-7
Changes since 1.91: +3 -2 lines
Diff to previous 1.91 (colored) to selected 1.92.4.11 (colored)

Add d_discard to all struct cdevsw instances I could find.

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

Revision 1.91 / (download) - annotate - [select for diffs], Wed Jul 2 20:17:30 2014 UTC (9 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.90: +4 -2 lines
Diff to previous 1.90 (colored) to selected 1.92.4.11 (colored)

remember to call deregister.

Revision 1.84.8.5 / (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.84.8.4: +13 -4 lines
Diff to previous 1.84.8.4 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored) to selected 1.92.4.11 (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.89.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:48 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.89: +13 -4 lines
Diff to previous 1.89 (colored) next main 1.90 (colored) to selected 1.92.4.11 (colored)

sync with head

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

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.88.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:39 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.88: +4 -2 lines
Diff to previous 1.88 (colored) to selected 1.92.4.11 (colored)

resync with head

Revision 1.84.8.4 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:13 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.84.8.3: +4 -2 lines
Diff to previous 1.84.8.3 (colored) to branchpoint 1.84 (colored) to selected 1.92.4.11 (colored)

sync with head

Revision 1.89 / (download) - annotate - [select for diffs], Sat Jan 5 01:30:17 2013 UTC (11 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.88: +4 -2 lines
Diff to previous 1.88 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.84.8.3 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:08 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.84.8.2: +86 -34 lines
Diff to previous 1.84.8.2 (colored) to branchpoint 1.84 (colored) to selected 1.92.4.11 (colored)

sync with head

Revision 1.88 / (download) - annotate - [select for diffs], Sun Jun 10 06:15:54 2012 UTC (11 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.87: +86 -34 lines
Diff to previous 1.87 (colored) to selected 1.92.4.11 (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.84.12.5 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:29 2012 UTC (11 years, 10 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.84.12.4: +7 -2 lines
Diff to previous 1.84.12.4 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored) to selected 1.92.4.11 (colored)

sync to latest -current.

Revision 1.84.8.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:06 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.84.8.1: +7 -2 lines
Diff to previous 1.84.8.1 (colored) to branchpoint 1.84 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.87 / (download) - annotate - [select for diffs], Mon May 14 04:28:28 2012 UTC (11 years, 11 months ago) by erh
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Changes since 1.86: +7 -2 lines
Diff to previous 1.86 (colored) to selected 1.92.4.11 (colored)

Implement USB_GET_DEVICE_DESC for uhid devices so there's a way to get the
product and vendor information.

Revision 1.84.8.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:08 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.84: +6 -12 lines
Diff to previous 1.84 (colored) to selected 1.92.4.11 (colored)

sync with head

Revision 1.84.12.4 / (download) - annotate - [select for diffs], Tue Mar 6 18:26:46 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.84.12.3: +2 -4 lines
Diff to previous 1.84.12.3 (colored) to branchpoint 1.84 (colored) to selected 1.92.4.11 (colored)

sync to -current

Revision 1.86 / (download) - annotate - [select for diffs], Tue Mar 6 03:35:29 2012 UTC (12 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6
Changes since 1.85: +6 -6 lines
Diff to previous 1.85 (colored) to selected 1.92.4.11 (colored)

pull down from usbmp branch:

- rename usb_detach_{wake,waitup}() to usb_detach_{wake,waitup}old()
- use some c99 struct .initialisers

Revision 1.84.12.3 / (download) - annotate - [select for diffs], Sun Feb 26 08:02:36 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.84.12.2: +3 -3 lines
Diff to previous 1.84.12.2 (colored) to branchpoint 1.84 (colored) to selected 1.92.4.11 (colored)

rename usb_detach_waitcv() to usb_detach_wait()

Revision 1.84.12.2 / (download) - annotate - [select for diffs], Sat Feb 25 20:52:29 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.84.12.1: +88 -34 lines
Diff to previous 1.84.12.1 (colored) to branchpoint 1.84 (colored) to selected 1.92.4.11 (colored)

mark D_MPSAFE:
- spl -> mutex
- convert to SMP usb_detach_wait/wakeup()
- add a IPL_NONE access lock, used in most devsw entry points

Revision 1.84.12.1 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:43 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.84: +2 -8 lines
Diff to previous 1.84 (colored) to selected 1.92.4.11 (colored)

sync to -current.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Feb 24 06:48:25 2012 UTC (12 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Changes since 1.84: +2 -8 lines
Diff to previous 1.84 (colored) to selected 1.92.4.11 (colored)

remove any remnants of freebsd/openbsd code.

Revision 1.83.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:54:14 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.83: +27 -20 lines
Diff to previous 1.83 (colored) next main 1.84 (colored) to selected 1.92.4.11 (colored)

sync with head

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:38 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.83: +27 -20 lines
Diff to previous 1.83 (colored) next main 1.84 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Nov 3 22:34:24 2010 UTC (13 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, uebayasi-xip-base4, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, mrg-ohci-jmcneill-usbmp-base, mrg-ohci-jmcneill-usbmp, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.83: +27 -20 lines
Diff to previous 1.83 (colored) to selected 1.92.4.11 (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.80.2.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:06 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.80.2.2: +5 -7 lines
Diff to previous 1.80.2.2 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored) to selected 1.92.4.11 (colored)

sync with head

Revision 1.83 / (download) - annotate - [select for diffs], Sun Dec 6 21:40:31 2009 UTC (14 years, 4 months ago) by dyoung
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, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.82: +5 -7 lines
Diff to previous 1.82 (colored) to selected 1.92.4.11 (colored)

Simplify device-activation hooks.

Revision 1.80.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:21 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.80.2.1: +11 -10 lines
Diff to previous 1.80.2.1 (colored) to branchpoint 1.80 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.81.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.81: +11 -10 lines
Diff to previous 1.81 (colored) next main 1.82 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.79.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:20 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.79.2.1: +11 -10 lines
Diff to previous 1.79.2.1 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored) to selected 1.92.4.11 (colored)

sync with head

Revision 1.78.6.4 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:54 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.78.6.3: +54 -25 lines
Diff to previous 1.78.6.3 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD.

Revision 1.82 / (download) - annotate - [select for diffs], Sat May 24 16:40:58 2008 UTC (15 years, 10 months ago) by cube
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-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Changes since 1.81: +11 -10 lines
Diff to previous 1.81 (colored) to selected 1.92.4.11 (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.79.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:51 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.79: +45 -17 lines
Diff to previous 1.79 (colored) to selected 1.92.4.11 (colored)

sync with head.

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

sync with head.

Revision 1.81 / (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.80: +2 -9 lines
Diff to previous 1.80 (colored) to selected 1.92.4.11 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.80 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:28 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.79: +45 -10 lines
Diff to previous 1.79 (colored) to selected 1.92.4.11 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.78.6.3 / (download) - annotate - [select for diffs], Sun Apr 6 09:58:51 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.78.6.2: +3 -3 lines
Diff to previous 1.78.6.2 (colored) to branchpoint 1.78 (colored) to selected 1.92.4.11 (colored)

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

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

Revision 1.78.6.2 / (download) - annotate - [select for diffs], Sat Apr 5 23:33:23 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.78.6.1: +9 -2 lines
Diff to previous 1.78.6.1 (colored) to branchpoint 1.78 (colored) to selected 1.92.4.11 (colored)

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

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

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

- add a DEV_AUDIO type for devices.

Revision 1.78.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:57 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.78: +5 -3 lines
Diff to previous 1.78 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD.

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:09 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.78: +5 -3 lines
Diff to previous 1.78 (colored) next main 1.79 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.76.16.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:54 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.76.16.1: +8 -3 lines
Diff to previous 1.76.16.1 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored) to selected 1.92.4.11 (colored)

sync with HEAD

Revision 1.64.2.7 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:28 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.6: +5 -3 lines
Diff to previous 1.64.2.6 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.79 / (download) - annotate - [select for diffs], Sat Mar 1 14:16:51 2008 UTC (16 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.78: +5 -3 lines
Diff to previous 1.78 (colored) to selected 1.92.4.11 (colored)

Welcome to 4.99.55:

- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>

Revision 1.64.2.6 / (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.64.2.5: +5 -2 lines
Diff to previous 1.64.2.5 (colored) to branchpoint 1.64 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.76.22.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:26 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.76.22.1: +5 -2 lines
Diff to previous 1.76.22.1 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Feb 12 19:37:51 2008 UTC (16 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.77: +5 -2 lines
Diff to previous 1.77 (colored) to selected 1.92.4.11 (colored)

add NULL power handler, so that this device doesn't block suspension

Revision 1.76.16.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:42 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored) to selected 1.92.4.11 (colored)

sync with HEAD

Revision 1.76.14.1 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:04 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored) next main 1.77 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD.

Revision 1.76.22.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:04 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD.

Revision 1.76.24.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:34 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored) next main 1.77 (colored) to selected 1.92.4.11 (colored)

Sync with head.

Revision 1.64.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:31:36 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.4: +4 -4 lines
Diff to previous 1.64.2.4 (colored) to branchpoint 1.64 (colored) to selected 1.92.4.11 (colored)

sync with head

Revision 1.77 / (download) - annotate - [select for diffs], Wed Dec 5 17:19:55 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored) to selected 1.92.4.11 (colored)

Do not "return 1" from kqfilter for errors.  That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.

Revision 1.64.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:39:13 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.3: +7 -7 lines
Diff to previous 1.64.2.3 (colored) to branchpoint 1.64 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.75.4.2 / (download) - annotate - [select for diffs], Sun Jun 17 01:11:54 2007 UTC (16 years, 10 months ago) by itohy
Branch: itohy-usb1
Changes since 1.75.4.1: +6 -5 lines
Diff to previous 1.75.4.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.92.4.11 (colored)

Pullup 1.76 in a different way.

Revision 1.75.4.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.75: +11 -11 lines
Diff to previous 1.75 (colored) to selected 1.92.4.11 (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.72.2.1 / (download) - annotate - [select for diffs], Fri Apr 6 18:43:52 2007 UTC (17 years ago) by bouyer
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.72: +11 -3 lines
Diff to previous 1.72 (colored) next main 1.73 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.74.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:57:31 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.74.2.1: +5 -5 lines
Diff to previous 1.74.2.1 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:49 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking2-base1, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, matt-armv6, jmcneill-pm
Changes since 1.75: +5 -5 lines
Diff to previous 1.75 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:07 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.75 / (download) - annotate - [select for diffs], Mon Feb 26 13:28:56 2007 UTC (17 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: itohy-usb1-base, ad-audiomp-base, ad-audiomp
Branch point for: itohy-usb1
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored) to selected 1.92.4.11 (colored)

The manpage promises not to touch the device on USB_GET_DEVICEINFO.
Make it so.

Revision 1.64.2.3 / (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.64.2.2: +4 -2 lines
Diff to previous 1.64.2.2 (colored) to branchpoint 1.64 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:29 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.73: +4 -2 lines
Diff to previous 1.73 (colored) to selected 1.92.4.11 (colored)

Merge newlock2 to head.

Revision 1.70.2.3 / (download) - annotate - [select for diffs], Fri Jan 19 09:39:58 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.70.2.2: +4 -2 lines
Diff to previous 1.70.2.2 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored) to selected 1.92.4.11 (colored)

Acquire proclist_mutex before sending signals.

Revision 1.70.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 00:57:49 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.70.2.1: +11 -3 lines
Diff to previous 1.70.2.1 (colored) to branchpoint 1.70 (colored) to selected 1.92.4.11 (colored)

Sync with head.

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:39 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.1: +20 -9 lines
Diff to previous 1.64.2.1 (colored) to branchpoint 1.64 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.70.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:17 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.70.4.1: +22 -14 lines
Diff to previous 1.70.4.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Dec 3 22:34:58 2006 UTC (17 years, 4 months ago) by pavel
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, newlock2-nbase, newlock2-base
Changes since 1.72: +11 -3 lines
Diff to previous 1.72 (colored) to selected 1.92.4.11 (colored)

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

The code is conditionally compiled depending on COMPAT_30.

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

Reviewed by martin@.

Revision 1.70.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:51 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.70: +9 -6 lines
Diff to previous 1.70 (colored) to selected 1.92.4.11 (colored)

Sync with head.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:26 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.71: +13 -13 lines
Diff to previous 1.71 (colored) to selected 1.92.4.11 (colored)

__unused removal on arguments; approved by core.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:52 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.70: +13 -10 lines
Diff to previous 1.70 (colored) to selected 1.92.4.11 (colored)

sync with head

Revision 1.71 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:59 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.70: +13 -10 lines
Diff to previous 1.70 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.68.8.2 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:40 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.68.8.1: +4 -4 lines
Diff to previous 1.68.8.1 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.68.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:55:33 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.68: +5 -5 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.92.4.11 (colored)

sync with head

Revision 1.70 / (download) - annotate - [select for diffs], Sun Sep 3 21:09:46 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored) to selected 1.92.4.11 (colored)

- add missing initializer
- remove stray semicolon that prevented an ioctl from working.

Revision 1.64.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.64: +19 -16 lines
Diff to previous 1.64 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.68.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:38 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.92.4.11 (colored)

Sync with head.

Revision 1.68.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:26:30 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.68.8.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:31 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.68.12.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:26 2006 UTC (18 years ago) by tron
Branch: peter-altq
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.69 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:35 2006 UTC (18 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) to selected 1.92.4.11 (colored)

Use device_unit().

Revision 1.68 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:01 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.67: +12 -12 lines
Diff to previous 1.67 (colored) to selected 1.92.4.11 (colored)

merge ktrace-lwp.

Revision 1.59.2.7 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:06 2005 UTC (18 years, 4 months ago) by christos
Branch: ktrace-lwp
Changes since 1.59.2.6: +8 -5 lines
Diff to previous 1.59.2.6 (colored) next main 1.60 (colored) to selected 1.92.4.11 (colored)

Sync with head.

Revision 1.64.8.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.64: +8 -5 lines
Diff to previous 1.64 (colored) next main 1.65 (colored) to selected 1.92.4.11 (colored)

sync with head.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Nov 28 13:14:48 2005 UTC (18 years, 4 months ago) by augustss
Branch: MAIN
CVS Tags: yamt-readahead-base3, ktrace-lwp-base
Changes since 1.66: +5 -4 lines
Diff to previous 1.66 (colored) to selected 1.92.4.11 (colored)

Add a new match level, UMATCH_HIGHEST.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Nov 23 10:03:56 2005 UTC (18 years, 4 months ago) by tron
Branch: MAIN
Changes since 1.65: +4 -2 lines
Diff to previous 1.65 (colored) to selected 1.92.4.11 (colored)

Make this compile if UHID_DEBUG is not defined.

Revision 1.65 / (download) - annotate - [select for diffs], Wed Nov 23 08:54:48 2005 UTC (18 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.64: +4 -4 lines
Diff to previous 1.64 (colored) to selected 1.92.4.11 (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.59.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:08:05 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.59.2.5: +3 -3 lines
Diff to previous 1.59.2.5 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD. Here we go again...

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jun 21 14:01:12 2005 UTC (18 years, 9 months ago) by ws
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead, yamt-lazymbuf
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.92.4.11 (colored)

PR-30566: Poll must not return <sys/errno.h> values.
Start with those places I can easily test.

Revision 1.62.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.62: +3 -3 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.92.4.11 (colored)

sync with -current

Revision 1.62.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:58 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.92.4.11 (colored)

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

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

Sync with HEAD.

Hi Perry!

Revision 1.63 / (download) - annotate - [select for diffs], Wed Mar 2 11:37:27 2005 UTC (19 years, 1 month ago) by mycroft
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, netbsd-3, kent-audio2-base
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored) to selected 1.92.4.11 (colored)

Copyright maintenance.

Revision 1.59.2.4 / (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.59.2.3: +12 -12 lines
Diff to previous 1.59.2.3 (colored) to selected 1.92.4.11 (colored)

Fix the sync with head I botched.

Revision 1.59.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:46 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.59.2.2: +12 -12 lines
Diff to previous 1.59.2.2 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD.

Revision 1.59.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:35 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.59.2.1: +26 -2 lines
Diff to previous 1.59.2.1 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD

Revision 1.60.2.2 / (download) - annotate - [select for diffs], Fri Jul 2 17:17:06 2004 UTC (19 years, 9 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.60.2.1: +3 -3 lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.62 / (download) - annotate - [select for diffs], Wed Jun 23 02:30:52 2004 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Tue May 11 12:54:26 2004 UTC (19 years, 11 months ago) by tron
Branch: netbsd-2-0
Changes since 1.60: +18 -2 lines
Diff to previous 1.60 (colored) to selected 1.92.4.11 (colored)

Pull up revision 1.61 (requested by jdolecek in ticket #289):
add support for USB_GET_DEVICEINFO and USB_GET_STRING_DESC ioctls,
with same meaning as for ugen(4)

Revision 1.61 / (download) - annotate - [select for diffs], Sat May 8 11:41:19 2004 UTC (19 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.60: +18 -2 lines
Diff to previous 1.60 (colored) to selected 1.92.4.11 (colored)

add support for USB_GET_DEVICEINFO and USB_GET_STRING_DESC ioctls,
with same meaning as for ugen(4)

Revision 1.60 / (download) - annotate - [select for diffs], Sun Sep 21 19:16:58 2003 UTC (20 years, 6 months ago) by jdolecek
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.59: +10 -2 lines
Diff to previous 1.59 (colored) to selected 1.92.4.11 (colored)

cleanup & uniform descriptor owner handling:
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals
  the owner of descriptor, according to appropriate sematics
  of TIOCSPGRP/FIOSETOWN/SIOCSPGRP/TIOCGPGRP/FIOGETOWN/SIOCGPGRP ioctl; use
  these routines instead of custom code where appropriate
* make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN
  properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP
  in sys_ioctl() & sys_fcntl()
* also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and
  pass the ioctls down to soo_ioctl() as any other ioctl

change discussed on tech-kern@

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:23 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.59: +12 -12 lines
Diff to previous 1.59 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:57 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.58: +10 -10 lines
Diff to previous 1.58 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.58 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:46 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.57: +12 -12 lines
Diff to previous 1.57 (colored) to selected 1.92.4.11 (colored)

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

Bump the kernel rev up to 1.6V

Revision 1.57 / (download) - annotate - [select for diffs], Tue Mar 11 16:44:00 2003 UTC (21 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) to selected 1.92.4.11 (colored)

Update URLs for the HID spec.

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

Revision 1.42.2.12 / (download) - annotate - [select for diffs], Wed Dec 11 06:38:51 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.42.2.11: +3 -3 lines
Diff to previous 1.42.2.11 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Nov 26 18:49:49 2002 UTC (21 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.55: +5 -5 lines
Diff to previous 1.55 (colored) to selected 1.92.4.11 (colored)

si_ -> sel_

Revision 1.42.2.11 / (download) - annotate - [select for diffs], Mon Nov 11 22:12:52 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.10: +65 -2 lines
Diff to previous 1.42.2.10 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Catch up to -current

Revision 1.55 / (download) - annotate - [select for diffs], Wed Oct 23 09:14:00 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.54: +67 -4 lines
Diff to previous 1.54 (colored) to selected 1.92.4.11 (colored)

merge kqueue branch into -current

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

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

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

Revision 1.42.2.10 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:33 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.9: +0 -1 lines
Diff to previous 1.42.2.9 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Catch up to -current.

Revision 1.42.4.9 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:38 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.42.4.8: +18 -4 lines
Diff to previous 1.42.4.8 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.92.4.11 (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.42.4.8 / (download) - annotate - [select for diffs], Wed Oct 2 22:02:28 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.42.4.7: +5 -5 lines
Diff to previous 1.42.4.7 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

do not need the (void *) cast for kn_hook anymore

Revision 1.54 / (download) - annotate - [select for diffs], Mon Sep 23 05:51:21 2002 UTC (21 years, 6 months ago) by simonb
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.53: +2 -3 lines
Diff to previous 1.53 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.42.2.9 / (download) - annotate - [select for diffs], Tue Sep 17 21:21:33 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.8: +15 -1 lines
Diff to previous 1.42.2.8 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Catch up to -current.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (21 years, 7 months ago) by gehenna
Branch: MAIN
Changes since 1.52: +17 -3 lines
Diff to previous 1.52 (colored) to selected 1.92.4.11 (colored)

Merge the gehenna-devsw branch into the trunk.

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

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

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

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

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

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

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

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

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

Revision 1.42.4.7 / (download) - annotate - [select for diffs], Fri Sep 6 08:46:56 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.42.4.6: +7 -7 lines
Diff to previous 1.42.4.6 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

sync kqueue branch with HEAD

Revision 1.42.2.8 / (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.42.2.7: +5 -5 lines
Diff to previous 1.42.2.7 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Catch up to -current.

Revision 1.51.4.2 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:07 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.51.4.1: +7 -7 lines
Diff to previous 1.51.4.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored) to selected 1.92.4.11 (colored)

catch up with -current.

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

Get rid of trailing white space.

Revision 1.42.4.6 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:08 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.42.4.5: +3 -3 lines
Diff to previous 1.42.4.5 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

catch up with -current on kqueue branch

Revision 1.51.4.1 / (download) - annotate - [select for diffs], Thu May 16 11:29:45 2002 UTC (21 years, 11 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.51: +17 -3 lines
Diff to previous 1.51 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.42.2.7 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:35 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.6: +3 -3 lines
Diff to previous 1.42.2.6 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.51 / (download) - annotate - [select for diffs], Sun Mar 17 18:02:53 2002 UTC (22 years, 1 month ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.92.4.11 (colored)

Whitespace fixes.

Revision 1.42.4.5 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:38 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.42.4.4: +12 -12 lines
Diff to previous 1.42.4.4 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Catch up with -current.

Revision 1.42.2.6 / (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.42.2.5: +12 -12 lines
Diff to previous 1.42.2.5 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Catch up to -current.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Feb 20 20:30:12 2002 UTC (22 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.49: +12 -12 lines
Diff to previous 1.49 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.42.2.5 / (download) - annotate - [select for diffs], Fri Jan 11 23:39:36 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.4: +3 -3 lines
Diff to previous 1.42.2.4 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

More catchup.

Revision 1.42.4.4 / (download) - annotate - [select for diffs], Thu Jan 10 19:58:57 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.42.4.3: +96 -272 lines
Diff to previous 1.42.4.3 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Sync kqueue branch with -current.

Revision 1.42.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:09 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.3: +91 -270 lines
Diff to previous 1.42.2.3 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Catch up to -current.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Jan 2 20:55:58 2002 UTC (22 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored) to selected 1.92.4.11 (colored)

Some more usb_proc_ptr changes.
Also some minor stylistic changes.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Dec 31 12:15:21 2001 UTC (22 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.47: +8 -8 lines
Diff to previous 1.47 (colored) to selected 1.92.4.11 (colored)

Make a typedef for struct proc to make portingeasier.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Dec 28 17:32:36 2001 UTC (22 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.46: +85 -264 lines
Diff to previous 1.46 (colored) to selected 1.92.4.11 (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.

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:17 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.2: +5 -2 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Catch up to -current.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Nov 13 06:24:55 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.45: +4 -1 lines
Diff to previous 1.45 (colored) to selected 1.92.4.11 (colored)

add RCSIDs

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:31 2001 UTC (22 years, 5 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored) next main 1.45 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.45 / (download) - annotate - [select for diffs], Fri Oct 26 17:58:21 2001 UTC (22 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored) to selected 1.92.4.11 (colored)

s/usbd_alloc_report_desc/usbd_read_report_desc/

Revision 1.43.2.3 / (download) - annotate - [select for diffs], Mon Oct 1 12:46:32 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.43.2.2: +3 -3 lines
Diff to previous 1.43.2.2 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored) to selected 1.92.4.11 (colored)

Catch up with -current.

Revision 1.43.2.2 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:19 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.43.2.1: +8 -8 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:19 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.1: +3 -3 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Catch up to -current.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Sep 15 16:16:28 2001 UTC (22 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored) to selected 1.92.4.11 (colored)

correct debug messages.

Revision 1.42.4.3 / (download) - annotate - [select for diffs], Sat Sep 8 18:12:21 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.42.4.2: +9 -1 lines
Diff to previous 1.42.4.2 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Use the seltrue filter as appropriate (or, rather, as the "poll"
entry points of these drivers indicate).

Revision 1.42.4.2 / (download) - annotate - [select for diffs], Sat Sep 8 05:44:23 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.42.4.1: +56 -2 lines
Diff to previous 1.42.4.1 (colored) to branchpoint 1.42 (colored) to selected 1.92.4.11 (colored)

Add kqueue support.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:34 2001 UTC (22 years, 7 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.43: +18 -13 lines
Diff to previous 1.43 (colored) to selected 1.92.4.11 (colored)

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

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

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:40 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.42: +3 -1 lines
Diff to previous 1.42 (colored) to selected 1.92.4.11 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Fri Aug 24 00:11:10 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42: +3 -1 lines
Diff to previous 1.42 (colored) to selected 1.92.4.11 (colored)

Catch up with -current.

Revision 1.43 / (download) - annotate - [select for diffs], Wed Aug 15 00:06:49 2001 UTC (22 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Changes since 1.42: +3 -1 lines
Diff to previous 1.42 (colored) to selected 1.92.4.11 (colored)

If there was a vendor+product locator match return a higher match value.
Rationale, if you have a device (e.g., a mouse) with a more specific
driver but want to recognize it with the more generic driver you can
do that by supplying vendor and product locators for the generic one.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:32 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.1: +22 -4 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored) to selected 1.92.4.11 (colored)

Sync with HEAD

Revision 1.42 / (download) - annotate - [select for diffs], Fri Dec 29 01:47:49 2000 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa, kqueue
Changes since 1.41: +21 -3 lines
Diff to previous 1.41 (colored) to selected 1.92.4.11 (colored)

Supply our own report descriptor (from Nick Hibma) for the Wacom Graphire.
The descriptor it reports is broken.
XXX Not tested, because I don't have the device.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Dec 29 01:24:56 2000 UTC (23 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored) to selected 1.92.4.11 (colored)

Update many URLs.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:43:27 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26: +140 -102 lines
Diff to previous 1.26 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.40 / (download) - annotate - [select for diffs], Tue Oct 10 12:37:01 2000 UTC (23 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored) to selected 1.92.4.11 (colored)

Don't free unallocated pointer in detach (can happen if detach happens
before attach has finished).

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:08:37 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.38: +17 -56 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.92.4.11 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jun 1 14:29:00 2000 UTC (23 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.38: +17 -56 lines
Diff to previous 1.38 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.38 / (download) - annotate - [select for diffs], Thu Apr 27 15:26:48 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored) to selected 1.92.4.11 (colored)

Change my email address.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Apr 14 14:12:47 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.36: +29 -1 lines
Diff to previous 1.36 (colored) to selected 1.92.4.11 (colored)

Support for SIGIO.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Mar 27 12:33:56 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.35: +6 -6 lines
Diff to previous 1.35 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.35 / (download) - annotate - [select for diffs], Sun Mar 19 22:23:28 2000 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.34: +25 -1 lines
Diff to previous 1.34 (colored) to selected 1.92.4.11 (colored)

Add ioctl USB_SET_REPORT for uhid.  This will allow manipulating the
feature items.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Feb 29 21:37:01 2000 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored) to selected 1.92.4.11 (colored)

Distinguish between device and interface classes.
(I finally found a document that said that they were different.)

Revision 1.33 / (download) - annotate - [select for diffs], Tue Feb 22 11:24:22 2000 UTC (24 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.32: +15 -6 lines
Diff to previous 1.32 (colored) to selected 1.92.4.11 (colored)

Better debug info.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Feb 2 13:18:45 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.31: +9 -1 lines
Diff to previous 1.31 (colored) to selected 1.92.4.11 (colored)

Generate usb events on attach and detach.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Jan 19 00:23:58 2000 UTC (24 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jan 16 13:05:48 2000 UTC (24 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.29: +1 -3 lines
Diff to previous 1.29 (colored) to selected 1.92.4.11 (colored)

Avoid freeing already free data when attach fails.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:43 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.24: +83 -68 lines
Diff to previous 1.24 (colored) next main 1.25 (colored) to selected 1.92.4.11 (colored)

Pull up to last week's -current.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Dec 18 22:47:11 1999 UTC (24 years, 4 months ago) by augustss
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.92.4.11 (colored)

Make these files compile on 64 bit archs.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Nov 18 23:32:29 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.27: +16 -5 lines
Diff to previous 1.27 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:34 1999 UTC (24 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.26: +38 -40 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.92.4.11 (colored)

Sync with -current

Revision 1.27 / (download) - annotate - [select for diffs], Fri Nov 12 00:34:57 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.26: +38 -40 lines
Diff to previous 1.26 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Wed Oct 13 08:10:56 1999 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi, fvdl-softdep
Changes since 1.25: +15 -21 lines
Diff to previous 1.25 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.25 / (download) - annotate - [select for diffs], Tue Oct 12 11:54:56 1999 UTC (24 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.24: +16 -4 lines
Diff to previous 1.24 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.24 / (download) - annotate - [select for diffs], Sun Sep 5 19:32:18 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.23: +8 -8 lines
Diff to previous 1.23 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Sat Sep 4 22:26:12 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) to selected 1.92.4.11 (colored)

Change the way the direction is extracted from the endpoint descriptor.
No functional changes to the drivers.  From Nick Hibma, FreeBSD.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Aug 28 21:42:35 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Mon Aug 23 22:55:14 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.20: +12 -1 lines
Diff to previous 1.20 (colored) to selected 1.92.4.11 (colored)

Make sure to mark the device as dying already in the (de)activate routine.
This avoids access to it before the detach routine has blown it away.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Aug 17 16:06:21 1999 UTC (24 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.19: +5 -5 lines
Diff to previous 1.19 (colored) to selected 1.92.4.11 (colored)

Make some small changes to make it compile on OpenBSD.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Aug 14 14:49:32 1999 UTC (24 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.18: +40 -10 lines
Diff to previous 1.18 (colored) to selected 1.92.4.11 (colored)

Some changes from FreeBSD (no functional differences).

Revision 1.15.4.2 / (download) - annotate - [select for diffs], Thu Jul 1 23:40:22 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.15.4.1: +142 -69 lines
Diff to previous 1.15.4.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.92.4.11 (colored)

Sync w/ -current.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jun 30 06:44:23 1999 UTC (24 years, 9 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.17: +142 -69 lines
Diff to previous 1.17 (colored) to selected 1.92.4.11 (colored)

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

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:19:27 1999 UTC (24 years, 10 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.15: +13 -11 lines
Diff to previous 1.15 (colored) to selected 1.92.4.11 (colored)

Sync w/ -current.

Revision 1.17 / (download) - annotate - [select for diffs], Sun May 9 14:38:01 1999 UTC (24 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.16: +12 -10 lines
Diff to previous 1.16 (colored) to selected 1.92.4.11 (colored)

Handle exclusive open bit differently.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Apr 21 19:02:26 1999 UTC (25 years ago) by augustss
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.92.4.11 (colored)

Use the right buffer in immediate mode.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jan 10 11:13:36 1999 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.14: +4 -1 lines
Diff to previous 1.14 (colored) to selected 1.92.4.11 (colored)

Update/add URLs to relevant USB specs.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jan 8 11:58:25 1999 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored) to selected 1.92.4.11 (colored)

Various little fixes from the FreeBSD version.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 7 02:22:51 1999 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored) to selected 1.92.4.11 (colored)

Fix some FreeBSD compiler warnings.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 26 12:53:02 1998 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.11: +66 -47 lines
Diff to previous 1.11 (colored) to selected 1.92.4.11 (colored)

Merge changes to make the USB stack work with FreeBSD.  The original
diffs from Nick Hibma <n_hibma@freebsd.org>, but with substantial
changes from me.
XXX Not tested on FreeBSD yet.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 10 23:16:47 1998 UTC (25 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.10: +11 -8 lines
Diff to previous 1.10 (colored) to selected 1.92.4.11 (colored)

Take care of some lines > 80 chars.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 9 00:18:11 1998 UTC (25 years, 4 months ago) by augustss
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) to selected 1.92.4.11 (colored)

Improvement to the ugen driver.
Better error checking.
Some code rearrengment.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Dec 3 20:43:19 1998 UTC (25 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.8: +9 -3 lines
Diff to previous 1.8 (colored) to selected 1.92.4.11 (colored)

Handle the case where the device does not support GET_PEPORT better.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Dec 2 22:54:52 1998 UTC (25 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.92.4.11 (colored)

Even shorter printfs at attach.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Dec 2 17:20:20 1998 UTC (25 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored) to selected 1.92.4.11 (colored)

Avoid wrapping lines in attach printfs.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Nov 25 22:32:05 1998 UTC (25 years, 4 months ago) by augustss
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored) to selected 1.92.4.11 (colored)

Make the copyright header conform to the NetBSD template.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Nov 21 18:57:09 1998 UTC (25 years, 5 months ago) by augustss
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.92.4.11 (colored)

Fix some typos.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Aug 20 19:55:07 1998 UTC (25 years, 8 months ago) by veego
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored) to selected 1.92.4.11 (colored)

Add some braces to stop the new egcs warnings.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 1 20:52:45 1998 UTC (25 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.2: +4 -1 lines
Diff to previous 1.2 (colored) to selected 1.92.4.11 (colored)

Abort interrupt pipe on disconnect.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jul 13 10:49:41 1998 UTC (25 years, 9 months ago) by augustss
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.1: +58 -4 lines
Diff to previous 1.1 (colored) to selected 1.92.4.11 (colored)

Add some useful HID ioctl()s.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jul 12 19:51:59 1998 UTC (25 years, 9 months ago) by augustss
Branch: MAIN
Diff to selected 1.92.4.11 (colored)

Add USB support.  Supported so far:
* UHCI and OHCI host controllers on PCI
* Hubs
* HID devices withe special drivers for mouse and keyboard
* Printers

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




CVSweb <webmaster@jp.NetBSD.org>