svn commit: r223472 - head/sys/dev/usb/template
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Jun 23 10:35:45 UTC 2011
Author: hselasky
Date: Thu Jun 23 10:35:45 2011
New Revision: 223472
URL: http://svn.freebsd.org/changeset/base/223472
Log:
- Add some comments about the origin of some USB descriptors.
MFC after: 7 days
Modified:
head/sys/dev/usb/template/usb_template_audio.c
head/sys/dev/usb/template/usb_template_kbd.c
head/sys/dev/usb/template/usb_template_mouse.c
Modified: head/sys/dev/usb/template/usb_template_audio.c
==============================================================================
--- head/sys/dev/usb/template/usb_template_audio.c Thu Jun 23 09:46:12 2011 (r223471)
+++ head/sys/dev/usb/template/usb_template_audio.c Thu Jun 23 10:35:45 2011 (r223472)
@@ -95,7 +95,12 @@ USB_MAKE_STRING_DESC(STRING_AUDIO_PRODUC
/* prototypes */
-/* Audio Mixer description structures */
+/*
+ * Audio Mixer description structures
+ *
+ * Some of the audio descriptors were dumped
+ * from a Creative Labs USB audio device.
+ */
static const uint8_t audio_raw_desc_0[] = {
0x0a, 0x24, 0x01, 0x00, 0x01, 0xa9, 0x00, 0x02,
Modified: head/sys/dev/usb/template/usb_template_kbd.c
==============================================================================
--- head/sys/dev/usb/template/usb_template_kbd.c Thu Jun 23 09:46:12 2011 (r223471)
+++ head/sys/dev/usb/template/usb_template_kbd.c Thu Jun 23 10:35:45 2011 (r223472)
@@ -94,6 +94,8 @@ static const struct usb_temp_interval ke
.bInterval[USB_SPEED_HIGH] = 2 * 8,
};
+/* The following HID descriptor was dumped from a HP keyboard. */
+
static uint8_t keyboard_hid_descriptor[] = {
0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x05, 0x07,
0x19, 0xe0, 0x29, 0xe7, 0x15, 0x00, 0x25, 0x01,
Modified: head/sys/dev/usb/template/usb_template_mouse.c
==============================================================================
--- head/sys/dev/usb/template/usb_template_mouse.c Thu Jun 23 09:46:12 2011 (r223471)
+++ head/sys/dev/usb/template/usb_template_mouse.c Thu Jun 23 10:35:45 2011 (r223472)
@@ -82,6 +82,8 @@ USB_MAKE_STRING_DESC(STRING_PRODUCT, str
/* prototypes */
+/* The following HID descriptor was dumped from a HP mouse. */
+
static uint8_t mouse_hid_descriptor[] = {
0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01,
0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x03,
More information about the svn-src-all
mailing list