Deleted Added
full compact
usb_device.c (259218) usb_device.c (260589)
1/* $FreeBSD: head/sys/dev/usb/usb_device.c 259218 2013-12-11 13:20:32Z hselasky $ */
1/* $FreeBSD: head/sys/dev/usb/usb_device.c 260589 2014-01-13 15:21:11Z hselasky $ */
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. 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
9 * notice, this list of conditions and the following disclaimer.

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

93static void usb_detach_device_sub(struct usb_device *, device_t *,
94 char **, uint8_t);
95static uint8_t usb_probe_and_attach_sub(struct usb_device *,
96 struct usb_attach_arg *);
97static void usb_init_attach_arg(struct usb_device *,
98 struct usb_attach_arg *);
99static void usb_suspend_resume_sub(struct usb_device *, device_t,
100 uint8_t);
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. 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
9 * notice, this list of conditions and the following disclaimer.

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

93static void usb_detach_device_sub(struct usb_device *, device_t *,
94 char **, uint8_t);
95static uint8_t usb_probe_and_attach_sub(struct usb_device *,
96 struct usb_attach_arg *);
97static void usb_init_attach_arg(struct usb_device *,
98 struct usb_attach_arg *);
99static void usb_suspend_resume_sub(struct usb_device *, device_t,
100 uint8_t);
101static void usbd_clear_stall_proc(struct usb_proc_msg *_pm);
101static usb_proc_callback_t usbd_clear_stall_proc;
102static usb_error_t usb_config_parse(struct usb_device *, uint8_t, uint8_t);
103static void usbd_set_device_strings(struct usb_device *);
104#if USB_HAVE_DEVCTL
105static void usb_notify_addq(const char *type, struct usb_device *);
106#endif
107#if USB_HAVE_UGEN
108static void usb_fifo_free_wrap(struct usb_device *, uint8_t, uint8_t);
109static void usb_cdev_create(struct usb_device *);

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

1469/*------------------------------------------------------------------------*
1470 * usbd_clear_stall_proc
1471 *
1472 * This function performs generic USB clear stall operations.
1473 *------------------------------------------------------------------------*/
1474static void
1475usbd_clear_stall_proc(struct usb_proc_msg *_pm)
1476{
102static usb_error_t usb_config_parse(struct usb_device *, uint8_t, uint8_t);
103static void usbd_set_device_strings(struct usb_device *);
104#if USB_HAVE_DEVCTL
105static void usb_notify_addq(const char *type, struct usb_device *);
106#endif
107#if USB_HAVE_UGEN
108static void usb_fifo_free_wrap(struct usb_device *, uint8_t, uint8_t);
109static void usb_cdev_create(struct usb_device *);

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

1469/*------------------------------------------------------------------------*
1470 * usbd_clear_stall_proc
1471 *
1472 * This function performs generic USB clear stall operations.
1473 *------------------------------------------------------------------------*/
1474static void
1475usbd_clear_stall_proc(struct usb_proc_msg *_pm)
1476{
1477 struct usb_clear_stall_msg *pm = (void *)_pm;
1477 struct usb_udev_msg *pm = (void *)_pm;
1478 struct usb_device *udev = pm->udev;
1479
1480 /* Change lock */
1481 USB_BUS_UNLOCK(udev->bus);
1482 mtx_lock(&udev->device_mtx);
1483
1484 /* Start clear stall callback */
1485 usbd_transfer_start(udev->ctrl_xfer[1]);

--- 1335 unchanged lines hidden ---
1478 struct usb_device *udev = pm->udev;
1479
1480 /* Change lock */
1481 USB_BUS_UNLOCK(udev->bus);
1482 mtx_lock(&udev->device_mtx);
1483
1484 /* Start clear stall callback */
1485 usbd_transfer_start(udev->ctrl_xfer[1]);

--- 1335 unchanged lines hidden ---