OpenBIC
OpenSource Bridge-IC
plat_hook.h File Reference
#include "sensor.h"
#include "plat_pldm_sensor.h"
Include dependency graph for plat_hook.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vr_mapping_sensor
 
struct  vr_mapping_status
 
struct  _vr_pre_proc_arg
 

Macros

#define VR_MAX_NUM   11
 
#define VR_MUTEX_LOCK_TIMEOUT_MS   1000
 

Typedefs

typedef struct vr_mapping_sensor vr_mapping_sensor
 
typedef struct vr_mapping_status vr_mapping_status
 
typedef struct _vr_pre_proc_arg vr_pre_proc_arg
 

Enumerations

enum  VR_INDEX_E {
  VR_INDEX_E_OSFP_P3V3 = 0 , VR_INDEX_E_P0V85 , VR_INDEX_E_P0V75_CH_N , VR_INDEX_E_P0V75_CH_S ,
  VR_INDEX_E_P0V75_TRVDD_ZONEA , VR_INDEX_E_P0V75_TRVDD_ZONEB , VR_INDEX_E_P1V1_VDDC_HBM0_HBM2_HBM4 , VR_INDEX_E_P0V9_TRVDD_ZONEA ,
  VR_INDEX_E_P0V9_TRVDD_ZONEB , VR_INDEX_E_P1V1_VDDC_HBM1_HBM3_HBM5 , VR_INDEX_E_VDDA_PCIE , VR_INDEX_MAX
}
 
enum  VR_RAIL_E {
  VR_RAIL_E_OSFP_P3V3 = 0 , VR_RAIL_E_P0V85 , VR_RAIL_E_P0V75_PVDD_CH_N , VR_RAIL_E_P0V75_MAX_PHY_N ,
  VR_RAIL_E_P0V75_PVDD_CH_S , VR_RAIL_E_P0V75_MAX_PHY_S , VR_RAIL_E_P0V75_TRVDD_ZONEA , VR_RAIL_E_P1V8_VPP_HBM0_2_4 ,
  VR_RAIL_E_P0V75_TRVDD_ZONEB , VR_RAIL_E_P0V4_VDDQL_HBM0_2_4 , VR_RAIL_E_P1V1_VDDC_HBM0_2_4 , VR_RAIL_E_P0V75_VDDPHY_HBM0_2_4 ,
  VR_RAIL_E_P0V9_TRVDD_ZONEA , VR_RAIL_E_P1V8_VPP_HBM1_3_5 , VR_RAIL_E_P0V9_TRVDD_ZONEB , VR_RAIL_E_P0V4_VDDQL_HBM1_3_5 ,
  VR_RAIL_E_P1V1_VDDC_HBM1_3_5 , VR_RAIL_E_P0V75_VDDPHY_HBM1_3_5 , VR_RAIL_E_P0V8_VDDA_PCIE , VR_RAIL_E_P1V2_VDDHTX_PCIE ,
  VR_RAIL_E_MAX
}
 
enum  VR_STAUS_E {
  VR_STAUS_E_STATUS_BYTE = 0 , VR_STAUS_E_STATUS_WORD , VR_STAUS_E_STATUS_VOUT , VR_STAUS_E_STATUS_IOUT ,
  VR_STAUS_E_STATUS_INPUT , VR_STAUS_E_STATUS_TEMPERATURE , VR_STAUS_E_STATUS_CML , VR_STAUS_E_MAX
}
 

Functions

bool plat_get_vout_min (uint8_t rail, uint16_t *millivolt)
 
bool plat_get_vout_max (uint8_t rail, uint16_t *millivolt)
 
bool plat_set_vout_min (uint8_t rail, uint16_t *millivolt)
 
bool plat_set_vout_max (uint8_t rail, uint16_t *millivolt)
 
bool pre_vr_read (sensor_cfg *cfg, void *args)
 
bool post_vr_read (sensor_cfg *cfg, void *args, int *reading)
 
bool is_mb_dc_on ()
 
void * vr_mutex_get (enum VR_INDEX_E vr_index)
 
void vr_mutex_init (void)
 
bool vr_rail_name_get (uint8_t rail, uint8_t **name)
 
bool vr_rail_enum_get (uint8_t *name, uint8_t *num)
 
bool vr_vout_user_settings_get (void *user_settings)
 
void user_settings_init (void)
 
bool plat_get_vout_command (uint8_t rail, uint16_t *millivolt)
 
bool plat_set_vout_command (uint8_t rail, uint16_t *millivolt, bool is_default, bool is_perm)
 
bool plat_get_vr_status (uint8_t rail, uint8_t vr_status_rail, uint16_t *vr_status)
 
bool plat_clear_vr_status (uint8_t rail)
 
bool vr_status_name_get (uint8_t rail, uint8_t **name)
 
bool vr_status_enum_get (uint8_t *name, uint8_t *num)
 

Variables

vr_mapping_sensor vr_rail_table []
 
vr_pre_proc_arg vr_pre_read_args []
 
mp2971_init_arg mp2971_init_args []
 
isl69259_init_arg isl69259_init_args []
 

Macro Definition Documentation

◆ VR_MAX_NUM

#define VR_MAX_NUM   11

◆ VR_MUTEX_LOCK_TIMEOUT_MS

#define VR_MUTEX_LOCK_TIMEOUT_MS   1000

Typedef Documentation

◆ vr_mapping_sensor

◆ vr_mapping_status

◆ vr_pre_proc_arg

Enumeration Type Documentation

◆ VR_INDEX_E

enum VR_INDEX_E
Enumerator
VR_INDEX_E_OSFP_P3V3 
VR_INDEX_E_P0V85 
VR_INDEX_E_P0V75_CH_N 
VR_INDEX_E_P0V75_CH_S 
VR_INDEX_E_P0V75_TRVDD_ZONEA 
VR_INDEX_E_P0V75_TRVDD_ZONEB 
VR_INDEX_E_P1V1_VDDC_HBM0_HBM2_HBM4 
VR_INDEX_E_P0V9_TRVDD_ZONEA 
VR_INDEX_E_P0V9_TRVDD_ZONEB 
VR_INDEX_E_P1V1_VDDC_HBM1_HBM3_HBM5 
VR_INDEX_E_VDDA_PCIE 
VR_INDEX_MAX 

◆ VR_RAIL_E

enum VR_RAIL_E
Enumerator
VR_RAIL_E_OSFP_P3V3 
VR_RAIL_E_P0V85 
VR_RAIL_E_P0V75_PVDD_CH_N 
VR_RAIL_E_P0V75_MAX_PHY_N 
VR_RAIL_E_P0V75_PVDD_CH_S 
VR_RAIL_E_P0V75_MAX_PHY_S 
VR_RAIL_E_P0V75_TRVDD_ZONEA 
VR_RAIL_E_P1V8_VPP_HBM0_2_4 
VR_RAIL_E_P0V75_TRVDD_ZONEB 
VR_RAIL_E_P0V4_VDDQL_HBM0_2_4 
VR_RAIL_E_P1V1_VDDC_HBM0_2_4 
VR_RAIL_E_P0V75_VDDPHY_HBM0_2_4 
VR_RAIL_E_P0V9_TRVDD_ZONEA 
VR_RAIL_E_P1V8_VPP_HBM1_3_5 
VR_RAIL_E_P0V9_TRVDD_ZONEB 
VR_RAIL_E_P0V4_VDDQL_HBM1_3_5 
VR_RAIL_E_P1V1_VDDC_HBM1_3_5 
VR_RAIL_E_P0V75_VDDPHY_HBM1_3_5 
VR_RAIL_E_P0V8_VDDA_PCIE 
VR_RAIL_E_P1V2_VDDHTX_PCIE 
VR_RAIL_E_MAX 

◆ VR_STAUS_E

enum VR_STAUS_E
Enumerator
VR_STAUS_E_STATUS_BYTE 
VR_STAUS_E_STATUS_WORD 
VR_STAUS_E_STATUS_VOUT 
VR_STAUS_E_STATUS_IOUT 
VR_STAUS_E_STATUS_INPUT 
VR_STAUS_E_STATUS_TEMPERATURE 
VR_STAUS_E_STATUS_CML 
VR_STAUS_E_MAX 

Function Documentation

◆ is_mb_dc_on()

bool is_mb_dc_on ( )
Here is the call graph for this function:

◆ plat_clear_vr_status()

bool plat_clear_vr_status ( uint8_t  rail)
Here is the call graph for this function:

◆ plat_get_vout_command()

bool plat_get_vout_command ( uint8_t  rail,
uint16_t *  millivolt 
)
Here is the call graph for this function:

◆ plat_get_vout_max()

bool plat_get_vout_max ( uint8_t  rail,
uint16_t *  millivolt 
)

◆ plat_get_vout_min()

bool plat_get_vout_min ( uint8_t  rail,
uint16_t *  millivolt 
)

◆ plat_get_vr_status()

bool plat_get_vr_status ( uint8_t  rail,
uint8_t  vr_status_rail,
uint16_t *  vr_status 
)
Here is the call graph for this function:

◆ plat_set_vout_command()

bool plat_set_vout_command ( uint8_t  rail,
uint16_t *  millivolt,
bool  is_default,
bool  is_perm 
)
Here is the call graph for this function:

◆ plat_set_vout_max()

bool plat_set_vout_max ( uint8_t  rail,
uint16_t *  millivolt 
)

◆ plat_set_vout_min()

bool plat_set_vout_min ( uint8_t  rail,
uint16_t *  millivolt 
)

◆ post_vr_read()

bool post_vr_read ( sensor_cfg cfg,
void *  args,
int *  reading 
)

◆ pre_vr_read()

bool pre_vr_read ( sensor_cfg cfg,
void *  args 
)

◆ user_settings_init()

void user_settings_init ( void  )

◆ vr_mutex_get()

void * vr_mutex_get ( enum VR_INDEX_E  vr_index)

◆ vr_mutex_init()

void vr_mutex_init ( void  )

◆ vr_rail_enum_get()

bool vr_rail_enum_get ( uint8_t *  name,
uint8_t *  num 
)

◆ vr_rail_name_get()

bool vr_rail_name_get ( uint8_t  rail,
uint8_t **  name 
)

◆ vr_status_enum_get()

bool vr_status_enum_get ( uint8_t *  name,
uint8_t *  num 
)

◆ vr_status_name_get()

bool vr_status_name_get ( uint8_t  rail,
uint8_t **  name 
)

◆ vr_vout_user_settings_get()

bool vr_vout_user_settings_get ( void *  user_settings)
Here is the call graph for this function:

Variable Documentation

◆ isl69259_init_args

◆ mp2971_init_args

◆ vr_pre_read_args

vr_pre_proc_arg vr_pre_read_args[]
extern

◆ vr_rail_table

vr_mapping_sensor vr_rail_table[]
extern