openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

tscbh_diagnostics.h (2423B)


      1 /*
      2  *         
      3  * 
      4  * 
      5  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      6  * 
      7  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      8  *         
      9  *     
     10  * DO NOT EDIT THIS FILE!
     11  */
     12 
     13 #ifndef _TSCBH_DIAGNOSTICS_H__H_
     14 #define _TSCBH_DIAGNOSTICS_H__H_
     15 
     16 #include <phymod/phymod_definitions.h>
     17 /*Set\get slicer position*/
     18 int tscbh_phy_rx_slicer_position_set(const phymod_phy_access_t* phy, uint32_t flags, const phymod_slicer_position_t* position);
     19 int tscbh_phy_rx_slicer_position_get(const phymod_phy_access_t* phy, uint32_t flags, phymod_slicer_position_t* position);
     20 
     21 /*Get slicer range limitation*/
     22 int tscbh_phy_rx_slicer_position_max_get(const phymod_phy_access_t* phy, uint32_t flags, const phymod_slicer_position_t* position_min, const phymod_slicer_position_t* position_max);
     23 
     24 /*set\get PRBS configuration*/
     25 int tscbh_phy_prbs_config_set(const phymod_phy_access_t* phy, uint32_t flags , const phymod_prbs_t* prbs);
     26 int tscbh_phy_prbs_config_get(const phymod_phy_access_t* phy, uint32_t flags , phymod_prbs_t* prbs);
     27 
     28 /*Set\get PRBS enable state*/
     29 int tscbh_phy_prbs_enable_set(const phymod_phy_access_t* phy, uint32_t flags , uint32_t enable);
     30 int tscbh_phy_prbs_enable_get(const phymod_phy_access_t* phy, uint32_t flags , uint32_t* enable);
     31 
     32 /*Get PRBS Status*/
     33 int tscbh_phy_prbs_status_get(const phymod_phy_access_t* phy, uint32_t flags, phymod_prbs_status_t* prbs_status);
     34 
     35 /*Get core diagnostics information*/
     36 int tscbh_core_diagnostics_get(const phymod_core_access_t* core, phymod_core_diagnostics_t* diag);
     37 
     38 /*Get phy diagnostics information*/
     39 int tscbh_phy_diagnostics_get(const phymod_phy_access_t* phy, phymod_phy_diagnostics_t* diag);
     40 
     41 /*Display eyescan information*/
     42 int tscbh_phy_eyescan_run(const phymod_phy_access_t* phy, uint32_t flags, phymod_eyescan_mode_t mode, const phymod_phy_eyescan_options_t* eyescan_options);
     43 
     44 /*Get CL91 FEC Corrected Codeword Counter*/
     45 int tscbh_phy_fec_cl91_correctable_counter_get(const phymod_phy_access_t* phy, uint32_t* count);
     46 
     47 /*Get CL91 FEC Uncorrected Codeword Counter*/
     48 int tscbh_phy_fec_cl91_uncorrectable_counter_get(const phymod_phy_access_t* phy, uint32_t* count);
     49 
     50 /* Get RS FEC symbol error count.*/
     51 int tscbh_phy_rsfec_symbol_error_counter_get(const phymod_phy_access_t* phy, int max_count, int* actual_count, uint32_t* error_count);
     52 
     53 #endif /*_TSCBH_DIAGNOSTICS_H_*/