Deleted Added
full compact
ehci.c (234961) ehci.c (241082)
1/*-
2 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
3 * Copyright (c) 2004 The NetBSD Foundation, Inc. All rights reserved.
4 * Copyright (c) 2004 Lennart Augustsson. All rights reserved.
5 * Copyright (c) 2004 Charles M. Hannum. 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

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

39 */
40
41/*
42 * TODO:
43 * 1) command failures are not recovered correctly
44 */
45
46#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
3 * Copyright (c) 2004 The NetBSD Foundation, Inc. All rights reserved.
4 * Copyright (c) 2004 Lennart Augustsson. All rights reserved.
5 * Copyright (c) 2004 Charles M. Hannum. 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

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

39 */
40
41/*
42 * TODO:
43 * 1) command failures are not recovered correctly
44 */
45
46#include <sys/cdefs.h>
47__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ehci.c 234961 2012-05-03 16:06:22Z hselasky $");
47__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ehci.c 241082 2012-10-01 05:42:43Z hselasky $");
48
49#include <sys/stdint.h>
50#include <sys/stddef.h>
51#include <sys/param.h>
52#include <sys/queue.h>
53#include <sys/types.h>
54#include <sys/systm.h>
55#include <sys/kernel.h>

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

3696{
3697 ehci_softc_t *sc = EHCI_BUS2SC(udev->bus);
3698
3699 DPRINTFN(2, "endpoint=%p, addr=%d, endpt=%d, mode=%d (%d)\n",
3700 ep, udev->address,
3701 edesc->bEndpointAddress, udev->flags.usb_mode,
3702 sc->sc_addr);
3703
48
49#include <sys/stdint.h>
50#include <sys/stddef.h>
51#include <sys/param.h>
52#include <sys/queue.h>
53#include <sys/types.h>
54#include <sys/systm.h>
55#include <sys/kernel.h>

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

3696{
3697 ehci_softc_t *sc = EHCI_BUS2SC(udev->bus);
3698
3699 DPRINTFN(2, "endpoint=%p, addr=%d, endpt=%d, mode=%d (%d)\n",
3700 ep, udev->address,
3701 edesc->bEndpointAddress, udev->flags.usb_mode,
3702 sc->sc_addr);
3703
3704 if (udev->flags.usb_mode != USB_MODE_HOST) {
3705 /* not supported */
3706 return;
3707 }
3708 if (udev->device_index != sc->sc_addr) {
3709
3710 if ((udev->speed != USB_SPEED_HIGH) &&
3711 ((udev->hs_hub_addr == 0) ||
3712 (udev->hs_port_no == 0) ||
3713 (udev->parent_hs_hub == NULL) ||
3714 (udev->parent_hs_hub->hub == NULL))) {
3715 /* We need a transaction translator */

--- 169 unchanged lines hidden ---
3704 if (udev->device_index != sc->sc_addr) {
3705
3706 if ((udev->speed != USB_SPEED_HIGH) &&
3707 ((udev->hs_hub_addr == 0) ||
3708 (udev->hs_port_no == 0) ||
3709 (udev->parent_hs_hub == NULL) ||
3710 (udev->parent_hs_hub->hub == NULL))) {
3711 /* We need a transaction translator */

--- 169 unchanged lines hidden ---