The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.139 / (download) - annotate - [select for diffs], Fri Apr 12 16:54:37 2024 UTC (3 days, 14 hours ago) by jakllsch
Branch: MAIN
CVS Tags: HEAD
Changes since 1.138: +3 -2 lines
Diff to previous 1.138 (colored) to selected 1.1 (colored)

include opt_ntp.h for PPS_SYNC

Revision 1.134.2.2 / (download) - annotate - [select for diffs], Tue Mar 7 19:52:01 2023 UTC (13 months, 1 week ago) by martin
Branch: netbsd-10
CVS Tags: 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
Changes since 1.134.2.1: +8 -3 lines
Diff to previous 1.134.2.1 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored) to selected 1.1 (colored)

Pull up following revision(s) (requested by thorpej in ticket #113):

	sys/dev/usb/ucom.c: revision 1.137

In the HUP-wait path in ucomopen():
- Use cv_timedwait() rather than cv_timedwait_sig(); the wait here is
 bounded (and fairly short besides) and seems appropriate to treat like
 other uninterruptible waits.  The behavior is now consistent with com(4)
 in this regard.
- Map EWOULDBLOCK return from cv_timedwait() to 0, as the successful passage
 of time is not an error in this case.
- If the HUP-wait time has passed, clear the HUP-wait timestamp.

PR kern/57259 (although insufficient -- another change to vfs_syscalls.c
is required)

Revision 1.138 / (download) - annotate - [select for diffs], Sun Mar 5 23:28:54 2023 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.137: +4 -8 lines
Diff to previous 1.137 (colored) to selected 1.1 (colored)

ucom(4): Simplify logic fixing PR kern/57259.

cv_timedwait only ever returns 0 or EWOULDBLOCK, so this would always
return ERESTART anyway.

No functional change intended.

Revision 1.137 / (download) - annotate - [select for diffs], Sun Mar 5 13:49:12 2023 UTC (13 months, 1 week ago) by thorpej
Branch: MAIN
Changes since 1.136: +8 -3 lines
Diff to previous 1.136 (colored) to selected 1.1 (colored)

In the HUP-wait path in ucomopen():
- Use cv_timedwait() rather than cv_timedwait_sig(); the wait here is
  bounded (and fairly short besides) and seems appropriate to treat like
  other uninterruptible waits.  The behavior is now consistent with com(4)
  in this regard.
- Map EWOULDBLOCK return from cv_timedwait() to 0, as the successful passage
  of time is not an error in this case.
- If the HUP-wait time has passed, clear the HUP-wait timestamp.

kern/57259 (although insufficient -- another change to vfs_syscalls.c
is required)

Revision 1.134.2.1 / (download) - annotate - [select for diffs], Wed Feb 22 13:06:42 2023 UTC (13 months, 3 weeks ago) by martin
Branch: netbsd-10
Changes since 1.134: +2 -13 lines
Diff to previous 1.134 (colored) to selected 1.1 (colored)

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

	sys/dev/usb/ucom.c: revision 1.136
	sys/dev/usb/ucom.c: revision 1.135

ucom(4): Nix broken error branch.

This error branch was introduced to make the system act, when a USB
serial adapter is yanked, as if the other end had spat out a line
feed in an attempt to wake any sleeping readers so they will stop
using the USB serial port.

This is no longer necessary, because ttycancel will wake them anyway,
and it is actually harmful because it puts stuff in the output queue
(CR LF) that will never be processed, causing subsequent users to
hang trying to open the device.

Problem found and patch tested by tih@.

ucom(4): Missed a spot in previous -- nix now-unused local.

Revision 1.136 / (download) - annotate - [select for diffs], Fri Feb 17 23:44:18 2023 UTC (13 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.135: +2 -3 lines
Diff to previous 1.135 (colored) to selected 1.1 (colored)

ucom(4): Missed a spot in previous -- nix now-unused local.

Revision 1.135 / (download) - annotate - [select for diffs], Fri Feb 17 23:38:54 2023 UTC (13 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.134: +2 -12 lines
Diff to previous 1.134 (colored) to selected 1.1 (colored)

ucom(4): Nix broken error branch.

This error branch was introduced to make the system act, when a USB
serial adapter is yanked, as if the other end had spat out a line
feed in an attempt to wake any sleeping readers so they will stop
using the USB serial port.

This is no longer necessary, because ttycancel will wake them anyway,
and it is actually harmful because it puts stuff in the output queue
(CR LF) that will never be processed, causing subsequent users to
hang trying to open the device.

Problem found and patch tested by tih@.

Revision 1.134 / (download) - annotate - [select for diffs], Wed Oct 26 23:48:43 2022 UTC (17 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.133: +19 -19 lines
Diff to previous 1.133 (colored) to selected 1.1 (colored)

ucom(4): Convert to ttylock/ttyunlock.

Revision 1.125.2.2 / (download) - annotate - [select for diffs], Wed Aug 3 16:21:55 2022 UTC (20 months, 1 week ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.125.2.1: +2 -4 lines
Diff to previous 1.125.2.1 (colored) to branchpoint 1.125 (colored) next main 1.126 (colored) to selected 1.1 (colored)

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

	sys/dev/usb/ucom.c: revision 1.129

ucom(4): Fix earlier mistake causing pipes not to be closed.

In revision 1.123, mrg@ changed what he thought was a double-close,
but was actually abort&close (as is appropriate) to just abort (which
is not enough -- leaks the pipe).  This restores the abort&close.

The original `bug' was found by code inspection, whereas this bug was
found by asserting in usb_subr.c that no pipes are open on device
disconnection after detach; the asserts actually triggered with
several ucom(4) devices, and no longer trigger with this change.

XXX pullup-9

Revision 1.133 / (download) - annotate - [select for diffs], Sun Apr 17 09:25:24 2022 UTC (23 months, 4 weeks ago) by riastradh
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.132: +5 -5 lines
Diff to previous 1.132 (colored) to selected 1.1 (colored)

ucom(4): Make sure rndsource is attached before use and detach.

Reported-by: syzbot+04fb6786e0cf873905e8@syzkaller.appspotmail.com

Revision 1.132 / (download) - annotate - [select for diffs], Thu Apr 7 21:47:02 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.131: +3 -8 lines
Diff to previous 1.131 (colored) to selected 1.1 (colored)

ucom(4): Use tty_unit -- save a couple lines of code.

Revision 1.131 / (download) - annotate - [select for diffs], Thu Apr 7 17:35:31 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.130: +9 -3 lines
Diff to previous 1.130 (colored) to selected 1.1 (colored)

ucom(4): Fix unit numbering for devsw/autoconf cross-wiring.

Should introduce a tty_unit function to use here but this'll do for
now to fix the bug I introduced in ucom(4).

Revision 1.130 / (download) - annotate - [select for diffs], Mon Mar 28 12:42:37 2022 UTC (2 years ago) by riastradh
Branch: MAIN
Changes since 1.129: +237 -341 lines
Diff to previous 1.129 (colored) to selected 1.1 (colored)

ucom(4): Rework open/close/attach/detach logic.

- Defer sleep after hangup until open.

  No need to make close hang; we just need to make sure some time has
  passed before we next try to open.

  This changes the wchan for the sleep.  Oh well.

- Use .d_cfdriver/devtounit/cancel to resolve races between attach,
  detach, open, close, and revoke.

- Use a separate .sc_closing flag instead of a UCOM_CLOSING state.
  ucomcancel/ucomclose owns this flag, and it may be set in any state
  (except UCOM_DEAD).  UCOM_OPENING remains owned by ucomopen, which
  might be interrupted by cancel/close.

- Rework error branches in ucomopen.  Much simpler this way.

- Nix unnecessary reference counting.

Revision 1.128.6.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:32 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.128: +2 -4 lines
Diff to previous 1.128 (colored) next main 1.129 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.129 / (download) - annotate - [select for diffs], Thu Jun 24 08:20:42 2021 UTC (2 years, 9 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.128: +2 -4 lines
Diff to previous 1.128 (colored) to selected 1.1 (colored)

ucom(4): Fix earlier mistake causing pipes not to be closed.

In revision 1.123, mrg@ changed what he thought was a double-close,
but was actually abort&close (as is appropriate) to just abort (which
is not enough -- leaks the pipe).  This restores the abort&close.

The original `bug' was found by code inspection, whereas this bug was
found by asserting in usb_subr.c that no pipes are open on device
disconnection after detach; the asserts actually triggered with
several ucom(4) devices, and no longer trigger with this change.

XXX pullup-9

Revision 1.118.8.5 / (download) - annotate - [select for diffs], Sat Dec 12 12:58:51 2020 UTC (3 years, 4 months ago) by martin
Branch: netbsd-8
Changes since 1.118.8.4: +3 -3 lines
Diff to previous 1.118.8.4 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored) to selected 1.1 (colored)

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

	sys/dev/usb/ucom.c: revision 1.128

properly wait for refcounts to drain.
fixes panic at detach that jmnceill saw.

XXX: pullup-[89].

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Sat Dec 12 12:56:40 2020 UTC (3 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE
Changes since 1.125: +3 -3 lines
Diff to previous 1.125 (colored) to selected 1.1 (colored)

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

	sys/dev/usb/ucom.c: revision 1.128

properly wait for refcounts to drain.
fixes panic at detach that jmnceill saw.

XXX: pullup-[89].

Revision 1.128 / (download) - annotate - [select for diffs], Mon Oct 26 12:24:10 2020 UTC (3 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.127: +3 -3 lines
Diff to previous 1.127 (colored) to selected 1.1 (colored)

properly wait for refcounts to drain.
fixes panic at detach that jmnceill saw.

XXX: pullup-[89].

Revision 1.127 / (download) - annotate - [select for diffs], Sat Mar 14 02:35:33 2020 UTC (4 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored) to selected 1.1 (colored)

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

Revision 1.126 / (download) - annotate - [select for diffs], Fri Mar 13 18:17:40 2020 UTC (4 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.125: +4 -4 lines
Diff to previous 1.125 (colored) to selected 1.1 (colored)

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

Revision 1.120.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:34 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.120: +23 -35 lines
Diff to previous 1.120 (colored) next main 1.121 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.125 / (download) - annotate - [select for diffs], Thu May 9 02:43:35 2019 UTC (4 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: netbsd-9
Changes since 1.124: +3 -24 lines
Diff to previous 1.124 (colored) to selected 1.1 (colored)

clean up ucom parents some more:
- it's always "bool sc_dying" now, with true/false
- heavy use of static functions
- remove all ucom parent ca_activate callbacks.  they're never called.
- callbacks should generally do little to nothing if sc_dying is set
- open resources should be released in detach after setting sc_dying
- don't complain about usbd_abort_pipe() or usbd_close_pipe() failure
- when releasing resources, zero the softc member as well
- remove ucom_methods members no longer destined to be filled in
- generally, DPRINTF() before sc_dying short circuit
- use EIO when dying, not ENXIO or 0
- add some ucom_open() callbacks that simply return EIO if dying

Revision 1.118.8.4 / (download) - annotate - [select for diffs], Tue May 7 18:47:01 2019 UTC (4 years, 11 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.118.8.3: +6 -10 lines
Diff to previous 1.118.8.3 (colored) to branchpoint 1.118 (colored) to selected 1.1 (colored)

Backout the following changes (requested by mrg in ticket #1240):

	sys/dev/usb/umodem_common.c: revision 1.27
	sys/dev/usb/umodemvar.h: revision 1.10
	sys/dev/usb/ucom.c: revision 1.122

fix umodem(4) detach.
There are different fixes upcoming.

Revision 1.124 / (download) - annotate - [select for diffs], Sun May 5 03:17:54 2019 UTC (4 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.123: +4 -4 lines
Diff to previous 1.123 (colored) to selected 1.1 (colored)

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

Revision 1.123 / (download) - annotate - [select for diffs], Wed May 1 06:01:01 2019 UTC (4 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.122: +11 -6 lines
Diff to previous 1.122 (colored) to selected 1.1 (colored)

fix a locking botch in ucomhwiflow():

tty.c always calls t_hwiflow() with tty_lock held, and the caller
of this for ucom always holds sc->sc_lock when calling down into
the tty layer.

don't try to re-take the sc_lock in ucomhwiflow() (locking against
myself is triggered here currently), but instead assert that the
lock is already held _and_ that tty_lock is held.


in ucom_detach(), when closing pipes set sc_bulkin_pipe and
sc_bulkout_pipe to NULL.  fixes bug noticed by code inspection:
a failed detach would attempt to close them a second time.

Revision 1.118.8.3 / (download) - annotate - [select for diffs], Mon Apr 22 08:17:50 2019 UTC (4 years, 11 months ago) by martin
Branch: netbsd-8
Changes since 1.118.8.2: +10 -6 lines
Diff to previous 1.118.8.2 (colored) to branchpoint 1.118 (colored) to selected 1.1 (colored)

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

	sys/dev/usb/umodem_common.c: revision 1.27
	sys/dev/usb/umodemvar.h: revision 1.10
	sys/dev/usb/ucom.c: revision 1.122

fix umodem(4) detach:

- ucom(4) needs kpreempt disabled around softint_schedule()
- switch a copied printf() to aprint_error_dev()
- use static normally in umodem_common.c
- remove unused sc_openings in softc, convert sc_dying to real bool
- add sc_refcnt, sc_lock and sc_detach_cv to softc.  usage is:
  - sc_dying is protected by sc_lock
  - sc_detach_cv is matched with sc_lock for cv operations
  - sc_refcnt is increased in open and decreased in close, any time
    it is decreased, it is checked for less than zero, and a broadcast
    performed on sc_detach_cv.  detach waits for sc_refcnt.
- umodem_param() and umodem_set() check for sc_dying

this fixes pullout out an open ucom@umodem.

@skrll.

XXX: pullup

Revision 1.122 / (download) - annotate - [select for diffs], Sat Apr 20 05:53:18 2019 UTC (4 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.121: +10 -6 lines
Diff to previous 1.121 (colored) to selected 1.1 (colored)

fix umodem(4) detach:

- ucom(4) needs kpreempt disabled around softint_schedule()
- switch a copied printf() to aprint_error_dev()
- use static normally in umodem_common.c
- remove unused sc_openings in softc, convert sc_dying to real bool
- add sc_refcnt, sc_lock and sc_detach_cv to softc.  usage is:
  - sc_dying is protected by sc_lock
  - sc_detach_cv is matched with sc_lock for cv operations
  - sc_refcnt is increased in open and decreased in close, any time
    it is decreased, it is checked for less than zero, and a broadcast
    performed on sc_detach_cv.  detach waits for sc_refcnt.
- umodem_param() and umodem_set() check for sc_dying

this fixes pullout out an open ucom@umodem.

@skrll.

XXX: pullup

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:01 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored) next main 1.121 (colored) to selected 1.1 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.121 / (download) - annotate - [select for diffs], Tue Dec 11 14:49:27 2018 UTC (5 years, 4 months ago) by jakllsch
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored) to selected 1.1 (colored)

restore error reporting in ucomparam() lost in 1.115

Revision 1.107.2.3 / (download) - annotate - [select for diffs], Mon Feb 19 19:33:06 2018 UTC (6 years, 1 month ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.107.2.2: +3 -3 lines
Diff to previous 1.107.2.2 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored) to selected 1.1 (colored)

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.118.8.2 / (download) - annotate - [select for diffs], Wed Jan 31 18:01:54 2018 UTC (6 years, 2 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.118.8.1: +3 -3 lines
Diff to previous 1.118.8.1 (colored) to branchpoint 1.118 (colored) to selected 1.1 (colored)

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.120 / (download) - annotate - [select for diffs], Sun Jan 21 13:57:12 2018 UTC (6 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.119: +3 -3 lines
Diff to previous 1.119 (colored) to selected 1.1 (colored)

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.99.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:34 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.99.2.3: +690 -380 lines
Diff to previous 1.99.2.3 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored) to selected 1.1 (colored)

update from HEAD

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

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

Revision 1.119 / (download) - annotate - [select for diffs], Sat Oct 28 00:37:12 2017 UTC (6 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.118: +31 -29 lines
Diff to previous 1.118 (colored) to selected 1.1 (colored)

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

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

Details of changes:

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

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

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

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

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

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

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

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

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

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

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

Revision 1.118.6.2 / (download) - annotate - [select for diffs], Sat Apr 29 11:12:15 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.118.6.1: +2 -3 lines
Diff to previous 1.118.6.1 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored) to selected 1.1 (colored)

Remove more unnecessary #include for sys/localcount.h

Revision 1.118.6.1 / (download) - annotate - [select for diffs], Thu Apr 27 05:36:36 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.118: +4 -2 lines
Diff to previous 1.118 (colored) to selected 1.1 (colored)

Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

Revision 1.107.2.2 / (download) - annotate - [select for diffs], Wed Apr 5 19:54:19 2017 UTC (7 years ago) by snj
Branch: netbsd-7
Changes since 1.107.2.1: +720 -382 lines
Diff to previous 1.107.2.1 (colored) to branchpoint 1.107 (colored) to selected 1.1 (colored)

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

Revision 1.107.2.1.2.3 / (download) - annotate - [select for diffs], Thu Jan 26 21:54:24 2017 UTC (7 years, 2 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.107.2.1.2.2: +109 -67 lines
Diff to previous 1.107.2.1.2.2 (colored) to branchpoint 1.107.2.1 (colored) next main 1.107.2.2 (colored) to selected 1.1 (colored)

Sync with HEAD/nhusb

Revision 1.113.2.5 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:42 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.113.2.4: +365 -201 lines
Diff to previous 1.113.2.4 (colored) to branchpoint 1.113 (colored) next main 1.114 (colored) to selected 1.1 (colored)

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

Revision 1.108.2.36 / (download) - annotate - [select for diffs], Tue Dec 27 15:25:41 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.35: +12 -2 lines
Diff to previous 1.108.2.35 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored) to selected 1.1 (colored)

Another merge botch

Revision 1.108.2.35 / (download) - annotate - [select for diffs], Tue Dec 27 15:22:10 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.34: +4 -4 lines
Diff to previous 1.108.2.34 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Update copyright notice

Revision 1.108.2.34 / (download) - annotate - [select for diffs], Tue Dec 27 15:21:46 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.33: +2 -12 lines
Diff to previous 1.108.2.33 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Fix merge botch

Revision 1.108.2.33 / (download) - annotate - [select for diffs], Tue Dec 27 14:58:07 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.32: +4 -4 lines
Diff to previous 1.108.2.32 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Open pipes with USBD_MPSAFE - we don't need the KERNEL_LOCK to be held.

Revision 1.118 / (download) - annotate - [select for diffs], Wed Dec 14 15:11:29 2016 UTC (7 years, 4 months ago) by skrll
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2, netbsd-8
Changes since 1.117: +12 -2 lines
Diff to previous 1.117 (colored) to selected 1.1 (colored)

Don't hold softc lock when calling ucom_read

PR/51714: uftdi (on xhci): mutex_vector_enter: locking against myself

Revision 1.108.2.32 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:18 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.31: +72 -46 lines
Diff to previous 1.108.2.31 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.117 / (download) - annotate - [select for diffs], Sun Dec 4 10:12:35 2016 UTC (7 years, 4 months ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20161204
Changes since 1.116: +24 -24 lines
Diff to previous 1.116 (colored) to selected 1.1 (colored)

Whitespace

Revision 1.107.2.1.2.2 / (download) - annotate - [select for diffs], Tue Nov 29 07:28:16 2016 UTC (7 years, 4 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.107.2.1.2.1: +344 -180 lines
Diff to previous 1.107.2.1.2.1 (colored) to branchpoint 1.107.2.1 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.116 / (download) - annotate - [select for diffs], Tue Nov 29 07:26:53 2016 UTC (7 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.115: +5 -6 lines
Diff to previous 1.115 (colored) to selected 1.1 (colored)

Ensure the softc lock is not held in ucom_shutdown as the call to ucom_dtr
can sleep.

Revision 1.115 / (download) - annotate - [select for diffs], Sat Nov 19 09:49:20 2016 UTC (7 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.114: +333 -178 lines
Diff to previous 1.114 (colored) to selected 1.1 (colored)

Pull across various locking and reference counting fixes from nick-nhusb.

Revision 1.108.2.31 / (download) - annotate - [select for diffs], Sun Nov 6 11:50:54 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.30: +217 -92 lines
Diff to previous 1.108.2.30 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Reduce the scope of the softc lock further and track device state via
sc_state.

All ucom methods apart from ucom_{read,write} are called without the
softc lock held.

ucom_close is called on last close only to match ucom_open being called
on first open only.

Fix ucom_detach where refcnt wasn't being decremented.

More DEBUG.

XXX still not sure where tty_lock needs to be held.

Revision 1.108.2.30 / (download) - annotate - [select for diffs], Sun Nov 6 09:36:53 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.29: +6 -2 lines
Diff to previous 1.108.2.29 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Add #include "opt_usb.h"

Revision 1.113.2.4 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:16 2016 UTC (7 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.113.2.3: +12 -2 lines
Diff to previous 1.113.2.3 (colored) to branchpoint 1.113 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.108.2.29 / (download) - annotate - [select for diffs], Wed Nov 2 08:41:00 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.28: +5 -5 lines
Diff to previous 1.108.2.28 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Whitespace

Revision 1.108.2.28 / (download) - annotate - [select for diffs], Wed Nov 2 08:31:25 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.27: +4 -5 lines
Diff to previous 1.108.2.27 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Reduce the scope of a variable and style.  No functional change.

Revision 1.108.2.27 / (download) - annotate - [select for diffs], Wed Nov 2 08:28:10 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.26: +8 -9 lines
Diff to previous 1.108.2.26 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Make ucomsubmitread return int instead of usbd_status.

Revision 1.108.2.26 / (download) - annotate - [select for diffs], Tue Nov 1 08:27:57 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.25: +4 -4 lines
Diff to previous 1.108.2.25 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Style... No functional change.

Revision 1.108.2.25 / (download) - annotate - [select for diffs], Thu Oct 27 12:30:54 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.24: +25 -21 lines
Diff to previous 1.108.2.24 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Style and sprinkle const.

Revision 1.108.2.24 / (download) - annotate - [select for diffs], Thu Oct 27 07:46:19 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.23: +11 -8 lines
Diff to previous 1.108.2.23 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

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

Revision 1.108.2.23 / (download) - annotate - [select for diffs], Tue Oct 25 07:32:25 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.22: +16 -8 lines
Diff to previous 1.108.2.22 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Misc whitespace changes.  No functional change.

Revision 1.108.2.22 / (download) - annotate - [select for diffs], Tue Oct 25 07:25:05 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.21: +6 -6 lines
Diff to previous 1.108.2.21 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Conver sc_dying to a bool.  No functional change.

Revision 1.108.2.21 / (download) - annotate - [select for diffs], Tue Oct 25 07:23:32 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.20: +6 -7 lines
Diff to previous 1.108.2.20 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Formatting.  No functional change.

Revision 1.108.2.20 / (download) - annotate - [select for diffs], Tue Oct 25 07:20:11 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.19: +10 -17 lines
Diff to previous 1.108.2.19 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Style

Revision 1.108.2.19 / (download) - annotate - [select for diffs], Wed Oct 12 14:40:03 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.18: +4 -4 lines
Diff to previous 1.108.2.18 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Don't need '\n' in DPRINTF format

Revision 1.108.2.18 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:57 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.17: +12 -2 lines
Diff to previous 1.108.2.17 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.114 / (download) - annotate - [select for diffs], Mon Oct 3 13:36:33 2016 UTC (7 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161004
Changes since 1.113: +12 -2 lines
Diff to previous 1.113 (colored) to selected 1.1 (colored)

Do not hold the softc lock (IPL_SOFTUSB) unnecessarily and specifically
across ucomparam (and the ucom_param method).  The method can sleep wait-
ing for transfers... any input/output will try to acquire the lock and get
stuck

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

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

Revision 1.113.2.3 / (download) - annotate - [select for diffs], Tue Jul 26 05:54:40 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.113.2.2: +3 -3 lines
Diff to previous 1.113.2.2 (colored) to branchpoint 1.113 (colored) to selected 1.1 (colored)

Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT.  This better describes
what we're doing, and why.

Revision 1.113.2.2 / (download) - annotate - [select for diffs], Tue Jul 19 06:26:59 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.113.2.1: +3 -9 lines
Diff to previous 1.113.2.1 (colored) to branchpoint 1.113 (colored) to selected 1.1 (colored)

Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it.  This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Mon Jul 18 03:49:59 2016 UTC (7 years, 9 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.113: +10 -2 lines
Diff to previous 1.113 (colored) to selected 1.1 (colored)

Rump drivers are always installed via devsw_attach() so we need to
always allocate a 'struct localcount' for these drivers whenever they
are built as modules.

Revision 1.108.2.17 / (download) - annotate - [select for diffs], Wed Jun 29 06:38:12 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.16: +4 -4 lines
Diff to previous 1.108.2.16 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Comment out incorrect KASSERTs

Revision 1.108.2.16 / (download) - annotate - [select for diffs], Tue Jun 28 11:47:53 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.15: +3 -2 lines
Diff to previous 1.108.2.15 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Make sure ub_data has the transfer buffer

Revision 1.108.2.15 / (download) - annotate - [select for diffs], Mon May 30 06:54:17 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.14: +84 -49 lines
Diff to previous 1.108.2.14 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

WIP ucom support for devices with interrupt endpoints like umct

Revision 1.108.2.14 / (download) - annotate - [select for diffs], Sun May 29 08:44:31 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.13: +27 -25 lines
Diff to previous 1.108.2.13 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.113 / (download) - annotate - [select for diffs], Sat May 14 10:52:29 2016 UTC (7 years, 11 months ago) by mlelstv
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.112: +14 -4 lines
Diff to previous 1.112 (colored) to selected 1.1 (colored)

All com devices have an issue that they sleep in the final close
when they signal a hangup while still using the device. This allows
a concurrent open to succeed without proper locking because it
only checks the state of the tty layer.

This issue triggers an assertion in ucom due to a reused USB xfer,
but it can also cause misbehaviour in other com devices.

For now in ucom:
- make open block while close is in progress
- also serialize close operations

Revision 1.112 / (download) - annotate - [select for diffs], Tue May 10 10:40:33 2016 UTC (7 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.111: +15 -23 lines
Diff to previous 1.111 (colored) to selected 1.1 (colored)

Fixup ucom_cleanup to not forget our pipe handles.

Simplify ucomreadcb by dealing with the USBD_CANCELLED separately and
not taking sc_lock.  We can't hold sc_lock while aborting now.

Revision 1.111 / (download) - annotate - [select for diffs], Sat Apr 23 10:15:32 2016 UTC (7 years, 11 months ago) by skrll
Branch: MAIN
Changes since 1.110: +406 -276 lines
Diff to previous 1.110 (colored) to selected 1.1 (colored)

Merge nick-nhusb

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

Revision 1.108.2.13 / (download) - annotate - [select for diffs], Sat Apr 16 13:22:00 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.12: +24 -23 lines
Diff to previous 1.108.2.12 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Prefix ucom_attach_args struct members with ucaa_ and rename variables
for consistency.

No functional change.

Revision 1.108.2.12 / (download) - annotate - [select for diffs], Sat Feb 6 07:59:26 2016 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.11: +68 -68 lines
Diff to previous 1.108.2.11 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

No need to use mutex_obj_alloc here

Revision 1.108.2.11 / (download) - annotate - [select for diffs], Mon Dec 28 09:26:33 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.10: +12 -2 lines
Diff to previous 1.108.2.10 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

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

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

Revision 1.108.2.10 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:59 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.9: +4 -2 lines
Diff to previous 1.108.2.9 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Mon Nov 16 14:41:44 2015 UTC (8 years, 5 months ago) by msaitoh
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Branch point for: netbsd-7-nhusb
Changes since 1.107: +4 -2 lines
Diff to previous 1.107 (colored) to selected 1.1 (colored)

Pull up following revision(s) (requested by joerg in ticket #1031):
	sys/dev/usb/ucom.c: revision 1.110
Add the port number to the device properties to make it easier to relate
a specific ucom instance with the physical port of multi-port devices
like the FTDI 4232.

Revision 1.110 / (download) - annotate - [select for diffs], Sun Nov 8 21:05:01 2015 UTC (8 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.109: +4 -2 lines
Diff to previous 1.109 (colored) to selected 1.1 (colored)

Add the port number to the device properties to make it easier to relate
a specific ucom instance with the physical port of multi-port devices
like the FTDI 4232.

Revision 1.108.2.9 / (download) - annotate - [select for diffs], Tue Oct 6 21:32:15 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.8: +80 -108 lines
Diff to previous 1.108.2.8 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

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

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

Revision 1.108.2.8 / (download) - annotate - [select for diffs], Sat Sep 19 07:39:51 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.7: +167 -80 lines
Diff to previous 1.108.2.7 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Make ucom(4) MP safe

Revision 1.108.2.7 / (download) - annotate - [select for diffs], Thu Jul 23 07:36:33 2015 UTC (8 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.6: +92 -32 lines
Diff to previous 1.108.2.6 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Convert to usbhist

Revision 1.108.2.6 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:14 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.5: +3 -3 lines
Diff to previous 1.108.2.5 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.109 / (download) - annotate - [select for diffs], Mon Apr 13 16:33:25 2015 UTC (9 years ago) by riastradh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored) to selected 1.1 (colored)

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

Revision 1.108.2.5 / (download) - annotate - [select for diffs], Thu Mar 19 17:26:43 2015 UTC (9 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.4: +13 -13 lines
Diff to previous 1.108.2.4 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

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

Revision 1.108.2.4 / (download) - annotate - [select for diffs], Tue Dec 23 11:24:32 2014 UTC (9 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.3: +3 -3 lines
Diff to previous 1.108.2.3 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

KNF. No brackets around return value.

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

KNF. Remove ( ) from return statements.

Revision 1.108.2.2 / (download) - annotate - [select for diffs], Tue Dec 2 09:00:34 2014 UTC (9 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108.2.1: +4 -4 lines
Diff to previous 1.108.2.1 (colored) to branchpoint 1.108 (colored) to selected 1.1 (colored)

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.108.2.1 / (download) - annotate - [select for diffs], Sun Nov 30 12:18:58 2014 UTC (9 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored) to selected 1.1 (colored)

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

No functional change.

Revision 1.108 / (download) - annotate - [select for diffs], Sat Nov 15 19:18:19 2014 UTC (9 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.107: +9 -9 lines
Diff to previous 1.107 (colored) to selected 1.1 (colored)

centralize the dialout/call unit macros.

Revision 1.99.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:51 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.99.2.2: +49 -10 lines
Diff to previous 1.99.2.2 (colored) to branchpoint 1.99 (colored) to selected 1.1 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:36 2014 UTC (9 years, 8 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Branch point for: netbsd-7
Changes since 1.106: +3 -3 lines
Diff to previous 1.106 (colored) to selected 1.1 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:59 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.103.2.1: +37 -7 lines
Diff to previous 1.103.2.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored) to selected 1.1 (colored)

Rebase.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Jul 25 16:13:21 2014 UTC (9 years, 8 months ago) by gdt
Branch: MAIN
CVS Tags: tls-earlyentropy-base
Changes since 1.105: +36 -3 lines
Diff to previous 1.105 (colored) to selected 1.1 (colored)

Add PPS support to ucom(4).

This is basically cribbed from regular serial ports, and just adds
hooks to call the pps support routines.

Also, note in the ucom(4) man page that there is about 1 ms of
latency.  Discussed on tech-kern in October of 2013, with the only
concern being that someone who didn't know what they were doing might
set up a stratum 1 server, and that somehow might have worse
timekeeping than whatever else that person might have done; the man
page comment is a mitigation for this.

This patch has been live-tested in netbsd-5/i386 and netbsd-6/i386,
and has been running on machines without a USB-serial GPS device for
most of a year with no adverse consequences (very little happens if
the PPS ioctls are not invoked).

Revision 1.105 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:39 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.104: +3 -2 lines
Diff to previous 1.104 (colored) to selected 1.1 (colored)

Add d_discard to all struct cdevsw instances I could find.

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

Revision 1.87.4.4 / (download) - annotate - [select for diffs], Thu May 22 11:40:37 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.87.4.3: +13 -8 lines
Diff to previous 1.87.4.3 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored) to selected 1.1 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:47 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.102: +13 -8 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.1 (colored)

sync with head

Revision 1.104 / (download) - annotate - [select for diffs], Sun May 4 22:18:38 2014 UTC (9 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.103: +2 -6 lines
Diff to previous 1.103 (colored) to selected 1.1 (colored)

remove hack for PR/42848

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 03:37:33 2014 UTC (10 years ago) by tls
Branch: tls-earlyentropy
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored) to selected 1.1 (colored)

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

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
   RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

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

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

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

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

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

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

Revision 1.99.2.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:38 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.99.2.1: +27 -15 lines
Diff to previous 1.99.2.1 (colored) to branchpoint 1.99 (colored) to selected 1.1 (colored)

resync with head

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

sync with head

Revision 1.102 / (download) - annotate - [select for diffs], Sat Dec 15 04:10:05 2012 UTC (11 years, 4 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-pagecache-base8, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.1 (colored)

drop trailing whitespace.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Dec 15 04:09:24 2012 UTC (11 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.100: +26 -14 lines
Diff to previous 1.100 (colored) to selected 1.1 (colored)

Sometimes the device disappears out from under us and device_lookup_private()
will return NULL. Be paranoid about this to prevent NULL pointer dereferences.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:34 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.99: +8 -3 lines
Diff to previous 1.99 (colored) to selected 1.1 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.87.4.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:08 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.87.4.1: +8 -3 lines
Diff to previous 1.87.4.1 (colored) to branchpoint 1.87 (colored) to selected 1.1 (colored)

sync with head

Revision 1.100 / (download) - annotate - [select for diffs], Wed Oct 17 17:05:15 2012 UTC (11 years, 6 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.99: +8 -3 lines
Diff to previous 1.99 (colored) to selected 1.1 (colored)

Don't rely on TS_BUSY to determine wether there is a buffer
available. Instead handle a possible buffer shortage.
Also aquire lock when modifying t_state.

Revision 1.87.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:07 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.87: +26 -32 lines
Diff to previous 1.87 (colored) to selected 1.1 (colored)

sync with head

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

pull down from usbmp branch:

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

Revision 1.88.2.3 / (download) - annotate - [select for diffs], Sun Feb 26 07:12:50 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.88.2.2: +8 -8 lines
Diff to previous 1.88.2.2 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.1 (colored)

rename old usb_detach_wakeup/wait to usb_detach_{wake,wakeup}old().

Revision 1.88.2.2 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:42 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.88.2.1: +2 -12 lines
Diff to previous 1.88.2.1 (colored) to branchpoint 1.88 (colored) to selected 1.1 (colored)

sync to -current.

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

remove any remnants of freebsd/openbsd code.

Revision 1.88.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:08 2012 UTC (12 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.88: +23 -19 lines
Diff to previous 1.88 (colored) to selected 1.1 (colored)

merge to -current.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Feb 2 19:43:07 2012 UTC (12 years, 2 months ago) by tls
Branch: 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
Changes since 1.96: +6 -11 lines
Diff to previous 1.96 (colored) to selected 1.1 (colored)

Entropy-pool implementation move and cleanup.

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

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

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

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

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

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

Revision 1.96 / (download) - annotate - [select for diffs], Sat Jan 14 20:51:00 2012 UTC (12 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.95: +6 -2 lines
Diff to previous 1.95 (colored) to selected 1.1 (colored)

Stopgap XXX kludge for PR kern/42848 and PR kern/45013.

Someone should really find and fix the real problem,
but it's better to not crash in the meantime.

Revision 1.95 / (download) - annotate - [select for diffs], Sat Jan 14 20:41:49 2012 UTC (12 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.94: +7 -5 lines
Diff to previous 1.94 (colored) to selected 1.1 (colored)

Don't notify about zero length reads without UCOM_DEBUG && ucomdebug > 0.
It's typical for uslsa(4) hardware to do this occasionally.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Jan 14 20:25:45 2012 UTC (12 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.93: +8 -5 lines
Diff to previous 1.93 (colored) to selected 1.1 (colored)

In ucompoll() also bail out if we don't have a valid softc.
Seems to prevent occasional crashes when a open ucom is removed.

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

Revert previous due to active usbmp branch(es).

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

Adjust-away inconsistent and trailing whitespace.

Revision 1.91 / (download) - annotate - [select for diffs], Mon Dec 19 19:39:51 2011 UTC (12 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored) to selected 1.1 (colored)

It's tp->t_dev, not tp->tp_dev.  Corrects commit prior to previous.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Dec 19 19:34:52 2011 UTC (12 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored) to selected 1.1 (colored)

const-ify struct ucom_methods pointer within ucom(4).

Revision 1.89 / (download) - annotate - [select for diffs], Mon Dec 19 19:30:12 2011 UTC (12 years, 3 months ago) by jakllsch
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored) to selected 1.1 (colored)

Make commented-out code in ucomstop() compilable.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Nov 19 22:51:24 2011 UTC (12 years, 4 months ago) by tls
Branch: MAIN
CVS Tags: mrg-ohci-jmcneill-usbmp-base, mrg-ohci-jmcneill-usbmp, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored) to selected 1.1 (colored)

First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>.  This change includes
the following:

	An initial cleanup and minor reorganization of the entropy pool
	code in sys/dev/rnd.c and sys/dev/rndpool.c.  Several bugs are
	fixed.  Some effort is made to accumulate entropy more quickly at
	boot time.

	A generic interface, "rndsink", is added, for stream generators to
	request that they be re-keyed with good quality entropy from the pool
	as soon as it is available.

	The arc4random()/arc4randbytes() implementation in libkern is
	adjusted to use the rndsink interface for rekeying, which helps
	address the problem of low-quality keys at boot time.

	An implementation of the FIPS 140-2 statistical tests for random
	number generator quality is provided (libkern/rngtest.c).  This
	is based on Greg Rose's implementation from Qualcomm.

	A new random stream generator, nist_ctr_drbg, is provided.  It is
	based on an implementation of the NIST SP800-90 CTR_DRBG by
	Henric Jungheim.  This generator users AES in a modified counter
	mode to generate a backtracking-resistant random stream.

	An abstraction layer, "cprng", is provided for in-kernel consumers
	of randomness.  The arc4random/arc4randbytes API is deprecated for
	in-kernel use.  It is replaced by "cprng_strong".  The current
	cprng_fast implementation wraps the existing arc4random
	implementation.  The current cprng_strong implementation wraps the
	new CTR_DRBG implementation.  Both interfaces are rekeyed from
	the entropy pool automatically at intervals justifiable from best
	current cryptographic practice.

	In some quick tests, cprng_fast() is about the same speed as
	the old arc4randbytes(), and cprng_strong() is about 20% faster
	than rnd_extract_data().  Performance is expected to improve.

	The AES code in src/crypto/rijndael is no longer an optional
	kernel component, as it is required by cprng_strong, which is
	not an optional kernel component.

	The entropy pool output is subjected to the rngtest tests at
	startup time; if it fails, the system will reboot.  There is
	approximately a 3/10000 chance of a false positive from these
	tests.  Entropy pool _input_ from hardware random numbers is
	subjected to the rngtest tests at attach time, as well as the
	FIPS continuous-output test, to detect bad or stuck hardware
	RNGs; if any are detected, they are detached, but the system
	continues to run.

	A problem with rndctl(8) is fixed -- datastructures with
	pointers in arrays are no longer passed to userspace (this
	was not a security problem, but rather a major issue for
	compat32).  A new kernel will require a new rndctl.

	The sysctl kern.arandom() and kern.urandom() nodes are hooked
	up to the new generators, but the /dev/*random pseudodevices
	are not, yet.

	Manual pages for the new kernel interfaces are forthcoming.

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:42 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored) next main 1.87 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.83.2.2 / (download) - annotate - [select for diffs], Tue May 31 03:04:55 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.83.2.1: +2 -2 lines
Diff to previous 1.83.2.1 (colored) to branchpoint 1.83 (colored) next main 1.84 (colored) to selected 1.1 (colored)

sync with head

Revision 1.87 / (download) - annotate - [select for diffs], Sun Apr 24 16:27:01 2011 UTC (12 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored) to selected 1.1 (colored)

Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency.  Remove some unnecessary malloc.h inclusions as well.

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:54:13 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.83: +30 -28 lines
Diff to previous 1.83 (colored) to selected 1.1 (colored)

sync with head

Revision 1.86 / (download) - annotate - [select for diffs], Tue Nov 30 15:26:22 2010 UTC (13 years, 4 months ago) by bsh
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.85: +2 -3 lines
Diff to previous 1.85 (colored) to selected 1.1 (colored)

don't clear TS_BUSY in ucomclose().
This fixes kernel crash in ucomstart() with "echo Hello > /dev/ttyU0".

Revision 1.82.2.3 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:37 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.82.2.2: +28 -19 lines
Diff to previous 1.82.2.2 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Nov 3 22:34:23 2010 UTC (13 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base4
Changes since 1.84: +28 -19 lines
Diff to previous 1.84 (colored) to selected 1.1 (colored)

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

Revision 1.82.2.2 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:18 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.82.2.1: +2 -8 lines
Diff to previous 1.82.2.1 (colored) to branchpoint 1.82 (colored) to selected 1.1 (colored)

Sync with HEAD (-D20101022).

Revision 1.75.4.5 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:26 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.75.4.4: +4 -10 lines
Diff to previous 1.75.4.4 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.1 (colored)

sync with head

Revision 1.84 / (download) - annotate - [select for diffs], Fri Oct 1 17:02:35 2010 UTC (13 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base3
Changes since 1.83: +4 -10 lines
Diff to previous 1.83 (colored) to selected 1.1 (colored)

remove debugging statements that have no chance of working (they crash)
since they are called from a context where we cannot log.

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:52 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.82: +4 -4 lines
Diff to previous 1.82 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.75.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:06 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.75.4.3: +380 -191 lines
Diff to previous 1.75.4.3 (colored) to branchpoint 1.75 (colored) to selected 1.1 (colored)

sync with head

Revision 1.83 / (download) - annotate - [select for diffs], Sat Feb 20 14:52:22 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.82: +4 -4 lines
Diff to previous 1.82 (colored) to selected 1.1 (colored)

printf -> aprint_normal to avoid empty linefeeds and partial messages
for AB_QUIET.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jan 6 20:37:56 2010 UTC (14 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.81: +375 -184 lines
Diff to previous 1.81 (colored) to selected 1.1 (colored)

Optimize for higher speeds, e.g. when used as part of a 3G modem.
Contributed anonymously.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Dec 6 21:40:31 2009 UTC (14 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.80: +5 -7 lines
Diff to previous 1.80 (colored) to selected 1.1 (colored)

Simplify device-activation hooks.

Revision 1.75.4.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:21 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.75.4.2: +3 -3 lines
Diff to previous 1.75.4.2 (colored) to branchpoint 1.75 (colored) to selected 1.1 (colored)

sync with head.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Jul 30 19:57:07 2009 UTC (14 years, 8 months ago) by skrll
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, jym-xensuspend-nbase
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored) to selected 1.1 (colored)

typo in comment.

Revision 1.75.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:21 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.75.4.1: +24 -25 lines
Diff to previous 1.75.4.1 (colored) to branchpoint 1.75 (colored) to selected 1.1 (colored)

sync with head.

Revision 1.77.6.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:31:52 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.77.6.1: +3 -3 lines
Diff to previous 1.77.6.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Jan 20 18:20:48 2009 UTC (15 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored) to selected 1.1 (colored)

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.77.6.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:09 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.74.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:09 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.74.6.1: +1 -1 lines
Diff to previous 1.74.6.1 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Jan 11 10:56:27 2009 UTC (15 years, 3 months ago) by cegger
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) to selected 1.1 (colored)

make this compile

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:36 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.76: +24 -25 lines
Diff to previous 1.76 (colored) next main 1.77 (colored) to selected 1.1 (colored)

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

Revision 1.75.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:20 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.75.2.1: +24 -25 lines
Diff to previous 1.75.2.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.1 (colored)

sync with head

Revision 1.74.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:54 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.74: +24 -32 lines
Diff to previous 1.74 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.77 / (download) - annotate - [select for diffs], Sat May 24 16:40:58 2008 UTC (15 years, 10 months ago) by cube
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, 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-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.76: +24 -25 lines
Diff to previous 1.76 (colored) to selected 1.1 (colored)

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

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

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:50 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.75: +2 -9 lines
Diff to previous 1.75 (colored) to selected 1.1 (colored)

sync with head.

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

sync with head.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:59 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.75: +2 -9 lines
Diff to previous 1.75 (colored) to selected 1.1 (colored)

Remove clause 3 and 4 from TNF licenses

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

use aprint_*_dev and device_xname

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

Sync with HEAD.

Revision 1.56.2.6 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:45 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.56.2.5: +5 -2 lines
Diff to previous 1.56.2.5 (colored) next main 1.57 (colored) to selected 1.1 (colored)

sync with head

Revision 1.70.16.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:41 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.70: +11 -11 lines
Diff to previous 1.70 (colored) next main 1.71 (colored) to selected 1.1 (colored)

sync with HEAD

Revision 1.73.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:20 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.73: +5 -2 lines
Diff to previous 1.73 (colored) next main 1.74 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.74 / (download) - annotate - [select for diffs], Sun Dec 30 21:49:47 2007 UTC (16 years, 3 months ago) by smb
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.73: +5 -2 lines
Diff to previous 1.73 (colored) to selected 1.1 (colored)

Add pmf register/deregister to ucom and ugensa.  (Addtionally, let a
Sierra wireless card be recognized as a ugensa.)

Revision 1.70.22.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:03 2007 UTC (16 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.70.22.1: +4 -11 lines
Diff to previous 1.70.22.1 (colored) to branchpoint 1.70 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.56.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:31:33 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.56.2.4: +4 -11 lines
Diff to previous 1.56.2.4 (colored) to selected 1.1 (colored)

sync with head

Revision 1.70.14.3 / (download) - annotate - [select for diffs], Wed Nov 21 21:55:50 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.70.14.2: +4 -11 lines
Diff to previous 1.70.14.2 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.70.20.2 / (download) - annotate - [select for diffs], Wed Nov 21 21:19:42 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.70.20.1: +2 -9 lines
Diff to previous 1.70.20.1 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.73 / (download) - annotate - [select for diffs], Mon Nov 19 18:51:50 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: bouyer-xeni386
Changes since 1.72: +4 -11 lines
Diff to previous 1.72 (colored) to selected 1.1 (colored)

- Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.

Revision 1.70.22.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:26 2007 UTC (16 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.70: +6 -2 lines
Diff to previous 1.70 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.56.2.4 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:34 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.56.2.3: +6 -2 lines
Diff to previous 1.56.2.3 (colored) to selected 1.1 (colored)

sync with head.

Revision 1.70.14.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:36 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.70.14.1: +4 -2 lines
Diff to previous 1.70.14.1 (colored) to branchpoint 1.70 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.70.20.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:41 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.70: +6 -2 lines
Diff to previous 1.70 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.72 / (download) - annotate - [select for diffs], Mon Nov 12 14:20:41 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.71: +4 -2 lines
Diff to previous 1.71 (colored) to selected 1.1 (colored)

Call ttwakeup() with tty_lock held.

Revision 1.70.14.1 / (download) - annotate - [select for diffs], Sun Nov 11 16:47:49 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.70: +4 -2 lines
Diff to previous 1.70 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.71 / (download) - annotate - [select for diffs], Sat Nov 10 18:29:37 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.70: +4 -2 lines
Diff to previous 1.70 (colored) to selected 1.1 (colored)

Call ttyflush() with tty_lock held.

Revision 1.56.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:39:09 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.56.2.2: +5 -5 lines
Diff to previous 1.56.2.2 (colored) to selected 1.1 (colored)

sync with head.

Revision 1.69.10.3 / (download) - annotate - [select for diffs], Sun Jun 17 01:04:18 2007 UTC (16 years, 10 months ago) by itohy
Branch: itohy-usb1
Changes since 1.69.10.2: +16 -16 lines
Diff to previous 1.69.10.2 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored) to selected 1.1 (colored)

- Pullup 1.70 in a different way.
- Use p for parameter name of type usb_proc_ptr.

Revision 1.69.10.2 / (download) - annotate - [select for diffs], Sat Jun 16 04:12:30 2007 UTC (16 years, 10 months ago) by itohy
Branch: itohy-usb1
Changes since 1.69.10.1: +10 -8 lines
Diff to previous 1.69.10.1 (colored) to branchpoint 1.69 (colored) to selected 1.1 (colored)

- Change order to fit current API: usbd_open_pipe() -> usbd_alloc_xfer;
  usbd_abort_pipe() -> usbd_free_xfer() -> usbd_close_pipe().

Revision 1.69.10.1 / (download) - annotate - [select for diffs], Tue May 22 14:57:40 2007 UTC (16 years, 10 months ago) by itohy
Branch: itohy-usb1
Changes since 1.69: +12 -11 lines
Diff to previous 1.69 (colored) to selected 1.1 (colored)

Overhaul of USB stack, mostly DMA related

This applies to NetBSD 4.99.13 (March 1, 2007)

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

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

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

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

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

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

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

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

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

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

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

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:57:30 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.69: +5 -5 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:48 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, 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
Branch point for: mjf-devfs, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.69: +5 -5 lines
Diff to previous 1.69 (colored) to selected 1.1 (colored)

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

Revision 1.56.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:38 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.56.2.1: +7 -9 lines
Diff to previous 1.56.2.1 (colored) to selected 1.1 (colored)

sync with head.

Revision 1.65.6.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:17 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.65.6.1: +7 -7 lines
Diff to previous 1.65.6.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored) to selected 1.1 (colored)

sync with head.

Revision 1.65.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:51 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.65: +5 -8 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.1 (colored)

Sync with head.

Revision 1.69 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:26 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, itohy-usb1-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, itohy-usb1
Changes since 1.68: +7 -7 lines
Diff to previous 1.68 (colored) to selected 1.1 (colored)

__unused removal on arguments; approved by core.

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

sync with head

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

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

Revision 1.67 / (download) - annotate - [select for diffs], Sun Oct 1 20:31:51 2006 UTC (17 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored) to selected 1.1 (colored)

More from Matt Fleming:

Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Oct 1 19:28:44 2006 UTC (17 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.65: +3 -6 lines
Diff to previous 1.65 (colored) to selected 1.1 (colored)

Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!

Also, add forgotten splx() calls in some places.

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

sync with head

Revision 1.61.2.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:20 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.61.2.2: +8 -7 lines
Diff to previous 1.61.2.2 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.1 (colored)

sync with head

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jul 21 16:48:53 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.64: +6 -6 lines
Diff to previous 1.64 (colored) to selected 1.1 (colored)

- Use the LWP cached credentials where sane.
- Minor cosmetic changes.

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:44 2006 UTC (17 years, 9 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.63: +4 -3 lines
Diff to previous 1.63 (colored) next main 1.64 (colored) to selected 1.1 (colored)

Merge from HEAD.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Jul 12 07:36:25 2006 UTC (17 years, 9 months ago) by gson
Branch: MAIN
Changes since 1.63: +4 -3 lines
Diff to previous 1.63 (colored) to selected 1.1 (colored)

Assert RTS on open.  Fixes PR kern/33929.

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

sync with head.

Revision 1.60.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:37:41 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.60.6.1: +5 -4 lines
Diff to previous 1.60.6.1 (colored) next main 1.61 (colored) to selected 1.1 (colored)

Sync with head.

Revision 1.61.6.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:30 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.61.6.1: +3 -2 lines
Diff to previous 1.61.6.1 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.1 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.61.2.2 / (download) - annotate - [select for diffs], Wed May 24 10:58:24 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.61.2.1: +5 -4 lines
Diff to previous 1.61.2.1 (colored) to branchpoint 1.61 (colored) to selected 1.1 (colored)

sync with head.

Revision 1.63 / (download) - annotate - [select for diffs], Sun May 14 21:47:00 2006 UTC (17 years, 11 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: gdamore-uart
Changes since 1.62: +5 -4 lines
Diff to previous 1.62 (colored) to selected 1.1 (colored)

integrate kauth.

Revision 1.61.4.4 / (download) - annotate - [select for diffs], Sat May 6 23:31:29 2006 UTC (17 years, 11 months ago) by christos
Branch: elad-kernelauth
Changes since 1.61.4.3: +3 -2 lines
Diff to previous 1.61.4.3 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.1 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.60.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:38 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored) to selected 1.1 (colored)

Sync with head.

Revision 1.61.4.3 / (download) - annotate - [select for diffs], Wed Apr 19 03:26:29 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.61.4.2: +3 -3 lines
Diff to previous 1.61.4.2 (colored) to branchpoint 1.61 (colored) to selected 1.1 (colored)

sync with head.

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

sync with head.

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

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

Revision 1.62 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:35 2006 UTC (18 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, elad-kernelauth-base
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored) to selected 1.1 (colored)

Use device_unit().

Revision 1.61.4.2 / (download) - annotate - [select for diffs], Fri Mar 10 14:39:03 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.61.4.1: +4 -4 lines
Diff to previous 1.61.4.1 (colored) to branchpoint 1.61 (colored) to selected 1.1 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.61.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:44:49 2006 UTC (18 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.61: +4 -4 lines
Diff to previous 1.61 (colored) to selected 1.1 (colored)

Adapt to kernel authorization KPI.

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:40 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.1 (colored)

sync with head.

Revision 1.61 / (download) - annotate - [select for diffs], Mon Feb 20 16:50:37 2006 UTC (18 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored) to selected 1.1 (colored)

Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:01 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.59: +15 -13 lines
Diff to previous 1.59 (colored) to selected 1.1 (colored)

merge ktrace-lwp.

Revision 1.51.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:08:05 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.51.2.4: +13 -14 lines
Diff to previous 1.51.2.4 (colored) next main 1.52 (colored) to selected 1.1 (colored)

Sync with HEAD. Here we go again...

Revision 1.59 / (download) - annotate - [select for diffs], Fri Sep 23 14:15:30 2005 UTC (18 years, 6 months ago) by itohy
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.58: +3 -5 lines
Diff to previous 1.58 (colored) to selected 1.1 (colored)

Remove duplicated "portno %d" from the attach message.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Sep 6 21:40:45 2005 UTC (18 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.1 (colored)

Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.

Revision 1.57 / (download) - annotate - [select for diffs], Fri Aug 26 12:42:11 2005 UTC (18 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) to selected 1.1 (colored)

s/locdesc_t/int/g

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jun 21 14:01:12 2005 UTC (18 years, 9 months ago) by ws
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.55: +6 -6 lines
Diff to previous 1.55 (colored) to selected 1.1 (colored)

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

Revision 1.55 / (download) - annotate - [select for diffs], Mon May 30 04:21:39 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.1 (colored)

- const poisoning
- eliminate variable shadowing

Revision 1.54 / (download) - annotate - [select for diffs], Wed May 18 11:26:11 2005 UTC (18 years, 11 months ago) by augustss
Branch: MAIN
Changes since 1.53: +5 -4 lines
Diff to previous 1.53 (colored) to selected 1.1 (colored)

Handle DCD differently so it's not always asserted.  From kern/30268 from
Wolfgang Stukenbrock.

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

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Sep 13 12:55:49 2004 UTC (19 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Changes since 1.52: +8 -5 lines
Diff to previous 1.52 (colored) to selected 1.1 (colored)

a round of autoconf cleanup:
-convert submatch() style functions (passed to config_search() or
 config_found_sm()) to the locator passing variants
-pass interface attributes in some cases
-make submatch() functions look uniformly as far as possible
-avoid macros which just hide cfdata members, and reduce dependencies
 on "locators.h"

Revision 1.51.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:33 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.51.2.1: +4 -4 lines
Diff to previous 1.51.2.1 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.52 / (download) - annotate - [select for diffs], Mon Nov 24 19:47:07 2003 UTC (20 years, 4 months ago) by nathanw
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored) to selected 1.1 (colored)

Make the DPRINTF text for bulk in/out opening errors match which one
is in and which one is out.

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

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

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:55 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.50: +11 -13 lines
Diff to previous 1.50 (colored) to selected 1.1 (colored)

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

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

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

Bump the kernel rev up to 1.6V

Revision 1.36.2.12 / (download) - annotate - [select for diffs], Fri Jan 3 17:08:14 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.36.2.11: +4 -4 lines
Diff to previous 1.36.2.11 (colored) next main 1.37 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Jan 1 00:10:25 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.48: +4 -4 lines
Diff to previous 1.48 (colored) to selected 1.1 (colored)

Use aprint_normal() in cfprint routines.

Revision 1.36.2.11 / (download) - annotate - [select for diffs], Wed Dec 11 06:38:51 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.36.2.10: +1 -1 lines
Diff to previous 1.36.2.10 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Nov 25 02:28:56 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored) to selected 1.1 (colored)

Avoid strict-alias warnings.

Revision 1.36.2.10 / (download) - annotate - [select for diffs], Mon Nov 11 22:12:50 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.9: +1 -1 lines
Diff to previous 1.36.2.9 (colored) to selected 1.1 (colored)

Catch up to -current

Revision 1.47 / (download) - annotate - [select for diffs], Wed Oct 23 09:13:59 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored) to selected 1.1 (colored)

merge kqueue branch into -current

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

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

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

Revision 1.36.2.9 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:30 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.8: +1 -2 lines
Diff to previous 1.36.2.8 (colored) to selected 1.1 (colored)

Catch up to -current.

Revision 1.38.2.5 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:35 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.38.2.4: +17 -8 lines
Diff to previous 1.38.2.4 (colored) next main 1.39 (colored) to selected 1.1 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.46 / (download) - annotate - [select for diffs], Fri Sep 27 03:18:21 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) to selected 1.1 (colored)

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

Revision 1.45 / (download) - annotate - [select for diffs], Mon Sep 23 05:51:20 2002 UTC (21 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.44: +2 -3 lines
Diff to previous 1.44 (colored) to selected 1.1 (colored)

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

Revision 1.36.2.8 / (download) - annotate - [select for diffs], Tue Sep 17 21:21:31 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.7: +14 -4 lines
Diff to previous 1.36.2.7 (colored) to selected 1.1 (colored)

Catch up to -current.

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

Merge the gehenna-devsw branch into the trunk.

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

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

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

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

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

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

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

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

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

Revision 1.38.2.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:46:50 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.38.2.3: +21 -21 lines
Diff to previous 1.38.2.3 (colored) to selected 1.1 (colored)

sync kqueue branch with HEAD

Revision 1.36.2.7 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:55 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.6: +19 -19 lines
Diff to previous 1.36.2.6 (colored) to selected 1.1 (colored)

Catch up to -current.

Revision 1.42.4.2 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:04 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.42.4.1: +21 -21 lines
Diff to previous 1.42.4.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.1 (colored)

catch up with -current.

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

Get rid of trailing white space.

Revision 1.38.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:06 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.38.2.2: +6 -6 lines
Diff to previous 1.38.2.2 (colored) to selected 1.1 (colored)

catch up with -current on kqueue branch

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

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

Revision 1.36.2.6 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:33 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.5: +6 -6 lines
Diff to previous 1.36.2.5 (colored) to selected 1.1 (colored)

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

Revision 1.42 / (download) - annotate - [select for diffs], Sun Mar 17 19:41:04 2002 UTC (22 years, 1 month ago) by atatat
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.41: +6 -6 lines
Diff to previous 1.41 (colored) to selected 1.1 (colored)

Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:58:54 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.38.2.1: +10 -10 lines
Diff to previous 1.38.2.1 (colored) to selected 1.1 (colored)

Sync kqueue branch with -current.

Revision 1.36.2.5 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:06 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.4: +8 -11 lines
Diff to previous 1.36.2.4 (colored) to selected 1.1 (colored)

Catch up to -current.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Dec 31 12:15:21 2001 UTC (22 years, 3 months ago) by augustss
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.40: +8 -11 lines
Diff to previous 1.40 (colored) to selected 1.1 (colored)

Make a typedef for struct proc to make portingeasier.

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

Catch up to -current.

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

add RCSIDs

Revision 1.39.2.3 / (download) - annotate - [select for diffs], Sat Oct 13 17:42:50 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.39.2.2: +11 -11 lines
Diff to previous 1.39.2.2 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored) to selected 1.1 (colored)

Revert the t_dev -> t_devvp change in struct tty. The way that tty
structs are currently used (especially by console ttys) aren't
ready for it, and this will require quite a few changes.

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:19 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.39.2.1: +46 -20 lines
Diff to previous 1.39.2.1 (colored) to branchpoint 1.39 (colored) to selected 1.1 (colored)

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

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:33 2001 UTC (22 years, 7 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.39: +29 -23 lines
Diff to previous 1.39 (colored) to selected 1.1 (colored)

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

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

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

Merge Aug 24 -current into the kqueue branch.

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

Catch up with -current.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Aug 16 22:31:24 2001 UTC (22 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.38: +9 -3 lines
Diff to previous 1.38 (colored) to selected 1.1 (colored)

Clear busy flag on write error.  From PR 13731, IWAMOTO Toshihiro.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:21 2001 UTC (22 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.1: +21 -1 lines
Diff to previous 1.36.2.1 (colored) to selected 1.1 (colored)

Catch up to -current.

Revision 1.38 / (download) - annotate - [select for diffs], Wed May 2 10:32:11 2001 UTC (22 years, 11 months ago) by scw
Branch: MAIN
Branch point for: kqueue
Changes since 1.37: +21 -1 lines
Diff to previous 1.37 (colored) to selected 1.1 (colored)

Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.

Revision 1.10.2.4 / (download) - annotate - [select for diffs], Sat Apr 21 17:49:57 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.10.2.3: +5 -2 lines
Diff to previous 1.10.2.3 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored) to selected 1.1 (colored)

Sync with HEAD

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Mon Apr 9 01:57:32 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.36: +5 -2 lines
Diff to previous 1.36 (colored) to selected 1.1 (colored)

Catch up with -current.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Apr 2 13:18:31 2001 UTC (23 years ago) by augustss
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.36: +5 -2 lines
Diff to previous 1.36 (colored) to selected 1.1 (colored)

Print portno when attaching.

Revision 1.10.2.3 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:24 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.10.2.2: +57 -24 lines
Diff to previous 1.10.2.2 (colored) to branchpoint 1.10 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.36 / (download) - annotate - [select for diffs], Tue Jan 23 22:06:25 2001 UTC (23 years, 2 months ago) by augustss
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.35: +11 -7 lines
Diff to previous 1.35 (colored) to selected 1.1 (colored)

Fiddle enough with the tty so that it wakes up on detach and drops
the reference count on the ucom.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jan 23 21:56:17 2001 UTC (23 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.34: +6 -2 lines
Diff to previous 1.34 (colored) to selected 1.1 (colored)

Ad support for an extra message in the ucom attach code.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jan 23 21:22:57 2001 UTC (23 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.33: +21 -8 lines
Diff to previous 1.33 (colored) to selected 1.1 (colored)

Null out pointers when closing pipes.
Try to wake upper layer on error.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jan 23 17:35:58 2001 UTC (23 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.32: +29 -17 lines
Diff to previous 1.32 (colored) to selected 1.1 (colored)

Rearrange detach code so it is more likely to survive detaching an open
device (it's still not waking up readers properly).

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:05:04 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.10.2.1: +10 -10 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) to selected 1.1 (colored)

Sync with HEAD.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:43:22 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.10: +1002 -47 lines
Diff to previous 1.10 (colored) to selected 1.1 (colored)

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

Revision 1.32 / (download) - annotate - [select for diffs], Thu Nov 2 00:01:46 2000 UTC (23 years, 5 months ago) by eeh
Branch: MAIN
Changes since 1.31: +10 -10 lines
Diff to previous 1.31 (colored) to selected 1.1 (colored)

Adapt to the new line discipline scheme.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Oct 22 19:01:44 2000 UTC (23 years, 5 months ago) by explorer
Branch: MAIN
Changes since 1.30: +27 -1 lines
Diff to previous 1.30 (colored) to selected 1.1 (colored)

make ucom into a random source, type TTY

Revision 1.30 / (download) - annotate - [select for diffs], Sat Sep 23 04:33:04 2000 UTC (23 years, 6 months ago) by augustss
Branch: MAIN
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored) to selected 1.1 (colored)

Remove some // type comments.

Revision 1.24.2.4 / (download) - annotate - [select for diffs], Thu Sep 21 20:01:09 2000 UTC (23 years, 6 months ago) by tron
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.24.2.3: +3 -3 lines
Diff to previous 1.24.2.3 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored) to selected 1.1 (colored)

Pull up from current (approved by thorpej):

Change the second argument of tiocm_to_ucom to u_long,
since the second argument of ioctl is a u_long value.

syssrc/sys/dev/usb/ucom.c		1.29

Revision 1.29 / (download) - annotate - [select for diffs], Fri Sep 15 17:03:24 2000 UTC (23 years, 7 months ago) by toshii
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.1 (colored)

Change the second argument of tiocm_to_ucom to u_long,
since the second argument of ioctl is a u_long value.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Sep 13 05:17:14 2000 UTC (23 years, 7 months ago) by toshii
Branch: MAIN
Changes since 1.27: +16 -12 lines
Diff to previous 1.27 (colored) to selected 1.1 (colored)

Cleanup the error handling code introduced in rev. 1.26. Commented by jhawk.
No functional change.

Revision 1.24.2.3 / (download) - annotate - [select for diffs], Tue Sep 12 08:43:58 2000 UTC (23 years, 7 months ago) by toshii
Branch: netbsd-1-5
Changes since 1.24.2.2: +11 -2 lines
Diff to previous 1.24.2.2 (colored) to branchpoint 1.24 (colored) to selected 1.1 (colored)

Pullup revision 1.27 (approved by thorpej):
  Make the control line handling a little better.  Avoid a DTR/RTS issue
  from uninitialized sc_mcr by not calling ucom_{dtr,rts} if possible.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Sep 10 03:10:20 2000 UTC (23 years, 7 months ago) by toshii
Branch: MAIN
Changes since 1.26: +12 -3 lines
Diff to previous 1.26 (colored) to selected 1.1 (colored)

Make the control line handling a little better.  Avoid a DTR/RTS issue
from uninitialized sc_mcr by not calling ucom_{dtr,rts} if possible.

XXX Flow control is still incomplete and needs more work.

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Sat Sep 9 02:11:30 2000 UTC (23 years, 7 months ago) by toshii
Branch: netbsd-1-5
Changes since 1.24.2.1: +36 -28 lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored) to selected 1.1 (colored)

Pullup revision 1.26 (approved by jhawk):
  In ucomopen(), make sure to call splx() before returning
  when initialization fails.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Sep 8 07:20:52 2000 UTC (23 years, 7 months ago) by toshii
Branch: MAIN
Changes since 1.25: +36 -28 lines
Diff to previous 1.25 (colored) to selected 1.1 (colored)

In ucomopen(), make sure to call splx() before returning
when initialization fails.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Mon Sep 4 17:53:13 2000 UTC (23 years, 7 months ago) by augustss
Branch: netbsd-1-5
Changes since 1.24: +8 -4 lines
Diff to previous 1.24 (colored) to selected 1.1 (colored)

Pull up (approved by thorpej).

Handle output packet headers in a cleaner way.  From IWAMOTO Toshihiro
<iwamoto@sat.t.u-tokyo.ac.jp>, fixes kern/10573.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Sep 3 19:15:45 2000 UTC (23 years, 7 months ago) by augustss
Branch: MAIN
Changes since 1.24: +8 -4 lines
Diff to previous 1.24 (colored) to selected 1.1 (colored)

Handle output packet headers in a cleaner way.  From IWAMOTO Toshihiro
<iwamoto@sat.t.u-tokyo.ac.jp>, fixes kern/10573.

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:08:34 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.23: +42 -96 lines
Diff to previous 1.23 (colored) next main 1.24 (colored) to selected 1.1 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 1 14:28:59 2000 UTC (23 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.23: +42 -96 lines
Diff to previous 1.23 (colored) to selected 1.1 (colored)

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

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

Change my email address.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Apr 14 14:21:55 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.21: +34 -12 lines
Diff to previous 1.21 (colored) to selected 1.1 (colored)

Add a capability for pre/post processing on write/read.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Apr 8 01:22:26 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored) to selected 1.1 (colored)

fix build of ucom.  (static/non-static)

Revision 1.20 / (download) - annotate - [select for diffs], Fri Apr 7 12:40:16 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.1 (colored)

Remove a couple of Static that shouldn't be there.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 6 13:32:28 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.18: +23 -22 lines
Diff to previous 1.18 (colored) to selected 1.1 (colored)

Let the parent device of a ucom decide what size the read and write
buffers should be since it knows about the speed.
Increase the buffer size of uvisor.
XXX The uvisor is still pitifully slow.  There must be a problem somewhere.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Apr 5 21:24:11 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored) to selected 1.1 (colored)

Make it compile without USB_DEBUG.  From Chris Jones.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 5 11:11:33 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.16: +68 -23 lines
Diff to previous 1.16 (colored) to selected 1.1 (colored)

Use reference counting on the softc so detach doesn't blow it away prematurely.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Mar 27 12:33:55 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.15: +14 -14 lines
Diff to previous 1.15 (colored) to selected 1.1 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Tue Feb 8 18:45:27 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored) to selected 1.1 (colored)

Use NULL instead of 0.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 8 09:18:01 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.13: +30 -10 lines
Diff to previous 1.13 (colored) to selected 1.1 (colored)

Add methods for ucom to call back on open/close.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 25 13:56:23 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.12: +7 -1 lines
Diff to previous 1.12 (colored) to selected 1.1 (colored)

Make it compile even if you leave out the ucom attachment.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 25 08:12:58 2000 UTC (24 years, 2 months ago) by augustss
Branch: MAIN
Changes since 1.11: +908 -45 lines
Diff to previous 1.11 (colored) to selected 1.1 (colored)

Split the umodem driver into two parts: the part that emulates a tty over
two bulk pipes, and the setup and status fiddling goo.
This allows the former part to be shared by other drivers that need to
look like a tty.

Revision 1.10.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:42 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored) to selected 1.1 (colored)

Pull up to last week's -current.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:32 1999 UTC (24 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored) to selected 1.1 (colored)

Sync with -current

Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 12 00:34:57 1999 UTC (24 years, 5 months ago) by augustss
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.1 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 9 12:26:44 1999 UTC (24 years, 7 months ago) by augustss
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.9: +2 -4 lines
Diff to previous 1.9 (colored) to selected 1.1 (colored)

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

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

Revision 1.9 / (download) - annotate - [select for diffs], Sat Aug 14 14:49:31 1999 UTC (24 years, 8 months ago) by augustss
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored) to selected 1.1 (colored)

Some changes from FreeBSD (no functional differences).

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Thu Jul 1 23:40:22 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.7: +1 -16 lines
Diff to previous 1.7 (colored) next main 1.8 (colored) to selected 1.1 (colored)

Sync w/ -current.

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

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

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

Some minor updates from FreeBSD.

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

Various little fixes from the FreeBSD version.

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

Fix some FreeBSD compiler warnings.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 30 17:46:20 1998 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.3: +1 -2 lines
Diff to previous 1.3 (colored) to selected 1.1 (colored)

Remove #include that slipped in at FreeBSD merge.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Dec 26 12:53:01 1998 UTC (25 years, 3 months ago) by augustss
Branch: MAIN
Changes since 1.2: +40 -24 lines
Diff to previous 1.2 (colored) to selected 1.1 (colored)

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

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

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

Revision 1.1 / (download) - annotate - [selected], Wed Dec 2 22:47:19 1998 UTC (25 years, 4 months ago) by augustss
Branch: MAIN

Add stub for a modem driver.

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




CVSweb <webmaster@jp.NetBSD.org>