OpenBIC
OpenSource Bridge-IC
plat_class.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <logging/log.h>
#include "libutil.h"
#include "plat_i2c.h"
#include "plat_class.h"
#include "plat_pldm_sensor.h"
#include "hal_i3c.h"
#include "plat_i3c.h"
#include <drivers/flash.h>
Include dependency graph for plat_class.c:

Macros

#define I2C_BUS_TMP   I2C_BUS1
 
#define TMP_EMC1413_SMSC_ID_DEFAULT   0x5D
 
#define INVALID_SLOT_ID   0xFF
 

Functions

 LOG_MODULE_REGISTER (plat_class)
 
void init_vr_vendor_type (void)
 
void init_tmp_type ()
 
uint8_t get_vr_type ()
 
uint8_t get_tmp_type ()
 
void init_platform_config ()
 
void plat_i3c_set_pid ()
 
uint8_t get_slot_id ()
 

Variables

uint16_t BIC_PID = PLAT_DEFAULT_PID
 
const mmc_info_t mmc_info_table [MAX_SLOT]
 

Macro Definition Documentation

◆ I2C_BUS_TMP

#define I2C_BUS_TMP   I2C_BUS1

◆ INVALID_SLOT_ID

#define INVALID_SLOT_ID   0xFF

◆ TMP_EMC1413_SMSC_ID_DEFAULT

#define TMP_EMC1413_SMSC_ID_DEFAULT   0x5D

Function Documentation

◆ get_slot_id()

uint8_t get_slot_id ( )

◆ get_tmp_type()

uint8_t get_tmp_type ( )

◆ get_vr_type()

uint8_t get_vr_type ( )

◆ init_platform_config()

void init_platform_config ( )
Here is the call graph for this function:

◆ init_tmp_type()

void init_tmp_type ( )
Here is the call graph for this function:

◆ init_vr_vendor_type()

void init_vr_vendor_type ( void  )
Here is the call graph for this function:

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_class  )

◆ plat_i3c_set_pid()

void plat_i3c_set_pid ( void  )
Here is the call graph for this function:

Variable Documentation

◆ BIC_PID

uint16_t BIC_PID = PLAT_DEFAULT_PID

◆ mmc_info_table

const mmc_info_t mmc_info_table[MAX_SLOT]
Initial value:
= {
{ .slot = 0, .eid = MCTP_DEFAULT_ENDPOINT, .pid = PLAT_DEFAULT_PID },
{ .slot = 1, .eid = 0x14, .pid = 0x520 },
{ .slot = 2, .eid = 0x1E, .pid = 0x530 },
{ .slot = 3, .eid = 0x28, .pid = 0x540 },
}
#define MCTP_DEFAULT_ENDPOINT
Definition: mctp.h:44
#define PLAT_DEFAULT_PID
Definition: plat_i3c.h:33