OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <drivers/peci.h>
#include "hal_peci.h"
#include "libutil.h"
#include <logging/log.h>
Functions | |
LOG_MODULE_REGISTER (hal_peci) | |
int | peci_init () |
int | peci_ping (uint8_t address) |
int | peci_xfer_with_retries (struct peci_msg *msg) |
int | peci_cmd_xfer (struct peci_msg *msg) |
int | peci_read (uint8_t cmd, uint8_t address, uint8_t u8Index, uint16_t u16Param, uint8_t u8ReadLen, uint8_t *readBuf) |
int | peci_write (uint8_t cmd, uint8_t address, uint8_t u8ReadLen, uint8_t *readBuf, uint8_t u8WriteLen, uint8_t *writeBuf) |
Variables | |
const struct device * | dev |
struct k_mutex | peci_lock |
struct k_timer | retry_timer |
LOG_MODULE_REGISTER | ( | hal_peci | ) |
int peci_cmd_xfer | ( | struct peci_msg * | msg | ) |
int peci_init | ( | ) |
int peci_ping | ( | uint8_t | address | ) |
int peci_read | ( | uint8_t | cmd, |
uint8_t | address, | ||
uint8_t | u8Index, | ||
uint16_t | u16Param, | ||
uint8_t | u8ReadLen, | ||
uint8_t * | readBuf | ||
) |
int peci_write | ( | uint8_t | cmd, |
uint8_t | address, | ||
uint8_t | u8ReadLen, | ||
uint8_t * | readBuf, | ||
uint8_t | u8WriteLen, | ||
uint8_t * | writeBuf | ||
) |
int peci_xfer_with_retries | ( | struct peci_msg * | msg | ) |
const struct device* dev |
struct k_mutex peci_lock |
struct k_timer retry_timer |