#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/dmi.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/jiffies.h>
#include <linux/kmod.h>
#include <linux/reboot.h>
#include <linux/device.h>
#include <asm/uaccess.h>
#include <linux/thermal.h>
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>
Go to the source code of this file.
|
| ACPI_MODULE_NAME ("thermal") |
|
| MODULE_AUTHOR ("Paul Diefenbaugh") |
|
| MODULE_DESCRIPTION ("ACPI Thermal Zone Driver") |
|
| MODULE_LICENSE ("GPL") |
|
| module_param (act, int, 0644) |
|
| MODULE_PARM_DESC (act,"Disable or override all lowest active trip points.") |
|
| module_param (crt, int, 0644) |
|
| MODULE_PARM_DESC (crt,"Disable or lower all critical trip points.") |
|
| module_param (tzp, int, 0444) |
|
| MODULE_PARM_DESC (tzp,"Thermal zone polling frequency, in 1/10 seconds.") |
|
| module_param (nocrt, int, 0) |
|
| MODULE_PARM_DESC (nocrt,"Set to take no action upon ACPI thermal zone critical trips points.") |
|
| module_param (off, int, 0) |
|
| MODULE_PARM_DESC (off,"Set to disable ACPI thermal support.") |
|
| module_param (psv, int, 0644) |
|
| MODULE_PARM_DESC (psv,"Disable or override all passive trip points.") |
|
| MODULE_DEVICE_TABLE (acpi, thermal_device_ids) |
|
| module_init (acpi_thermal_init) |
|
| module_exit (acpi_thermal_exit) |
|
#define ACPI_THERMAL_CLASS "thermal_zone" |
#define ACPI_THERMAL_DEVICE_NAME "Thermal Zone" |
#define ACPI_THERMAL_FILE_COOLING_MODE "cooling_mode" |
#define ACPI_THERMAL_FILE_POLLING_FREQ "polling_frequency" |
#define ACPI_THERMAL_FILE_STATE "state" |
#define ACPI_THERMAL_FILE_TEMPERATURE "temperature" |
#define ACPI_THERMAL_FILE_TRIP_POINTS "trip_points" |
#define ACPI_THERMAL_MAX_ACTIVE 10 |
#define ACPI_THERMAL_MAX_LIMIT_STR_LEN 65 |
#define ACPI_THERMAL_MODE_ACTIVE 0x00 |
#define ACPI_THERMAL_NOTIFY_CRITICAL 0xF0 |
#define ACPI_THERMAL_NOTIFY_DEVICES 0x82 |
#define ACPI_THERMAL_NOTIFY_HOT 0xF1 |
#define ACPI_THERMAL_NOTIFY_TEMPERATURE 0x80 |
#define ACPI_THERMAL_NOTIFY_THRESHOLDS 0x81 |
#define ACPI_THERMAL_TRIPS_EXCEPTION |
( |
|
flags, |
|
|
|
str |
|
) |
| |
Value:do { \
"ACPI thermal trip point %s changed\n" \
} while (0)
Definition at line 286 of file thermal.c.
#define ACPI_TRIPS_ACTIVE 0x08 |
#define ACPI_TRIPS_CRITICAL 0x01 |
#define ACPI_TRIPS_DEVICES 0x10 |
#define ACPI_TRIPS_HOT 0x02 |
#define ACPI_TRIPS_PASSIVE 0x04 |
#define KELVIN_TO_MILLICELSIUS |
( |
|
t, |
|
|
|
off |
|
) |
| (((t) - (off)) * 100) |
ACPI_MODULE_NAME |
( |
"thermal" |
| ) |
|
MODULE_AUTHOR |
( |
"Paul Diefenbaugh" |
| ) |
|
MODULE_DESCRIPTION |
( |
"ACPI Thermal Zone Driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
acpi |
, |
|
|
thermal_device_ids |
|
|
) |
| |
module_exit |
( |
acpi_thermal_exit |
| ) |
|
module_init |
( |
acpi_thermal_init |
| ) |
|
module_param |
( |
act |
, |
|
|
int |
, |
|
|
0644 |
|
|
) |
| |
module_param |
( |
crt |
, |
|
|
int |
, |
|
|
0644 |
|
|
) |
| |
module_param |
( |
tzp |
, |
|
|
int |
, |
|
|
0444 |
|
|
) |
| |
module_param |
( |
nocrt |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
off |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
psv |
, |
|
|
int |
, |
|
|
0644 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
act |
, |
|
|
"Disable or override all lowest active trip points." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
crt |
, |
|
|
"Disable or lower all critical trip points." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
tzp |
, |
|
|
"Thermal zone polling |
frequency, |
|
|
in 1/10 seconds." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
nocrt |
, |
|
|
"Set to take no action upon ACPI thermal zone critical trips points." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
off |
, |
|
|
"Set to disable ACPI thermal support." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
psv |
, |
|
|
"Disable or override all passive trip points." |
|
|
) |
| |