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

Go to the source code of this file.

Classes

struct  _pm8702_dev_info
 
struct  _cxl_vr_fw_info
 

Macros

#define CXL_IOEXP_INIT_RETRY_COUNT   5
 

Typedefs

typedef struct _pm8702_dev_info pm8702_dev_info
 
typedef struct _cxl_vr_fw_info cxl_vr_fw_info
 

Functions

bool cxl_single_ioexp_alert_reset (uint8_t ioexp_name, bool is_mutex)
 
int cxl_ioexp_init (uint8_t cxl_channel)
 
void cxl_mb_status_init (uint8_t cxl_id)
 
bool pal_init_pm8702_info (uint8_t cxl_id)
 
bool pal_pm8702_command_handler (uint8_t cxl_id, uint16_t opcode, uint8_t *data_buf, int data_len, uint8_t *response, uint8_t *response_len)
 
bool pal_get_pm8702_hbo_status (uint8_t cxl_id, uint8_t *resp_buf, uint8_t *resp_len)
 
bool pal_pm8702_transfer_fw (uint8_t cxl_id, uint8_t *req_buf, int req_len)
 
bool pal_set_pm8702_active_slot (uint8_t cxl_id, uint8_t *req_buf, int req_len)
 
void init_cxl_card_ioexp (uint8_t cxl_id)
 
void clear_cxl_card_cache_value (uint8_t cxl_id)
 
void init_ssd_power_fault_work ()
 
void clear_ssd_power_fault_flag ()
 

Variables

pm8702_dev_info pm8702_table []
 
cxl_vr_fw_info cxl_vr_info_table []
 

Macro Definition Documentation

◆ CXL_IOEXP_INIT_RETRY_COUNT

#define CXL_IOEXP_INIT_RETRY_COUNT   5

Typedef Documentation

◆ cxl_vr_fw_info

◆ pm8702_dev_info

Function Documentation

◆ clear_cxl_card_cache_value()

void clear_cxl_card_cache_value ( uint8_t  cxl_id)

◆ clear_ssd_power_fault_flag()

void clear_ssd_power_fault_flag ( )

◆ cxl_ioexp_init()

int cxl_ioexp_init ( uint8_t  cxl_channel)

MEB mux for cxl channels

CXL mux for sensor channels

Mutex lock bus

Enable mux channel

ALL ioexp config register initial

ALL ioexp initial

mutex unlock bus

Here is the call graph for this function:

◆ cxl_mb_status_init()

void cxl_mb_status_init ( uint8_t  cxl_id)

Initial mb reset pin status by checking the IO expander on CXL module

MEB mux for cxl channels

CXL mux for sensor channels

Mutex lock bus

Enable mux channel

Read cxl U15 ioexp input port0 status

CXL mux for cxl channels

Here is the call graph for this function:

◆ cxl_single_ioexp_alert_reset()

bool cxl_single_ioexp_alert_reset ( uint8_t  ioexp_name,
bool  is_mutex 
)

Read cxl ioexp input port 0 status

Read cxl ioexp input port 1 status

Here is the call graph for this function:

◆ init_cxl_card_ioexp()

void init_cxl_card_ioexp ( uint8_t  cxl_id)
Here is the call graph for this function:

◆ init_ssd_power_fault_work()

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

◆ pal_get_pm8702_hbo_status()

bool pal_get_pm8702_hbo_status ( uint8_t  cxl_id,
uint8_t *  resp_buf,
uint8_t *  resp_len 
)
Here is the call graph for this function:

◆ pal_init_pm8702_info()

bool pal_init_pm8702_info ( uint8_t  cxl_id)
Here is the call graph for this function:

◆ pal_pm8702_command_handler()

bool pal_pm8702_command_handler ( uint8_t  cxl_id,
uint16_t  opcode,
uint8_t *  data_buf,
int  data_len,
uint8_t *  response,
uint8_t *  response_len 
)
Here is the call graph for this function:

◆ pal_pm8702_transfer_fw()

bool pal_pm8702_transfer_fw ( uint8_t  cxl_id,
uint8_t *  req_buf,
int  req_len 
)
Here is the call graph for this function:

◆ pal_set_pm8702_active_slot()

bool pal_set_pm8702_active_slot ( uint8_t  cxl_id,
uint8_t *  req_buf,
int  req_len 
)
Here is the call graph for this function:

Variable Documentation

◆ cxl_vr_info_table

cxl_vr_fw_info cxl_vr_info_table[]
extern

◆ pm8702_table

pm8702_dev_info pm8702_table[]
extern