Skip site navigation (1)Skip section navigation (2)

CVS log for src/sys/dev/usb/Attic/umodem.c

[BACK] Up to [FreeBSD] / src / sys / dev / usb

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.71.12.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)

Revision 1.71.10.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (23 months, 4 weeks ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)

Revision 1.71.8.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)

Revision 1.75
Mon Feb 23 18:16:17 2009 UTC (2 years, 11 months ago) by thompsa
Branches: MAIN
CVS tags: HEAD
FILE REMOVED
Changes since revision 1.74: +1 -1 lines
SVN rev 188939 on 2009-02-23 18:16:17Z by thompsa

Move usb to a graveyard location under sys/legacy/dev, it is intended that the
new USB2 stack will fully replace this for 8.0.

Remove kernel modules, a subsequent commit will update conf/files. Unhook
usbdevs from the build.

Revision 1.71.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)

Revision 1.57.2.1.6.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.57.2.1: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57.2.1: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)

Revision 1.74: download - view: text, markup, annotated - select for diffs
Sun Aug 31 03:22:19 2008 UTC (3 years, 5 months ago) by imp
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +1 -1 lines
SVN rev 182506 on 2008-08-31 03:22:19Z by imp

All the other routines returned EIO from the param routine.  Return it
from umodem and ufoma.

With these changes, umodem kinda works for me now.  It certainly gets
past the "tip" bug that I found earlier where 115200 wasn't a valid
baud rate.  This was "broken" in the mpsafetty commit, but in reality,
umodem was always broken.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Aug 31 03:16:31 2008 UTC (3 years, 5 months ago) by imp
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +7 -9 lines
SVN rev 182505 on 2008-08-31 03:16:31Z by imp

Ioctls that aren't handled by this layer need to return ENOIOCTL, not
ENOTTY.  Also, make the ucom callback structure easier to read while
I'm here.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Aug 20 08:31:58 2008 UTC (3 years, 5 months ago) by ed
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -2 lines
SVN rev 181905 on 2008-08-20 08:31:58Z by ed

Integrate the new MPSAFE TTY layer to the FreeBSD operating system.

The last half year I've been working on a replacement TTY layer for the
FreeBSD kernel. The new TTY layer was designed to improve the following:

- Improved driver model:

  The old TTY layer has a driver model that is not abstract enough to
  make it friendly to use. A good example is the output path, where the
  device drivers directly access the output buffers. This means that an
  in-kernel PPP implementation must always convert network buffers into
  TTY buffers.

  If a PPP implementation would be built on top of the new TTY layer
  (still needs a hooks layer, though), it would allow the PPP
  implementation to directly hand the data to the TTY driver.

- Improved hotplugging:

  With the old TTY layer, it isn't entirely safe to destroy TTY's from
  the system. This implementation has a two-step destructing design,
  where the driver first abandons the TTY. After all threads have left
  the TTY, the TTY layer calls a routine in the driver, which can be
  used to free resources (unit numbers, etc).

  The pts(4) driver also implements this feature, which means
  posix_openpt() will now return PTY's that are created on the fly.

- Improved performance:

  One of the major improvements is the per-TTY mutex, which is expected
  to improve scalability when compared to the old Giant locking.
  Another change is the unbuffered copying to userspace, which is both
  used on TTY device nodes and PTY masters.

Upgrading should be quite straightforward. Unlike previous versions,
existing kernel configuration files do not need to be changed, except
when they reference device drivers that are listed in UPDATING.

Obtained from:		//depot/projects/mpsafetty/...
Approved by:		philip (ex-mentor)
Discussed:		on the lists, at BSDCan, at the DevSummit
Sponsored by:		Snow B.V., the Netherlands
dcons(4) fixed by:	kan

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Jul 29 18:16:43 2007 UTC (4 years, 6 months ago) by imp
Branches: MAIN
CVS tags: RELENG_7_BP, RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0, RELENG_7
Branch point for: RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +1 -1 lines
Add missing newline in printf.

Submitted by:  "R.Mahmatkhanov" cvs-src at yandex ru
Approved by: re (blanket)

Revision 1.70: download - view: text, markup, annotated - select for diffs
Thu Jun 28 05:50:14 2007 UTC (4 years, 7 months ago) by imp
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4 lines
With the advent of G3/CDMA modems, the old buffer sizes are no longer
adequate.  Increase them to 1k.  The referenced PR made this a sysctl,
but that seems like overkill to me.  The difference between 320 and
2048 bytes in modern systems, even embedded ones, seems to be in the
noise to be worth the extra hair to make it settable.

PR: 74609
Submitted by: Divacky Roman
Approved by: re (blanket)

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sat Jun 23 04:18:44 2007 UTC (4 years, 7 months ago) by imp
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +1 -1 lines
Initialize id before using it.

Submitted by: mjacob
Approved by: re@

Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Jun 21 14:42:34 2007 UTC (4 years, 7 months ago) by imp
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +7 -12 lines
Latest round of usb cleanups:

o Consistently use device_foo_t and bus_foo_t for functions implementing
  device_foo and bus_foo respectively.  Adjust those routines that were wrong
  (we should do this throughout the tree).
o make all the modules depend on usb.  Otherwise these modules won't
  load.
o ucycom doesn't need usb_port.h
o Minor unifdefing
o uhub, umass, ums, urio, uscanner conversion complete.
o ukbd: Remove the NO_SET_PROTO quirk (fixes a PR 77940).  NetBSD removed
  their check and setting the proto a long time ago.
o umodem panic fixed.  UQ_ASSUME_CM_OVER_DATA quirk removed because I've never
  seen a umodem that needed this rejection for proection (this gets rid of
  ~20% of the quirks).

Approved by: re@ (kensmith)
PR: 77940

Revision 1.67: download - view: text, markup, annotated - select for diffs
Wed Jun 20 05:10:53 2007 UTC (4 years, 7 months ago) by imp
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +1 -1 lines
s/logprintf/printf/g

Approved by: re@

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Jun 18 22:27:57 2007 UTC (4 years, 7 months ago) by imp
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -2 lines
Finish removal of usb_port.h macros.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Jun 17 16:24:48 2007 UTC (4 years, 7 months ago) by imp
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +1 -1 lines
Expand USB_MATCH_START

Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed Jun 13 05:37:59 2007 UTC (4 years, 7 months ago) by imp
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +6 -3 lines
Expand USB_DETACH, USB_ATTACH and USB_MATCH inline.  No functional
change, and MD5's appear to be the same.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Jun 12 17:30:54 2007 UTC (4 years, 7 months ago) by imp
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -2 lines
Eliminate usb_thread_t.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Jun 12 15:37:18 2007 UTC (4 years, 7 months ago) by imp
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -2 lines
Expand USB_ATTACH_{ERROR,SUCCESS}_RETURN inline and eliminate from
usb_port.h.  They aren't needed, and are a legacy of this code's past.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sat Jun 9 06:37:17 2007 UTC (4 years, 8 months ago) by imp
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +28 -46 lines
Try to set the data multiplexed feature, but don't care if there's an
error doing so.  It seems an increasing number of phones have this
quirk, and we're not keeping up.  There appears to be nothing bad that
happens for non-quirked phones.

Minor cleanups:
o prefer device_printf over printf
o kill devinfo stuff
o minor other preening.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Sep 7 00:06:42 2006 UTC (5 years, 5 months ago) by imp
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +9 -9 lines
More removing compatibility macros.

md5 still the same.

"Dave, stop.  I feel my mind slipping away." -- hal

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Sep 6 23:44:24 2006 UTC (5 years, 5 months ago) by imp
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +26 -26 lines
s/Static/static/g
s/device_ptr_t/device_t/g

No md5 changes in the .o's

# Note to the md5 tracking club: $FreeBSD$ changes md5 after every commit
# so you need to checkout -kk to get $FreeBSD$ instead of the actual value
# of the keyword.

Revision 1.57.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 18 20:13:43 2006 UTC (5 years, 7 months ago) by netchild
Branches: RELENG_6
CVS tags: RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2
Branch point for: RELENG_6_4
Diff to: previous 1.57: preferred, colored; next MAIN 1.58: preferred, colored
Changes since revision 1.57: +2 -0 lines
MFC: sync with -current
	- usbdevs:	upto 1.261
	- uscanner.c:	upto 1.71
	- umodem.c:	upto 1.58
	- uvisor.c:	upto 1.26
	- uhid.c:	upto 1.81
	- umass.c:	only the vendor renaming in the quirks
	- umct.c:	upto 1.10
	- uplcom.c:	upto 1.32
	- uvscom.c:	upto 1.27

This brings support of some more scanners, modems, a PDA, a fix for uplcom
and some cosmetic changes.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Jun 18 17:54:33 2006 UTC (5 years, 7 months ago) by netchild
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -0 lines
Add support for:
 - Curitel PC5740 Wireless Modem (Verizon's PCMCIA card)
 - Sierra MC5720 Wireless Modem (Built in to Thinkpad X60s)

PR:		98908
Submitted by:	Michael Collette <metrol@metrol.net>

Revision 1.53.2.2: download - view: text, markup, annotated - select for diffs
Tue Feb 8 12:44:09 2005 UTC (7 years ago) by akiyama
Branches: RELENG_5
CVS tags: RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4
Diff to: previous 1.53.2.1: preferred, colored; branchpoint 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.1: +18 -1 lines
MFC: Use a taskqueue to handle port status changes.

umodem.c:	1.57
uplcom.c:	1.27
uvscom.c:	1.25

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Jan 31 13:58:10 2005 UTC (7 years ago) by akiyama
Branches: MAIN
CVS tags: RELENG_6_BP, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0
Branch point for: RELENG_6
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +18 -1 lines
Use a taskqueue to handle port status changes.
Calling ucom layer directly from interrupt context make a panic.

MFC after:	1 week

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 30 01:00:10 2005 UTC (7 years ago) by imp
Branches: RELENG_5
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +1 -1 lines
MFC: /*- and my license changes for sys/[a-d]*

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Jan 6 01:43:28 2005 UTC (7 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +1 -1 lines
Start each of the license/copyright comments with /*-, minor shuffle of lines

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Dec 13 07:09:54 2004 UTC (7 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +1 -1 lines
We don't need vnode.h, but do need uio.h in these files.  vnode.h
shouldn't be included in drivers, generally, so remove them.

OK'd by: phk

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Sep 17 11:53:45 2004 UTC (7 years, 4 months ago) by phk
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +4 -3 lines
Overhaul ucom serial driver by using generic stuff instead of homerolled
all over the place.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Jun 27 12:41:44 2004 UTC (7 years, 7 months ago) by imp
Branches: MAIN
CVS tags: RELENG_5_BP, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3
Branch point for: RELENG_5
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -2 lines
MFp4: First batch of dev/usb/usbdevs.h -> usbdevs.h changes.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun May 30 20:08:45 2004 UTC (7 years, 8 months ago) by phk
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +1 -0 lines
Add missing <sys/module.h> includes

Revision 1.17.2.12: download - view: text, markup, annotated - select for diffs
Sun May 30 12:21:55 2004 UTC (7 years, 8 months ago) by sanpei
Branches: RELENG_4
CVS tags: RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11
Diff to: previous 1.17.2.11: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.11: +36 -8 lines
MFC 1.49-1.51: add support Kyocera AH-K3001V (cellular phone in Japan)

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun May 30 01:48:04 2004 UTC (7 years, 8 months ago) by sanpei
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +5 -3 lines
check interface number
Kyocera AH-K3001V has 2 data interface.  But we could use only one
interface(id = 0)

PR:		kern/66779
Submitted by:	Togawa Satoshi <toga@puyo.org>

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri May 21 01:36:48 2004 UTC (7 years, 8 months ago) by sanpei
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +32 -6 lines
add support Kyocera AH-K3001V (cellular phone in Japan)

PR:		kern/66779
Submitted by:	Togawa Satoshi <toga@puyo.org>
MFC after:	1 week

Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri May 14 15:16:09 2004 UTC (7 years, 8 months ago) by sanpei
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -2 lines
MFNetBSD (umodem.c 1.46):
	URL updates

Revision 1.17.2.11: download - view: text, markup, annotated - select for diffs
Mon Mar 1 00:07:22 2004 UTC (7 years, 11 months ago) by julian
Branches: RELENG_4
CVS tags: RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.17.2.10: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.10: +402 -803 lines
After Far too long, MFC something resembling the -current version of the
USB code. This will allow teh addition of USB-2 support to 4.10 and
simplify debugging as they had diverged too much.

Submitted by:	joe@freebsd.org
Obtained from:	NeBSD via -current

Revision 1.17.2.10: download - view: text, markup, annotated - select for diffs
Mon Jan 12 13:19:08 2004 UTC (8 years ago) by sanpei
Branches: RELENG_4
Diff to: previous 1.17.2.9: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.9: +11 -7 lines
check USB_CDC_ACM_HAS_FEATURE flag(from FreeBSD-current and NetBSD)
Now umodem support motorola v66 phone

PR:		kern/47274
Submitted by:	Colin Perkins <csp@csperkins.org>

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Aug 24 17:55:55 2003 UTC (8 years, 5 months ago) by obrien
Branches: MAIN
CVS tags: RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -1 lines
Use __FBSDID().
Also some minor style cleanups.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Mar 9 11:19:18 2003 UTC (8 years, 11 months ago) by akiyama
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -5 lines
Fix duplicate sc_dying usage.
All drivers which depend on ucom interfaces should use only one
sc_dying.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Feb 19 05:47:15 2003 UTC (8 years, 11 months ago) by imp
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +1 -1 lines
Back out M_* changes, per decision of the TRB.

Approved by: trb

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Jan 21 08:55:44 2003 UTC (9 years ago) by alfred
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -1 lines
Remove M_TRYWAIT/M_WAITOK/M_WAIT.  Callers should use 0.
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Jan 12 08:28:14 2003 UTC (9 years ago) by imp
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -1 lines
Make compile cleanly when USB_DEBUG is defined.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Jan 9 04:24:28 2003 UTC (9 years, 1 month ago) by imp
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +408 -814 lines
Merge from NetBSD and arrange for FreeBSD's slight differences in
ucom.

This gets my Sanyo SCP-4900 working.

Approved by: joe

Revision 1.17.2.9: download - view: text, markup, annotated - select for diffs
Wed Nov 6 20:23:50 2002 UTC (9 years, 3 months ago) by joe
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8
Diff to: previous 1.17.2.8: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.8: +3 -3 lines
MFC: Change some structure names to bring them in line with -current
     and the other BSDs.

Revision 1.17.2.8: download - view: text, markup, annotated - select for diffs
Wed Nov 6 14:03:37 2002 UTC (9 years, 3 months ago) by joe
Branches: RELENG_4
Diff to: previous 1.17.2.7: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.7: +22 -69 lines
MFC: ANSIfy the function headers.

Revision 1.17.2.7: download - view: text, markup, annotated - select for diffs
Mon Aug 12 14:19:48 2002 UTC (9 years, 6 months ago) by joe
Branches: RELENG_4
CVS tags: RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7
Diff to: previous 1.17.2.6: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.6: +7 -3 lines
MFC: Make debugging the usb stack easier.  Introduce a hw.usb sysctl
tree and populate it with the debug variables for the different usb
drivers when USB_DEBUG is defined as a kernel option.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Aug 8 12:05:51 2002 UTC (9 years, 6 months ago) by joe
Branches: MAIN
CVS tags: RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -1 lines
Use the hw.usb sysctl tree instead of debug.usb.

Requested by:	imp

Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Jul 31 14:34:36 2002 UTC (9 years, 6 months ago) by joe
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -2 lines
Replace the FOO_DEBUG definitions with USB_DEBUG, and switch the
debugging levels to off by default.  Now that debug levels can be
tweaked by sysctl we don't need to go through hoops to get the
different usb parts to produce debug data.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Jul 31 13:33:55 2002 UTC (9 years, 6 months ago) by joe
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -0 lines
Get bored with hard coded debug level variables and introduce a debug.usb
sysctl tree for tweaking them real-time.

Reviewed by:	iedowse

Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Apr 2 03:39:33 2002 UTC (9 years, 10 months ago) by imp
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
Make this compile again after the recent NetBSD merge

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Apr 1 21:30:36 2002 UTC (9 years, 10 months ago) by jhb
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +1 -1 lines
Change the suser() API to take advantage of td_ucred as well as do a
general cleanup of the API.  The entire API now consists of two functions
similar to the pre-KSE API.  The suser() function takes a thread pointer
as its only argument.  The td_ucred member of this thread must be valid
so the only valid thread pointers are curthread and a few kernel threads
such as thread0.  The suser_cred() function takes a pointer to a struct
ucred as its first argument and an integer flag as its second argument.
The flag is currently only used for the PRISON_ROOT flag.

Discussed on:	smp@

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Apr 1 21:13:21 2002 UTC (9 years, 10 months ago) by joe
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -1 lines
MFNetBSD: Update many URLs.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Apr 1 19:01:09 2002 UTC (9 years, 10 months ago) by joe
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +22 -69 lines
Use ANSI prototypes and declarations.
Update $NetBSD$ idents to better reflect reality.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Mar 11 16:22:15 2002 UTC (9 years, 11 months ago) by joe
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +1 -1 lines
Be more specific about when block major numbers disappeared from
the cdev switch.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Feb 15 22:54:10 2002 UTC (9 years, 11 months ago) by joe
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -0 lines
Re-add bmaj to the cdevsw's, but don't compile it in on -current.
This makes the code more portable between -current, -stable and the
other BSDs.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Jan 2 18:28:45 2002 UTC (10 years, 1 month ago) by joe
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3 lines
Sync with NetBSD:

	date: 2000/02/29 21:37:01;  author: augustss;  state: Exp;
	Distinguish between device and interface classes.
	(I finally found a document that said that they were different.)

Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Jan 2 16:33:53 2002 UTC (10 years, 1 month ago) by joe
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +10 -10 lines
NetBSD have introduced usb_proc_ptr for us (they'll be needing it soon too)
to hide the distinction between struct proc and struct thread.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Sep 12 08:37:15 2001 UTC (10 years, 5 months ago) by julian
Branches: MAIN
CVS tags: KSE_MILESTONE_2
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +10 -10 lines
KSE Milestone 2
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.

Sorry john! (your next MFC will be a doosie!)

Reviewed by: peter@freebsd.org, dillon@freebsd.org

X-MFC after:    ha ha ha ha

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Sep 2 09:26:14 2001 UTC (10 years, 5 months ago) by n_hibma
Branches: MAIN
CVS tags: KSE_PRE_MILESTONE_2
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +5 -3 lines
Only clear endpoint stall if status was USBD_STALLED.

This avoids panicing the system by unplugging a hub. The interrupt transfer
would sometimes arrive after the driver had been removed.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Mar 26 12:40:42 2001 UTC (10 years, 10 months ago) by phk
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -2 lines
Send the remains (such as I have located) of "block major numbers" to
the bit-bucket.

Revision 1.17.2.6: download - view: text, markup, annotated - select for diffs
Mon Feb 26 04:23:08 2001 UTC (10 years, 11 months ago) by jlemon
Branches: RELENG_4
CVS tags: RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5, RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4, RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3
Diff to: previous 1.17.2.5: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.5: +4 -3 lines
MFC: sync kq up to current (extend to device layer, plus other fixes)

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Feb 15 16:33:59 2001 UTC (10 years, 11 months ago) by jlemon
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -3 lines
Extend kqueue down to the device layer.

Backwards compatible approach suggested by: peter

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Jan 23 22:22:25 2001 UTC (11 years ago) by jhb
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
Use suser(9) instead of checking p->p_ucred->cr_uid directly.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Jan 9 04:33:17 2001 UTC (11 years, 1 month ago) by wollman
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -1 lines
select() DKI is now in <sys/selinfo.h>.

Revision 1.17.2.5: download - view: text, markup, annotated - select for diffs
Sat Jan 6 23:32:58 2001 UTC (11 years, 1 month ago) by n_hibma
Branches: RELENG_4
Diff to: previous 1.17.2.4: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.4: +5 -5 lines
MFC:
Re-enable the setting of the CM over Data mode.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Nov 1 17:35:56 2000 UTC (11 years, 3 months ago) by n_hibma
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +10 -10 lines
Make the Ricochet modems work through the USB interface.

Tested by:	jim
Obtained from:	NetBSD

Revision 1.17.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 31 22:51:23 2000 UTC (11 years, 3 months ago) by n_hibma
Branches: RELENG_4
CVS tags: RELENG_4_2_0_RELEASE
Diff to: previous 1.17.2.3: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.3: +1122 -26 lines
MFC: The driver for the 3Com 5605 USB modem.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Oct 20 00:35:52 2000 UTC (11 years, 3 months ago) by n_hibma
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +9 -2 lines
Bugfix: The data is not stored only in the first cblock, calculate the
length of the data properly. This should be moved into a tty_subr
function.

Also, disanle the setting of the CDC_CM_OVER_DATA flag. It breaks some
modems. I don't think that ther actually is a modem that needs this.

Submitted by:		Brad Karp <bkarp@ICSI.Berkeley.EDU>

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Aug 20 15:30:15 2000 UTC (11 years, 5 months ago) by n_hibma
Branches: MAIN
CVS tags: PRE_SMPNG
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Unbreak LINT.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Jul 17 19:28:29 2000 UTC (11 years, 6 months ago) by n_hibma
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1115 -26 lines
The modem driver for Communication Device Class, ACM compliant devices.
There is a number of devices that are compliant, of which the 3Com 5605 is
has been verified to work.

The driver is not perfect yet, but should be able to get you somewhere.

The driver was originally written by Lennart Augustsson, but Mike Smith
and Mike Meyer <mwm@mired.org> did the porting.

Revision 1.17.2.3: download - view: text, markup, annotated - select for diffs
Sun Jul 2 11:43:59 2000 UTC (11 years, 7 months ago) by n_hibma
Branches: RELENG_4
CVS tags: RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE
Diff to: previous 1.17.2.2: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.2: +2 -2 lines
MFC: Update Lennart's e-mail address.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun May 14 16:43:09 2000 UTC (11 years, 8 months ago) by n_hibma
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
Change Lennart's e-mail address.

Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Sun May 7 14:55:54 2000 UTC (11 years, 9 months ago) by n_hibma
Branches: RELENG_4
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.1: +1 -3 lines
MFC: Remove unneccessary includes.

Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Sun May 7 14:22:46 2000 UTC (11 years, 9 months ago) by n_hibma
Branches: RELENG_4
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
MFC: static -> Static in order to be more OpenBSD friendly.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed May 3 07:30:42 2000 UTC (11 years, 9 months ago) by phk
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +1 -2 lines
Remove 42 unneeded #include <sys/ioccom.h>.

ioccom.h defines only implementation detail, and should therefore
only be included from the #include which defines the ioctl tags,
in other words: never include it from *.c

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Apr 19 14:57:40 2000 UTC (11 years, 9 months ago) by phk
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +1 -2 lines
Remove ~25 unneeded #include <sys/conf.h>
Remove ~60 unneeded #include <sys/malloc.h>

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Apr 3 20:58:26 2000 UTC (11 years, 10 months ago) by n_hibma
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
OpenBSD has a broken debugger that does not grok static. Use a

        #define Static  static

that the OpenBSD folks can define it to be empty if they like.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Nov 18 12:45:09 1999 UTC (12 years, 2 months ago) by n_hibma
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_0_0_RELEASE
Branch point for: RELENG_4
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -2 lines
Missed a name change.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Oct 8 07:38:11 1999 UTC (12 years, 4 months ago) by n_hibma
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Move the include of device.h into the NetBSD specific section.

Submitted by:	Guy Helmer <ghelmer@scl.ameslab.gov>

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Oct 7 21:09:08 1999 UTC (12 years, 4 months ago) by n_hibma
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
Make the umodem stub compile

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Oct 7 19:26:34 1999 UTC (12 years, 4 months ago) by n_hibma
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -0 lines
Major synchronisation with the NetBSD USB stack:

- Some cleanup and improvements in the uhci and ohci drivers
- Support for plugging and unplugging devices improved
- Now available is bulk transport over OHCI controllers
- Resume and suspend have been temporarily been disabled again.  Proper
  support for it is available in the uhci.c and ohci.c files but I have
  not yet spent the brain cycles to use it.
- OpenBSD now uses the USB stack as well
- Add FreeBSD tags

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Aug 28 11:35:36 1999 UTC (12 years, 5 months ago) by n_hibma
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +0 -1 lines
We use device_set_desc_copy, so we do not need to free the copied text
manually.

Revision 1.8.2.1
Wed Jun 16 18:57:50 1999 UTC (12 years, 7 months ago) by n_hibma
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
FILE REMOVED
Changes since revision 1.8: +0 -0 lines
Remove useless stubs

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Apr 16 21:22:01 1999 UTC (12 years, 9 months ago) by peter
Branches: MAIN
CVS tags: PRE_VFS_BIO_NFS_PATCH, PRE_SMP_VMSHARE, POST_VFS_BIO_NFS_PATCH, POST_SMP_VMSHARE, POST_NEWBUS
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +1 -6 lines
Bring the 'new-bus' to the i386.  This extensively changes the way the
i386 platform boots, it is no longer ISA-centric, and is fully dynamic.
Most old drivers compile and run without modification via 'compatability
shims' to enable a smoother transition.  eisa, isapnp and pccard* are
not yet using the new resource manager.  Once fully converted, all drivers
will be loadable, including PCI and ISA.

(Some other changes appear to have snuck in, including a port of Soren's
 ATA driver to the Alpha.  Soren, back this out if you need to.)

This is a checkpoint of work-in-progress, but is quite functional.

The bulk of the work was done over the last few years by Doug Rabson and
Garrett Wollman.

Approved by:	core

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Apr 11 20:50:33 1999 UTC (12 years, 10 months ago) by n_hibma
Branches: MAIN
CVS tags: PRE_NEWBUS
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
1) Make debugging more selective.
2) create function usbd_errstr which turns a usbd_status into a sensible
   error message
3) Change the printf in DPRINTF to logprintf which is a define for
   log(KERN_DEBUG, x)

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Jan 28 01:59:49 1999 UTC (13 years ago) by dillon
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
    Fix warnings in preparation for adding -Wall -Wcast-qual to the
    kernel compile

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jan 22 00:51:12 1999 UTC (13 years ago) by n_hibma
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -0 lines
Textual changes

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Jan 14 01:28:14 1999 UTC (13 years ago) by n_hibma
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -1 lines
Corrected the latent fact that the uhub driver was providing a driver for
the usb device class instead of the uhub devclass. Only a problem with more
than one USB host controller.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jan 13 01:09:14 1999 UTC (13 years, 1 month ago) by n_hibma
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -1 lines
Changed 'xxxdebug = 0' to '...= 1' (Brian Feldman)

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jan 10 18:42:52 1999 UTC (13 years, 1 month ago) by n_hibma
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +10 -10 lines
Sync with NetBSD sources. Almost there. Mostly style fixes.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Jan 7 23:31:36 1999 UTC (13 years, 1 month ago) by n_hibma
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +0 -0 lines
Major synchronisation with NetBSD USB code

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Jan 7 23:07:55 1999 UTC (13 years, 1 month ago) by n_hibma
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +17 -79 lines
Major synchronisation with NetBSD USB code

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Dec 14 09:32:24 1998 UTC (13 years, 1 month ago) by n_hibma
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -0 lines
Added Id to all files

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Dec 13 23:26:41 1998 UTC (13 years, 1 month ago) by n_hibma
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -0 lines
small bug fix

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Dec 13 23:04:35 1998 UTC (13 years, 1 month ago) by n_hibma
Branches: MAIN
dded the stubs for umodem and ucom (communications class driver). They are nothing other than
the ugen driver with different variable names.

Diff request

This form allows you to request diffs 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.

Log view options