diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2011-06-23 10:35:45 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2011-06-23 10:35:45 +0000 |
commit | df142785d5c32191c735e34b09962642d1ee81ac (patch) | |
tree | 23c9e9d256b4d9366441299951d1cf5f5a7f4ae2 /sys/dev/usb/template | |
parent | dcf496e844a6a5d58fb8685cb2509b996983f94d (diff) | |
download | src-df142785d5c32191c735e34b09962642d1ee81ac.tar.gz src-df142785d5c32191c735e34b09962642d1ee81ac.zip |
- Add some comments about the origin of some USB descriptors.
MFC after: 7 days
Notes
Notes:
svn path=/head/; revision=223472
Diffstat (limited to 'sys/dev/usb/template')
-rw-r--r-- | sys/dev/usb/template/usb_template_audio.c | 7 | ||||
-rw-r--r-- | sys/dev/usb/template/usb_template_kbd.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/template/usb_template_mouse.c | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/usb/template/usb_template_audio.c b/sys/dev/usb/template/usb_template_audio.c index 1e2e56869dcb..8e9e7f066457 100644 --- a/sys/dev/usb/template/usb_template_audio.c +++ b/sys/dev/usb/template/usb_template_audio.c @@ -95,7 +95,12 @@ USB_MAKE_STRING_DESC(STRING_AUDIO_PRODUCT, string_audio_product); /* 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, diff --git a/sys/dev/usb/template/usb_template_kbd.c b/sys/dev/usb/template/usb_template_kbd.c index 4a9b9dae11b3..8928c0665e22 100644 --- a/sys/dev/usb/template/usb_template_kbd.c +++ b/sys/dev/usb/template/usb_template_kbd.c @@ -94,6 +94,8 @@ static const struct usb_temp_interval keyboard_intr_interval = { .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, diff --git a/sys/dev/usb/template/usb_template_mouse.c b/sys/dev/usb/template/usb_template_mouse.c index b0f5381e5a32..3ff0fb0188b1 100644 --- a/sys/dev/usb/template/usb_template_mouse.c +++ b/sys/dev/usb/template/usb_template_mouse.c @@ -82,6 +82,8 @@ USB_MAKE_STRING_DESC(STRING_PRODUCT, string_product); /* 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, |