OpenBIC
OpenSource Bridge-IC
plat_pmic.c File Reference
#include "plat_pmic.h"
#include <stdio.h>
#include <stdlib.h>
#include <logging/log.h>
#include <zephyr.h>
#include "libutil.h"
#include "pmic.h"
#include "sensor.h"
#include "power_status.h"
#include "plat_i3c.h"
#include "plat_i2c.h"
#include "plat_dimm.h"
#include "plat_mctp.h"
#include "pldm_oem.h"
#include "pldm_sensor.h"
#include "pldm_monitor.h"
#include "oem_1s_handler.h"
#include "util_worker.h"
Include dependency graph for plat_pmic.c:

Classes

struct  _pmic_event_info
 

Typedefs

typedef struct _pmic_event_info pmic_event_info
 

Functions

 LOG_MODULE_REGISTER (plat_pmic)
 
 K_THREAD_STACK_DEFINE (monitor_pmic_error_stack, MONITOR_PMIC_ERROR_STACK_SIZE)
 
void pmic_addsel_work_handler (struct k_work *work_item)
 
void init_pmic_event_work ()
 
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 pal_set_pmic_error_flag (uint8_t dimm_id, uint8_t error_type)
 
int get_pmic_error_data (uint8_t dimm_id, uint8_t *buffer)
 
void read_pmic_error_when_dc_off ()
 
void clear_pmic_error (uint8_t dimm_id)
 

Variables

struct k_thread monitor_pmic_error_thread
 
k_tid_t monitor_pmic_error_tid
 
pmic_event_info pmic_event_items []
 

Typedef Documentation

◆ pmic_event_info

Function Documentation

◆ add_pmic_error_sel()

void add_pmic_error_sel ( uint8_t  dimm_id,
uint8_t  error_type 
)

◆ clear_pmic_error()

void clear_pmic_error ( uint8_t  dimm_id)
Here is the call graph for this function:

◆ compare_pmic_error()

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

◆ get_pmic_error_data()

int get_pmic_error_data ( uint8_t  dimm_id,
uint8_t *  buffer 
)
Here is the call graph for this function:

◆ init_pmic_event_work()

void init_pmic_event_work ( )
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 ( )

◆ pal_set_pmic_error_flag()

int pal_set_pmic_error_flag ( uint8_t  dimm_id,
uint8_t  error_type 
)

◆ pmic_addsel_work_handler()

void pmic_addsel_work_handler ( struct k_work *  work_item)
Here is the call graph for this function:

◆ 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

◆ pmic_event_items

pmic_event_info pmic_event_items[]