Deleted Added
full compact
tegra_ehci.c (308324) tegra_ehci.c (308335)
1/*-
2 * Copyright (c) 2016 Michal Meloun <mmel@FreeBSD.org>
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) 2016 Michal Meloun <mmel@FreeBSD.org>
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: stable/11/sys/arm/nvidia/tegra_ehci.c 308324 2016-11-05 04:17:32Z mmel $");
28__FBSDID("$FreeBSD: stable/11/sys/arm/nvidia/tegra_ehci.c 308335 2016-11-05 10:56:32Z mmel $");
29
30/*
31 * EHCI driver for Tegra SoCs.
32 */
33#include "opt_bus.h"
34#include "opt_platform.h"
35
36#include <sys/param.h>

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

306 DEVMETHOD(device_shutdown, bus_generic_shutdown),
307
308 /* Bus interface */
309 DEVMETHOD(bus_print_child, bus_generic_print_child),
310
311 DEVMETHOD_END
312};
313
29
30/*
31 * EHCI driver for Tegra SoCs.
32 */
33#include "opt_bus.h"
34#include "opt_platform.h"
35
36#include <sys/param.h>

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

306 DEVMETHOD(device_shutdown, bus_generic_shutdown),
307
308 /* Bus interface */
309 DEVMETHOD(bus_print_child, bus_generic_print_child),
310
311 DEVMETHOD_END
312};
313
314static driver_t ehci_driver = {
315 "ehci",
316 ehci_methods,
317 sizeof(struct tegra_ehci_softc)
318};
319
320static devclass_t ehci_devclass;
314static devclass_t ehci_devclass;
321DRIVER_MODULE(ehci, simplebus, ehci_driver, ehci_devclass, 0, 0);
322MODULE_DEPEND(ehci, usb, 1, 1, 1);
315static DEFINE_CLASS_0(ehci, ehci_driver, ehci_methods,
316 sizeof(struct tegra_ehci_softc));
317DRIVER_MODULE(tegra_ehci, simplebus, ehci_driver, ehci_devclass, NULL, NULL);
318MODULE_DEPEND(tegra_ehci, usb, 1, 1, 1);