OpenBIC
OpenSource Bridge-IC
util_sys.h File Reference
#include <sys/reboot.h>
#include "stdbool.h"
#include "stdint.h"
Include dependency graph for util_sys.h:

Go to the source code of this file.

Macros

#define INTEL_IANA   0x000157
 

Enumerations

enum  CC_12V_CYCLE_SLOT { SUCCESS_12V_CYCLE_SLOT , NOT_SUPPORT_12V_CYCLE_SLOT , SLOT_OFF_FAILED , SLOT_ON_FAILED }
 
enum  ME_MODE { ME_INIT_MODE = 0x00 , ME_NORMAL_MODE = 0x01 , ME_RECOVERY_MODE = 0x02 }
 
enum  FORCE_ME_RECOVERY_CMD { ME_FW_RECOVERY = 0x01 , ME_FW_RESTORE = 0x02 }
 
enum  SYSTEM_RESET_TYPE { SOC_RESET = SYS_REBOOT_WARM , FULL_CHIP_RESET = SYS_REBOOT_COLD }
 
enum  { BMC_INTERFACE_I2C = 0x0 , BMC_INTERFACE_I3C = 0x1 }
 
enum  VR_VENDOR_ID {
  VENDOR_RENESAS = 0 , VENDOR_TI , VENDOR_INFINEON , VENDOR_VISHAY ,
  VENDOR_ONSEMI , VENDOR_MPS
}
 
enum  power_ctl_t { POWER_CTL_ON , POWER_CTL_OFF , POWER_CTL_RESET , MAX_POWER_CTL_COUNT }
 

Functions

void submit_bic_cold_reset ()
 
void bic_cold_reset ()
 
void submit_bic_warm_reset ()
 
void bic_warm_reset ()
 
void check_ac_lost ()
 
bool is_ac_lost ()
 
void pal_warm_reset_prepare ()
 
void pal_cold_reset_prepare ()
 
int pal_submit_bmc_cold_reset ()
 
int pal_host_power_control (power_ctl_t ctl_type)
 
bool pal_is_bmc_present ()
 
bool pal_is_bmc_ready ()
 
int submit_12v_cycle_slot ()
 
int set_me_firmware_mode (uint8_t me_fw_mode)
 
void init_me_firmware ()
 
uint8_t get_me_mode ()
 
int pal_submit_12v_cycle_slot ()
 
int pal_clear_cmos ()
 
void set_sys_ready_pin (uint8_t ready_gpio_name)
 
uint8_t get_system_class ()
 
int pal_get_set_add_debug_sel_mode_status (uint8_t options, uint8_t *status)
 
uint8_t pal_get_bmc_interface ()
 

Variables

uint8_t ISL69254_DEVICE_ID [5]
 
uint8_t XDPE12284C_DEVICE_ID [3]
 
uint8_t ISL69259_DEVICE_ID [5]
 

Macro Definition Documentation

◆ INTEL_IANA

#define INTEL_IANA   0x000157

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
BMC_INTERFACE_I2C 
BMC_INTERFACE_I3C 

◆ CC_12V_CYCLE_SLOT

Enumerator
SUCCESS_12V_CYCLE_SLOT 
NOT_SUPPORT_12V_CYCLE_SLOT 
SLOT_OFF_FAILED 
SLOT_ON_FAILED 

◆ FORCE_ME_RECOVERY_CMD

Enumerator
ME_FW_RECOVERY 
ME_FW_RESTORE 

◆ ME_MODE

enum ME_MODE
Enumerator
ME_INIT_MODE 
ME_NORMAL_MODE 
ME_RECOVERY_MODE 

◆ power_ctl_t

Enumerator
POWER_CTL_ON 
POWER_CTL_OFF 
POWER_CTL_RESET 
MAX_POWER_CTL_COUNT 

◆ SYSTEM_RESET_TYPE

Enumerator
SOC_RESET 
FULL_CHIP_RESET 

◆ VR_VENDOR_ID

Enumerator
VENDOR_RENESAS 
VENDOR_TI 
VENDOR_INFINEON 
VENDOR_VISHAY 
VENDOR_ONSEMI 
VENDOR_MPS 

Function Documentation

◆ bic_cold_reset()

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

◆ bic_warm_reset()

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

◆ check_ac_lost()

void check_ac_lost ( )

◆ get_me_mode()

uint8_t get_me_mode ( )

◆ get_system_class()

uint8_t get_system_class ( )

◆ init_me_firmware()

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

◆ is_ac_lost()

bool is_ac_lost ( )

◆ pal_clear_cmos()

int pal_clear_cmos ( )

◆ pal_cold_reset_prepare()

void pal_cold_reset_prepare ( )

◆ pal_get_bmc_interface()

uint8_t pal_get_bmc_interface ( )
Here is the call graph for this function:

◆ pal_get_set_add_debug_sel_mode_status()

int pal_get_set_add_debug_sel_mode_status ( uint8_t  options,
uint8_t *  status 
)
Here is the call graph for this function:

◆ pal_host_power_control()

int pal_host_power_control ( power_ctl_t  ctl_type)
Here is the call graph for this function:

◆ pal_is_bmc_present()

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

◆ pal_is_bmc_ready()

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

◆ pal_submit_12v_cycle_slot()

int pal_submit_12v_cycle_slot ( )

◆ pal_submit_bmc_cold_reset()

int pal_submit_bmc_cold_reset ( )

◆ pal_warm_reset_prepare()

void pal_warm_reset_prepare ( )

◆ set_me_firmware_mode()

int set_me_firmware_mode ( uint8_t  me_fw_mode)
Here is the call graph for this function:

◆ set_sys_ready_pin()

void set_sys_ready_pin ( uint8_t  ready_gpio_name)
Here is the call graph for this function:

◆ submit_12v_cycle_slot()

int submit_12v_cycle_slot ( )

◆ submit_bic_cold_reset()

void submit_bic_cold_reset ( )

◆ submit_bic_warm_reset()

void submit_bic_warm_reset ( )

Variable Documentation

◆ ISL69254_DEVICE_ID

uint8_t ISL69254_DEVICE_ID[5]
extern

◆ ISL69259_DEVICE_ID

uint8_t ISL69259_DEVICE_ID[5]
extern

◆ XDPE12284C_DEVICE_ID

uint8_t XDPE12284C_DEVICE_ID[3]
extern