Deleted Added
full compact
exynos5_ehci.c (269703) exynos5_ehci.c (276717)
1/*-
2 * Copyright (c) 2013-2014 Ruslan Bukin <br@bsdpad.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/arm/samsung/exynos/exynos5_ehci.c 269703 2014-08-08 06:30:17Z nwhitehorn $");
28__FBSDID("$FreeBSD: head/sys/arm/samsung/exynos/exynos5_ehci.c 276717 2015-01-05 20:22:18Z hselasky $");
29
30#include "opt_bus.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/module.h>
36#include <sys/bus.h>

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

254 int err;
255
256 esc = device_get_softc(dev);
257 esc->dev = dev;
258 sc = &esc->base;
259 sc->sc_bus.parent = dev;
260 sc->sc_bus.devices = sc->sc_devices;
261 sc->sc_bus.devices_max = EHCI_MAX_DEVICES;
29
30#include "opt_bus.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/kernel.h>
35#include <sys/module.h>
36#include <sys/bus.h>

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

254 int err;
255
256 esc = device_get_softc(dev);
257 esc->dev = dev;
258 sc = &esc->base;
259 sc->sc_bus.parent = dev;
260 sc->sc_bus.devices = sc->sc_devices;
261 sc->sc_bus.devices_max = EHCI_MAX_DEVICES;
262 sc->sc_bus.dma_bits = 32;
262
263 if (bus_alloc_resources(dev, exynos_ehci_spec, esc->res)) {
264 device_printf(dev, "could not allocate resources\n");
265 return (ENXIO);
266 }
267
268 /* EHCI registers */
269 sc->sc_io_tag = rman_get_bustag(esc->res[0]);

--- 124 unchanged lines hidden ---
263
264 if (bus_alloc_resources(dev, exynos_ehci_spec, esc->res)) {
265 device_printf(dev, "could not allocate resources\n");
266 return (ENXIO);
267 }
268
269 /* EHCI registers */
270 sc->sc_io_tag = rman_get_bustag(esc->res[0]);

--- 124 unchanged lines hidden ---