Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Jan 2008 20:02:40 -0500
From:      Greg Troxel <gdt@ir.bbn.com>
To:        usb@freebsd.org
Subject:   non-blocking reads on ulpt(4) - patched in NetBSD
Message-ID:  <rmiodbxqgcv.fsf@fnord.ir.bbn.com>

next in thread | raw e-mail | index | archive | help
--=-=-=

If any of you are trying to use gutenprint with USB printers, it would
probably be useful to at least read this diff, and probably merge it
into FreeBSD.

When I started, I read diffs from FreeBSD's ulpt to NetBSD's, and
concluded that FreeBSD's was a lightly-modified (kernel infrastructure
issues) version of an older version of NetBSD's.  I think a remerge is
in order.  I'd be happy to answer questions if anyone works on this.


--=-=-=
Content-Type: message/rfc822
Content-Disposition: inline

From: Greg Troxel <gdt@netbsd.org>
Subject: CVS commit: src/sys/dev/usb
To: source-changes@NetBSD.org
Reply-To: gdt@netbsd.org
Message-Id: <20080108005810.8CC3321507@cvs.netbsd.org>
Date: Tue,  8 Jan 2008 00:58:10 +0000 (UTC)
MIME-Version: 1.0

Module Name:	src
Committed By:	gdt
Date:		Tue Jan  8 00:58:10 UTC 2008

Modified Files:
	src/sys/dev/usb: ulpt.c

Log Message:
Support FIONBIO.

Support non-blocking reads from USB printers.  With this, escputil can
query the printer model, and I can print a test page with gutenprint
5.1 and cups.   Add many comments explaining why the support is not
quite right.  (This change is quite a bit less invasive than a
"correct" fix, and thus more reasonable to pull up to netbsd-4.)

Rototill debugging, so that all DPRINTFN have a level, and so that the
message is printed if the debug level is >= the number in the source
code.  Document debug level plan.

Fix bug where only one status change would be printed (by inspection,
not tested).

Document scheme for reading/discarding data when ulpt(4) is opened for
write only.

Delete dead code.

Plan and patch posted on tech-kern without objections.


To generate a diff of this commit:
cvs rdiff -r1.78 -r1.79 src/sys/dev/usb/ulpt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.


--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?rmiodbxqgcv.fsf>