OpenBIC
OpenSource Bridge-IC
plat_power_capping.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CPLD_LV1_TIME_WINDOW_NUM   8
 

Enumerations

enum  { CAPPING_M_LOOK_UP_TABLE = 0 , CAPPING_M_CREDIT_BASE , CAPPING_M_MAX }
 
enum  { CAPPING_SOURCE_VR = 0 , CAPPING_SOURCE_ADC , CAPPING_SOURCE_MAX }
 
enum  { CAPPING_VR_IDX_MEDHA0 = 0 , CAPPING_VR_IDX_MEDHA1 , CAPPING_VR_IDX_MAX }
 
enum  { CAPPING_LV_IDX_LV1 = 0 , CAPPING_LV_IDX_LV2 , CAPPING_LV_IDX_LV3 , CAPPING_LV_IDX_MAX }
 

Functions

void power_capping_syn_vr_oc_warn_limit ()
 
void add_sync_oc_warn_to_work ()
 
bool find_cpld_lv1_time_window_idx_by_value (uint8_t *idx, uint16_t value)
 
uint16_t get_power_capping_avg_power (uint8_t vr_idx, uint8_t lv)
 
uint8_t get_power_capping_method ()
 
void set_power_capping_method (uint8_t value)
 
uint8_t get_power_capping_source ()
 
void set_power_capping_source (uint8_t value)
 
uint16_t get_power_capping_current_threshold (uint8_t vr_idx)
 
uint16_t get_power_capping_time_w (uint8_t vr_idx, uint8_t lv)
 
void set_power_capping_time_w (uint8_t vr_idx, uint8_t lv, uint16_t value)
 
uint16_t get_power_capping_threshold (uint8_t vr_idx, uint8_t lv)
 
void set_power_capping_threshold (uint8_t vr_idx, uint8_t lv, uint16_t value)
 
void plat_power_capping_init ()
 

Macro Definition Documentation

◆ CPLD_LV1_TIME_WINDOW_NUM

#define CPLD_LV1_TIME_WINDOW_NUM   8

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CAPPING_M_LOOK_UP_TABLE 
CAPPING_M_CREDIT_BASE 
CAPPING_M_MAX 

◆ anonymous enum

anonymous enum
Enumerator
CAPPING_SOURCE_VR 
CAPPING_SOURCE_ADC 
CAPPING_SOURCE_MAX 

◆ anonymous enum

anonymous enum
Enumerator
CAPPING_VR_IDX_MEDHA0 
CAPPING_VR_IDX_MEDHA1 
CAPPING_VR_IDX_MAX 

◆ anonymous enum

anonymous enum
Enumerator
CAPPING_LV_IDX_LV1 
CAPPING_LV_IDX_LV2 
CAPPING_LV_IDX_LV3 
CAPPING_LV_IDX_MAX 

Function Documentation

◆ add_sync_oc_warn_to_work()

void add_sync_oc_warn_to_work ( )

◆ find_cpld_lv1_time_window_idx_by_value()

bool find_cpld_lv1_time_window_idx_by_value ( uint8_t *  idx,
uint16_t  value 
)

◆ get_power_capping_avg_power()

uint16_t get_power_capping_avg_power ( uint8_t  vr_idx,
uint8_t  lv 
)

◆ get_power_capping_current_threshold()

uint16_t get_power_capping_current_threshold ( uint8_t  vr_idx)

◆ get_power_capping_method()

uint8_t get_power_capping_method ( )

◆ get_power_capping_source()

uint8_t get_power_capping_source ( )

◆ get_power_capping_threshold()

uint16_t get_power_capping_threshold ( uint8_t  vr_idx,
uint8_t  lv 
)

◆ get_power_capping_time_w()

uint16_t get_power_capping_time_w ( uint8_t  vr_idx,
uint8_t  lv 
)

◆ plat_power_capping_init()

void plat_power_capping_init ( )
Here is the call graph for this function:

◆ power_capping_syn_vr_oc_warn_limit()

void power_capping_syn_vr_oc_warn_limit ( )
Here is the call graph for this function:

◆ set_power_capping_method()

void set_power_capping_method ( uint8_t  value)

◆ set_power_capping_source()

void set_power_capping_source ( uint8_t  value)

◆ set_power_capping_threshold()

void set_power_capping_threshold ( uint8_t  vr_idx,
uint8_t  lv,
uint16_t  value 
)
Here is the call graph for this function:

◆ set_power_capping_time_w()

void set_power_capping_time_w ( uint8_t  vr_idx,
uint8_t  lv,
uint16_t  value 
)
Here is the call graph for this function: