OpenBIC
OpenSource Bridge-IC
plat_fru.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FRU_CFG_NUM   MAX_FRU_ID
 
#define SWB_FRU_PORT   0x05
 
#define SWB_FRU_ADDR   (0xA8 >> 1)
 
#define SWB_FRU_MUX_ADDR   (0xE0 >> 1)
 
#define SWB_FRU_MUX_CHAN   7
 
#define FIO_FRU_PORT   0x04
 
#define FIO_FRU_ADDR   (0xA2 >> 1)
 
#define HSC_MODULE_FRU_PORT   0x05
 
#define HSC_MODULE_FRU_ADDR   (0xA2 >> 1)
 
#define HSC_MODULE_FRU_MUX_ADDR   (0xE0 >> 1)
 
#define HSC_MODULE_FRU_MUX_CHAN   6
 
#define NIC_FRU_ADDR   (0xA0 >> 1)
 
#define NIC0_FRU_PORT   0x00
 
#define NIC1_FRU_PORT   0x01
 
#define NIC2_FRU_PORT   0x02
 
#define NIC3_FRU_PORT   0x03
 
#define NIC4_FRU_PORT   0x0A
 
#define NIC5_FRU_PORT   0x0B
 
#define NIC6_FRU_PORT   0x0C
 
#define NIC7_FRU_PORT   0x0D
 

Enumerations

enum  {
  SWB_FRU_ID , FIO_FRU_ID , HSC_MODULE_FRU_ID , NIC0_FRU_ID ,
  NIC1_FRU_ID , NIC2_FRU_ID , NIC3_FRU_ID , NIC4_FRU_ID ,
  NIC5_FRU_ID , NIC6_FRU_ID , NIC7_FRU_ID , MAX_FRU_ID
}
 
enum  GT_NIC_CONFIG { NIC_CONFIG_UNKNOWN = 0 , NIC_CONFIG_CX7 = 1 , NIC_CONFIG_IB_CX7 = 2 , NIC_CONFIG_THOR2 = 3 }
 

Functions

uint8_t check_nic_type_by_fru ()
 

Macro Definition Documentation

◆ FIO_FRU_ADDR

#define FIO_FRU_ADDR   (0xA2 >> 1)

◆ FIO_FRU_PORT

#define FIO_FRU_PORT   0x04

◆ FRU_CFG_NUM

#define FRU_CFG_NUM   MAX_FRU_ID

◆ HSC_MODULE_FRU_ADDR

#define HSC_MODULE_FRU_ADDR   (0xA2 >> 1)

◆ HSC_MODULE_FRU_MUX_ADDR

#define HSC_MODULE_FRU_MUX_ADDR   (0xE0 >> 1)

◆ HSC_MODULE_FRU_MUX_CHAN

#define HSC_MODULE_FRU_MUX_CHAN   6

◆ HSC_MODULE_FRU_PORT

#define HSC_MODULE_FRU_PORT   0x05

◆ NIC0_FRU_PORT

#define NIC0_FRU_PORT   0x00

◆ NIC1_FRU_PORT

#define NIC1_FRU_PORT   0x01

◆ NIC2_FRU_PORT

#define NIC2_FRU_PORT   0x02

◆ NIC3_FRU_PORT

#define NIC3_FRU_PORT   0x03

◆ NIC4_FRU_PORT

#define NIC4_FRU_PORT   0x0A

◆ NIC5_FRU_PORT

#define NIC5_FRU_PORT   0x0B

◆ NIC6_FRU_PORT

#define NIC6_FRU_PORT   0x0C

◆ NIC7_FRU_PORT

#define NIC7_FRU_PORT   0x0D

◆ NIC_FRU_ADDR

#define NIC_FRU_ADDR   (0xA0 >> 1)

◆ SWB_FRU_ADDR

#define SWB_FRU_ADDR   (0xA8 >> 1)

◆ SWB_FRU_MUX_ADDR

#define SWB_FRU_MUX_ADDR   (0xE0 >> 1)

◆ SWB_FRU_MUX_CHAN

#define SWB_FRU_MUX_CHAN   7

◆ SWB_FRU_PORT

#define SWB_FRU_PORT   0x05

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SWB_FRU_ID 
FIO_FRU_ID 
HSC_MODULE_FRU_ID 
NIC0_FRU_ID 
NIC1_FRU_ID 
NIC2_FRU_ID 
NIC3_FRU_ID 
NIC4_FRU_ID 
NIC5_FRU_ID 
NIC6_FRU_ID 
NIC7_FRU_ID 
MAX_FRU_ID 

◆ GT_NIC_CONFIG

Enumerator
NIC_CONFIG_UNKNOWN 
NIC_CONFIG_CX7 
NIC_CONFIG_IB_CX7 
NIC_CONFIG_THOR2 

Function Documentation

◆ check_nic_type_by_fru()

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