no-OS
Loading...
Searching...
No Matches
max96793_diag.c File Reference
#include "max96793_diag.h"
#include "gmsl_dbg.h"
#include "gmsl_cam_ser.h"
#include "gmsl_reg_access.h"
#include "no_os_error.h"
#include "max96793_regs.h"
#include "max96793.h"
#include "no_os_delay.h"
Include dependency graph for max96793_diag.c:

Macros

#define ASSERT_DETECT_STR(b)
 
#define MAX96793_PHY_1x4_MODE   (0x0u)
 
#define MAX96793_PORT_B   (0x1u)
 

Functions

int max96793_dev_diag_get_device_id (struct gmsl_dev *dev, void *dev_id_status, bool *diag_err)
 Retrieve the device ID of the MAX96793 device.
 
int max96793_dev_diag_check_device_rev (struct gmsl_dev *dev, void *dev_revision_status, bool *diag_err)
 Retrieve the device revision status of the MAX96793 device.
 
int max96793_link_diag_check_decode_error_status (struct gmsl_dev *dev, void *decode_err_status, bool *diag_err)
 Check decode error status for MAX96793 link diagnostics.
 
int max96793_link_diag_check_idle_error_status (struct gmsl_dev *dev, void *idle_err_status, bool *diag_err)
 Check the idle error status of the MAX96793 link.
 
int max96793_link_diag_check_link_lock_status (struct gmsl_dev *dev, void *link_lock_status, bool *diag_err)
 Check the link lock status of the MAX96793 device.
 
int max96793_link_diag_check_line_fault_status (struct gmsl_dev *dev, void *line_fault_status, bool *diag_err)
 Check the line fault status of the MAX96793 device.
 
int max96793_csi_diag_check_pclk_detect_status (struct gmsl_dev *dev, void *pclk_detect_status, bool *diag_err)
 Check the PCLK detect status of the MAX96793 serializer.
 
int max96793_pipe_diag_check_vid_tx_overflow_status (struct gmsl_dev *dev, void *vid_tx_ovrflw_status, bool *diag_err)
 Check the video transmitter overflow status of the MAX96793 serializer.
 
int max96793_csi_diag_check_vid_tx_pclk_drift_err_status (struct gmsl_dev *dev, void *vid_tx_pclk_drift_status, bool *diag_err)
 Check the video transmitter PCLK drift error status of the MAX96793 serializer.
 
int max96793_mem_diag_check_uncorrectable_2b_mem_ecc_err_status (struct gmsl_dev *dev, void *uncorrectable_2b_mem_ecc_err_status, bool *diag_err)
 Check the 2-bit uncorrectable memory ECC errors seen in any memories of the MAX96793 serializer.
 
int max96793_link_diag_check_max_retransmission_error_status (struct gmsl_dev *dev, void *max_retransmission_status, bool *diag_err)
 Checks the maximum retransmission error status for the MAX96793 device.
 
int max96793_csi_diag_check_mipi_rx_err_status (struct gmsl_dev *dev, void *mipi_rx_err_status, bool *diag_err)
 Check the MIPI RX error status of the MAX96793 serializer.
 
int max96793_link_diag_check_phy_low_power_state_error_status (struct gmsl_dev *dev, void *lp_err_status, bool *diag_err)
 Check the PHY error details of the MAX96793 serializer.
 
int max96793_csi_diag_check_mipi_phy_pkt_cnt_status (struct gmsl_dev *dev, void *mipi_pkt_cnt_err_status, bool *diag_err)
 Check the MIPI PHY packet count status of MAX96793 serializer.
 
int max96793_pipe_diag_check_stream_id (struct gmsl_dev *dev, void *stream_id_status, bool *diag_err)
 Check the stream ID status of the MAX96793 serializer.
 
int max96793_link_diag_check_eye_open_monitor_status (struct gmsl_dev *dev, void *eom_status, bool *diag_err)
 Check the Eye Open Monitor (EOM) status of the MAX96793 device.
 
int max96793_dev_diag_check_remote_error_status (struct gmsl_dev *dev, void *rem_err_status, bool *diag_err)
 Check the remote error flag status of the MAX96793 device.
 
int max96793_csi_diag_check_fec_status (struct gmsl_dev *dev, void *fec_active_status, bool *diag_err)
 Check if FEC (Forward Error Correction) is enabled and running on the MAX96793 device.
 
int max96793_dev_diag_check_part_config_status (struct gmsl_dev *dev, void *part_config_status, bool *diag_err)
 Check the part configuration status of the MAX96793 device.
 
int max96793_link_diag_get_link_lock_status (struct gmsl_dev *dev, bool *locked)
 Get the link lock status of the MAX96793 serializer.
 
int max96793_dev_diag_get_errb_status (struct gmsl_dev *dev, bool *errb)
 Get the status of Error flag (ERRB) in the MAX96793 serializer.