Deleted Added
full compact
usb_mouse.c (315929) usb_mouse.c (336161)
1/*-
2 * Copyright (c) 2014 Leon Dang <ldang@nahannisys.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2014 Leon Dang <ldang@nahannisys.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: stable/11/usr.sbin/bhyve/usb_mouse.c 315929 2017-03-25 05:21:49Z grehan $");
28__FBSDID("$FreeBSD: stable/11/usr.sbin/bhyve/usb_mouse.c 336161 2018-07-10 04:26:32Z araujo $");
29
30#include <sys/time.h>
31
32#include <pthread.h>
33#include <stdio.h>
34#include <stdlib.h>
35#include <string.h>
36

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

215
216struct umouse_bos_desc umouse_bosd = {
217 .bosd = {
218 .bLength = sizeof(umouse_bosd.bosd),
219 .bDescriptorType = UDESC_BOS,
220 HSETW(.wTotalLength, sizeof(umouse_bosd)),
221 .bNumDeviceCaps = 1,
222 },
29
30#include <sys/time.h>
31
32#include <pthread.h>
33#include <stdio.h>
34#include <stdlib.h>
35#include <string.h>
36

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

215
216struct umouse_bos_desc umouse_bosd = {
217 .bosd = {
218 .bLength = sizeof(umouse_bosd.bosd),
219 .bDescriptorType = UDESC_BOS,
220 HSETW(.wTotalLength, sizeof(umouse_bosd)),
221 .bNumDeviceCaps = 1,
222 },
223 .usbssd = {
224 .bLength = sizeof(umouse_bosd.usbssd),
225 .bDescriptorType = UDESC_DEVICE_CAPABILITY,
226 .bDevCapabilityType = 3,
227 .bmAttributes = 0,
228 HSETW(.wSpeedsSupported, 0x08),
229 .bFunctionalitySupport = 3,
230 .bU1DevExitLat = 0xa, /* dummy - not used */
231 .wU2DevExitLat = { 0x20, 0x00 },
232 }
223 .usbssd = {
224 .bLength = sizeof(umouse_bosd.usbssd),
225 .bDescriptorType = UDESC_DEVICE_CAPABILITY,
226 .bDevCapabilityType = 3,
227 .bmAttributes = 0,
228 HSETW(.wSpeedsSupported, 0x08),
229 .bFunctionalitySupport = 3,
230 .bU1DevExitLat = 0xa, /* dummy - not used */
231 .wU2DevExitLat = { 0x20, 0x00 },
232 }
233};
234
235
236struct umouse_softc {
237 struct usb_hci *hci;
238
239 char *opt;
240

--- 560 unchanged lines hidden ---
233};
234
235
236struct umouse_softc {
237 struct usb_hci *hci;
238
239 char *opt;
240

--- 560 unchanged lines hidden ---