![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <device/device.h>
#include <device/pnp.h>
#include <ec/acpi/ec.h>
#include <option.h>
#include "ec.h"
#include "chip.h"
Go to the source code of this file.
Typedefs | |
typedef struct ec_kontron_it8516e_config | config_t |
Enumerations | |
enum | { IT8516E_CMD_SET_SYSTEMP_TYPE = 0x06 , IT8516E_CMD_GET_SYSTEMP_TYPE = 0x07 , IT8516E_CMD_GET_FAN_MODE = 0x10 , IT8516E_CMD_SET_FAN_MODE = 0x11 , IT8516E_CMD_GET_FAN_PWM = 0x12 , IT8516E_CMD_SET_FAN_PWM = 0x13 , IT8516E_CMD_GET_FAN_SPEED = 0x14 , IT8516E_CMD_SET_FAN_SPEED = 0x15 , IT8516E_CMD_GET_FAN_TEMP = 0x16 , IT8516E_CMD_SET_FAN_TEMP = 0x17 , IT8516E_CMD_SET_FAN_LIMITS = 0x1a } |
Functions | |
static void | it8516e_set_systemp_type (const u8 type) |
Sets the type of the external temperature sensor used. More... | |
static void | it8516e_set_fan_mode (const u8 idx, const u8 mode) |
Sets the operating mode of a fan. More... | |
static void | it8516e_set_fan_pwm (const u8 idx, const u8 pwm) |
Sets the PWM rate of a fan in IT8516E_MODE_PWM. More... | |
static void | it8516e_set_fan_speed (const u8 idx, const u16 speed) |
Sets the target speed in RPM for a fan in IT8516E_MODE_SPEED. More... | |
static void | it8516e_set_fan_temperature (const u8 idx, const u16 temp) |
Sets the target temperature for a fan in IT8516E_MODE_THERMAL. More... | |
static void | it8516e_set_fan_limits (const u8 idx, const u8 min, const u8 max) |
Sets the minimum and maximum PWM rate of a fan in IT8516E_MODE_THERMAL. More... | |
static void | it8516e_set_fan_from_options (const config_t *const config, const u8 fan_idx) |
static void | it8516e_pm2_init (struct device *dev) |
static void | it8516e_enable (struct device *dev) |
Variables | |
static struct device_operations | it8516e_pm2_ops |
static struct pnp_info | it8516e_dev_infos [] |
const struct chip_operations | ec_kontron_it8516e_ops |
typedef struct ec_kontron_it8516e_config config_t |
anonymous enum |
Definition at line 122 of file ec.c.
References BIOS_DEBUG, config, get_uint_option(), IT8516E_MODE_AUTO, IT8516E_MODE_PWM, IT8516E_MODE_SPEED, IT8516E_MODE_THERMAL, it8516e_set_fan_limits(), it8516e_set_fan_mode(), it8516e_set_fan_pwm(), it8516e_set_fan_speed(), it8516e_set_fan_temperature(), and printk.
Sets the minimum and maximum PWM rate of a fan in IT8516E_MODE_THERMAL.
idx | Selects the fan; 0: CPU, 1: System |
min | Minimum PWM rate in % |
max | Maximum PWM rate in % |
Definition at line 111 of file ec.c.
References IT8516E_CMD_SET_FAN_LIMITS, send_ec_command(), and send_ec_data().
Referenced by it8516e_set_fan_from_options().
Sets the operating mode of a fan.
idx | Selects the fan; 0: CPU, 1: System |
mode | Mode to set |
Definition at line 46 of file ec.c.
References IT8516E_CMD_SET_FAN_MODE, send_ec_command(), and send_ec_data().
Referenced by it8516e_set_fan_from_options().
Sets the PWM rate of a fan in IT8516E_MODE_PWM.
idx | Selects the fan; 0: CPU, 1: System |
pwm | PWM rate measured in 255ths |
Definition at line 61 of file ec.c.
References IT8516E_CMD_SET_FAN_PWM, send_ec_command(), and send_ec_data().
Referenced by it8516e_set_fan_from_options().
Sets the target speed in RPM for a fan in IT8516E_MODE_SPEED.
idx | Selects the fan; 0: CPU, 1: System |
speed | Speed in RPM |
Definition at line 76 of file ec.c.
References IT8516E_CMD_SET_FAN_SPEED, send_ec_command(), and send_ec_data().
Referenced by it8516e_set_fan_from_options().
Sets the target temperature for a fan in IT8516E_MODE_THERMAL.
idx | Selects the fan; 0: CPU, 1: System |
temp | Temperature in 64ths degree C |
Definition at line 93 of file ec.c.
References IT8516E_CMD_SET_FAN_TEMP, send_ec_command(), and send_ec_data().
Referenced by it8516e_set_fan_from_options().
Sets the type of the external temperature sensor used.
type | Type of sensor to set |
Definition at line 33 of file ec.c.
References IT8516E_CMD_SET_SYSTEMP_TYPE, send_ec_command(), send_ec_data(), and type.
const struct chip_operations ec_kontron_it8516e_ops |
|
static |
|
static |