Deleted Added
full compact
xhci_pci.c (276965) xhci_pci.c (276968)
1/*-
2 * Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
27__FBSDID("$FreeBSD: stable/10/sys/dev/usb/controller/xhci_pci.c 276965 2015-01-11 11:28:03Z hselasky $");
27__FBSDID("$FreeBSD: stable/10/sys/dev/usb/controller/xhci_pci.c 276968 2015-01-11 12:08:17Z hselasky $");
28
29#include <sys/stdint.h>
30#include <sys/stddef.h>
31#include <sys/param.h>
32#include <sys/queue.h>
33#include <sys/types.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>

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

97
98 switch (device_id) {
99 case 0x01941033:
100 return ("NEC uPD720200 USB 3.0 controller");
101
102 case 0x10421b21:
103 return ("ASMedia ASM1042 USB 3.0 controller");
104
28
29#include <sys/stdint.h>
30#include <sys/stddef.h>
31#include <sys/param.h>
32#include <sys/queue.h>
33#include <sys/types.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>

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

97
98 switch (device_id) {
99 case 0x01941033:
100 return ("NEC uPD720200 USB 3.0 controller");
101
102 case 0x10421b21:
103 return ("ASMedia ASM1042 USB 3.0 controller");
104
105 case 0x0f358086:
106 return ("Intel Intel BayTrail USB 3.0 controller");
105 case 0x9c318086:
106 case 0x1e318086:
107 return ("Intel Panther Point USB 3.0 controller");
108 case 0x8c318086:
109 return ("Intel Lynx Point USB 3.0 controller");
110 case 0x8cb18086:
111 return ("Intel Wildcat Point USB 3.0 controller");
112

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

245 xhci_interrupt_poll(sc);
246 USB_BUS_UNLOCK(&sc->sc_bus);
247 } else
248 goto error;
249 }
250
251 /* On Intel chipsets reroute ports from EHCI to XHCI controller. */
252 switch (pci_get_devid(self)) {
107 case 0x9c318086:
108 case 0x1e318086:
109 return ("Intel Panther Point USB 3.0 controller");
110 case 0x8c318086:
111 return ("Intel Lynx Point USB 3.0 controller");
112 case 0x8cb18086:
113 return ("Intel Wildcat Point USB 3.0 controller");
114

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

247 xhci_interrupt_poll(sc);
248 USB_BUS_UNLOCK(&sc->sc_bus);
249 } else
250 goto error;
251 }
252
253 /* On Intel chipsets reroute ports from EHCI to XHCI controller. */
254 switch (pci_get_devid(self)) {
255 case 0x0f358086: /* BayTrail */
253 case 0x9c318086: /* Panther Point */
254 case 0x1e318086: /* Panther Point */
255 case 0x8c318086: /* Lynx Point */
256 case 0x8cb18086: /* Wildcat Point */
257 sc->sc_port_route = &xhci_pci_port_route;
258 sc->sc_imod_default = XHCI_IMOD_DEFAULT_LP;
259 break;
260 default:

--- 112 unchanged lines hidden ---
256 case 0x9c318086: /* Panther Point */
257 case 0x1e318086: /* Panther Point */
258 case 0x8c318086: /* Lynx Point */
259 case 0x8cb18086: /* Wildcat Point */
260 sc->sc_port_route = &xhci_pci_port_route;
261 sc->sc_imod_default = XHCI_IMOD_DEFAULT_LP;
262 break;
263 default:

--- 112 unchanged lines hidden ---