OpenBIC
OpenSource Bridge-IC
|
#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>
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) |
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 | ( | pmic | ) |
__weak int pal_set_pmic_error_flag | ( | uint8_t | dimm_id, |
uint8_t | error_type | ||
) |
uint8_t pmic_init | ( | sensor_cfg * | cfg | ) |
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 | ||
) |