Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man4 Add description of how to attach ugen to only...
details: https://anonhg.NetBSD.org/src/rev/045dcbda5ea3
branches: trunk
changeset: 359677:045dcbda5ea3
user: ws <ws%NetBSD.org@localhost>
date: Tue Feb 20 15:50:02 2018 +0000
description:
Add description of how to attach ugen to only some of the
interfaces found in a device.
diffstat:
share/man/man4/ugen.4 | 37 ++++++++++++++++++++++++++++++++++++-
1 files changed, 36 insertions(+), 1 deletions(-)
diffs (58 lines):
diff -r 6eb9c511d7ef -r 045dcbda5ea3 share/man/man4/ugen.4
--- a/share/man/man4/ugen.4 Tue Feb 20 15:48:37 2018 +0000
+++ b/share/man/man4/ugen.4 Tue Feb 20 15:50:02 2018 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: ugen.4,v 1.32 2017/07/03 21:30:58 wiz Exp $
+.\" $NetBSD: ugen.4,v 1.33 2018/02/20 15:50:02 ws Exp $
.\"
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -35,6 +35,7 @@
.Nd USB generic device support
.Sh SYNOPSIS
.Cd "ugen* at uhub? flags N"
+.Cd "ugen* at uhub? vendor V product P configuration C interface I flags 1
.Sh DESCRIPTION
The
.Nm
@@ -60,6 +61,40 @@
driver to be used for a certain
device.
.Pp
+The second form of attachment can be used to
+.Dq steal
+only one interface from some device for use by the
+.Nm
+driver.
+Be sure to include
+.Dq flags 1
+on the attachment.
+.Em NOTE :
+You have to be extremely careful,
+when using this,
+as the attached
+.Nm
+driver has access to all of the device
+and can easily interfere with the driver used for
+the other interface(s).
+.Pp
+As an example of this second form of attachment there are
+various debugging boards available based on some FTDI chip,
+where one interface is used for JTAG debugging
+and the other is used as a serial interface.
+In this case you want to attach the
+.Nm
+driver to interface 0
+while using
+.Xr uftdi 4
+together with
+.Xr ucom 4
+at interface 1 of this particular board
+identified by
+.Cd vendor
+and
+.Cd product .
+.Pp
There can be up to 127 USB devices connected to a USB bus.
Each USB device can have up to 16 endpoints.
Each of these endpoints will communicate in one of four different
Home |
Main Index |
Thread Index |
Old Index