OpenBIC
OpenSource Bridge-IC
mctp_smbus.c File Reference
#include "mctp.h"
#include "hal_i2c_target.h"
#include <logging/log.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/crc.h>
#include <sys/printk.h>
#include <zephyr.h>
#include "libutil.h"
#include "plat_def.h"
Include dependency graph for mctp_smbus.c:

Macros

#define MCTP_SMBUS_WRITE_MAX_RETRY   1
 
#define MCTP_SMBUS_PEC_SIZE   1
 
#define MCTP_SMBUS_CMD_CODE   0x0F
 

Functions

 LOG_MODULE_DECLARE (mctp, LOG_LEVEL_DBG)
 
struct __attribute__ ((packed))
 
uint8_t mctp_smbus_init (mctp *mctp_inst, mctp_medium_conf medium_conf)
 
uint8_t mctp_smbus_deinit (mctp *mctp_inst)
 

Variables

 smbus_hdr
 

Macro Definition Documentation

◆ MCTP_SMBUS_CMD_CODE

#define MCTP_SMBUS_CMD_CODE   0x0F

◆ MCTP_SMBUS_PEC_SIZE

#define MCTP_SMBUS_PEC_SIZE   1

◆ MCTP_SMBUS_WRITE_MAX_RETRY

#define MCTP_SMBUS_WRITE_MAX_RETRY   1

Function Documentation

◆ __attribute__()

struct __attribute__ ( (packed)  )

◆ LOG_MODULE_DECLARE()

LOG_MODULE_DECLARE ( mctp  ,
LOG_LEVEL_DBG   
)

◆ mctp_smbus_deinit()

uint8_t mctp_smbus_deinit ( mctp mctp_inst)

◆ mctp_smbus_init()

uint8_t mctp_smbus_init ( mctp mctp_inst,
mctp_medium_conf  medium_conf 
)

Variable Documentation

◆ smbus_hdr

smbus_hdr