tegra_soctherm.c (308324) | tegra_soctherm.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_soctherm.c 308324 2016-11-05 04:17:32Z mmel $"); | 28__FBSDID("$FreeBSD: stable/11/sys/arm/nvidia/tegra_soctherm.c 308335 2016-11-05 10:56:32Z mmel $"); |
29 30/* 31 * Thermometer and thermal zones driver for Tegra SoCs. 32 * Calibration data and algo are taken from Linux, because this part of SoC 33 * is undocumented in TRM. 34 */ 35 36#include <sys/param.h> --- 648 unchanged lines hidden (view full) --- 685 686 /* SOCTHERM interface */ 687 DEVMETHOD(tegra_soctherm_get_temperature, soctherm_get_temp), 688 689 DEVMETHOD_END 690}; 691 692static devclass_t tegra_soctherm_devclass; | 29 30/* 31 * Thermometer and thermal zones driver for Tegra SoCs. 32 * Calibration data and algo are taken from Linux, because this part of SoC 33 * is undocumented in TRM. 34 */ 35 36#include <sys/param.h> --- 648 unchanged lines hidden (view full) --- 685 686 /* SOCTHERM interface */ 687 DEVMETHOD(tegra_soctherm_get_temperature, soctherm_get_temp), 688 689 DEVMETHOD_END 690}; 691 692static devclass_t tegra_soctherm_devclass; |
693DEFINE_CLASS_0(tegra_soctherm, tegra_soctherm_driver, tegra_soctherm_methods, | 693static DEFINE_CLASS_0(soctherm, tegra_soctherm_driver, tegra_soctherm_methods, |
694 sizeof(struct soctherm_softc)); 695EARLY_DRIVER_MODULE(tegra_soctherm, simplebus, tegra_soctherm_driver, | 694 sizeof(struct soctherm_softc)); 695EARLY_DRIVER_MODULE(tegra_soctherm, simplebus, tegra_soctherm_driver, |
696tegra_soctherm_devclass, 0, 0, 79); | 696 tegra_soctherm_devclass, NULL, NULL, 79); |