|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/hwmon.h>#include <linux/hwmon-sysfs.h>#include <linux/jiffies.h>#include <linux/mutex.h>#include <linux/dmi.h>#include <linux/slab.h>#include <linux/kdev_t.h>#include <linux/sched.h>#include <linux/time.h>#include <linux/err.h>#include <acpi/acpi_drivers.h>#include <acpi/acpi_bus.h>Go to the source code of this file.
Data Structures | |
| struct | acpi_power_meter_capabilities |
| struct | acpi_power_meter_resource |
| struct | sensor_template |
Macros | |
| #define | ACPI_POWER_METER_NAME "power_meter" |
| #define | ACPI_POWER_METER_DEVICE_NAME "Power Meter" |
| #define | ACPI_POWER_METER_CLASS "pwr_meter_resource" |
| #define | NUM_SENSORS 17 |
| #define | POWER_METER_CAN_MEASURE (1 << 0) |
| #define | POWER_METER_CAN_TRIP (1 << 1) |
| #define | POWER_METER_CAN_CAP (1 << 2) |
| #define | POWER_METER_CAN_NOTIFY (1 << 3) |
| #define | POWER_METER_IS_BATTERY (1 << 8) |
| #define | UNKNOWN_HYSTERESIS 0xFFFFFFFF |
| #define | METER_NOTIFY_CONFIG 0x80 |
| #define | METER_NOTIFY_TRIP 0x81 |
| #define | METER_NOTIFY_CAP 0x82 |
| #define | METER_NOTIFY_CAPPING 0x83 |
| #define | METER_NOTIFY_INTERVAL 0x84 |
| #define | POWER_AVERAGE_NAME "power1_average" |
| #define | POWER_CAP_NAME "power1_cap" |
| #define | POWER_AVG_INTERVAL_NAME "power1_average_interval" |
| #define | POWER_ALARM_NAME "power1_alarm" |
| #define | RO_SENSOR_TEMPLATE(_label, _show, _index) |
| #define | RW_SENSOR_TEMPLATE(_label, _show, _set, _index) |
Functions | |
| ACPI_MODULE_NAME (ACPI_POWER_METER_NAME) | |
| MODULE_DEVICE_TABLE (acpi, power_meter_ids) | |
| MODULE_AUTHOR ("Darrick J. Wong <[email protected]>") | |
| MODULE_DESCRIPTION ("ACPI 4.0 power meter driver") | |
| MODULE_LICENSE ("GPL") | |
| module_param (force_cap_on, bool, 0644) | |
| MODULE_PARM_DESC (force_cap_on,"Enable power cap even it is unsafe to do so.") | |
| module_init (acpi_power_meter_init) | |
| module_exit (acpi_power_meter_exit) | |
| #define ACPI_POWER_METER_CLASS "pwr_meter_resource" |
Definition at line 39 of file acpi_power_meter.c.
| #define ACPI_POWER_METER_DEVICE_NAME "Power Meter" |
Definition at line 38 of file acpi_power_meter.c.
| #define ACPI_POWER_METER_NAME "power_meter" |
Definition at line 36 of file acpi_power_meter.c.
| #define METER_NOTIFY_CAP 0x82 |
Definition at line 52 of file acpi_power_meter.c.
| #define METER_NOTIFY_CAPPING 0x83 |
Definition at line 53 of file acpi_power_meter.c.
| #define METER_NOTIFY_CONFIG 0x80 |
Definition at line 50 of file acpi_power_meter.c.
| #define METER_NOTIFY_INTERVAL 0x84 |
Definition at line 54 of file acpi_power_meter.c.
| #define METER_NOTIFY_TRIP 0x81 |
Definition at line 51 of file acpi_power_meter.c.
| #define NUM_SENSORS 17 |
Definition at line 41 of file acpi_power_meter.c.
| #define POWER_ALARM_NAME "power1_alarm" |
Definition at line 59 of file acpi_power_meter.c.
| #define POWER_AVERAGE_NAME "power1_average" |
Definition at line 56 of file acpi_power_meter.c.
| #define POWER_AVG_INTERVAL_NAME "power1_average_interval" |
Definition at line 58 of file acpi_power_meter.c.
| #define POWER_CAP_NAME "power1_cap" |
Definition at line 57 of file acpi_power_meter.c.
| #define POWER_METER_CAN_CAP (1 << 2) |
Definition at line 45 of file acpi_power_meter.c.
| #define POWER_METER_CAN_MEASURE (1 << 0) |
Definition at line 43 of file acpi_power_meter.c.
| #define POWER_METER_CAN_NOTIFY (1 << 3) |
Definition at line 46 of file acpi_power_meter.c.
| #define POWER_METER_CAN_TRIP (1 << 1) |
Definition at line 44 of file acpi_power_meter.c.
| #define POWER_METER_IS_BATTERY (1 << 8) |
Definition at line 47 of file acpi_power_meter.c.
| #define RO_SENSOR_TEMPLATE | ( | _label, | |
| _show, | |||
| _index | |||
| ) |
Definition at line 463 of file acpi_power_meter.c.
| #define RW_SENSOR_TEMPLATE | ( | _label, | |
| _show, | |||
| _set, | |||
| _index | |||
| ) |
Definition at line 470 of file acpi_power_meter.c.
| #define UNKNOWN_HYSTERESIS 0xFFFFFFFF |
Definition at line 48 of file acpi_power_meter.c.
| ACPI_MODULE_NAME | ( | ACPI_POWER_METER_NAME | ) |
| MODULE_AUTHOR | ( | "Darrick J. Wong <[email protected]>" | ) |
| MODULE_DESCRIPTION | ( | "ACPI 4.0 power meter driver" | ) |
| MODULE_DEVICE_TABLE | ( | acpi | , |
| power_meter_ids | |||
| ) |
| module_exit | ( | acpi_power_meter_exit | ) |
| module_init | ( | acpi_power_meter_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param | ( | force_cap_on | , |
| bool | , | ||
| 0644 | |||
| ) |
1.8.2