Deleted Added
full compact
tegra124_coretemp.c (302408) tegra124_coretemp.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/tegra124/tegra124_coretemp.c 299715 2016-05-14 05:00:17Z gonzo $");
28__FBSDID("$FreeBSD: stable/11/sys/arm/nvidia/tegra124/tegra124_coretemp.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/cpu.h>
34#include <sys/kernel.h>
35#include <sys/lock.h>
36#include <sys/malloc.h>

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

245tegra124_coretemp_detach(device_t dev)
246{
247 struct tegra124_coretemp_softc *sc;
248
249 sc = device_get_softc(dev);
250 return (0);
251}
252
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/cpu.h>
34#include <sys/kernel.h>
35#include <sys/lock.h>
36#include <sys/malloc.h>

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

245tegra124_coretemp_detach(device_t dev)
246{
247 struct tegra124_coretemp_softc *sc;
248
249 sc = device_get_softc(dev);
250 return (0);
251}
252
253
254static device_method_t tegra124_coretemp_methods[] = {
255 /* Device interface */
256 DEVMETHOD(device_identify, tegra124_coretemp_identify),
257 DEVMETHOD(device_probe, tegra124_coretemp_probe),
258 DEVMETHOD(device_attach, tegra124_coretemp_attach),
259 DEVMETHOD(device_detach, tegra124_coretemp_detach),
260
261
262 DEVMETHOD_END
263};
264
265static devclass_t tegra124_coretemp_devclass;
253static device_method_t tegra124_coretemp_methods[] = {
254 /* Device interface */
255 DEVMETHOD(device_identify, tegra124_coretemp_identify),
256 DEVMETHOD(device_probe, tegra124_coretemp_probe),
257 DEVMETHOD(device_attach, tegra124_coretemp_attach),
258 DEVMETHOD(device_detach, tegra124_coretemp_detach),
259
260
261 DEVMETHOD_END
262};
263
264static devclass_t tegra124_coretemp_devclass;
266static driver_t tegra124_coretemp_driver = {
267 "tegra124_coretemp",
268 tegra124_coretemp_methods,
269 sizeof(struct tegra124_coretemp_softc),
270};
271
265static DEFINE_CLASS_0(coretemp, tegra124_coretemp_driver,
266 tegra124_coretemp_methods, sizeof(struct tegra124_coretemp_softc));
272DRIVER_MODULE(tegra124_coretemp, cpu, tegra124_coretemp_driver,
267DRIVER_MODULE(tegra124_coretemp, cpu, tegra124_coretemp_driver,
273 tegra124_coretemp_devclass, 0, 0);
268 tegra124_coretemp_devclass, NULL, NULL);