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

Go to the source code of this file.

Enumerations

enum  GT_COMPONENT_TYPE_ADC_CHANNEL { HSC_TYPE_ADC_CHANNEL = 11 , VR_TYPE_ADC_CHANNEL = 12 , POWER_IC_TYPE_ADC_CHANNEL = 13 }
 
enum  GT_STAGE_REVISION_ID {
  GT_STAGE_PO = 0 , GT_STAGE_EVT = 1 , GT_STAGE_EVT2 = 2 , GT_STAGE_DVT = 3 ,
  GT_STAGE_PVT = 4 , GT_STAGE_PVT2_OP2 = 5 , GT_STAGE_PVT2_OP1 = 6 , GT_STAGE_PILOT = 7 ,
  GT_STAGE_MP = 8
}
 
enum  gt_vr_type_t { VR_UNKNOWN , VR_RNS_ISL69259 , VR_INF_XDPE12284 , VR_MPS_MPS2971 }
 
enum  gt_power_monitor_ic_type_t { POWER_IC_UNKNOWN , POWER_IC_ISL28022 , POWER_IC_INA230 }
 
enum  gt_hsc_type_t { HSC_UNKNOWN , HSC_MP5990 , HSC_LTC4282 , HSC_LTC4286 }
 
enum  GT_FIRMWARE_COMPONENT {
  GT_COMPNT_VR0 , GT_COMPNT_VR1 , GT_COMPNT_BIC , GT_COMPNT_PEX0 ,
  GT_COMPNT_PEX1 , GT_COMPNT_PEX2 , GT_COMPNT_PEX3 , GT_COMPNT_CPLD ,
  GT_COMPNT_NIC0 , GT_COMPNT_NIC1 , GT_COMPNT_NIC2 , GT_COMPNT_NIC3 ,
  GT_COMPNT_NIC4 , GT_COMPNT_NIC5 , GT_COMPNT_NIC6 , GT_COMPNT_NIC7 ,
  GT_COMPNT_MAX , GT_COMPNT_VR0 , GT_COMPNT_VR1 , GT_COMPNT_BIC ,
  GT_COMPNT_PEX0 , GT_COMPNT_PEX1 , GT_COMPNT_PEX2 , GT_COMPNT_PEX3 ,
  GT_COMPNT_CPLD , GT_COMPNT_NIC0 , GT_COMPNT_NIC1 , GT_COMPNT_NIC2 ,
  GT_COMPNT_NIC3 , GT_COMPNT_NIC4 , GT_COMPNT_NIC5 , GT_COMPNT_NIC6 ,
  GT_COMPNT_NIC7 , GT_COMPNT_MAX
}
 

Functions

bool get_adc_voltage (int channel, float *voltage)
 
GT_STAGE_REVISION_ID get_stage_by_rev_id ()
 
uint8_t get_hsc_type ()
 
uint8_t get_vr_type ()
 
uint8_t get_power_moniter_ic_type ()
 
void init_platform_config ()
 

Enumeration Type Documentation

◆ GT_COMPONENT_TYPE_ADC_CHANNEL

Enumerator
HSC_TYPE_ADC_CHANNEL 
VR_TYPE_ADC_CHANNEL 
POWER_IC_TYPE_ADC_CHANNEL 

◆ GT_FIRMWARE_COMPONENT

Enumerator
GT_COMPNT_VR0 
GT_COMPNT_VR1 
GT_COMPNT_BIC 
GT_COMPNT_PEX0 
GT_COMPNT_PEX1 
GT_COMPNT_PEX2 
GT_COMPNT_PEX3 
GT_COMPNT_CPLD 
GT_COMPNT_NIC0 
GT_COMPNT_NIC1 
GT_COMPNT_NIC2 
GT_COMPNT_NIC3 
GT_COMPNT_NIC4 
GT_COMPNT_NIC5 
GT_COMPNT_NIC6 
GT_COMPNT_NIC7 
GT_COMPNT_MAX 
GT_COMPNT_VR0 
GT_COMPNT_VR1 
GT_COMPNT_BIC 
GT_COMPNT_PEX0 
GT_COMPNT_PEX1 
GT_COMPNT_PEX2 
GT_COMPNT_PEX3 
GT_COMPNT_CPLD 
GT_COMPNT_NIC0 
GT_COMPNT_NIC1 
GT_COMPNT_NIC2 
GT_COMPNT_NIC3 
GT_COMPNT_NIC4 
GT_COMPNT_NIC5 
GT_COMPNT_NIC6 
GT_COMPNT_NIC7 
GT_COMPNT_MAX 

◆ gt_hsc_type_t

Enumerator
HSC_UNKNOWN 
HSC_MP5990 
HSC_LTC4282 
HSC_LTC4286 

◆ gt_power_monitor_ic_type_t

Enumerator
POWER_IC_UNKNOWN 
POWER_IC_ISL28022 
POWER_IC_INA230 

◆ GT_STAGE_REVISION_ID

Enumerator
GT_STAGE_PO 
GT_STAGE_EVT 
GT_STAGE_EVT2 
GT_STAGE_DVT 
GT_STAGE_PVT 
GT_STAGE_PVT2_OP2 
GT_STAGE_PVT2_OP1 
GT_STAGE_PILOT 
GT_STAGE_MP 

◆ gt_vr_type_t

Enumerator
VR_UNKNOWN 
VR_RNS_ISL69259 
VR_INF_XDPE12284 
VR_MPS_MPS2971 

Function Documentation

◆ get_adc_voltage()

bool get_adc_voltage ( int  channel,
float *  voltage 
)

◆ get_hsc_type()

uint8_t get_hsc_type ( )

◆ get_power_moniter_ic_type()

uint8_t get_power_moniter_ic_type ( )

◆ get_stage_by_rev_id()

GT_STAGE_REVISION_ID get_stage_by_rev_id ( )
Here is the call graph for this function:

◆ get_vr_type()

uint8_t get_vr_type ( )

◆ init_platform_config()

void init_platform_config ( )