Deleted Added
full compact
usb_template_mouse.c (223467) usb_template_mouse.c (223472)
1#include <sys/cdefs.h>
1#include <sys/cdefs.h>
2__FBSDID("$FreeBSD: head/sys/dev/usb/template/usb_template_mouse.c 223467 2011-06-23 07:54:03Z hselasky $");
2__FBSDID("$FreeBSD: head/sys/dev/usb/template/usb_template_mouse.c 223472 2011-06-23 10:35:45Z hselasky $");
3
4/*-
5 * Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 66 unchanged lines hidden (view full) ---

77/* make the real string descriptors */
78
79USB_MAKE_STRING_DESC(STRING_LANG, string_lang);
80USB_MAKE_STRING_DESC(STRING_MOUSE, string_mouse);
81USB_MAKE_STRING_DESC(STRING_PRODUCT, string_product);
82
83/* prototypes */
84
3
4/*-
5 * Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

--- 66 unchanged lines hidden (view full) ---

77/* make the real string descriptors */
78
79USB_MAKE_STRING_DESC(STRING_LANG, string_lang);
80USB_MAKE_STRING_DESC(STRING_MOUSE, string_mouse);
81USB_MAKE_STRING_DESC(STRING_PRODUCT, string_product);
82
83/* prototypes */
84
85/* The following HID descriptor was dumped from a HP mouse. */
86
85static uint8_t mouse_hid_descriptor[] = {
86 0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01,
87 0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x03,
88 0x15, 0x00, 0x25, 0x01, 0x95, 0x03, 0x75, 0x01,
89 0x81, 0x02, 0x95, 0x05, 0x81, 0x03, 0x05, 0x01,
90 0x09, 0x30, 0x09, 0x31, 0x09, 0x38, 0x15, 0x81,
91 0x25, 0x7f, 0x75, 0x08, 0x95, 0x03, 0x81, 0x06,
92 0xc0, 0xc0

--- 128 unchanged lines hidden ---
87static uint8_t mouse_hid_descriptor[] = {
88 0x05, 0x01, 0x09, 0x02, 0xa1, 0x01, 0x09, 0x01,
89 0xa1, 0x00, 0x05, 0x09, 0x19, 0x01, 0x29, 0x03,
90 0x15, 0x00, 0x25, 0x01, 0x95, 0x03, 0x75, 0x01,
91 0x81, 0x02, 0x95, 0x05, 0x81, 0x03, 0x05, 0x01,
92 0x09, 0x30, 0x09, 0x31, 0x09, 0x38, 0x15, 0x81,
93 0x25, 0x7f, 0x75, 0x08, 0x95, 0x03, 0x81, 0x06,
94 0xc0, 0xc0

--- 128 unchanged lines hidden ---