uhci.c (233774) | uhci.c (241082) |
---|---|
1/*- 2 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 3 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved. 4 * Copyright (c) 1998 Lennart Augustsson. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 3 * Copyright (c) 1998 The NetBSD Foundation, Inc. All rights reserved. 4 * Copyright (c) 1998 Lennart Augustsson. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/usb/controller/uhci.c 233774 2012-04-02 10:50:42Z hselasky $"); | 29__FBSDID("$FreeBSD: head/sys/dev/usb/controller/uhci.c 241082 2012-10-01 05:42:43Z hselasky $"); |
30 31/* 32 * USB Universal Host Controller driver. 33 * Handles e.g. PIIX3 and PIIX4. 34 * 35 * UHCI spec: http://developer.intel.com/design/USB/UHCI11D.htm 36 * USB spec: http://www.usb.org/developers/docs/usbspec.zip 37 * PIIXn spec: ftp://download.intel.com/design/intarch/datashts/29055002.pdf --- 2987 unchanged lines hidden (view full) --- 3025{ 3026 uhci_softc_t *sc = UHCI_BUS2SC(udev->bus); 3027 3028 DPRINTFN(2, "endpoint=%p, addr=%d, endpt=%d, mode=%d (%d)\n", 3029 ep, udev->address, 3030 edesc->bEndpointAddress, udev->flags.usb_mode, 3031 sc->sc_addr); 3032 | 30 31/* 32 * USB Universal Host Controller driver. 33 * Handles e.g. PIIX3 and PIIX4. 34 * 35 * UHCI spec: http://developer.intel.com/design/USB/UHCI11D.htm 36 * USB spec: http://www.usb.org/developers/docs/usbspec.zip 37 * PIIXn spec: ftp://download.intel.com/design/intarch/datashts/29055002.pdf --- 2987 unchanged lines hidden (view full) --- 3025{ 3026 uhci_softc_t *sc = UHCI_BUS2SC(udev->bus); 3027 3028 DPRINTFN(2, "endpoint=%p, addr=%d, endpt=%d, mode=%d (%d)\n", 3029 ep, udev->address, 3030 edesc->bEndpointAddress, udev->flags.usb_mode, 3031 sc->sc_addr); 3032 |
3033 if (udev->flags.usb_mode != USB_MODE_HOST) { 3034 /* not supported */ 3035 return; 3036 } | |
3037 if (udev->device_index != sc->sc_addr) { 3038 switch (edesc->bmAttributes & UE_XFERTYPE) { 3039 case UE_CONTROL: 3040 ep->methods = &uhci_device_ctrl_methods; 3041 break; 3042 case UE_INTERRUPT: 3043 ep->methods = &uhci_device_intr_methods; 3044 break; --- 186 unchanged lines hidden --- | 3033 if (udev->device_index != sc->sc_addr) { 3034 switch (edesc->bmAttributes & UE_XFERTYPE) { 3035 case UE_CONTROL: 3036 ep->methods = &uhci_device_ctrl_methods; 3037 break; 3038 case UE_INTERRUPT: 3039 ep->methods = &uhci_device_intr_methods; 3040 break; --- 186 unchanged lines hidden --- |