coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
superio_hwm.c File Reference
#include <types.h>
#include <console/console.h>
#include <device/device.h>
#include <option.h>
#include <superio/hwm5_conf.h>
#include <superio/nuvoton/common/hwm.h>
#include "superio_hwm.h"
Include dependency graph for superio_hwm.c:

Go to the source code of this file.

Data Structures

struct  fan_speed
 
struct  temperature
 

Macros

#define FAN_CRUISE_CONTROL_DISABLED   0
 
#define FAN_CRUISE_CONTROL_SPEED   1
 
#define FAN_CRUISE_CONTROL_THERMAL   2
 
#define FAN_SPEED_5625   0
 
#define HWM_BASE   0x290
 

Functions

void hwm_setup (void)
 

Variables

struct fan_speed fan_speeds []
 
struct temperature temperatures []
 

Macro Definition Documentation

◆ FAN_CRUISE_CONTROL_DISABLED

#define FAN_CRUISE_CONTROL_DISABLED   0

Definition at line 14 of file superio_hwm.c.

◆ FAN_CRUISE_CONTROL_SPEED

#define FAN_CRUISE_CONTROL_SPEED   1

Definition at line 15 of file superio_hwm.c.

◆ FAN_CRUISE_CONTROL_THERMAL

#define FAN_CRUISE_CONTROL_THERMAL   2

Definition at line 16 of file superio_hwm.c.

◆ FAN_SPEED_5625

#define FAN_SPEED_5625   0

Definition at line 18 of file superio_hwm.c.

◆ HWM_BASE

#define HWM_BASE   0x290

Definition at line 21 of file superio_hwm.c.

Function Documentation

◆ hwm_setup()

Variable Documentation

◆ fan_speeds

struct fan_speed fan_speeds[]
Initial value:
= {
{ 0x3c, 5625 }, { 0x41, 5192 }, { 0x47, 4753 }, { 0x4e, 4326 },
{ 0x56, 3924 }, { 0x5f, 3552 }, { 0x69, 3214 }, { 0x74, 2909 },
{ 0x80, 2636 }, { 0x8d, 2393 }, { 0x9b, 2177 }, { 0xaa, 1985 },
{ 0xba, 1814 }, { 0xcb, 1662 }, { 0xdd, 1527 }, { 0xf0, 1406 }
}

Definition at line 1 of file superio_hwm.c.

Referenced by hwm_setup().

◆ temperatures

struct temperature temperatures[]
Initial value:
= {
{ 30, 86 }, { 33, 91 }, { 36, 96 }, { 39, 102 },
{ 42, 107 }, { 45, 113 }, { 48, 118 }, { 51, 123 },
{ 54, 129 }, { 57, 134 }, { 60, 140 }, { 63, 145 },
{ 66, 150 }, { 69, 156 }, { 72, 161 }, { 75, 167 }
}

Definition at line 1 of file superio_hwm.c.

Referenced by hwm_setup().