OpenBIC
OpenSource Bridge-IC
pmic.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "ipmb.h"
#include "ipmi.h"
#include "pmic.h"
#include "sensor.h"
#include "libutil.h"
#include "plat_ipmb.h"
#include <logging/log.h>
Include dependency graph for pmic.c:

Functions

 LOG_MODULE_REGISTER (pmic)
 
uint8_t * compose_memory_write_read_req (uint8_t smbus_identifier, uint8_t smbus_address, uint32_t addr_value, uint8_t *write_data, uint8_t write_len)
 
int pmic_ipmb_transfer (int *total_pmic_power, uint8_t seq_source, uint8_t netFn, uint8_t command, uint8_t source_inft, uint8_t target_inft, uint16_t data_len, uint8_t *data)
 
uint8_t pmic_read (sensor_cfg *cfg, int *reading)
 
uint8_t pmic_init (sensor_cfg *cfg)
 
__weak int pal_set_pmic_error_flag (uint8_t dimm_id, uint8_t error_type)
 

Function Documentation

◆ compose_memory_write_read_req()

uint8_t * compose_memory_write_read_req ( uint8_t  smbus_identifier,
uint8_t  smbus_address,
uint32_t  addr_value,
uint8_t *  write_data,
uint8_t  write_len 
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( pmic  )

◆ pal_set_pmic_error_flag()

__weak int pal_set_pmic_error_flag ( uint8_t  dimm_id,
uint8_t  error_type 
)

◆ pmic_init()

uint8_t pmic_init ( sensor_cfg cfg)
Here is the call graph for this function:

◆ pmic_ipmb_transfer()

int pmic_ipmb_transfer ( int *  total_pmic_power,
uint8_t  seq_source,
uint8_t  netFn,
uint8_t  command,
uint8_t  source_inft,
uint8_t  target_inft,
uint16_t  data_len,
uint8_t *  data 
)
Here is the call graph for this function:

◆ pmic_read()

uint8_t pmic_read ( sensor_cfg cfg,
int *  reading 
)
Here is the call graph for this function: