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

Go to the source code of this file.

Macros

#define LED_IO_EXPANDER_BUS   I2C_BUS5
 
#define LED_IO_EXPANDER_ADDR   (0xEE >> 1)
 
#define LED_IO_EXPANDER_OUTPUT_PORT0_REG   0x02
 
#define LED_IO_EXPANDER_OUTPUT_PORT1_REG   0x03
 
#define LED_IO_EXPANDER_CONFIG_PORT0_REG   0x06
 
#define LED_IO_EXPANDER_CONFIG_PORT1_REG   0x07
 
#define LED_IO_EXPANDER_FAULT_BIT   6
 
#define LED_IO_EXPANDER_PWR_BIT   7
 
#define E1S_LED_IO_EXPANDER_BUS   I2C_BUS6
 
#define E1S_LED_IO_EXPANDER_ADDR   (0xEC >> 1)
 

Enumerations

enum  sys_led_ctrl_status { LED_CTRL_OFF = 0 , LED_CTRL_ON = 1 , LED_CTRL_MAX , LED_STATUS_ERROR = 0xFF }
 
enum  sys_led_ctrl_source { LED_CTRL_SRC_BIC = 0 , LED_CTRL_SRC_BMC = 1 , LED_CTRL_SRC_MAX }
 
enum  sys_led_type { SYS_POWER_LED = 0 , SYS_FAULT_LED = 1 , SYS_LED_TYPE_MAX }
 

Functions

bool pwr_led_control (uint8_t src, uint8_t status)
 
bool fault_led_control (uint8_t src, uint8_t status)
 
void light_fault_led_check ()
 
void pwr_led_check ()
 
uint8_t get_sys_led_status (uint8_t type)
 
bool e1s_led_control (uint8_t effector_id, uint8_t status)
 
uint8_t get_ssd_led_status (uint8_t effector_id)
 
void sys_led_init_and_check ()
 

Macro Definition Documentation

◆ E1S_LED_IO_EXPANDER_ADDR

#define E1S_LED_IO_EXPANDER_ADDR   (0xEC >> 1)

◆ E1S_LED_IO_EXPANDER_BUS

#define E1S_LED_IO_EXPANDER_BUS   I2C_BUS6

◆ LED_IO_EXPANDER_ADDR

#define LED_IO_EXPANDER_ADDR   (0xEE >> 1)

◆ LED_IO_EXPANDER_BUS

#define LED_IO_EXPANDER_BUS   I2C_BUS5

◆ LED_IO_EXPANDER_CONFIG_PORT0_REG

#define LED_IO_EXPANDER_CONFIG_PORT0_REG   0x06

◆ LED_IO_EXPANDER_CONFIG_PORT1_REG

#define LED_IO_EXPANDER_CONFIG_PORT1_REG   0x07

◆ LED_IO_EXPANDER_FAULT_BIT

#define LED_IO_EXPANDER_FAULT_BIT   6

◆ LED_IO_EXPANDER_OUTPUT_PORT0_REG

#define LED_IO_EXPANDER_OUTPUT_PORT0_REG   0x02

◆ LED_IO_EXPANDER_OUTPUT_PORT1_REG

#define LED_IO_EXPANDER_OUTPUT_PORT1_REG   0x03

◆ LED_IO_EXPANDER_PWR_BIT

#define LED_IO_EXPANDER_PWR_BIT   7

Enumeration Type Documentation

◆ sys_led_ctrl_source

Enumerator
LED_CTRL_SRC_BIC 
LED_CTRL_SRC_BMC 
LED_CTRL_SRC_MAX 

◆ sys_led_ctrl_status

Enumerator
LED_CTRL_OFF 
LED_CTRL_ON 
LED_CTRL_MAX 
LED_STATUS_ERROR 

◆ sys_led_type

Enumerator
SYS_POWER_LED 
SYS_FAULT_LED 
SYS_LED_TYPE_MAX 

Function Documentation

◆ e1s_led_control()

bool e1s_led_control ( uint8_t  effector_id,
uint8_t  status 
)
Here is the call graph for this function:

◆ fault_led_control()

bool fault_led_control ( uint8_t  src,
uint8_t  status 
)

◆ get_ssd_led_status()

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

◆ get_sys_led_status()

uint8_t get_sys_led_status ( uint8_t  type)

◆ light_fault_led_check()

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

◆ pwr_led_check()

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

◆ pwr_led_control()

bool pwr_led_control ( uint8_t  src,
uint8_t  status 
)

◆ sys_led_init_and_check()

void sys_led_init_and_check ( )