octusb.c (230405) | octusb.c (241082) |
---|---|
1#include <sys/cdefs.h> | 1#include <sys/cdefs.h> |
2__FBSDID("$FreeBSD: head/sys/mips/cavium/usb/octusb.c 230405 2012-01-20 23:37:04Z gonzo $"); | 2__FBSDID("$FreeBSD: head/sys/mips/cavium/usb/octusb.c 241082 2012-10-01 05:42:43Z 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 --- 1844 unchanged lines hidden (view full) --- 1855 struct usb_endpoint *ep) 1856{ 1857 struct octusb_softc *sc = OCTUSB_BUS2SC(udev->bus); 1858 1859 DPRINTFN(2, "endpoint=%p, addr=%d, endpt=%d, mode=%d (%d)\n", 1860 ep, udev->address, edesc->bEndpointAddress, 1861 udev->flags.usb_mode, sc->sc_addr); 1862 | 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 --- 1844 unchanged lines hidden (view full) --- 1855 struct usb_endpoint *ep) 1856{ 1857 struct octusb_softc *sc = OCTUSB_BUS2SC(udev->bus); 1858 1859 DPRINTFN(2, "endpoint=%p, addr=%d, endpt=%d, mode=%d (%d)\n", 1860 ep, udev->address, edesc->bEndpointAddress, 1861 udev->flags.usb_mode, sc->sc_addr); 1862 |
1863 if (udev->flags.usb_mode != USB_MODE_HOST) { 1864 /* not supported */ 1865 return; 1866 } | |
1867 if (udev->device_index != sc->sc_addr) { 1868 switch (edesc->bmAttributes & UE_XFERTYPE) { 1869 case UE_CONTROL: 1870 ep->methods = &octusb_device_ctrl_methods; 1871 break; 1872 case UE_INTERRUPT: 1873 ep->methods = &octusb_device_intr_methods; 1874 break; --- 77 unchanged lines hidden --- | 1863 if (udev->device_index != sc->sc_addr) { 1864 switch (edesc->bmAttributes & UE_XFERTYPE) { 1865 case UE_CONTROL: 1866 ep->methods = &octusb_device_ctrl_methods; 1867 break; 1868 case UE_INTERRUPT: 1869 ep->methods = &octusb_device_intr_methods; 1870 break; --- 77 unchanged lines hidden --- |