CVS log for src/sys/dev/usb/ugen.c
Up to [cvs.NetBSD.org] / src / sys / dev / usb
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.171.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 16 18:59:49 2024 UTC (7 months, 3 weeks ago) by martin
Branches: netbsd-10
Diff to: previous 1.171.2.1: preferred, colored; branchpoint 1.171: preferred, colored; next MAIN 1.172: preferred, colored
Changes since revision 1.171.2.1: +8 -2
lines
Pull up following revision(s) (requested by thorpej in ticket #651):
sys/dev/usb/ugen.c: revision 1.177
ugen and ugenif share the same /dev/ugenN.xx namespace in such a way
that the device unit number does not necessarily match the /dev/ugenN.xx
unit number (N). If you ONLY have ugen devices, it happens to work out
and devpubd scripts can be extremely naive. If you ONLY have ugenif
devices, it also happens to work out, but your devpubd scripts have to
slightly more informed. If you have a mix of ugen AND ugenif devices,
though, you're pretty much out of luck.
So, this change adds a "ugen-unit" device property which devpubd scripts
can query to determine which /dev/ugenN.xx nodes a given ugen or ugenif
device is using.
Revision 1.171.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 16 18:45:39 2024 UTC (7 months, 3 weeks ago) by martin
Branches: netbsd-10
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +8 -4
lines
Pull up following revision(s) (requested by thorpej in ticket #649):
sys/dev/usb/uftdi.c: revision 1.77
share/man/man4/ugen.4: revision 1.39
sys/dev/usb/ugen.c: revision 1.176
sys/dev/usb/usbdevices.config: revision 1.43
Define a "flags 1" config directive for ugenif, which is similar to ugen's,
but rather forces the ugenif to match at the *lowest* match priority rather
than the highest. This allows ugenif to claim only otherwise unclaimed
interfaces.
Add a "match quirk" mechanism to the uftdi driver that allows it to
selectively reject individual interfaces based on the combination of
- Vendor ID
- Product ID
- Interface number
- Vendor string
- Product string
This is necessary[*] to allow some devices that would otherwise match
uftdi (and thus instantiate a ucom) to be matched by ugenif instead,
which is required to make the device available to libusb1.
[*] ...due to a deficiency in the USB stack that does not provide a
mechanism for a user-space driver to claim a device from a kernel driver
and then return it back at a later time.
Use this new match quirk mechanism to reject "interface 1" of the
FTDI 2232C-based Tigard debug board; On this board, "interface 0"
is brought out to regular TTL-level UART pins, but "interface 1" is
brought out to SWD and JTAG headers, and is really only useful when
used with something like openocd. Because the FTDI 2232C on this board
just uses the standard FTDI vendor and product IDs, it can only be
distinguished by the strings, which cannot be specified usbdevices.config,
thus necessitating the match quirk entry (that works in combination
with the ugenif entry added in usbdevices.config).
Revision 1.177: download - view: text, markup, annotated - select for diffs
Fri Mar 29 19:30:09 2024 UTC (8 months, 1 week ago) by thorpej
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +8 -2
lines
ugen and ugenif share the same /dev/ugenN.xx namespace in such a way
that the device unit number does not necessarily match the /dev/ugenN.xx
unit number (N). If you ONLY have ugen devices, it happens to work out
and devpubd scripts can be extremely naive. If you ONLY have ugenif
devices, it also happens to work out, but your devpubd scripts have to
slightly more informed. If you have a mix of ugen AND ugenif devices,
though, you're pretty much out of luck.
So, this change adds a "ugen-unit" device property which devpubd scripts
can query to determine which /dev/ugenN.xx nodes a given ugen or ugenif
device is using.
Revision 1.176: download - view: text, markup, annotated - select for diffs
Tue Mar 26 03:24:14 2024 UTC (8 months, 2 weeks ago) by thorpej
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +8 -4
lines
Define a "flags 1" config directive for ugenif, which is similar to ugen's,
but rather forces the ugenif to match at the *lowest* match priority rather
than the highest. This allows ugenif to claim only otherwise unclaimed
interfaces.
Revision 1.175: download - view: text, markup, annotated - select for diffs
Mon Nov 6 12:16:52 2023 UTC (13 months ago) by hannken
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +4 -4
lines
Undo the DPRINTFN part of the last commit. It breaks i386 at least
when KERNHIST_LOG casts the pointer to uintmax_t.
Kernel ALL/i386 compiles again.
Revision 1.174: download - view: text, markup, annotated - select for diffs
Tue Oct 10 10:58:03 2023 UTC (14 months ago) by simonb
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +6 -6
lines
Debug printf tidy up, KNF comma,space nits.
Revision 1.173: download - view: text, markup, annotated - select for diffs
Mon Jul 31 17:41:18 2023 UTC (16 months, 1 week ago) by christos
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +4 -4
lines
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.172: download - view: text, markup, annotated - select for diffs
Thu Jul 20 20:00:34 2023 UTC (16 months, 3 weeks ago) by mrg
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +61 -49
lines
various debug updates for some usb drivers
- several new *_DEBUG_DEFAULT options that allow usb debug values to
be set to a default that is non-zero:
EHCI_DEBUG_DEFAULT, UGEN_DEBUG_DEFAULT, URTWN_DEBUG_DEFAULT,
UMS_DEBUG_DEFAULT, and USB_DEBUG_DEFAULT
- ugen debug uses fewer usbhist lines for the same info
- ums.c converted from printf() to usbhist
Revision 1.171: download - view: text, markup, annotated - select for diffs
Sun Oct 23 11:06:37 2022 UTC (2 years, 1 month ago) by riastradh
Branches: 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
Branch point for: netbsd-10
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +3 -3
lines
ugen(4): Make sure opened is initialized in ugenopen.
Otherwise the error branch is based on garbage.
Revision 1.170: download - view: text, markup, annotated - select for diffs
Sun Oct 23 06:27:26 2022 UTC (2 years, 1 month ago) by skrll
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +16 -16
lines
Fix USBDEBUG build on ILP32
Revision 1.169: download - view: text, markup, annotated - select for diffs
Fri Oct 21 04:55:11 2022 UTC (2 years, 1 month ago) by mrg
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +136 -79
lines
ugen(4): convert to USBHIST style debugging.
Revision 1.168: download - view: text, markup, annotated - select for diffs
Sun Sep 26 01:16:09 2021 UTC (3 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +6 -6
lines
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.167: download - view: text, markup, annotated - select for diffs
Tue Sep 7 10:44:04 2021 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +27 -11
lines
ugen(4): Keep fields null when not allocated; kassert on close.
This avoids silent leaks in DIAGNOSTIC kernels.
Revision 1.166: download - view: text, markup, annotated - select for diffs
Tue Sep 7 10:43:51 2021 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +11 -4
lines
ugen(4): Use cv_wait loop for draining reference count on detach.
- Should be no need to use cv_timedwait because all users have now
been given a wakeup (previously writers were not, so we relied on
the timeouts to work out).
- Need to run this in a loop or else a spurious wakeup could cause us
to free data structures before the users have actually drained.
Revision 1.165: download - view: text, markup, annotated - select for diffs
Tue Sep 7 10:43:34 2021 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +3 -3
lines
ugen(4): Use cv_broadcast to wake all I/O operations on detach.
Nothing prevents two concurrent reads or two concurrent writes on any
particular ugen endpoint, as far as I can tell, and we need to wake
all of them, so use cv_broadcast rather than cv_signal on detach.
XXX It's not clear to me that cv_signal in the xfer completion
callbacks is correct either: any one consumer might use less than the
full buffer. So I think either we should use cv_broadcast, or
consumers that don't use the whole buffer need to issue cv_signal too
to wake up another consumer even if we want to avoid a thundering
herd.
Revision 1.164: download - view: text, markup, annotated - select for diffs
Tue Sep 7 10:43:21 2021 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +7 -5
lines
ugen(4): Issue explicit wakeup on detach for OUT endpoints too.
Writers can be blocked in cv_timedwait_sig too.
While here, fix comment: aborting the pipes does not cause all
waiters to wake, because the xfer completion callbacks sometimes skip
the notification. We should maybe change that, but this is a simpler
fix to ensure everyone waiting on I/O is woken to notice sc_dying.
Revision 1.163: download - view: text, markup, annotated - select for diffs
Tue Sep 7 10:43:11 2021 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +43 -21
lines
ugen(4): Ensure we close pipes on detach.
Calling vdevgone has the effect of VOP_REVOKE -> spec_node_revoke ->
VOP_CLOSE -> spec_close -> cdev_close -> ugenclose, but:
(a) the flags passed to VOP_CLOSE don't have FREAD or FWRITE, and
(b) ugenclose has no effect when sc_dying is set anyway.
So create another path into the close logic, ugen_do_close. We have
to do this in detach _after_ the references have drained because we
may free buffers that other users are still using while the reference
count is nonzero.
Revision 1.162: download - view: text, markup, annotated - select for diffs
Tue Sep 7 10:42:59 2021 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +20 -2
lines
ugen(4): Refuse non-forced detach with EBUSY if endpoints are open.
Sprinkle some comments.
Revision 1.161: download - view: text, markup, annotated - select for diffs
Tue Sep 7 10:42:48 2021 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +25 -7
lines
ugen(4): Prevent ugenopen while ugen_set_config is in progress.
(except on the control endpoint)
Although we hold the kernel lock (which we should eventually change),
we may sleep in usbd_set_config_no at which point ugenopen might
happen and start making use of endpoint state which we'll stomp all
over once usbd_set_config_no returns. Setting sc_is_open[endpt]
while we wait prevents this.
Revision 1.160: download - view: text, markup, annotated - select for diffs
Tue Sep 7 10:42:34 2021 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +8 -5
lines
ugen(4): Fix race of ugenopen against itself.
Even though we have the kernel lock held, a sleep during kmem_alloc
or usbd_open_pipe could allow another ugenopen to run concurrently
before we have marked the endpoint opened.
To avoid this, mark the endpoint open immediately (while we still
have the kernel lock held and before any sleeps, so there is no
TOCTOU error here), and then revert on unwind in the event of
failure.
Revision 1.159: download - view: text, markup, annotated - select for diffs
Tue Sep 7 10:42:22 2021 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +10 -2
lines
ugen(4): Sprinkle KERNEL_LOCKED_P assertions around sc_is_open.
Revision 1.157.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:35:02 2021 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.157: preferred, colored; next MAIN 1.158: preferred, colored
Changes since revision 1.157: +7 -7
lines
Sync w/ HEAD.
Revision 1.158: download - view: text, markup, annotated - select for diffs
Fri Dec 18 01:40:20 2020 UTC (3 years, 11 months ago) by thorpej
Branches: 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
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +7 -7
lines
Use sel{record,remove}_knote().
Revision 1.146.2.2: download - view: text, markup, annotated - select for diffs
Thu Aug 27 14:13:18 2020 UTC (4 years, 3 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE
Diff to: previous 1.146.2.1: preferred, colored; branchpoint 1.146: preferred, colored; next MAIN 1.147: preferred, colored
Changes since revision 1.146.2.1: +304 -210
lines
Pull up following revision(s) (requested by riastradh in ticket #1065):
sys/dev/usb/usbdevices.config: revision 1.41 (patch)
sys/dev/usb/ugen.c: revision 1.152
sys/dev/usb/ugen.c: revision 1.153
sys/dev/usb/ugen.c: revision 1.154
sys/dev/usb/ugen.c: revision 1.155 (patch)
sys/dev/usb/ugen.c: revision 1.156
sys/dev/usb/ugen.c: revision 1.157
Remove UGEN_ASLP microoptimization.
cv_signal already has this microoptimization.
While here, make the lock cover the relevant things we're issuing
cv_signal about -- progress toward real MP-safety.
Hold the lock over access to the data structures it covers.
Still not MPSAFE, but progress.
Convert DIAGNOSTIC prints to KASSERTs.
Share unit numbering for ugen and ugenif.
This way putting ugenif in kernel config actually works to wire it to
the /dev/ugenN.MM device nodes in userland.
Not a fully fleshed out solution to the ugen problem -- there's no
way for a userland driver to kick out a kernel driver and take over,
but this will let us, e.g., use uhidev(4) for Yubikey OTP/U2F/FIDO2
but ugen(4), with pcscd(8), for Yubikey CCID.
Fix various MP-safety issues while here (still not MPSAFE, but more
progress).
Expose Yubikey CCID interface to userland via ugenif.
Fix sloppy mistakes in previous.
1. Give the offset of the rbnode, not some other random members to
overwrite with garbage.
2. Don't try to unlock a mutex at NULL.
3. Make sure all paths out after ugenif_acquire go via
ugenif_release.
Fix ugen detach after partial attach.
While here, register null pmf handler even for partially attached
devices so they don't needlessly interfere with suspend.
Revision 1.157: download - view: text, markup, annotated - select for diffs
Tue Aug 18 14:32:34 2020 UTC (4 years, 3 months ago) by riastradh
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +12 -9
lines
Fix ugen detach after partial attach.
While here, register null pmf handler even for partially attached
devices so they don't needlessly interfere with suspend.
Reported-by: syzbot+5a091d2e62da20b77259@syzkaller.appspotmail.com
Revision 1.156: download - view: text, markup, annotated - select for diffs
Sun Aug 16 06:17:31 2020 UTC (4 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +17 -14
lines
Fix sloppy mistakes in previous.
1. Give the offset of the rbnode, not some other random members to
overwrite with garbage.
2. Don't try to unlock a mutex at NULL.
3. Make sure all paths out after ugenif_acquire go via
ugenif_release.
Revision 1.155: download - view: text, markup, annotated - select for diffs
Sun Aug 16 02:37:19 2020 UTC (4 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +213 -82
lines
Share unit numbering for ugen and ugenif.
This way putting ugenif in kernel config actually works to wire it to
the /dev/ugenN.MM device nodes in userland.
Not a fully fleshed out solution to the ugen problem -- there's no
way for a userland driver to kick out a kernel driver and take over,
but this will let us, e.g., use uhidev(4) for Yubikey OTP/U2F/FIDO2
but ugen(4), with pcscd(8), for Yubikey CCID.
Fix various MP-safety issues while here (still not MPSAFE, but more
progress).
Revision 1.154: download - view: text, markup, annotated - select for diffs
Sun Aug 16 02:34:54 2020 UTC (4 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +9 -41
lines
Convert DIAGNOSTIC prints to KASSERTs.
Revision 1.153: download - view: text, markup, annotated - select for diffs
Sun Aug 16 02:34:20 2020 UTC (4 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +53 -37
lines
Hold the lock over access to the data structures it covers.
Still not MPSAFE, but progress.
Revision 1.152: download - view: text, markup, annotated - select for diffs
Sun Aug 16 02:33:17 2020 UTC (4 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +20 -47
lines
Remove UGEN_ASLP microoptimization.
cv_signal already has this microoptimization.
While here, make the lock cover the relevant things we're issuing
cv_signal about -- progress toward real MP-safety.
Revision 1.139.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:13 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.139.4.1: preferred, colored; branchpoint 1.139: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139.4.1: +31 -29
lines
Merge changes from current as of 20200406
Revision 1.151: download - view: text, markup, annotated - select for diffs
Sat Mar 21 06:54:56 2020 UTC (4 years, 8 months ago) by skrll
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +3 -3
lines
KNG
Revision 1.150: download - view: text, markup, annotated - select for diffs
Sat Mar 14 02:35:33 2020 UTC (4 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +3 -3
lines
revert the 0x% -> %# change for fixed width formats pointed out by uwe.
Revision 1.149: download - view: text, markup, annotated - select for diffs
Fri Mar 13 18:17:40 2020 UTC (4 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +3 -3
lines
PR/55068: sc.dying: Fix printf formats:
- no %s/%p for kernel log
- 0x% -> %#
- always %j for kernel log
Revision 1.146.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 11 14:56:36 2019 UTC (5 years ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-0-RELEASE,
netbsd-9-0-RC2
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +4 -2
lines
Pull up following revision(s) (requested by bouyer in ticket #544):
sys/dev/usb/ugen.c: revision 1.148
reading usbdi.c it looks like usbd_get_config_descriptor() can actually
return NULL, so check for this.
I got NULL pointer dereference here with a device showing:
[ 303.732632] ugen0: autoconfiguration error: setting configuration index 0 failed
Revision 1.148: download - view: text, markup, annotated - select for diffs
Wed Dec 11 11:54:23 2019 UTC (5 years ago) by bouyer
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +4 -2
lines
reading usbdi.c it looks like usbd_get_config_descriptor() can actually
return NULL, so check for this.
I got NULL pointer dereference here with a device showing:
[ 303.732632] ugen0: autoconfiguration error: setting configuration index 0 failed
Revision 1.147: download - view: text, markup, annotated - select for diffs
Sun Dec 1 08:27:54 2019 UTC (5 years ago) by maxv
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +28 -28
lines
localify
Revision 1.139.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:34 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +49 -41
lines
Sync with HEAD
Revision 1.146: download - view: text, markup, annotated - select for diffs
Sun May 5 03:17:54 2019 UTC (5 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-0-RC1
Branch point for: netbsd-9
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +5 -3
lines
remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h
Revision 1.145: download - view: text, markup, annotated - select for diffs
Fri Mar 1 11:06:56 2019 UTC (5 years, 9 months ago) by pgoyette
Branches: MAIN
CVS tags: isaki-audio2-base,
isaki-audio2
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +3 -3
lines
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.144: download - view: text, markup, annotated - select for diffs
Thu Feb 7 13:20:41 2019 UTC (5 years, 10 months ago) by skrll
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +7 -6
lines
Remove (mostly useless) usb_detach_{broadcast,wait} and replace with
cv_{broadcast,timedwait}
Really should loop on conditon.
Revision 1.143: download - view: text, markup, annotated - select for diffs
Tue Jan 29 09:28:50 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +3 -3
lines
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.142: download - view: text, markup, annotated - select for diffs
Sun Jan 27 02:08:42 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +13 -8
lines
Merge the [pgoyette-compat] branch
Revision 1.139.2.10: download - view: text, markup, annotated - select for diffs
Tue Jan 22 07:42:41 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.139.2.9: preferred, colored; branchpoint 1.139: preferred, colored; next MAIN 1.140: preferred, colored
Changes since revision 1.139.2.9: +10 -10
lines
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.139.2.9: download - view: text, markup, annotated - select for diffs
Fri Jan 18 00:01:01 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139.2.8: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.8: +3 -3
lines
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.139.2.8: download - view: text, markup, annotated - select for diffs
Mon Jan 14 13:34:27 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139.2.7: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.7: +6 -6
lines
Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.
Revision 1.139.2.7: download - view: text, markup, annotated - select for diffs
Sun Jan 13 10:49:50 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139.2.6: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.6: +4 -4
lines
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.139.2.6: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:47 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139.2.5: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.5: +10 -10
lines
Sync with HEAD, resolve a couple of conflicts
Revision 1.134.10.2: download - view: text, markup, annotated - select for diffs
Mon Nov 12 12:17:06 2018 UTC (6 years, 1 month ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.134.10.1: preferred, colored; branchpoint 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134.10.1: +10 -10
lines
Pull up following revision(s) (requested by manu in ticket #1090):
sys/dev/usb/ugen.c: revision 1.141
Enfore USB timeout on ugen(4) write operations
Revision 1.141: download - view: text, markup, annotated - select for diffs
Thu Nov 8 01:59:53 2018 UTC (6 years, 1 month ago) by manu
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +10 -10
lines
Enfore USB timeout on ugen(4) write operations
Revision 1.139.2.5: download - view: text, markup, annotated - select for diffs
Sat Sep 29 21:36:14 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139.2.4: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.4: +3 -5
lines
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.139.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 18 23:03:55 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139.2.3: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.3: +3 -3
lines
The COMPAT_HOOK macros were renamed to MODULE_HOOK, adjust all callers
Revision 1.139.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 18 01:15:58 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139.2.2: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.2: +12 -4
lines
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.139.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:04 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139.2.1: preferred, colored; branchpoint 1.139: preferred, colored
Changes since revision 1.139.2.1: +22 -22
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.140: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:34 2018 UTC (6 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +22 -22
lines
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.124.2.5: download - view: text, markup, annotated - select for diffs
Sat Aug 25 17:00:14 2018 UTC (6 years, 3 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.124.2.4: preferred, colored; branchpoint 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124.2.4: +24 -20
lines
Pull up following revision(s) (requested by mrg in ticket #1632):
sys/dev/usb/usbdivar.h: revision 1.117
sys/external/bsd/dwc2/dwc2.c: revision 1.52
sys/dev/usb/xhcivar.h: revision 1.10
sys/dev/usb/motg.c: revision 1.22
sys/dev/usb/ehci.c: revision 1.260
sys/dev/usb/ehci.c: revision 1.261
sys/dev/usb/xhci.c: revision 1.96
sys/dev/usb/ohci.c: revision 1.282
sys/dev/usb/ohci.c: revision 1.283
sys/dev/usb/ehcivar.h: revision 1.45
sys/dev/usb/uhci.c: revision 1.281
sys/dev/usb/uhci.c: revision 1.282
sys/dev/usb/usbdi.c: revision 1.177
sys/dev/usb/ohcivar.h: revision 1.60
sys/dev/usb/uhcivar.h: revision 1.55
(all via patch)
pull across abort fixes from nick-nhusb. add more abort fixes, using
ideas from Taylor and Nick, and myself. special thanks to both who
inspired much of the code here, if not wrote it directly.
among other problems, this assert should no longer trigger:
panic: kernel diagnostic assertion "xfer->ux_state == XFER_ONQU" failed: file "/current/src/sys/dev/usb/usbdi.c", line 914
using usbhist i was able to track down my instance of it being related
to userland close() beginning, dropping the sc_lock, and then the usb
softintr completes the transfer normally, and when it is done, the
abort path attempts to re-complete the transfer, and the above assert
is tripped.
changes from nhusb were commited with these logs:
--
Move the struct usb_task to struct usbd_xfer for everyone to use.
--
Set device transfer status to USBD_IN_PROGRESS if start methods succeeds
--
Actually set the transfer status on transfers in ohci_abort_xfer and
the controller is dying
--
Don't supply the lock to callout_halt when polling as it won't be held
--
Improve transfer abort
--
Mark device transfers as USBD_IN_PROGRESS appropriately and improve
abort handling
--
--
Mark device transfers as USBD_IN_PROGRESS appropriately and improve
abort handling
--
additional changes include:
- initialise the usb abort task in the HCI allocx routine, so that it
can be safely usb_rem_task()'d.
- rework the handling of softintr vs cancellation vs timeout abort based
upon a scheme from Taylor:
when completing a transfer normally:
- if the status is not in progress, it must be cancelled or timed out,
and we should not process this xfer.
- set the status as normal.
- unconditionallly callout_stop() and usb_rem_task(). they're safe and
either aren't running, or will run and do nothing.
- finally call usb_transfer_complete().
when aborting a transfer:
- status should be cancelled or timed out.
- if cancelling, callout_halt and usb_rem_task_wait() to make sure the
timer is either done or cancelled.
- at this point, the ux_status must not be cancelled or timed out, and
if it is not in progress we're done.
- set the status.
- if the controller is dying, just return.
- perform HCI-specific tasks to abort this xfer.
- finally call usb_transfer_complete().
for the timeout and timeout task:
- if the HCI is not dying, and the ux_status is in progress, then
trigger the usb abort task.
- remove UXFER_ABORTWAIT and UXFER_ABORTING.
tested on:
- multiple PC systems with several types of devices: ugen/UPS, ucom,
umass with disk, ssd and cdrom backends, kbd, ms, using uhci, ehci
and xhci.
- erlite3: sd@umass on dwc2.
- sunblade2000: kbd/ms and umass disk on ohci.
untested:
- motg, slhci and ahci. motg has some portion of the new scheme
applied, but slhci and ahci require more study.
future work includes pushing a lot of the common abort handling into
usbdi.c and leaving upm_abort() for HC specific tasks, but this change
is pullup-able to netbsd-7 and netbsd-8 as it does not change any
external API, as well as removing over 100 lines of code while adding
over 30 new asserts.
XXX: pullup-7, pullup-8.
fix DIAGNOSTIC build by not copying ub_usepolling to stack before use
Sprinkle __diagused
Revision 1.139.2.1: download - view: text, markup, annotated - select for diffs
Thu Mar 29 11:20:02 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +7 -8
lines
Split out the usb compat_30 code and add it to the module
Revision 1.139: download - view: text, markup, annotated - select for diffs
Mon Mar 5 09:35:01 2018 UTC (6 years, 9 months ago) by ws
Branches: 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
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +4 -6
lines
Fix last:
Since config(1) could not distinguish between device and
interface attachments, it was generating only the latter.
Thus devices without their own driver wouldn't match the
ugen driver anymore.
Fix this by using a different device name for interface attachments.
Revision 1.138: download - view: text, markup, annotated - select for diffs
Tue Feb 20 15:48:37 2018 UTC (6 years, 9 months ago) by ws
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +71 -32
lines
Attach uftdi to each interface found in the device separately.
This allows for other drivers (e.g. ugen) to attach to some of
the other interfaces.
Allow ugen to attach only to some of the interfaces found in a device.
Revision 1.124.2.4: download - view: text, markup, annotated - select for diffs
Mon Feb 19 19:33:06 2018 UTC (6 years, 9 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.124.2.3: preferred, colored; branchpoint 1.124: preferred, colored
Changes since revision 1.124.2.3: +4 -6
lines
Pull up following revision(s) (requested by skrll in ticket #1556):
sys/dev/usb/if_athn_usb.c: 1.25
sys/dev/usb/if_atu.c: 1.56
sys/dev/usb/if_aue.c: 1.142
sys/dev/usb/if_axe.c: 1.84
sys/dev/usb/if_axen.c: 1.12
sys/dev/usb/if_cdce.c: 1.45
sys/dev/usb/if_cue.c: 1.77
sys/dev/usb/if_kue.c: 1.91
sys/dev/usb/if_otus.c: 1.32
sys/dev/usb/if_rum.c: 1.59
sys/dev/usb/if_run.c: 1.25
sys/dev/usb/if_smsc.c: 1.33
sys/dev/usb/if_udav.c: 1.52
sys/dev/usb/if_upgt.c: 1.18
sys/dev/usb/if_upl.c: 1.61
sys/dev/usb/if_ural.c: 1.53
sys/dev/usb/if_url.c: 1.57
sys/dev/usb/if_urndis.c: 1.17
sys/dev/usb/if_urtw.c: 1.14
sys/dev/usb/if_urtwn.c: 1.56
sys/dev/usb/if_zyd.c: 1.45
sys/dev/usb/irmce.c: 1.4
sys/dev/usb/pseye.c: 1.24
sys/dev/usb/ubt.c: 1.60
sys/dev/usb/ucom.c: 1.120
sys/dev/usb/udsir.c: 1.6
sys/dev/usb/ugen.c: 1.137
sys/dev/usb/uhso.c: 1.27
sys/dev/usb/uirda.c: 1.43
sys/dev/usb/ulpt.c: 1.99
sys/dev/usb/umass.c: 1.163
sys/dev/usb/umidi.c: 1.74
sys/dev/usb/uscanner.c: 1.82
sys/dev/usb/usscanner.c: 1.43
sys/dev/usb/ustir.c: 1.39
sys/dev/usb/utoppy.c: 1.30
sys/dev/usb/uvideo.c: 1.46
PR kern/52931 Kernel panics with Atheros usb wireless interface
Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is
supplied wherever such a transfer is setup. We can drop
USBD_SHORT_XFER_OK as it has not bearing on number of TDs
Revision 1.134.10.1: download - view: text, markup, annotated - select for diffs
Wed Jan 31 18:01:55 2018 UTC (6 years, 10 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +4 -6
lines
Pull up following revision(s) (requested by skrll in ticket #509):
sys/dev/usb/if_ural.c: revision 1.53
sys/dev/usb/if_run.c: revision 1.25
sys/dev/usb/ustir.c: revision 1.39
sys/dev/usb/irmce.c: revision 1.4
sys/dev/usb/if_urtwn.c: revision 1.56
sys/dev/usb/pseye.c: revision 1.24
sys/dev/usb/if_rum.c: revision 1.59
sys/dev/usb/if_upl.c: revision 1.61
sys/dev/usb/ucom.c: revision 1.120
sys/dev/usb/if_zyd.c: revision 1.45
sys/dev/usb/if_axen.c: revision 1.12
sys/dev/usb/umidi.c: revision 1.74
sys/dev/usb/if_udav.c: revision 1.52
sys/dev/usb/if_athn_usb.c: revision 1.25
sys/dev/usb/usscanner.c: revision 1.43
sys/dev/usb/ualea.c: revision 1.6 - 1.9
sys/dev/usb/if_upgt.c: revision 1.18
sys/dev/usb/if_atu.c: revision 1.56
sys/dev/usb/utoppy.c: revision 1.30
sys/dev/usb/ubt.c: revision 1.60
sys/dev/usb/if_urtw.c: revision 1.14
sys/dev/usb/uirda.c: revision 1.43
sys/dev/usb/umass.c: revision 1.163
sys/dev/usb/if_cdce.c: revision 1.45
sys/dev/usb/if_cue.c: revision 1.77
sys/dev/usb/if_kue.c: revision 1.91
sys/dev/usb/uvideo.c: revision 1.46
sys/dev/usb/uhso.c: revision 1.27
sys/dev/usb/if_smsc.c: revision 1.33
sys/dev/usb/ugen.c: revision 1.137
sys/dev/usb/if_axe.c: revision 1.84
sys/dev/usb/if_aue.c: revision 1.142
sys/dev/usb/uscanner.c: revision 1.82
sys/dev/usb/if_urndis.c: revision 1.17
sys/dev/usb/udsir.c: revision 1.6
sys/dev/usb/if_url.c: revision 1.57
sys/dev/usb/if_otus.c: revision 1.32
sys/dev/usb/ulpt.c: revision 1.99
PR kern/52931 Kernel panics with Atheros usb wireless interface
Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is
supplied wherever such a transfer is setup. We can drop
USBD_SHORT_XFER_OK as it has not bearing on number of TDs
ualea: Tidy up a bit. Fulfil requests completely.
Don't subtract uninitialized pktsize in error path.
Revision 1.137: download - view: text, markup, annotated - select for diffs
Sun Jan 21 13:57:12 2018 UTC (6 years, 10 months ago) by skrll
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +4 -6
lines
PR kern/52931 Kernel panics with Atheros usb wireless interface
Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is
supplied wherever such a transfer is setup. We can drop
USBD_SHORT_XFER_OK as it has not bearing on number of TDs
Revision 1.120.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:34 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.120.2.2: preferred, colored; branchpoint 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120.2.2: +368 -365
lines
update from HEAD
Revision 1.136: download - view: text, markup, annotated - select for diffs
Wed Oct 25 08:12:39 2017 UTC (7 years, 1 month ago) by maya
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +26 -10
lines
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.135: download - view: text, markup, annotated - select for diffs
Tue Sep 5 05:03:02 2017 UTC (7 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +24 -20
lines
remove redundant checks against sc and sc->sc_dying.
check sc_dying in more places.
Revision 1.124.2.3: download - view: text, markup, annotated - select for diffs
Wed Apr 5 19:54:20 2017 UTC (7 years, 8 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.124.2.2: preferred, colored; branchpoint 1.124: preferred, colored
Changes since revision 1.124.2.2: +313 -328
lines
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.124.2.2.2.3: download - view: text, markup, annotated - select for diffs
Fri Mar 31 10:05:07 2017 UTC (7 years, 8 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.124.2.2.2.2: preferred, colored; branchpoint 1.124.2.2: preferred, colored; next MAIN 1.124.2.3: preferred, colored
Changes since revision 1.124.2.2.2.2: +3 -3
lines
Whitespace
Revision 1.124.2.2.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 26 21:54:24 2017 UTC (7 years, 10 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.124.2.2.2.1: preferred, colored; branchpoint 1.124.2.2: preferred, colored
Changes since revision 1.124.2.2.2.1: +9 -6
lines
Sync with HEAD/nhusb
Revision 1.126.2.16: download - view: text, markup, annotated - select for diffs
Thu Oct 27 07:46:19 2016 UTC (8 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.15: preferred, colored; branchpoint 1.126: preferred, colored; next MAIN 1.127: preferred, colored
Changes since revision 1.126.2.15: +9 -6
lines
Retire usb_detach_{wait,broadcast} and simply use condvar(9) instead
Revision 1.124.2.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 6 20:33:09 2016 UTC (8 years, 3 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.124.2.2: preferred, colored
Changes since revision 1.124.2.2: +306 -324
lines
First pass at netbsd-7 updated with USB code from HEAD
Revision 1.126.2.15: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:16 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.14: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.14: +10 -11
lines
Sync with HEAD
Revision 1.134: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:42 2016 UTC (8 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +10 -11
lines
KNF. Remove extra spaces. No functional change.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Sat Apr 23 10:15:32 2016 UTC (8 years, 7 months ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +289 -309
lines
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.126.2.14: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:19 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.13: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.13: +24 -23
lines
Sync with HEAD
Revision 1.132: download - view: text, markup, annotated - select for diffs
Sun Mar 13 07:01:43 2016 UTC (8 years, 9 months ago) by skrll
Branches: MAIN
CVS tags: nick-nhusb-base-20160422,
nick-nhusb-base-20160319
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +4 -4
lines
KNF
Revision 1.124.4.2: download - view: text, markup, annotated - select for diffs
Mon Mar 7 14:37:48 2016 UTC (8 years, 9 months ago) by martin
Branches: netbsd-7-0
CVS tags: netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE
Diff to: previous 1.124.4.1: preferred, colored; branchpoint 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124.4.1: +3 -2
lines
Additionally pull up r1.131 for ticket #1124 (requested by skrll)
Revision 1.124.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 7 14:36:55 2016 UTC (8 years, 9 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1
Branch point for: netbsd-7-nhusb
Diff to: previous 1.124.2.1: preferred, colored; branchpoint 1.124: preferred, colored
Changes since revision 1.124.2.1: +3 -2
lines
Additionally pull up r1.131 for ticket #1124 (requested by skrll)
Revision 1.124.4.1: download - view: text, markup, annotated - select for diffs
Sun Mar 6 18:10:20 2016 UTC (8 years, 9 months ago) by martin
Branches: netbsd-7-0
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +23 -23
lines
Pull up following revision(s) (requested by skrll in ticket #1124):
sys/dev/usb/ugen.c: revision 1.127
sys/dev/usb/ugen.c: revision 1.128
sys/dev/usb/ugen.c: revision 1.129
sys/dev/usb/ugen.c: revision 1.130
s/0/NULL/
One more s/0/NULL/
Remove always true conditional
Only clear the endpoint information in ugen_set_interface only if setting
the new altno suceeds.
Avoids the null de-ref in PR/50597 and PR/50810
Revision 1.124.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 6 18:08:04 2016 UTC (8 years, 9 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +23 -23
lines
Pull up following revision(s) (requested by skrll in ticket #1124):
sys/dev/usb/ugen.c: revision 1.127
sys/dev/usb/ugen.c: revision 1.128
sys/dev/usb/ugen.c: revision 1.129
sys/dev/usb/ugen.c: revision 1.130
s/0/NULL/
One more s/0/NULL/
Remove always true conditional
Only clear the endpoint information in ugen_set_interface only if setting
the new altno suceeds.
Avoids the null de-ref in PR/50597 and PR/50810
Revision 1.131: download - view: text, markup, annotated - select for diffs
Mon Feb 22 08:06:47 2016 UTC (8 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +3 -2
lines
Provide a ugen_clear_endpoints declaration
Revision 1.130: download - view: text, markup, annotated - select for diffs
Mon Feb 22 07:46:00 2016 UTC (8 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +20 -20
lines
Only clear the endpoint information in ugen_set_interface only if setting
the new altno suceeds.
Avoids the null de-ref in PR/50597 and PR/50810
Revision 1.129: download - view: text, markup, annotated - select for diffs
Sun Feb 21 09:50:10 2016 UTC (8 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +5 -5
lines
Remove always true conditional
Revision 1.128: download - view: text, markup, annotated - select for diffs
Sat Feb 20 17:07:32 2016 UTC (8 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +3 -3
lines
One more s/0/NULL/
Revision 1.127: download - view: text, markup, annotated - select for diffs
Sat Feb 20 09:38:28 2016 UTC (8 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +5 -5
lines
s/0/NULL/
Revision 1.126.2.13: download - view: text, markup, annotated - select for diffs
Mon Dec 28 10:15:09 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.12: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.12: +3 -3
lines
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.126.2.12: download - view: text, markup, annotated - select for diffs
Mon Dec 28 09:26:33 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.11: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.11: +4 -4
lines
Strictly follow the sequence abort pipe, destroy xfers, and close pipe as
API now requires. Plug some memory leaks in some drivers while doing
this.
Also, remove up_refcnt as it was broken and helped leak more memory.
Revision 1.126.2.11: download - view: text, markup, annotated - select for diffs
Tue Oct 6 21:32:15 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.10: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.10: +56 -82
lines
Move from usbd_{alloc,free}_xfer and usbd_{alloc,free}_buffer to
usbd_{create,destroy}_xfer. The API change will allow future changes
to HCDs to simplify the transfer resource allocation and activation.
Several devices tested including ucom, umass, smsc, uvideo, and uaudio.
Revision 1.126.2.10: download - view: text, markup, annotated - select for diffs
Tue Jun 23 12:03:29 2015 UTC (9 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.9: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.9: +5 -5
lines
KNF
Revision 1.126.2.9: download - view: text, markup, annotated - select for diffs
Sat May 9 09:35:20 2015 UTC (9 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.8: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.8: +6 -6
lines
Use NULL not 0 for pointer comparison
Revision 1.126.2.8: download - view: text, markup, annotated - select for diffs
Sat Mar 21 11:33:37 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.7: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.7: +5 -5
lines
Add prefixes to attach_arg structure member names. No functional change.
Revision 1.126.2.7: download - view: text, markup, annotated - select for diffs
Thu Mar 19 17:26:43 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.6: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.6: +24 -24
lines
Do the same as OpenBSD and get rid of the *_handle typedefs and use
plain structures insteads
Revision 1.126.2.6: download - view: text, markup, annotated - select for diffs
Sat Dec 6 08:27:23 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.5: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.5: +14 -14
lines
KNF. Remove argument name from function declarations.
No functional change.
Revision 1.126.2.5: download - view: text, markup, annotated - select for diffs
Fri Dec 5 09:37:49 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.4: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.4: +142 -142
lines
KNF. Remove ( ) from return statements.
Revision 1.126.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 3 14:18:07 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.3: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.3: +46 -40
lines
Replace malloc(9) with kmem(9)
Revision 1.126.2.3: download - view: text, markup, annotated - select for diffs
Tue Dec 2 09:00:34 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.2: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.2: +9 -9
lines
Step #1 of memory allocation re-organisation.
Centralised the buffer allocation routine which now supports DMA
and non-DMA capable host controllers. Remove the
ubm_{alloc,free}m methods from usbd_bus_methods.
The buffer allocation is only allowed in thread context and,
therefore, negates the usefulness of the reserve dma code which
is removed in this change.
USBD_NO_COPY is also no longer required as usbd_transfer and
usbd_transfer_complete now track buffer usage and handle any
copying.
Revision 1.126.2.2: download - view: text, markup, annotated - select for diffs
Mon Dec 1 13:03:05 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126.2.1: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.2.1: +5 -5
lines
Remove the lbl argument from usbd_{bulk,intr}_transfer.
Revision 1.126.2.1: download - view: text, markup, annotated - select for diffs
Sun Nov 30 12:18:58 2014 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +19 -19
lines
Use C99 types. u_int{8,16,32,64}_t to uint{8,16,32,64}_t.
No functional change.
Revision 1.126: download - view: text, markup, annotated - select for diffs
Sat Sep 20 08:45:23 2014 UTC (10 years, 2 months ago) by gson
Branches: MAIN
CVS tags: nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +3 -2
lines
Include opt_usb.h to make "options UGEN_DEBUG" work.
Revision 1.125: download - view: text, markup, annotated - select for diffs
Fri Sep 5 05:31:15 2014 UTC (10 years, 3 months ago) by matt
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +10 -8
lines
Don't nest structure definitions.
Revision 1.120.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:51 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.120.2.1: preferred, colored; branchpoint 1.120: preferred, colored
Changes since revision 1.120.2.1: +14 -4
lines
Rebase to HEAD as of a few days ago.
Revision 1.123.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:59 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.123: preferred, colored; next MAIN 1.124: preferred, colored
Changes since revision 1.123: +3 -2
lines
Rebase.
Revision 1.124: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:39 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
netbsd-7-base,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1
Branch point for: netbsd-7-0,
netbsd-7
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +3 -2
lines
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.111.8.6: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:37 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.111.8.5: preferred, colored; branchpoint 1.111: preferred, colored; next MAIN 1.112: preferred, colored
Changes since revision 1.111.8.5: +13 -4
lines
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.122.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:47 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.122: preferred, colored; next MAIN 1.123: preferred, colored
Changes since revision 1.122: +13 -4
lines
sync with head
Revision 1.123: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:29 2014 UTC (10 years, 8 months ago) by dholland
Branches: 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
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +13 -4
lines
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.120.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:38 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +40 -28
lines
resync with head
Revision 1.111.8.5: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:13 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.111.8.4: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.8.4: +12 -10
lines
sync with head
Revision 1.111.8.4: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:35 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.111.8.3: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.8.3: +30 -20
lines
sync with (a bit old) head
Revision 1.122: download - view: text, markup, annotated - select for diffs
Sat Jan 5 01:30:16 2013 UTC (11 years, 11 months ago) by christos
Branches: 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
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +12 -10
lines
- need opt_usb.h if depending on USB_DEBUG
- remove trailing whitespace
- add missing KERNEL_RCSID
Revision 1.121: download - view: text, markup, annotated - select for diffs
Tue Dec 4 05:50:57 2012 UTC (12 years ago) by riastradh
Branches: MAIN
CVS tags: yamt-pagecache-base7
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +30 -20
lines
Fix some error branches in ugen.
There remains some cruft that should perhaps be better organized, but
at least this should reduce some memory leaks in screw cases, and at
least this does fix panics when plugging in and unplugging a USB
device with a botched configuration (a beaglebone with a hosed sd
card).
Revision 1.111.8.3: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:08 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.111.8.2: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.8.2: +95 -47
lines
sync with head
Revision 1.120: download - view: text, markup, annotated - select for diffs
Sun Jun 10 06:15:53 2012 UTC (12 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +95 -47
lines
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.111.8.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:08:06 2012 UTC (12 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.111.8.1: preferred, colored; branchpoint 1.111: preferred, colored
Changes since revision 1.111.8.1: +2 -3
lines
sync with head.
Revision 1.114.2.5: download - view: text, markup, annotated - select for diffs
Sat May 12 21:28:58 2012 UTC (12 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.114.2.4: preferred, colored; branchpoint 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114.2.4: +95 -47
lines
port this to usbmp and also make it largely MPSAFE, but not yet enough
for D_MPSAFE to be added. should be merge-ready now, but needs testing.
Revision 1.114.2.4: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:05:01 2012 UTC (12 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.114.2.3: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.3: +2 -3
lines
sync to latest -current.
Revision 1.119: download - view: text, markup, annotated - select for diffs
Wed Apr 25 07:57:15 2012 UTC (12 years, 7 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base5,
jmcneill-usbmp-base9,
jmcneill-usbmp-base10
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +2 -3
lines
Remove duplicate break. PR 46368 from Henning Petersen.
Revision 1.111.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:07 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +16 -79
lines
sync with head
Revision 1.118: download - view: text, markup, annotated - select for diffs
Tue Mar 6 03:35:29 2012 UTC (12 years, 9 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base4,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +6 -6
lines
pull down from usbmp branch:
- rename usb_detach_{wake,waitup}() to usb_detach_{wake,waitup}old()
- use some c99 struct .initialisers
Revision 1.114.2.3: download - view: text, markup, annotated - select for diffs
Sun Feb 26 07:12:50 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.114.2.2: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.2: +6 -6
lines
rename old usb_detach_wakeup/wait to usb_detach_{wake,wakeup}old().
Revision 1.114.2.2: download - view: text, markup, annotated - select for diffs
Fri Feb 24 09:11:43 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.114.2.1: preferred, colored; branchpoint 1.114: preferred, colored
Changes since revision 1.114.2.1: +2 -70
lines
sync to -current.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Fri Feb 24 06:48:25 2012 UTC (12 years, 9 months ago) by mrg
Branches: MAIN
CVS tags: jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +2 -70
lines
remove any remnants of freebsd/openbsd code.
Revision 1.114.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:09 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +2 -2
lines
merge to -current.
Revision 1.99.8.4: download - view: text, markup, annotated - select for diffs
Wed Jan 25 17:33:17 2012 UTC (12 years, 10 months ago) by riz
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2
Diff to: previous 1.99.8.3: preferred, colored; branchpoint 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99.8.3: +6 -6
lines
Pull up following revision(s) (requested by gavan in ticket #1697):
sys/dev/usb/ugen.c: revision 1.112
Implement timeouts when blocking the calling process with tsleep.
Fixes PR kern/33452
Revision 1.116: download - view: text, markup, annotated - select for diffs
Fri Dec 23 00:51:46 2011 UTC (12 years, 11 months ago) by jakllsch
Branches: MAIN
CVS tags: netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
jmcneill-usbmp-base2
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +11 -11
lines
Revert previous due to active usbmp branch(es).
Revision 1.115: download - view: text, markup, annotated - select for diffs
Thu Dec 22 20:07:01 2011 UTC (12 years, 11 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +11 -11
lines
Adjust-away inconsistent and trailing whitespace.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Thu Dec 1 22:42:41 2011 UTC (13 years ago) by jakllsch
Branches: MAIN
CVS tags: mrg-ohci-jmcneill-usbmp-base,
mrg-ohci-jmcneill-usbmp,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +2 -3
lines
Don't double clfree() when closing an interrupt endpoint.
From Geoff C. Wing in PR#37934.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Fri Nov 25 02:59:54 2011 UTC (13 years ago) by jakllsch
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +8 -2
lines
Prevent poll and kqueue on the control endpoint.
Addresses PR#33352.
(The control endpoint doesn't support pipes, so this would be of dubious
usefulness even if it didn't expose bugs.)
Revision 1.112: download - view: text, markup, annotated - select for diffs
Sun Nov 20 22:27:39 2011 UTC (13 years ago) by gavan
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +6 -6
lines
Implement timeouts when blocking the calling process with tsleep.
Fixes PR kern/33452
Revision 1.109.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:54:14 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +59 -36
lines
sync with head
Revision 1.108.2.3: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:38 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.108.2.2: preferred, colored; branchpoint 1.108: preferred, colored; next MAIN 1.109: preferred, colored
Changes since revision 1.108.2.2: +56 -33
lines
Sync with HEAD.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Wed Nov 3 22:34:23 2010 UTC (14 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
uebayasi-xip-base4,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +56 -33
lines
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.108.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:45 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.108.2.1: preferred, colored; branchpoint 1.108: preferred, colored
Changes since revision 1.108.2.1: +3 -3
lines
Sync with HEAD.
Revision 1.97.4.4: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:15 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.97.4.3: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.4.3: +5 -5
lines
sync with head.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Tue Jul 27 20:20:46 2010 UTC (14 years, 4 months ago) by jakllsch
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base3,
uebayasi-xip-base2
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +5 -5
lines
Tune ugen(4) isochronous parameters to better support high speed pipes.
Fixes PR#43159.
Justification:
UGEN_NISORFRMS, previously 4, is now 8 because that's the number of
microframes per frame on a high speed bus. This allows data to be
transfered every microframe if necessary.
UGEN_NISOREQS, previously 6, is now 4. This is harder to justify,
but I didn't think the total number of buffer frames needed to be
much more than it was.
UGEN_NISOFRAMES, previously 500, is now (UGEN_NISORFRMS * UGEN_NISOREQS)
(32 with values as above). This is all the more we've actually used.
Revision 1.108.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:52 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +8 -8
lines
Sync with HEAD.
Revision 1.99.8.1.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:27:53 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-k15
Diff to: previous 1.99.8.1: preferred, colored; next MAIN 1.99.8.2: preferred, colored
Changes since revision 1.99.8.1: +10 -8
lines
sync to netbsd-5
Revision 1.97.4.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:06 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.97.4.2: preferred, colored; branchpoint 1.97: preferred, colored
Changes since revision 1.97.4.2: +26 -73
lines
sync with head
Revision 1.99.8.3: download - view: text, markup, annotated - select for diffs
Tue Mar 9 03:54:44 2010 UTC (14 years, 9 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
matt-nb5-pq3-base,
matt-nb5-pq3
Diff to: previous 1.99.8.2: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.8.2: +8 -8
lines
Pull up following revision(s) (requested by pooka in ticket #1332):
sys/dev/usb/ugen.c: revision 1.109
Replace USB_GET_SC() instances with USB_GET_SC_OPEN(). The latter
is exactly like the former, except it returns with ENXIO if sc is
NULL instead of continuing on to use it. Most of the time this is
handled by the fd layer and you get EBADF, but sometimes it's
possible to race into the device method for whatever reason and
you get a kernel panic. I have no idea what the "whatever reason"
might be.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Fri Feb 19 12:40:47 2010 UTC (14 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base1
Branch point for: rmind-uvmplock
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +8 -8
lines
Replace USB_GET_SC() instances with USB_GET_SC_OPEN(). The latter
is exactly like the former, except it returns with ENXIO if sc is
NULL instead of continuing on to use it. Most of the time this is
handled by the fd layer and you get EBADF, but sometimes it's
possible to race into the device method for whatever reason and
you get a kernel panic. I have no idea what the "whatever reason"
might be.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Thu Dec 24 01:32:22 2009 UTC (14 years, 11 months ago) by jakllsch
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +2 -3
lines
defflag UGEN_BULK_RA_WB is no more.
Hi pooka
Revision 1.107: download - view: text, markup, annotated - select for diffs
Wed Dec 23 01:04:45 2009 UTC (14 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +2 -59
lines
unifdef -D UGEN_BULK_RA_WB
Default behaviour unchanged, the feature must still be explicitly
enabled for a ugen fd.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Sun Dec 6 21:40:31 2009 UTC (15 years ago) by dyoung
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +5 -7
lines
Simplify device-activation hooks.
Revision 1.99.8.2: download - view: text, markup, annotated - select for diffs
Sat Sep 26 19:00:35 2009 UTC (15 years, 2 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.99.8.1: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.8.1: +4 -2
lines
Pull up following revision(s) (requested by pooka in ticket #1017):
sys/dev/usb/ugen.c: revision 1.104
ugen_get_cdesc() can return NULL. When this happens, return the
karmic EINVAL error instead of crashing.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Thu Sep 24 22:33:04 2009 UTC (15 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +12 -3
lines
Add a simple kvm integer toggle to control ugen priority and override
the autoconf flags value. This helps to change the priority at
runtime. (XXX: is there a better way to do this?)
Revision 1.104: download - view: text, markup, annotated - select for diffs
Thu Sep 24 15:36:59 2009 UTC (15 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +4 -2
lines
ugen_get_cdesc() can return NULL. When this happens, return the
karmic EINVAL error instead of crashing.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Wed Sep 23 19:07:19 2009 UTC (15 years, 2 months ago) by plunky
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +5 -3
lines
fix up USB drivers printing of autoconf information
1. expand the USB_ATTACH_SETUP macro (requested by jmcneill)
2. reorder the attach function so that the first thing it does is print
newlines.
3. after this, we can call usbd_devinfo_alloc(), which polls the device
allowing a context switch, and aprint_normal() the device information.
this avoids problems where autoconf messages are getting mixed up.
Revision 1.101.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:35 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101: +5 -3
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.97.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:21 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.97.4.1: preferred, colored; branchpoint 1.97: preferred, colored
Changes since revision 1.97.4.1: +12 -9
lines
sync with head.
Revision 1.99.6.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:36:39 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.99.6.2: preferred, colored; branchpoint 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99.6.2: +5 -3
lines
Sync with HEAD.
Revision 1.99.8.1: download - view: text, markup, annotated - select for diffs
Tue Mar 24 20:59:29 2009 UTC (15 years, 8 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +5 -3
lines
Pull up following revision(s) (requested by drochner in ticket #603):
sys/dev/usb/ugen.c: revision 1.102
Putting a device into the unconfigured state by an ioctl seems legitimate,
so check for a non-NULL configuration descriptor before dereferencing.
Should fix a crash reported by Nicolas Joly per PR kern/41048.
(It still doesn't look good that the ioctl which unconfigures the device
returns EIO -- either it is legitimate or it isn't -- but since this
is a pullup candidate I don't dare to change user visible behaviour.)
Revision 1.102: download - view: text, markup, annotated - select for diffs
Fri Mar 20 20:47:43 2009 UTC (15 years, 8 months ago) by drochner
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jymxensuspend-base,
jym-xensuspend-base
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +5 -3
lines
Putting a device into the unconfigured state by an ioctl seems legitimate,
so check for a non-NULL configuration descriptor before dereferencing.
Should fix a crash reported by Nicolas Joly per PR kern/41048.
(It still doesn't look good that the ioctl which unconfigures the device
returns EIO -- either it is legitimate or it isn't -- but since this
is a pullup candidate I don't dare to change user visible behaviour.)
Revision 1.99.6.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:31:53 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.99.6.1: preferred, colored; branchpoint 1.99: preferred, colored
Changes since revision 1.99.6.1: +3 -3
lines
Sync with HEAD.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Tue Jan 20 18:20:48 2009 UTC (15 years, 10 months ago) by drochner
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -3
lines
Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.
Revision 1.99.6.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:09 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -3
lines
Sync with HEAD.
Revision 1.96.6.5: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:09 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.96.6.4: preferred, colored; branchpoint 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96.6.4: +1 -1
lines
Sync with HEAD.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Sun Jan 11 10:56:27 2009 UTC (15 years, 11 months ago) by cegger
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +3 -3
lines
make this compile
Revision 1.98.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:36 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.98: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98: +9 -8
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.97.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:20 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.97.2.1: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.2.1: +9 -8
lines
sync with head
Revision 1.96.6.4: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:54 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.96.6.3: preferred, colored; branchpoint 1.96: preferred, colored
Changes since revision 1.96.6.3: +9 -15
lines
Sync with HEAD.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Sat May 24 16:40:58 2008 UTC (16 years, 6 months ago) by cube
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-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,
netbsd-5-base,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
matt-mips64-base2,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
haad-dm,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap,
netbsd-5
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +9 -8
lines
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.97.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:34:50 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +2 -9
lines
sync with head.
Revision 1.97.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:10 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +2 -9
lines
sync with head.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:59 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.96.6.3: download - view: text, markup, annotated - select for diffs
Sun Apr 6 09:58:51 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.96.6.2: preferred, colored; branchpoint 1.96: preferred, colored
Changes since revision 1.96.6.2: +3 -3
lines
- 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.96.6.2: download - view: text, markup, annotated - select for diffs
Sat Apr 5 23:33:23 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.96.6.1: preferred, colored; branchpoint 1.96: preferred, colored
Changes since revision 1.96.6.1: +11 -3
lines
- 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.96.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:57 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +22 -7
lines
Sync with HEAD.
Revision 1.96.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:09 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96: +22 -7
lines
sync with head.
Revision 1.92.16.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:53 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.92.16.1: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.16.1: +22 -7
lines
sync with HEAD
Revision 1.75.2.7: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:28 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.75.2.6: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.2.6: +22 -7
lines
sync with head.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Sat Mar 1 14:16:51 2008 UTC (16 years, 9 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
ad-socklock-base1
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +22 -7
lines
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.75.2.6: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:44:45 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.75.2.5: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.2.5: +6 -2
lines
sync with head
Revision 1.92.16.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:54:41 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +16 -12
lines
sync with HEAD
Revision 1.95.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:55:20 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95: +3 -2
lines
Sync with HEAD
Revision 1.92.22.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:45:31 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.92.22.1: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.22.1: +6 -2
lines
Sync with HEAD.
Revision 1.93.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:31 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.93.2.1: preferred, colored; branchpoint 1.93: preferred, colored; next MAIN 1.94: preferred, colored
Changes since revision 1.93.2.1: +6 -2
lines
Sync with head.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon Dec 24 14:41:19 2007 UTC (16 years, 11 months ago) by smb
Branches: MAIN
CVS tags: vmlocking2-base3,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-base,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +3 -2
lines
Add missing call to pmf_deregister() in the USB_DETACH routine.
Revision 1.94.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:40:02 2007 UTC (17 years ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94: +5 -2
lines
sync with head.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:28:24 2007 UTC (17 years ago) by jmcneill
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +5 -2
lines
Merge jmcneill-pm branch.
Revision 1.92.14.4: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:38:04 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.92.14.3: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.14.3: +9 -9
lines
Sync with HEAD.
Revision 1.92.22.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:20:04 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +12 -12
lines
Sync with HEAD.
Revision 1.93.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:34 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +9 -9
lines
Sync with head.
Revision 1.92.14.3: download - view: text, markup, annotated - select for diffs
Sat Dec 8 16:21:36 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.92.14.2: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.14.2: +3 -3
lines
Rename pnp(9) -> pmf(9), as requested by many.
Revision 1.75.2.5: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:31:34 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.75.2.4: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.2.4: +12 -12
lines
sync with head
Revision 1.94: download - view: text, markup, annotated - select for diffs
Wed Dec 5 17:19:55 2007 UTC (17 years ago) by pooka
Branches: MAIN
CVS tags: yamt-kmem-base,
vmlocking2-base2,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base
Branch point for: yamt-kmem
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +9 -9
lines
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.92.14.2: download - view: text, markup, annotated - select for diffs
Sat Dec 1 14:46:40 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.92.14.1: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.14.1: +5 -5
lines
Sync with HEAD.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Sat Dec 1 14:45:41 2007 UTC (17 years ago) by jmcneill
Branches: MAIN
CVS tags: vmlocking2-base1,
vmlocking-nbase
Branch point for: vmlocking2
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +5 -5
lines
aprintify
Revision 1.92.14.1: download - view: text, markup, annotated - select for diffs
Fri Nov 23 20:47:54 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +5 -2
lines
Register with PM framework.
Revision 1.75.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:39:11 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.75.2.3: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.2.3: +9 -9
lines
sync with head.
Revision 1.91.4.3: download - view: text, markup, annotated - select for diffs
Sun Jun 17 01:10:14 2007 UTC (17 years, 6 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.91.4.2: preferred, colored; branchpoint 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91.4.2: +17 -17
lines
- Pullup 1.92 in a different way.
- struct lwp *l -> usb_proc_ptr p
- Use macro to set vmspace of uio for portability.
Revision 1.91.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 16 04:12:30 2007 UTC (17 years, 6 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.91.4.1: preferred, colored; branchpoint 1.91: preferred, colored
Changes since revision 1.91.4.1: +3 -2
lines
- Change order to fit current API: usbd_open_pipe() -> usbd_alloc_xfer;
usbd_abort_pipe() -> usbd_free_xfer() -> usbd_close_pipe().
Revision 1.91.4.1: download - view: text, markup, annotated - select for diffs
Tue May 22 14:57:41 2007 UTC (17 years, 6 months ago) by itohy
Branches: itohy-usb1
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +10 -8
lines
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.88.2.2: download - view: text, markup, annotated - select for diffs
Fri Apr 6 18:43:50 2007 UTC (17 years, 8 months ago) by bouyer
Branches: 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
Diff to: previous 1.88.2.1: preferred, colored; branchpoint 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88.2.1: +8 -0
lines
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.89.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:57:31 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.89.2.1: preferred, colored; branchpoint 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89.2.1: +7 -7
lines
Sync with HEAD.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:49 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
yamt-idlelwp-base8,
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: mjf-devfs,
matt-armv6,
jmcneill-pm
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +7 -7
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.89.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:54:05 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +6 -6
lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Feb 26 13:28:56 2007 UTC (17 years, 9 months ago) by drochner
Branches: MAIN
CVS tags: itohy-usb1-base,
ad-audiomp-base,
ad-audiomp
Branch point for: itohy-usb1
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +4 -4
lines
The manpage promises not to touch the device on USB_GET_DEVICEINFO.
Make it so.
Revision 1.75.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:10:44 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.75.2.2: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.2.2: +4 -4
lines
sync with head.
Revision 1.88.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 24 13:19:09 2007 UTC (17 years, 9 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -4
lines
Pull up following revision(s) (requested by wiz in ticket #460):
sys/dev/usb/if_rum.c: revision 1.5
sys/dev/usb/ugen.c: revision 1.90
Fix debug format strings (found on amd64).
Revision 1.90: download - view: text, markup, annotated - select for diffs
Wed Feb 21 15:42:07 2007 UTC (17 years, 9 months ago) by wiz
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -4
lines
Fix debug format strings (found on amd64).
Revision 1.85.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 00:57:49 2007 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.85.2.1: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.2.1: +10 -2
lines
Sync with head.
Revision 1.75.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:49:39 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.75.2.1: preferred, colored; branchpoint 1.75: preferred, colored
Changes since revision 1.75.2.1: +650 -40
lines
sync with head.
Revision 1.85.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:17 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.85.4.1: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.4.1: +15 -7
lines
sync with head.
Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun Dec 3 22:34:58 2006 UTC (18 years ago) by pavel
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
post-newlock2-merge,
newlock2-nbase,
newlock2-base
Branch point for: yamt-idlelwp
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +10 -2
lines
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.85.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:51 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -3
lines
Sync with head.
Revision 1.88: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:26 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: netbsd-4-base
Branch point for: netbsd-4
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +7 -7
lines
__unused removal on arguments; approved by core.
Revision 1.85.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:52 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +8 -7
lines
sync with head
Revision 1.87: download - view: text, markup, annotated - select for diffs
Thu Oct 12 17:50:07 2006 UTC (18 years, 2 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -3
lines
sigh, another missing __unused.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:59 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +6 -6
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.78.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:55:33 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +656 -57
lines
sync with head
Revision 1.79.2.5: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:25:04 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.79.2.4: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.2.4: +3 -3
lines
sync with head.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Sun Sep 3 07:14:47 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -3
lines
add missing initializer
Revision 1.79.2.4: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:45:20 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.79.2.3: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.2.3: +639 -38
lines
sync with head
Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Jul 24 14:24:50 2006 UTC (18 years, 4 months ago) by gdt
Branches: MAIN
CVS tags: yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +639 -38
lines
Add UGEN_BULK_RA_WB, which allows users of ugen(4) to request read
ahead and write behind, improving performance for the Universal
Software Radio Peripheral (USRP) used with GNU Radio.
Enable UGEN_BULK_RA_WB in GENERIC and GENERIC_LAPTOP; behavior is
unchanged unless the new ioctl is called.
This code was written by Joanne Mikkelson under funding from DARPA's
ACERT program.
ok'd by christos@, tested by Berndt Josef Wulf
Revision 1.79.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:52:28 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.79.2.2: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.2.2: +13 -15
lines
sync with head.
Revision 1.75.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:07:44 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +30 -34
lines
sync with head.
Revision 1.82.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:05:49 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82: +13 -15
lines
Sync with head.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Fri Jun 9 21:34:19 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base6,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +13 -15
lines
stack police: Don't allocate large buffers on the stack for I/O. Put the
buffer in the softc instead.
Revision 1.79.6.2: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:30 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.79.6.1: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.6.1: +2 -0
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.79.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:24 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.79.2.1: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.2.1: +4 -2
lines
sync with head.
Revision 1.78.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:38 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +7 -7
lines
Sync with head.
Revision 1.79.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:26:29 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79: +5 -3
lines
sync with head.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Fri Apr 14 16:41:53 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base5,
simonb-timecounters-base,
elad-kernelauth-base
Branch point for: chap-midi
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -2
lines
Coverity CID 1354: Add a KASSERT to convince coverity that there is no NULL
pointer dereference.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Apr 14 16:39:33 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -2
lines
Coverity CID 1355: Add a KASSERT to convince coverity that this is not NULL.
Revision 1.79.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:29 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3
lines
sync with head.
Revision 1.79.6.1: download - view: text, markup, annotated - select for diffs
Fri Mar 31 09:45:26 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3
lines
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Tue Mar 28 17:38:35 2006 UTC (18 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3
lines
Use device_unit().
Revision 1.79: download - view: text, markup, annotated - select for diffs
Wed Mar 1 12:38:13 2006 UTC (18 years, 9 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base
Branch point for: yamt-pdpolicy,
peter-altq,
elad-kernelauth
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +4 -6
lines
merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
the latter is more natural to specify an address space.
(and less likely to be abused for random purposes.)
- fix a swdmover race.
Revision 1.78.2.1: download - view: text, markup, annotated - select for diffs
Sun Feb 5 12:54:07 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +4 -6
lines
adapt dev/usb.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:01 2005 UTC (19 years ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +13 -13
lines
merge ktrace-lwp.
Revision 1.65.2.8: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:29:05 2005 UTC (19 years ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.65.2.7: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.2.7: +5 -7
lines
Sync with head.
Revision 1.75.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 29 21:23:16 2005 UTC (19 years ago) by yamt
Branches: yamt-readahead
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +5 -7
lines
sync with head.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon Nov 28 13:14:48 2005 UTC (19 years ago) by augustss
Branches: MAIN
CVS tags: yamt-readahead-base3,
ktrace-lwp-base
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3
lines
Add a new match level, UMATCH_HIGHEST.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Wed Nov 23 08:54:47 2005 UTC (19 years ago) by augustss
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +5 -7
lines
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.65.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:08:05 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.65.2.6: preferred, colored
Changes since revision 1.65.2.6: +32 -30
lines
Sync with HEAD. Here we go again...
Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Jun 21 14:01:12 2005 UTC (19 years, 5 months ago) by ws
Branches: 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
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +6 -6
lines
PR-30566: Poll must not return <sys/errno.h> values.
Start with those places I can easily test.
Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon May 30 04:21:39 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +20 -20
lines
- const poisoning
- eliminate variable shadowing
Revision 1.73: download - view: text, markup, annotated - select for diffs
Tue May 17 14:53:06 2005 UTC (19 years, 7 months ago) by augustss
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +6 -5
lines
Allow multiple opens of the control endpoint. This is unproblematic since
the control endpoint is in some sense always open to the device.
From wulf@ping.net.au.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed May 11 10:02:28 2005 UTC (19 years, 7 months ago) by augustss
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -5
lines
Don't keep the devinfo string on the stack, instead use malloc/free.
This should cure some rare stack overflows.
Revision 1.69.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:18 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +4 -4
lines
sync with -current
Revision 1.69.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:35:58 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +4 -4
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.65.2.6: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:50:55 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.65.2.5: preferred, colored
Changes since revision 1.65.2.5: +4 -4
lines
Sync with HEAD.
Hi Perry!
Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Mar 2 11:37:27 2005 UTC (19 years, 9 months ago) by mycroft
Branches: 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
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3
lines
Copyright maintenance.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:51 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3
lines
nuke trailing whitespace
Revision 1.65.2.5: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:32:21 2004 UTC (19 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.65.2.4: preferred, colored
Changes since revision 1.65.2.4: +33 -3
lines
Sync with HEAD.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Dec 3 08:53:40 2004 UTC (20 years ago) by augustss
Branches: MAIN
CVS tags: yamt-km-base2,
yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +33 -3
lines
Allow interrupt output devices. From FreeBSD.
Revision 1.65.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:33:45 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.65.2.3: preferred, colored
Changes since revision 1.65.2.3: +13 -13
lines
Fix the sync with head I botched.
Revision 1.65.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:51:46 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.65.2.2: preferred, colored
Changes since revision 1.65.2.2: +13 -13
lines
Sync with HEAD.
Revision 1.65.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:51:33 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.65.2.1: preferred, colored
Changes since revision 1.65.2.1: +9 -7
lines
Sync with HEAD
Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 2 17:15:24 2004 UTC (20 years, 5 months ago) by he
Branches: 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
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +6 -4
lines
Pull up revision 1.68 (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.68: download - view: text, markup, annotated - select for diffs
Wed Jun 23 02:30:52 2004 UTC (20 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +6 -4
lines
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.67: download - view: text, markup, annotated - select for diffs
Fri Apr 23 17:25:25 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3
lines
use bounded string ops (snprintf, strl*)
Revision 1.66: download - view: text, markup, annotated - select for diffs
Thu Sep 4 03:47:03 2003 UTC (21 years, 3 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -4
lines
Cast a printf() arg so that USB_DEBUG compiles on multiple platforms.
Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:23 2003 UTC (21 years, 5 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +13 -13
lines
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.65: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:30:56 2003 UTC (21 years, 5 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +11 -11
lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:46 2003 UTC (21 years, 5 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +13 -13
lines
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.45.2.10: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:38:51 2002 UTC (22 years ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.45.2.9: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.9: +3 -3
lines
Sync with HEAD.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Nov 26 18:49:48 2002 UTC (22 years ago) by christos
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +5 -5
lines
si_ -> sel_
Revision 1.45.2.9: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:12:51 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45.2.8: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.8: +125 -3
lines
Catch up to -current
Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:13:59 2002 UTC (22 years, 1 month ago) by jdolecek
Branches: MAIN
CVS tags: kqueue-aftermerge
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +127 -5
lines
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.45.2.8: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:44:31 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45.2.7: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.7: +0 -1
lines
Catch up to -current.
Revision 1.45.4.7: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:42:36 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.45.4.6: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.4.6: +20 -4
lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
Revision 1.45.4.6: download - view: text, markup, annotated - select for diffs
Wed Oct 2 22:02:28 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.45.4.5: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.4.5: +6 -6
lines
do not need the (void *) cast for kn_hook anymore
Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Sep 23 05:51:20 2002 UTC (22 years, 2 months ago) by simonb
Branches: MAIN
CVS tags: kqueue-beforemerge,
kqueue-base
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -3
lines
Remove breaks after returns, unreachable returns and returns after
returns(!).
Revision 1.45.2.7: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:21:32 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45.2.6: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.6: +17 -1
lines
Catch up to -current.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Sep 6 13:18:43 2002 UTC (22 years, 3 months ago) by gehenna
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +19 -3
lines
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.45.4.5: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:46:52 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.45.4.4: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.4.4: +8 -8
lines
sync kqueue branch with HEAD
Revision 1.45.2.6: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:45:56 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45.2.5: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.5: +8 -8
lines
Catch up to -current.
Revision 1.58.8.2: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:36:05 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.58.8.1: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.8.1: +8 -8
lines
catch up with -current.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Jul 11 21:14:28 2002 UTC (22 years, 5 months ago) by augustss
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +8 -8
lines
Get rid of trailing white space.
Revision 1.58.8.1: download - view: text, markup, annotated - select for diffs
Thu May 16 11:29:45 2002 UTC (22 years, 7 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +19 -3
lines
Add the character device switch.
Replace the direct-access to devsw table with calling devsw API.
Revision 1.45.4.4: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:01:36 2002 UTC (22 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.45.4.3: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.4.3: +52 -48
lines
Catch up with -current.
Revision 1.45.2.5: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:14:30 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45.2.4: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.4: +52 -48
lines
Catch up to -current.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Feb 20 20:30:12 2002 UTC (22 years, 9 months ago) by christos
Branches: MAIN
CVS tags: newlock-base,
newlock,
netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6,
ifpoll-base,
eeh-devprop-base,
eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +45 -43
lines
Prefix structure members to protect them against clashes with eg. c++ keywords.
Suggested by Alfred Perlstein, from FreeBSD, ok'd by augustss
Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Feb 11 15:11:49 2002 UTC (22 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +10 -8
lines
Give usbd_do_request_flags() an extra argument for the timeout.
Revision 1.45.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 11 23:39:36 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45.2.3: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.3: +17 -18
lines
More catchup.
Revision 1.45.4.3: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:58:55 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.45.4.2: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.4.2: +110 -81
lines
Sync kqueue branch with -current.
Revision 1.45.2.3: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:32:08 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45.2.2: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.2: +59 -39
lines
Catch up to -current.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Jan 2 16:20:14 2002 UTC (22 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +17 -18
lines
More whitespace fixes from FreeBSD.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Dec 31 12:37:13 2001 UTC (22 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +31 -31
lines
Whitespace fixes (from FreeBSD).
Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Dec 31 12:15:21 2001 UTC (22 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +8 -8
lines
Make a typedef for struct proc to make portingeasier.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Dec 31 11:56:37 2001 UTC (22 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +22 -3
lines
Don't allow setting the configuration when an endpoint is open. From
FreeBSD.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Dec 31 11:54:06 2001 UTC (22 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -3
lines
Only clear stall if endpoint is stalled. From FreeBSD.
Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:16:16 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.1: +15 -16
lines
Catch up to -current.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Nov 13 07:59:32 2001 UTC (23 years, 1 month ago) by augustss
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +9 -17
lines
More test for NULL pipes.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Nov 13 06:24:54 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -1
lines
add RCSIDs
Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:18:30 2001 UTC (23 years, 1 month ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +5 -1
lines
Sync the thorpej-mips-cache branch with -current.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Oct 24 22:31:04 2001 UTC (23 years, 1 month ago) by augustss
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +5 -1
lines
Add commented out match level feature.
Revision 1.45.6.3: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:46:31 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.45.6.2: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.6.2: +24 -13
lines
Catch up with -current.
Revision 1.45.6.2: download - view: text, markup, annotated - select for diffs
Wed Sep 26 15:28:19 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.45.6.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.6.1: +25 -14
lines
* 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.45.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 21 22:36:19 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +24 -13
lines
Catch up to -current.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Sep 16 18:06:32 2001 UTC (23 years, 3 months ago) by yamt
Branches: MAIN
CVS tags: thorpej-devvp-base3,
thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +21 -10
lines
make ugen use updated frlengths.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Sep 16 16:34:39 2001 UTC (23 years, 3 months ago) by wiz
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -2
lines
Spell 'occurred' with two 'r's.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Sep 15 16:16:27 2001 UTC (23 years, 3 months ago) by yamt
Branches: MAIN
CVS tags: pre-chs-ubcperf,
post-chs-ubcperf
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
correct debug messages.
Revision 1.45.4.2: download - view: text, markup, annotated - select for diffs
Sat Sep 8 18:12:20 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.45.4.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.4.1: +27 -2
lines
Use the seltrue filter as appropriate (or, rather, as the "poll"
entry points of these drivers indicate).
Revision 1.45.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 8 06:09:11 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +99 -3
lines
Add kqueue support.
Revision 1.45.6.1: download - view: text, markup, annotated - select for diffs
Fri Sep 7 04:45:33 2001 UTC (23 years, 3 months ago) by thorpej
Branches: thorpej-devvp
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +24 -19
lines
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.25.2.3: download - view: text, markup, annotated - select for diffs
Wed Dec 13 15:50:14 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.25.2.2: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.2.2: +1 -1
lines
Sync with HEAD (for UBC fixes).
Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Dec 13 04:05:14 2000 UTC (24 years ago) by augustss
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base,
thorpej-devvp-base
Branch point for: thorpej-devvp,
nathanw_sa,
kqueue
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -2
lines
Don't try to access a device that is being disconnected when generating
the detach event. Fixes (I hope) PR 11713 from itohy@netbsd.org (ITOH Yasufumi).
Revision 1.25.2.2: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:12:44 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.25.2.1: preferred, colored
Changes since revision 1.25.2.1: +2 -4
lines
Sync with HEAD.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Nov 26 21:05:02 2000 UTC (24 years ago) by augustss
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -4
lines
Improve a debug message.
Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:43:24 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +396 -226
lines
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.43: download - view: text, markup, annotated - select for diffs
Tue Oct 24 14:53:59 2000 UTC (24 years, 1 month ago) by augustss
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -2
lines
Tell usbd_set_config_no() to be verbose. It's nice to know whyit fails.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Sep 8 01:27:12 2000 UTC (24 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +6 -9
lines
ANSIfy last patch.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Sep 8 00:55:26 2000 UTC (24 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +183 -9
lines
Add isoc support. From FreeBSD via Berndt Josef Wulf <wulf@ping.net.au>
Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:08:35 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +30 -78
lines
Sync w/ netbsd-1-5-base.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Jun 1 14:28:59 2000 UTC (24 years, 6 months ago) by augustss
Branches: 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
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +28 -77
lines
Bring the coding style into the 80s, i.e., get rid of __P and use
ANSI prototypes and declarations.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed May 31 16:16:49 2000 UTC (24 years, 6 months ago) by augustss
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -2
lines
Add a comment.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Apr 27 15:26:47 2000 UTC (24 years, 7 months ago) by augustss
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2
lines
Change my email address.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Mar 27 12:33:55 2000 UTC (24 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +18 -18
lines
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.36: download - view: text, markup, annotated - select for diffs
Mon Mar 6 20:59:17 2000 UTC (24 years, 9 months ago) by augustss
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -2
lines
Generate better error codes on bulk write.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Feb 29 21:37:01 2000 UTC (24 years, 9 months ago) by augustss
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -1
lines
Distinguish between device and interface classes.
(I finally found a document that said that they were different.)
Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Feb 8 18:45:27 2000 UTC (24 years, 10 months ago) by augustss
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -2
lines
Use NULL instead of 0.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Feb 2 13:20:59 2000 UTC (24 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -1
lines
Generate usb events on attach and detach.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Jan 19 00:23:58 2000 UTC (24 years, 10 months ago) by augustss
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -2
lines
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.23.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:35:42 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +213 -171
lines
Pull up to last week's -current.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Dec 18 23:22:54 1999 UTC (24 years, 11 months ago) by augustss
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +16 -4
lines
Change the way the initial configuration value is picked.
Idea from Matthias Drochner <M.Drochner@fz-juelich.de>
Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Nov 18 23:32:27 1999 UTC (25 years ago) by augustss
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +36 -24
lines
Cosmetic changes and some small improvements. From FreeBSD and Nick Hibma.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Nov 17 23:00:50 1999 UTC (25 years, 1 month ago) by augustss
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +6 -6
lines
A few more purely stylistic changes that I missed in the last round.
Revision 1.25.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:41:33 1999 UTC (25 years, 1 month ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +142 -129
lines
Sync with -current
Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Nov 12 00:34:57 1999 UTC (25 years, 1 month ago) by augustss
Branches: MAIN
CVS tags: fvdl-softdep-base
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +125 -126
lines
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.27: download - view: text, markup, annotated - select for diffs
Thu Oct 28 12:08:38 1999 UTC (25 years, 1 month ago) by augustss
Branches: MAIN
CVS tags: comdex-fall-1999-base,
comdex-fall-1999
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -1
lines
Add a few more tests for safety.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Oct 28 07:28:51 1999 UTC (25 years, 1 month ago) by augustss
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +12 -4
lines
Make sure read() and write() fails on the control pipe.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Oct 13 08:10:55 1999 UTC (25 years, 2 months ago) by augustss
Branches: MAIN
Branch point for: thorpej_scsipi,
fvdl-softdep
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +16 -17
lines
Merge in a large batch of changes from Nick Hibma <hibma@skylink.it> so
the USB stack compiles on FreeBSD again.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Oct 12 11:54:56 1999 UTC (25 years, 2 months ago) by augustss
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +12 -6
lines
Add an event mechanism so that a userland process can watch devices come
and go.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Sep 9 12:26:44 1999 UTC (25 years, 3 months ago) by augustss
Branches: MAIN
Branch point for: wrstuden-devbsize
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3
lines
Change the internal API to allow DMA buffers to be pre-allocated by
the device driver instead of happening automagically in the HC driver.
This affects both the HC-USBD interface as well as the USBD-device
interface.
This change will allow DMA buffers to be reused e.g. in isochronous
traffic.
Add isochronous support to the UHCI driver (not for OHCI yet).
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Sep 5 19:32:18 1999 UTC (25 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +10 -8
lines
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.21: download - view: text, markup, annotated - select for diffs
Sat Sep 4 22:26:11 1999 UTC (25 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +12 -8
lines
Change the way the direction is extracted from the endpoint descriptor.
No functional changes to the drivers. From Nick Hibma, FreeBSD.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Aug 28 21:42:35 1999 UTC (25 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3
lines
Change some 'struct device' to 'bdevice'. From FreeBSD.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Aug 28 10:01:59 1999 UTC (25 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2
lines
Change a type name.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Aug 23 22:55:14 1999 UTC (25 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +12 -1
lines
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.17: download - view: text, markup, annotated - select for diffs
Sun Aug 22 20:12:39 1999 UTC (25 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +21 -10
lines
Move more of the transfer completion processing to HC independent code.
Fix some problems with transfer abort & timeout.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Aug 19 19:57:21 1999 UTC (25 years, 3 months ago) by augustss
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2
lines
Use the right type for the size argument when calling usbd_bulk_transfer().
Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Aug 17 16:06:21 1999 UTC (25 years, 4 months ago) by augustss
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -6
lines
Make some small changes to make it compile on OpenBSD.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Aug 14 14:49:31 1999 UTC (25 years, 4 months ago) by augustss
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +39 -10
lines
Some changes from FreeBSD (no functional differences).
Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Aug 2 19:32:56 1999 UTC (25 years, 4 months ago) by augustss
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +58 -44
lines
Change it so that a pipe can be open RW instead of just R or W.
This makes close() work properly, but it is still not ideal. Perhaps
there should be different device nodes for input and output on to
and endpoint with the same number?
Pay attention to the SHORT_XFER_OK ioctl().
Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 1 23:40:22 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +150 -64
lines
Sync w/ -current.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Jun 30 06:44:23 1999 UTC (25 years, 5 months ago) by augustss
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +150 -64
lines
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.11: download - view: text, markup, annotated - select for diffs
Fri Jan 8 11:58:25 1999 UTC (25 years, 11 months ago) by augustss
Branches: 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
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +30 -19
lines
Various little fixes from the FreeBSD version.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Jan 7 02:22:20 1999 UTC (25 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -4
lines
Fix some pastos.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jan 3 01:03:22 1999 UTC (25 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +57 -22
lines
Add an ugly workaround for a bug (feature) in the NetBSD open()/close()
protocol.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jan 1 15:31:24 1999 UTC (25 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +43 -34
lines
Fix bug in reading from interrupt pipe.
Make read and write on bulk pipes interruptible.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Dec 29 15:33:10 1998 UTC (25 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +12 -7
lines
Don't set configuration unnecessarily, some (broken) devices seem to break
if you do.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Dec 29 03:13:10 1998 UTC (25 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -2
lines
Make it possible to specify the request flags when issuing a raw USB request.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 26 12:53:01 1998 UTC (25 years, 11 months ago) by augustss
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +30 -26
lines
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.4: download - view: text, markup, annotated - select for diffs
Sat Dec 12 11:59:28 1998 UTC (26 years ago) by augustss
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -2
lines
Move initialization of sce around.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Dec 10 23:16:47 1998 UTC (26 years ago) by augustss
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +11 -6
lines
Take care of some lines > 80 chars.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Dec 9 00:18:10 1998 UTC (26 years ago) by augustss
Branches: MAIN
CVS tags: kenh-if-detach-base,
kenh-if-detach
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +56 -34
lines
Improvement to the ugen driver.
Better error checking.
Some code rearrengment.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Dec 8 15:39:00 1998 UTC (26 years ago) by augustss
Branches: MAIN
Add a generic USB driver. It allows easy access to descriptors, the
control pipe via ioctl() and read() and write() access to bulk and
interrupt pipes.
CVSweb <webmaster@jp.NetBSD.org>