Deleted Added
full compact
vf_ehci.c (261410) vf_ehci.c (276717)
1/*-
2 * Copyright (c) 2013 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

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

25 */
26
27/*
28 * Vybrid Family Universal Serial Bus (USB) Controller
29 * Chapter 44-45, Vybrid Reference Manual, Rev. 5, 07/2013
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2013 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

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

25 */
26
27/*
28 * Vybrid Family Universal Serial Bus (USB) Controller
29 * Chapter 44-45, Vybrid Reference Manual, Rev. 5, 07/2013
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/arm/freescale/vybrid/vf_ehci.c 261410 2014-02-02 19:17:28Z ian $");
33__FBSDID("$FreeBSD: head/sys/arm/freescale/vybrid/vf_ehci.c 276717 2015-01-05 20:22:18Z hselasky $");
34
35#include "opt_bus.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>
40#include <sys/module.h>
41#include <sys/bus.h>

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

254
255 esc = device_get_softc(dev);
256 esc->dev = dev;
257
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;
34
35#include "opt_bus.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>
40#include <sys/module.h>
41#include <sys/bus.h>

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

254
255 esc = device_get_softc(dev);
256 esc->dev = dev;
257
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, vybrid_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]);

--- 150 unchanged lines hidden ---
263
264 if (bus_alloc_resources(dev, vybrid_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]);

--- 150 unchanged lines hidden ---