Deleted Added
full compact
tegra_pcie.c (308334) tegra_pcie.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_pcie.c 308334 2016-11-05 10:48:44Z mmel $");
28__FBSDID("$FreeBSD: stable/11/sys/arm/nvidia/tegra_pcie.c 308335 2016-11-05 10:56:32Z mmel $");
29
30/*
31 * Nvidia Integrated PCI/PCI-Express controller driver.
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/bus.h>

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

1621 DEVMETHOD(ofw_bus_get_model, ofw_bus_gen_get_model),
1622 DEVMETHOD(ofw_bus_get_name, ofw_bus_gen_get_name),
1623 DEVMETHOD(ofw_bus_get_node, ofw_bus_gen_get_node),
1624 DEVMETHOD(ofw_bus_get_type, ofw_bus_gen_get_type),
1625
1626 DEVMETHOD_END
1627};
1628
29
30/*
31 * Nvidia Integrated PCI/PCI-Express controller driver.
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/bus.h>

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

1621 DEVMETHOD(ofw_bus_get_model, ofw_bus_gen_get_model),
1622 DEVMETHOD(ofw_bus_get_name, ofw_bus_gen_get_name),
1623 DEVMETHOD(ofw_bus_get_node, ofw_bus_gen_get_node),
1624 DEVMETHOD(ofw_bus_get_type, ofw_bus_gen_get_type),
1625
1626 DEVMETHOD_END
1627};
1628
1629static devclass_t pcib_devclass;
1629DEFINE_CLASS_1(pcib, tegra_pcib_driver, tegra_pcib_methods,
1630 sizeof(struct tegra_pcib_softc), ofw_pci_driver);
1630DEFINE_CLASS_1(pcib, tegra_pcib_driver, tegra_pcib_methods,
1631 sizeof(struct tegra_pcib_softc), ofw_pci_driver);
1631devclass_t pcib_devclass;
1632DRIVER_MODULE(pcib, simplebus, tegra_pcib_driver, pcib_devclass, 0, 0);
1632DRIVER_MODULE(pcib, simplebus, tegra_pcib_driver, pcib_devclass,
1633 NULL, NULL);