Deleted Added
full compact
usb_device.c (250986) usb_device.c (259218)
1/* $FreeBSD: head/sys/dev/usb/usb_device.c 250986 2013-05-25 17:09:58Z hselasky $ */
1/* $FreeBSD: head/sys/dev/usb/usb_device.c 259218 2013-12-11 13:20:32Z 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.

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

371 * zeroed before calling this function.
372 *------------------------------------------------------------------------*/
373static void
374usb_init_endpoint(struct usb_device *udev, uint8_t iface_index,
375 struct usb_endpoint_descriptor *edesc,
376 struct usb_endpoint_ss_comp_descriptor *ecomp,
377 struct usb_endpoint *ep)
378{
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.

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

371 * zeroed before calling this function.
372 *------------------------------------------------------------------------*/
373static void
374usb_init_endpoint(struct usb_device *udev, uint8_t iface_index,
375 struct usb_endpoint_descriptor *edesc,
376 struct usb_endpoint_ss_comp_descriptor *ecomp,
377 struct usb_endpoint *ep)
378{
379 struct usb_bus_methods *methods;
379 const struct usb_bus_methods *methods;
380 usb_stream_t x;
381
382 methods = udev->bus->methods;
383
384 (methods->endpoint_init) (udev, edesc, ep);
385
386 /* initialise USB endpoint structure */
387 ep->edesc = edesc;

--- 2433 unchanged lines hidden ---
380 usb_stream_t x;
381
382 methods = udev->bus->methods;
383
384 (methods->endpoint_init) (udev, edesc, ep);
385
386 /* initialise USB endpoint structure */
387 ep->edesc = edesc;

--- 2433 unchanged lines hidden ---