Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2008 21:01:23 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 135749 for review
Message-ID:  <200802192101.m1JL1Nwx022900@repoman.freebsd.org>

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

Change 135749 by hselasky@hselasky_laptop001 on 2008/02/19 21:01:14

	
	Add more documentation.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_hid.c#14 edit

Differences ...

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

@@ -493,6 +493,13 @@
 
 /*------------------------------------------------------------------------*
  *	hid_get_descriptor_from_usb
+ *
+ * This function will search for a HID descriptor inside between two
+ * USB interface descriptors.
+ *
+ * Return values:
+ * NULL: No more HID descriptors.
+ * Else: Pointer to HID descriptor.
  *------------------------------------------------------------------------*/
 usb_hid_descriptor_t *
 hid_get_descriptor_from_usb(usb_config_descriptor_t *cd,
@@ -517,6 +524,13 @@
 
 /*------------------------------------------------------------------------*
  *	hid_read_report_desc_from_usb
+ *
+ * This function will read out an USB report descriptor from the USB
+ * device.
+ *
+ * Return values:
+ * NULL: Failure.
+ * Else: Success. The pointer should eventually be passed to free().
  *------------------------------------------------------------------------*/
 usbd_status_t
 hid_read_report_desc_from_usb(struct usbd_device *udev, struct mtx *mtx,



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