PERFORCE change 165209 for review

Hans Petter Selasky hselasky at FreeBSD.org
Thu Jun 25 20:42:02 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=165209

Change 165209 by hselasky at hselasky_laptop001 on 2009/06/25 20:41:36

	
	USB CORE:
	 - add missing get timestamp function

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#158 edit
.. //depot/projects/usb/src/sys/dev/usb/usbdi.h#9 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#158 (text+ko) ====

@@ -2995,3 +2995,14 @@
 			break;
 	}
 }
+
+/*
+ * The following function returns in milliseconds when the isochronous
+ * transfer was completed by the hardware. The returned value wraps
+ * around 65536 milliseconds.
+ */
+uint16_t
+usbd_xfer_get_timestamp(struct usb_xfer *xfer)
+{
+	return (xfer->isoc_time_complete);
+}

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

@@ -487,6 +487,7 @@
 int	usbd_xfer_is_stalled(struct usb_xfer *xfer);
 void	usbd_xfer_set_flag(struct usb_xfer *xfer, int flag);
 void	usbd_xfer_clr_flag(struct usb_xfer *xfer, int flag);
+uint16_t usbd_xfer_get_timestamp(struct usb_xfer *xfer);
 
 void	usbd_copy_in(struct usb_page_cache *cache, usb_frlength_t offset,
 	    const void *ptr, usb_frlength_t len);


More information about the p4-projects mailing list