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

Go to the source code of this file.

Macros

#define RETIMER_UNKNOWN_VERSION   -1
 
#define RETIMER_VERSION_MAX_LENGTH   5
 
#define CLOCK_BUFFER_ADDR   0x6B
 
#define CLOCK_BUFFER_REG_LOC   0x01
 
#define CLOCK_BUFFER_BYPASS_DATA_1   0x08
 
#define CLOCK_BUFFER_BYPASS_DATA_2   0x2E
 

Enumerations

enum  CARD_POSITION {
  CARD_POSITION_1OU , CARD_POSITION_2OU , CARD_POSITION_3OU , CARD_POSITION_4OU ,
  CARD_POSITION_UNKNOWN
}
 
enum  CARD_TYPE { CARD_TYPE_OPA , CARD_TYPE_OPB , CARD_TYPE_UNKNOWN }
 
enum  RETIMER_TYPE {
  RETIMER_TYPE_PT5161L , RETIMER_TYPE_M88RT51632 , RETIMER_TYPE_UNKNOWN , RETIMER_TYPE_ASTERALABS ,
  RETIMER_TYPE_NO_RETIMER , RETIMER_TYPE_KANDOU , RETIMER_TYPE_BROADCOM
}
 
enum  I3C_HUB_TYPE {
  I3C_HUB_TYPE_RNS , I3C_HUB_TYPE_NXP , I3C_HUB_TYPE_UNKNOWN , I3C_HUB_TYPE_RNS ,
  I3C_HUB_TYPE_NXP , I3C_HUB_TYPE_UNKNOWN
}
 
enum  E1S_NUMBER {
  E1S_0 , E1S_1 , E1S_2 , E1S_3 ,
  E1S_4
}
 
enum  BOARD_REVISION_ID {
  POC_STAGE = 0b000 , EVT1_STAGE = 0b001 , EVT2_STAGE = 0b010 , DVT_STAGE = 0b011 ,
  PVT_STAGE = 0b100 , MP_STAGE = 0b101 , UNKNOWN_STAGE = 0xFF , EVT_STAGE = 0b000 ,
  DVT_STAGE = 0b001 , PVT_STAGE = 0b010 , MP_STAGE = 0b011 , UNKNOWN_STAGE = 0xFF
}
 

Functions

int init_platform_config ()
 
uint8_t get_card_type ()
 
uint8_t get_card_position ()
 
uint16_t get_i3c_hub_type ()
 
int check_pcie_retimer_type (void)
 
uint8_t get_pcie_retimer_type (void)
 
uint8_t get_board_revision ()
 
void init_board_revision ()
 
void init_i3c_hub_type ()
 
uint32_t get_pcie_retimer_version ()
 
void cache_pcie_retimer_version ()
 
void set_clock_buffer_bypass_mode ()
 

Macro Definition Documentation

◆ CLOCK_BUFFER_ADDR

#define CLOCK_BUFFER_ADDR   0x6B

◆ CLOCK_BUFFER_BYPASS_DATA_1

#define CLOCK_BUFFER_BYPASS_DATA_1   0x08

◆ CLOCK_BUFFER_BYPASS_DATA_2

#define CLOCK_BUFFER_BYPASS_DATA_2   0x2E

◆ CLOCK_BUFFER_REG_LOC

#define CLOCK_BUFFER_REG_LOC   0x01

◆ RETIMER_UNKNOWN_VERSION

#define RETIMER_UNKNOWN_VERSION   -1

◆ RETIMER_VERSION_MAX_LENGTH

#define RETIMER_VERSION_MAX_LENGTH   5

Enumeration Type Documentation

◆ BOARD_REVISION_ID

Enumerator
POC_STAGE 
EVT1_STAGE 
EVT2_STAGE 
DVT_STAGE 
PVT_STAGE 
MP_STAGE 
UNKNOWN_STAGE 
EVT_STAGE 
DVT_STAGE 
PVT_STAGE 
MP_STAGE 
UNKNOWN_STAGE 

◆ CARD_POSITION

Enumerator
CARD_POSITION_1OU 
CARD_POSITION_2OU 
CARD_POSITION_3OU 
CARD_POSITION_4OU 
CARD_POSITION_UNKNOWN 

◆ CARD_TYPE

enum CARD_TYPE
Enumerator
CARD_TYPE_OPA 
CARD_TYPE_OPB 
CARD_TYPE_UNKNOWN 

◆ E1S_NUMBER

enum E1S_NUMBER
Enumerator
E1S_0 
E1S_1 
E1S_2 
E1S_3 
E1S_4 

◆ I3C_HUB_TYPE

Enumerator
I3C_HUB_TYPE_RNS 
I3C_HUB_TYPE_NXP 
I3C_HUB_TYPE_UNKNOWN 
I3C_HUB_TYPE_RNS 
I3C_HUB_TYPE_NXP 
I3C_HUB_TYPE_UNKNOWN 

◆ RETIMER_TYPE

Enumerator
RETIMER_TYPE_PT5161L 
RETIMER_TYPE_M88RT51632 
RETIMER_TYPE_UNKNOWN 
RETIMER_TYPE_ASTERALABS 
RETIMER_TYPE_NO_RETIMER 
RETIMER_TYPE_KANDOU 
RETIMER_TYPE_BROADCOM 

Function Documentation

◆ cache_pcie_retimer_version()

void cache_pcie_retimer_version ( )

◆ check_pcie_retimer_type()

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

◆ get_board_revision()

uint8_t get_board_revision ( )

◆ get_card_position()

uint8_t get_card_position ( )

◆ get_card_type()

uint8_t get_card_type ( )

◆ get_i3c_hub_type()

uint16_t get_i3c_hub_type ( )

◆ get_pcie_retimer_type()

uint8_t get_pcie_retimer_type ( void  )

◆ get_pcie_retimer_version()

uint32_t get_pcie_retimer_version ( )

◆ init_board_revision()

void init_board_revision ( )

◆ init_i3c_hub_type()

void init_i3c_hub_type ( )

◆ init_platform_config()

int init_platform_config ( )

◆ set_clock_buffer_bypass_mode()

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