Deleted Added
full compact
ar71xx_ehci.c (262677) ar71xx_ehci.c (276717)
1/*-
2 * Copyright (c) 2008 Sam Leffler. 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.

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

22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25/*
26 * AR71XX attachment driver for the USB Enhanced Host Controller.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008 Sam Leffler. 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.

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

22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25/*
26 * AR71XX attachment driver for the USB Enhanced Host Controller.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/mips/atheros/ar71xx_ehci.c 262677 2014-03-02 02:49:20Z adrian $");
30__FBSDID("$FreeBSD: head/sys/mips/atheros/ar71xx_ehci.c 276717 2015-01-05 20:22:18Z hselasky $");
31
32#include "opt_bus.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/bus.h>
37#include <sys/rman.h>
38#include <sys/condvar.h>

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

85 ehci_softc_t *sc = &isc->base;
86 int err;
87 int rid;
88
89 /* initialise some bus fields */
90 sc->sc_bus.parent = self;
91 sc->sc_bus.devices = sc->sc_devices;
92 sc->sc_bus.devices_max = EHCI_MAX_DEVICES;
31
32#include "opt_bus.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/bus.h>
37#include <sys/rman.h>
38#include <sys/condvar.h>

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

85 ehci_softc_t *sc = &isc->base;
86 int err;
87 int rid;
88
89 /* initialise some bus fields */
90 sc->sc_bus.parent = self;
91 sc->sc_bus.devices = sc->sc_devices;
92 sc->sc_bus.devices_max = EHCI_MAX_DEVICES;
93 sc->sc_bus.dma_bits = 32;
93
94 /* get all DMA memory */
95 if (usb_bus_mem_alloc_all(&sc->sc_bus,
96 USB_GET_DMA_TAG(self), &ehci_iterate_hw_softc)) {
97 return (ENOMEM);
98 }
99
100 sc->sc_bus.usbrev = USB_REV_2_0;

--- 160 unchanged lines hidden ---
94
95 /* get all DMA memory */
96 if (usb_bus_mem_alloc_all(&sc->sc_bus,
97 USB_GET_DMA_TAG(self), &ehci_iterate_hw_softc)) {
98 return (ENOMEM);
99 }
100
101 sc->sc_bus.usbrev = USB_REV_2_0;

--- 160 unchanged lines hidden ---