Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Add Debug Descriptor structures and constants,
details: https://anonhg.NetBSD.org/src/rev/f58949f43dec
branches: trunk
changeset: 754913:f58949f43dec
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat May 15 20:45:43 2010 +0000
description:
Add Debug Descriptor structures and constants,
as well as symbolic identifiers for USB packet IDs.
diffstat:
sys/dev/usb/usb.h | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diffs (59 lines):
diff -r 735bbce63eb0 -r f58949f43dec sys/dev/usb/usb.h
--- a/sys/dev/usb/usb.h Sat May 15 20:31:10 2010 +0000
+++ b/sys/dev/usb/usb.h Sat May 15 20:45:43 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb.h,v 1.84 2010/03/06 21:07:47 plunky Exp $ */
+/* $NetBSD: usb.h,v 1.85 2010/05/15 20:45:43 jakllsch Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb.h,v 1.14 1999/11/17 22:33:46 n_hibma Exp $ */
/*
@@ -197,6 +197,7 @@
#define UDESC_OTHER_SPEED_CONFIGURATION 0x07
#define UDESC_INTERFACE_POWER 0x08
#define UDESC_OTG 0x09
+#define UDESC_DEBUG 0x0a
#define UDESC_CS_DEVICE 0x21 /* class specific */
#define UDESC_CS_CONFIG 0x22
#define UDESC_CS_STRING 0x23
@@ -395,6 +396,13 @@
#define UOTG_A_ALT_HNP_SUPPORT 5
typedef struct {
+ uByte bLength;
+ uByte bDescriptorType;
+ uByte bDebugInEndpoint;
+ uByte bDebugOutEndpoint;
+} UPACKED usb_debug_descriptor_t;
+
+typedef struct {
uWord wStatus;
/* Device status flags */
#define UDS_SELF_POWERED 0x0001
@@ -577,6 +585,27 @@
#define USB_UNCONFIG_NO 0
#define USB_UNCONFIG_INDEX (-1)
+
+/* Packet IDs */
+#define UPID_RESERVED 0xf0
+#define UPID_OUT 0xe1
+#define UPID_ACK 0xd2
+#define UPID_DATA0 0xc3
+#define UPID_PING 0xb4
+#define UPID_SOF 0xa5
+#define UPID_NYET 0x96
+#define UPID_DATA2 0x87
+#define UPID_SPLIT 0x78
+#define UPID_IN 0x69
+#define UPID_NAK 0x5a
+#define UPID_DATA1 0x4b
+#define UPID_ERR 0x3c
+#define UPID_PREAMBLE 0x3c
+#define UPID_SETUP 0x2d
+#define UPID_STALL 0x1e
+#define UPID_MDATA 0x0f
+
+
/*** ioctl() related stuff ***/
struct usb_ctl_request {
Home |
Main Index |
Thread Index |
Old Index