![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpigen.h>
#include <assert.h>
#include <commonlib/bsd/helpers.h>
#include <console/console.h>
#include <device/device.h>
#include <stdlib.h>
#include <string.h>
#include "chip.h"
Go to the source code of this file.
Macros | |
#define | TZ_DEVICE_PATH "\\_TZ" |
#define | DEFAULT_TC1 2 |
#define | DEFAULT_TC2 5 |
#define | DEFAULT_TSP 10 |
#define | CELSIUS_TO_DECI_KELVIN(temp_c) ((temp_c) * 10 + 2731) |
#define | SECONDS_TO_DECI_SECONDS(s) ((s) * 10) |
Functions | |
static const char * | thermal_zone_acpi_name (const struct device *dev) |
static void | thermal_zone_fill_ssdt (const struct device *dev) |
static void | thermal_zone_enable_dev (struct device *dev) |
Variables | |
static struct device_operations | thermal_zone_ops |
struct chip_operations | drivers_acpi_thermal_zone_ops |
#define CELSIUS_TO_DECI_KELVIN | ( | temp_c | ) | ((temp_c) * 10 + 2731) |
Definition at line 19 of file thermal_zone.c.
#define DEFAULT_TC1 2 |
Definition at line 15 of file thermal_zone.c.
#define DEFAULT_TC2 5 |
Definition at line 16 of file thermal_zone.c.
#define DEFAULT_TSP 10 |
Definition at line 17 of file thermal_zone.c.
Definition at line 20 of file thermal_zone.c.
#define TZ_DEVICE_PATH "\\_TZ" |
Definition at line 13 of file thermal_zone.c.
|
static |
Definition at line 22 of file thermal_zone.c.
References ACPI_NAME_BUFFER_SIZE, DEVICE_PATH_GENERIC, device_path::generic, generic_path::id, malloc(), name, NULL, device::path, snprintf(), and device_path::type.
Definition at line 123 of file thermal_zone.c.
Definition at line 35 of file thermal_zone.c.
References acpi_device_name(), acpi_device_path_join(), acpi_device_scope(), acpigen_emit_byte(), acpigen_emit_namestring(), acpigen_write_integer(), acpigen_write_method_end(), acpigen_write_method_serialized(), acpigen_write_name_integer(), acpigen_write_name_string(), acpigen_write_processor_package(), acpigen_write_scope(), acpigen_write_scope_end(), acpigen_write_thermal_zone(), acpigen_write_thermal_zone_end(), assert, BIOS_ERR, BIOS_INFO, CELSIUS_TO_DECI_KELVIN, device::chip_ops, config, config_of(), DEFAULT_TC1, DEFAULT_TC2, DEFAULT_TSP, dev_count_cpu(), dev_path(), DEVICE_PATH_GENERIC, MIN, name, chip_operations::name, device::path, printk, RETURN_OP, SECONDS_TO_DECI_SECONDS, device_path::type, and TZ_DEVICE_PATH.
struct chip_operations drivers_acpi_thermal_zone_ops |
Definition at line 123 of file thermal_zone.c.
|
static |
Definition at line 35 of file thermal_zone.c.