Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man4 fix description of usb_device_info structure ...
details: https://anonhg.NetBSD.org/src/rev/1d60bb91e800
branches: trunk
changeset: 566400:1d60bb91e800
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat May 08 10:14:00 2004 +0000
description:
fix description of usb_device_info structure - members are prefixed
by udi_, and adapt to udi_lowspeed -> udi_speed member change
fix usb_device_stats - there is uds_ prefix
use #include <dev/usb/usb.h> also in USB CONTROLLER INTERFACE section
bump date
diffstat:
share/man/man4/usb.4 | 47 +++++++++++++++++++++++++----------------------
1 files changed, 25 insertions(+), 22 deletions(-)
diffs (82 lines):
diff -r 6cd2a6c189b2 -r 1d60bb91e800 share/man/man4/usb.4
--- a/share/man/man4/usb.4 Sat May 08 09:23:14 2004 +0000
+++ b/share/man/man4/usb.4 Sat May 08 10:14:00 2004 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: usb.4,v 1.64 2004/01/07 15:36:08 wiz Exp $
+.\" $NetBSD: usb.4,v 1.65 2004/05/08 10:14:00 jdolecek Exp $
.\"
.\" Copyright (c) 1999, 2000, 2001, 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -34,7 +34,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd January 7, 2004
+.Dd May 8, 2004
.Dt USB 4
.Os
.Sh NAME
@@ -273,7 +273,7 @@
.Tn USB
specific structures and defines.
.Bd -literal
-#include \*[Lt]sys/dev/usb.h\*[Gt]
+#include \*[Lt]dev/usb/usb.h\*[Gt]
.Ed
.Pp
The
@@ -304,24 +304,27 @@
Should no such device exist an error is reported.
.Bd -literal
struct usb_device_info {
- u_int8_t bus;
- u_int8_t addr;
- usb_event_cookie_t cookie;
- char product[USB_MAX_STRING_LEN];
- char vendor[USB_MAX_STRING_LEN];
- char release[8];
- u_int16_t productNo;
- u_int16_t vendorNo;
- u_int16_t releaseNo;
- u_int8_t class;
- u_int8_t subclass;
- u_int8_t protocol;
- u_int8_t config;
- u_int8_t lowspeed;
- int power;
- int nports;
- char devnames[USB_MAX_DEVNAMES][USB_MAX_DEVNAMELEN];
- u_int8_t ports[16];
+ u_int8_t udi_bus;
+ u_int8_t udi_addr;
+ usb_event_cookie_t udi_cookie;
+ char udi_product[USB_MAX_STRING_LEN];
+ char udi_vendor[USB_MAX_STRING_LEN];
+ char udi_release[8];
+ u_int16_t udi_productNo;
+ u_int16_t udi_vendorNo;
+ u_int16_t udi_releaseNo;
+ u_int8_t udi_class;
+ u_int8_t udi_subclass;
+ u_int8_t udi_protocol;
+ u_int8_t udi_config;
+ u_int8_t udi_speed;
+#define USB_SPEED_LOW 1
+#define USB_SPEED_FULL 2
+#define USB_SPEED_HIGH 3
+ int udi_power;
+ int udi_nports;
+ char udi_devnames[USB_MAX_DEVNAMES][USB_MAX_DEVNAMELEN];
+ u_int8_t udi_ports[16];
#define USB_PORT_ENABLED 0xff
#define USB_PORT_SUSPENDED 0xfe
#define USB_PORT_POWERED 0xfd
@@ -368,7 +371,7 @@
This command retrieves statistics about the controller.
.Bd -literal
struct usb_device_stats {
- u_long requests[4];
+ u_long uds_requests[4];
};
.Ed
.Pp
Home |
Main Index |
Thread Index |
Old Index