OpenBIC
OpenSource Bridge-IC
plat_pmic.c File Reference
#include "plat_pmic.h"
#include <stdio.h>
#include <stdlib.h>
#include <zephyr.h>
#include <logging/log.h>
#include "ipmb.h"
#include "ipmi.h"
#include "pmic.h"
#include "libipmi.h"
#include "power_status.h"
#include "libutil.h"
#include "plat_i3c.h"
#include "plat_sensor_table.h"
#include "plat_dimm.h"
#include "plat_class.h"
#include "rg3mxxb12.h"
#include "p3h284x.h"
Include dependency graph for plat_pmic.c:

Functions

 LOG_MODULE_REGISTER (plat_pmic)
 
 K_THREAD_STACK_DEFINE (monitor_pmic_error_stack, MONITOR_PMIC_ERROR_STACK_SIZE)
 
void start_monitor_pmic_error_thread ()
 
void monitor_pmic_error_via_i3c_handler ()
 
int compare_pmic_error (uint8_t dimm_id, uint8_t *pmic_err_data, uint8_t pmic_err_data_len)
 
void add_pmic_error_sel (uint8_t dimm_id, uint8_t error_type)
 
int get_pmic_fault_status ()
 
void read_pmic_error_when_dc_off ()
 
void clear_pmic_error ()
 

Variables

struct k_thread monitor_pmic_error_thread
 
k_tid_t monitor_pmic_error_tid
 

Function Documentation

◆ add_pmic_error_sel()

void add_pmic_error_sel ( uint8_t  dimm_id,
uint8_t  error_type 
)
Here is the call graph for this function:

◆ clear_pmic_error()

void clear_pmic_error ( )

◆ compare_pmic_error()

int compare_pmic_error ( uint8_t  dimm_id,
uint8_t *  pmic_err_data,
uint8_t  pmic_err_data_len 
)

◆ get_pmic_fault_status()

int get_pmic_fault_status ( )
Here is the call graph for this function:

◆ K_THREAD_STACK_DEFINE()

K_THREAD_STACK_DEFINE ( monitor_pmic_error_stack  ,
MONITOR_PMIC_ERROR_STACK_SIZE   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_pmic  )

◆ monitor_pmic_error_via_i3c_handler()

void monitor_pmic_error_via_i3c_handler ( )

◆ read_pmic_error_when_dc_off()

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

◆ start_monitor_pmic_error_thread()

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

Variable Documentation

◆ monitor_pmic_error_thread

struct k_thread monitor_pmic_error_thread

◆ monitor_pmic_error_tid

k_tid_t monitor_pmic_error_tid