Deleted Added
full compact
amdtemp.c (263869) amdtemp.c (273383)
1/*-
2 * Copyright (c) 2008, 2009 Rui Paulo <rpaulo@FreeBSD.org>
3 * Copyright (c) 2009 Norikatsu Shigemura <nork@FreeBSD.org>
4 * Copyright (c) 2009-2012 Jung-uk Kim <jkim@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

27 */
28
29/*
30 * Driver for the AMD CPU on-die thermal sensors.
31 * Initially based on the k8temp Linux driver.
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008, 2009 Rui Paulo <rpaulo@FreeBSD.org>
3 * Copyright (c) 2009 Norikatsu Shigemura <nork@FreeBSD.org>
4 * Copyright (c) 2009-2012 Jung-uk Kim <jkim@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

27 */
28
29/*
30 * Driver for the AMD CPU on-die thermal sensors.
31 * Initially based on the k8temp Linux driver.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: stable/10/sys/dev/amdtemp/amdtemp.c 263869 2014-03-28 08:55:34Z brueffer $");
35__FBSDID("$FreeBSD: stable/10/sys/dev/amdtemp/amdtemp.c 273383 2014-10-21 13:07:36Z brueffer $");
36
37#include <sys/param.h>
38#include <sys/bus.h>
39#include <sys/conf.h>
40#include <sys/kernel.h>
41#include <sys/module.h>
42#include <sys/sysctl.h>
43#include <sys/systm.h>

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

75#define VENDORID_AMD 0x1022
76#define DEVICEID_AMD_MISC0F 0x1103
77#define DEVICEID_AMD_MISC10 0x1203
78#define DEVICEID_AMD_MISC11 0x1303
79#define DEVICEID_AMD_MISC12 0x1403
80#define DEVICEID_AMD_MISC14 0x1703
81#define DEVICEID_AMD_MISC15 0x1603
82#define DEVICEID_AMD_MISC16 0x1533
36
37#include <sys/param.h>
38#include <sys/bus.h>
39#include <sys/conf.h>
40#include <sys/kernel.h>
41#include <sys/module.h>
42#include <sys/sysctl.h>
43#include <sys/systm.h>

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

75#define VENDORID_AMD 0x1022
76#define DEVICEID_AMD_MISC0F 0x1103
77#define DEVICEID_AMD_MISC10 0x1203
78#define DEVICEID_AMD_MISC11 0x1303
79#define DEVICEID_AMD_MISC12 0x1403
80#define DEVICEID_AMD_MISC14 0x1703
81#define DEVICEID_AMD_MISC15 0x1603
82#define DEVICEID_AMD_MISC16 0x1533
83#define DEVICEID_AMD_MISC17 0x141d
83
84static struct amdtemp_product {
85 uint16_t amdtemp_vendorid;
86 uint16_t amdtemp_deviceid;
87} amdtemp_products[] = {
88 { VENDORID_AMD, DEVICEID_AMD_MISC0F },
89 { VENDORID_AMD, DEVICEID_AMD_MISC10 },
90 { VENDORID_AMD, DEVICEID_AMD_MISC11 },
91 { VENDORID_AMD, DEVICEID_AMD_MISC12 },
92 { VENDORID_AMD, DEVICEID_AMD_MISC14 },
93 { VENDORID_AMD, DEVICEID_AMD_MISC15 },
94 { VENDORID_AMD, DEVICEID_AMD_MISC16 },
84
85static struct amdtemp_product {
86 uint16_t amdtemp_vendorid;
87 uint16_t amdtemp_deviceid;
88} amdtemp_products[] = {
89 { VENDORID_AMD, DEVICEID_AMD_MISC0F },
90 { VENDORID_AMD, DEVICEID_AMD_MISC10 },
91 { VENDORID_AMD, DEVICEID_AMD_MISC11 },
92 { VENDORID_AMD, DEVICEID_AMD_MISC12 },
93 { VENDORID_AMD, DEVICEID_AMD_MISC14 },
94 { VENDORID_AMD, DEVICEID_AMD_MISC15 },
95 { VENDORID_AMD, DEVICEID_AMD_MISC16 },
96 { VENDORID_AMD, DEVICEID_AMD_MISC17 },
95 { 0, 0 }
96};
97
98/*
99 * Reported Temperature Control Register
100 */
101#define AMDTEMP_REPTMP_CTRL 0xa4
102

--- 453 unchanged lines hidden ---
97 { 0, 0 }
98};
99
100/*
101 * Reported Temperature Control Register
102 */
103#define AMDTEMP_REPTMP_CTRL 0xa4
104

--- 453 unchanged lines hidden ---