13 #define TZ_DEVICE_PATH "\\_TZ"
17 #define DEFAULT_TSP 10
19 #define CELSIUS_TO_DECI_KELVIN(temp_c) ((temp_c) * 10 + 2731)
20 #define SECONDS_TO_DECI_SECONDS(s) ((s) * 10)
43 if (
config->use_acpi1_thermal_zone_scope)
53 if (!
config->temperature_controller) {
66 if (
config->polling_period)
70 if (
config->critical_temperature)
74 if (
config->hibernate_temperature)
78 if (
config->passive_config.temperature) {
const char * acpi_device_path_join(const struct device *dev, const char *name)
const char * acpi_device_name(const struct device *dev)
const char * acpi_device_scope(const struct device *dev)
void acpigen_emit_namestring(const char *namepath)
void acpigen_write_integer(uint64_t data)
void acpigen_write_scope(const char *name)
void acpigen_write_method_serialized(const char *name, int nargs)
void acpigen_write_name_integer(const char *name, uint64_t val)
void acpigen_write_processor_package(const char *const name, const unsigned int first_core, const unsigned int core_count)
void acpigen_emit_byte(unsigned char b)
void acpigen_write_thermal_zone(const char *name)
void acpigen_write_name_string(const char *name, const char *string)
#define assert(statement)
#define printk(level,...)
const char * dev_path(const struct device *dev)
#define ACPI_NAME_BUFFER_SIZE
void acpigen_write_method_end(void)
void acpigen_write_scope_end(void)
void acpigen_write_thermal_zone_end(void)
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
static void noop_set_resources(struct device *dev)
static DEVTREE_CONST void * config_of(const struct device *dev)
void * malloc(size_t size)
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
void(* read_resources)(struct device *dev)
struct generic_path generic
enum device_path_type type
struct chip_operations * chip_ops
struct device_operations * ops
static void thermal_zone_enable_dev(struct device *dev)
static struct device_operations thermal_zone_ops
struct chip_operations drivers_acpi_thermal_zone_ops
#define CELSIUS_TO_DECI_KELVIN(temp_c)
static const char * thermal_zone_acpi_name(const struct device *dev)
static void thermal_zone_fill_ssdt(const struct device *dev)
#define SECONDS_TO_DECI_SECONDS(s)
int snprintf(char *buf, size_t size, const char *fmt,...)
Note: This file is only for POSIX compatibility, and is meant to be chain-included via string....