OpenBIC
OpenSource Bridge-IC
bcm85658.h File Reference
#include "hal_i2c.h"
Include dependency graph for bcm85658.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BCM85658_MUTEX_LOCK_MS   1000
 
#define IS_BCM85658_TEMP_VAILD(r)   (((r) >> 11) & 0x1)
 
#define BCM85658_TEMP_SENSOR_DATA_GET(r)   ((r) & 0x7ff)
 
#define INTEL_SMBUS_RD32_4ADDR_D   0x09
 
#define SMBUS_WR_BLOCK_CMD   0xA7
 
#define SMBUS_PROCESS_BLOCK_CMD   0xA9
 
#define BCM85658_TEMP_OFFSET   0x981c
 
#define BCM85658_TEMP_OFFSET_32B   0x6000981c
 
#define BCM85658_VERSION_OFFSET   0x600004a0
 

Functions

bool bcm85658_get_fw_version (I2C_MSG *msg, uint8_t *version)
 
uint8_t pcie_retimer_fw_update (I2C_MSG *msg, uint32_t offset, uint16_t msg_len, uint8_t *msg_buf, uint8_t flag)
 

Macro Definition Documentation

◆ BCM85658_MUTEX_LOCK_MS

#define BCM85658_MUTEX_LOCK_MS   1000

◆ BCM85658_TEMP_OFFSET

#define BCM85658_TEMP_OFFSET   0x981c

◆ BCM85658_TEMP_OFFSET_32B

#define BCM85658_TEMP_OFFSET_32B   0x6000981c

◆ BCM85658_TEMP_SENSOR_DATA_GET

#define BCM85658_TEMP_SENSOR_DATA_GET (   r)    ((r) & 0x7ff)

◆ BCM85658_VERSION_OFFSET

#define BCM85658_VERSION_OFFSET   0x600004a0

◆ INTEL_SMBUS_RD32_4ADDR_D

#define INTEL_SMBUS_RD32_4ADDR_D   0x09

◆ IS_BCM85658_TEMP_VAILD

#define IS_BCM85658_TEMP_VAILD (   r)    (((r) >> 11) & 0x1)

◆ SMBUS_PROCESS_BLOCK_CMD

#define SMBUS_PROCESS_BLOCK_CMD   0xA9

◆ SMBUS_WR_BLOCK_CMD

#define SMBUS_WR_BLOCK_CMD   0xA7

Function Documentation

◆ bcm85658_get_fw_version()

bool bcm85658_get_fw_version ( I2C_MSG msg,
uint8_t *  version 
)
Here is the call graph for this function:

◆ pcie_retimer_fw_update()

uint8_t pcie_retimer_fw_update ( I2C_MSG msg,
uint32_t  offset,
uint16_t  msg_len,
uint8_t *  msg_buf,
uint8_t  flag 
)
Here is the call graph for this function: