Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2007 21:40:08 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 130737 for review
Message-ID:  <200712122140.lBCLe8xu067017@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=130737

Change 130737 by hselasky@hselasky_laptop001 on 2007/12/12 21:39:39

	
	This commit is USB device side related.
	
	o This commit introduces a new port status bit, 
	  "UPS_PORT_MODE_DEVICE", which tells the mode of the
	  HUB Port: Device or Host Mode. According the USB2.0
	  specification this bit should always read 0 which
	  translates to USB_MODE_HOST.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb.h#24 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb.h#24 (text+ko) ====

@@ -56,6 +56,7 @@
 
 #define	USB_MAX_DEVICES 128
 #define	USB_START_ADDR 0
+#define	USB_ROOT_HUB_ADDR 1
 
 #define	USB_ISOC_TIME_MAX 128		/* ms */
 #define	USB_FS_ISOC_UFRAME_MAX 4	/* exclusive unit */
@@ -68,6 +69,7 @@
 
 #define	USB_CONTROL_ENDPOINT 0
 #define	USB_MAX_ENDPOINTS (2*16)
+#define	USB_MAX_INTERFACES USB_MAX_ENDPOINTS
 
 #define	USB_FRAMES_PER_SECOND_FS 1000	/* full speed */
 #define	USB_FRAMES_PER_SECOND_HS 8000	/* high speed */
@@ -395,6 +397,7 @@
 #define	UPS_SUSPEND			0x0004
 #define	UPS_OVERCURRENT_INDICATOR	0x0008
 #define	UPS_RESET			0x0010
+#define	UPS_PORT_MODE_DEVICE		0x0020 /* currently FreeBSD specific */
 #define	UPS_PORT_POWER			0x0100
 #define	UPS_LOW_SPEED			0x0200
 #define	UPS_HIGH_SPEED			0x0400
@@ -550,6 +553,7 @@
 
 #define	USB_UNCONFIG_NO 0
 #define	USB_UNCONFIG_INDEX 0xFF
+#define	USB_IFACE_INDEX_ANY 0xFF
 
 /*------------------------------------------------------------------------*
  * ioctl() related stuff



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