Deleted Added
full compact
at91dci.c (240314) at91dci.c (241082)
1#include <sys/cdefs.h>
1#include <sys/cdefs.h>
2__FBSDID("$FreeBSD: head/sys/dev/usb/controller/at91dci.c 240314 2012-09-10 13:50:34Z hselasky $");
2__FBSDID("$FreeBSD: head/sys/dev/usb/controller/at91dci.c 241082 2012-10-01 05:42:43Z hselasky $");
3
4/*-
5 * Copyright (c) 2007-2008 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

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

2272
2273 DPRINTFN(2, "endpoint=%p, addr=%d, endpt=%d, mode=%d (%d)\n",
2274 ep, udev->address,
2275 edesc->bEndpointAddress, udev->flags.usb_mode,
2276 sc->sc_rt_addr);
2277
2278 if (udev->device_index != sc->sc_rt_addr) {
2279
3
4/*-
5 * Copyright (c) 2007-2008 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

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

2272
2273 DPRINTFN(2, "endpoint=%p, addr=%d, endpt=%d, mode=%d (%d)\n",
2274 ep, udev->address,
2275 edesc->bEndpointAddress, udev->flags.usb_mode,
2276 sc->sc_rt_addr);
2277
2278 if (udev->device_index != sc->sc_rt_addr) {
2279
2280 if (udev->flags.usb_mode != USB_MODE_DEVICE) {
2281 /* not supported */
2282 return;
2283 }
2284 if (udev->speed != USB_SPEED_FULL) {
2285 /* not supported */
2286 return;
2287 }
2288 switch (edesc->bmAttributes & UE_XFERTYPE) {
2289 case UE_CONTROL:
2290 ep->methods = &at91dci_device_ctrl_methods;
2291 break;

--- 49 unchanged lines hidden ---
2280 if (udev->speed != USB_SPEED_FULL) {
2281 /* not supported */
2282 return;
2283 }
2284 switch (edesc->bmAttributes & UE_XFERTYPE) {
2285 case UE_CONTROL:
2286 ep->methods = &at91dci_device_ctrl_methods;
2287 break;

--- 49 unchanged lines hidden ---