OpenBIC
OpenSource Bridge-IC
plat_m2.h File Reference
#include <stdbool.h>
Include dependency graph for plat_m2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PREFIX_MASK   0xF8
 
#define PREFIX_M2A   0x60
 
#define PREFIX_M2B   0x68
 
#define PREFIX_M2C   0x70
 
#define PREFIX_M2D   0x78
 
#define DEV_PWR_ON   0x01
 
#define DEV_PWR_CTRL   0x02
 
#define DEV_PRSNT_SET   0x04
 
#define DEV_PCIE_RST   0x08
 
#define DEV_CHK_DISABLE   0x20
 
#define DEV_FORCE_3V3   0x40
 
#define DEV_PWRDIS_EN   0x80
 

Enumerations

enum  M2_IDX_E {
  M2_IDX_E_A = 0 , M2_IDX_E_B , M2_IDX_E_C , M2_IDX_E_D ,
  M2_IDX_E_MAX
}
 

Functions

uint8_t m2_bus2idx (uint8_t bus)
 
uint8_t m2_bus2rst (uint8_t bus)
 
uint8_t m2_idx2bus (uint8_t idx)
 
uint8_t m2_idx2sensornum (uint8_t idx)
 
uint8_t m2_sensornum2idx (uint8_t sensor_num)
 
uint8_t m2_pwrgd (uint8_t idx)
 
uint8_t m2_get_prefix_sen_num (uint8_t idx)
 
uint8_t m2_prsnt (uint8_t idx)
 
uint8_t rst_edsff (uint8_t idx, uint8_t val)
 
bool is_m2_sen_readable (uint8_t sen_num)
 
bool is_nvme_temp_readable (uint8_t sen_num)
 
uint8_t exchange_m2_idx (uint8_t idx)
 

Macro Definition Documentation

◆ DEV_CHK_DISABLE

#define DEV_CHK_DISABLE   0x20

◆ DEV_FORCE_3V3

#define DEV_FORCE_3V3   0x40

◆ DEV_PCIE_RST

#define DEV_PCIE_RST   0x08

◆ DEV_PRSNT_SET

#define DEV_PRSNT_SET   0x04

◆ DEV_PWR_CTRL

#define DEV_PWR_CTRL   0x02

◆ DEV_PWR_ON

#define DEV_PWR_ON   0x01

◆ DEV_PWRDIS_EN

#define DEV_PWRDIS_EN   0x80

◆ PREFIX_M2A

#define PREFIX_M2A   0x60

◆ PREFIX_M2B

#define PREFIX_M2B   0x68

◆ PREFIX_M2C

#define PREFIX_M2C   0x70

◆ PREFIX_M2D

#define PREFIX_M2D   0x78

◆ PREFIX_MASK

#define PREFIX_MASK   0xF8

Enumeration Type Documentation

◆ M2_IDX_E

enum M2_IDX_E
Enumerator
M2_IDX_E_A 
M2_IDX_E_B 
M2_IDX_E_C 
M2_IDX_E_D 
M2_IDX_E_MAX 

Function Documentation

◆ exchange_m2_idx()

uint8_t exchange_m2_idx ( uint8_t  idx)

◆ is_m2_sen_readable()

bool is_m2_sen_readable ( uint8_t  sen_num)
Here is the call graph for this function:

◆ is_nvme_temp_readable()

bool is_nvme_temp_readable ( uint8_t  sen_num)
Here is the call graph for this function:

◆ m2_bus2idx()

uint8_t m2_bus2idx ( uint8_t  bus)

◆ m2_bus2rst()

uint8_t m2_bus2rst ( uint8_t  bus)

◆ m2_get_prefix_sen_num()

uint8_t m2_get_prefix_sen_num ( uint8_t  idx)

◆ m2_idx2bus()

uint8_t m2_idx2bus ( uint8_t  idx)

◆ m2_idx2sensornum()

uint8_t m2_idx2sensornum ( uint8_t  idx)

◆ m2_prsnt()

uint8_t m2_prsnt ( uint8_t  idx)
Here is the call graph for this function:

◆ m2_pwrgd()

uint8_t m2_pwrgd ( uint8_t  idx)
Here is the call graph for this function:

◆ m2_sensornum2idx()

uint8_t m2_sensornum2idx ( uint8_t  sensor_num)

◆ rst_edsff()

uint8_t rst_edsff ( uint8_t  idx,
uint8_t  val 
)
Here is the call graph for this function: