OpenBIC
OpenSource Bridge-IC
plat_thermal.h File Reference
#include <stdint.h>
#include "plat_user_setting.h"
Include dependency graph for plat_thermal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  temp_mapping_sensor
 

Macros

#define TEMP_STATUS_H_LIMIT   BIT(4)
 
#define TEMP_STATUS_L_LIMIT   BIT(3)
 
#define TEMP_STATUS_OPEN   BIT(2)
 
#define TEMP_LIMIT_STATUS   (TEMP_STATUS_H_LIMIT | TEMP_STATUS_L_LIMIT)
 
#define H_LIMIT_STATUS   0x35
 
#define L_LIMIT_STATUS   0x36
 

Typedefs

typedef struct temp_mapping_sensor temp_mapping_sensor
 

Functions

void init_thermal_polling (void)
 
uint8_t get_thermal_status_val_for_log (uint8_t sensor_num)
 
uint8_t get_thermal_limit_status_val_for_log (uint8_t sensor_num)
 
bool plat_clear_temp_status (uint8_t rail)
 
bool plat_get_temp_status (uint8_t rail, uint8_t *temp_status)
 

Variables

temp_mapping_sensor temp_index_table [TEMP_INDEX_MAX]
 

Macro Definition Documentation

◆ H_LIMIT_STATUS

#define H_LIMIT_STATUS   0x35

◆ L_LIMIT_STATUS

#define L_LIMIT_STATUS   0x36

◆ TEMP_LIMIT_STATUS

#define TEMP_LIMIT_STATUS   (TEMP_STATUS_H_LIMIT | TEMP_STATUS_L_LIMIT)

◆ TEMP_STATUS_H_LIMIT

#define TEMP_STATUS_H_LIMIT   BIT(4)

◆ TEMP_STATUS_L_LIMIT

#define TEMP_STATUS_L_LIMIT   BIT(3)

◆ TEMP_STATUS_OPEN

#define TEMP_STATUS_OPEN   BIT(2)

Typedef Documentation

◆ temp_mapping_sensor

Function Documentation

◆ get_thermal_limit_status_val_for_log()

uint8_t get_thermal_limit_status_val_for_log ( uint8_t  sensor_num)

◆ get_thermal_status_val_for_log()

uint8_t get_thermal_status_val_for_log ( uint8_t  sensor_num)

◆ init_thermal_polling()

void init_thermal_polling ( void  )

◆ plat_clear_temp_status()

bool plat_clear_temp_status ( uint8_t  rail)

◆ plat_get_temp_status()

bool plat_get_temp_status ( uint8_t  rail,
uint8_t *  temp_status 
)

Variable Documentation

◆ temp_index_table

temp_mapping_sensor temp_index_table[TEMP_INDEX_MAX]
extern