Deleted Added
full compact
tegra_efuse.c (308324) tegra_efuse.c (308335)
1/*-
2 * Copyright (c) 2015 Michal Meloun
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) 2015 Michal Meloun
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_efuse.c 308324 2016-11-05 04:17:32Z mmel $");
28__FBSDID("$FreeBSD: stable/11/sys/arm/nvidia/tegra_efuse.c 308335 2016-11-05 10:56:32Z mmel $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/clock.h>
34#include <sys/kernel.h>
35#include <sys/limits.h>
36#include <sys/lock.h>

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

352}
353
354static device_method_t tegra_efuse_methods[] = {
355 /* Device interface */
356 DEVMETHOD(device_probe, tegra_efuse_probe),
357 DEVMETHOD(device_attach, tegra_efuse_attach),
358 DEVMETHOD(device_detach, tegra_efuse_detach),
359
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/clock.h>
34#include <sys/kernel.h>
35#include <sys/limits.h>
36#include <sys/lock.h>

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

352}
353
354static device_method_t tegra_efuse_methods[] = {
355 /* Device interface */
356 DEVMETHOD(device_probe, tegra_efuse_probe),
357 DEVMETHOD(device_attach, tegra_efuse_attach),
358 DEVMETHOD(device_detach, tegra_efuse_detach),
359
360
361 DEVMETHOD_END
362};
363
360 DEVMETHOD_END
361};
362
364DEFINE_CLASS_0(tegra_efuse, tegra_efuse_driver, tegra_efuse_methods,
365 sizeof(struct tegra_efuse_softc));
366static devclass_t tegra_efuse_devclass;
363static devclass_t tegra_efuse_devclass;
364static DEFINE_CLASS_0(efuse, tegra_efuse_driver, tegra_efuse_methods,
365 sizeof(struct tegra_efuse_softc));
367EARLY_DRIVER_MODULE(tegra_efuse, simplebus, tegra_efuse_driver,
366EARLY_DRIVER_MODULE(tegra_efuse, simplebus, tegra_efuse_driver,
368 tegra_efuse_devclass, 0, 0, BUS_PASS_TIMER);
367 tegra_efuse_devclass, NULL, NULL, BUS_PASS_TIMER);