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

tscf16_diagnostics.h (2908B)


      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 _TSCF16_DIAGNOSTICS_H__H_
     14 #define _TSCF16_DIAGNOSTICS_H__H_
     15 
     16 #include <phymod/phymod_definitions.h>
     17 /*Set\get slicer position*/
     18 int tscf16_phy_rx_slicer_position_set(const phymod_phy_access_t* phy, uint32_t flags, const phymod_slicer_position_t* position);
     19 int tscf16_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 tscf16_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 tscf16_phy_prbs_config_set(const phymod_phy_access_t* phy, uint32_t flags , const phymod_prbs_t* prbs);
     26 int tscf16_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 tscf16_phy_prbs_enable_set(const phymod_phy_access_t* phy, uint32_t flags , uint32_t enable);
     30 int tscf16_phy_prbs_enable_get(const phymod_phy_access_t* phy, uint32_t flags , uint32_t* enable);
     31 
     32 /*Get PRBS Status*/
     33 int tscf16_phy_prbs_status_get(const phymod_phy_access_t* phy, uint32_t flags, phymod_prbs_status_t* prbs_status);
     34 
     35 /*Set\get pattern state*/
     36 int tscf16_phy_pattern_config_set(const phymod_phy_access_t* phy, const phymod_pattern_t* pattern);
     37 int tscf16_phy_pattern_config_get(const phymod_phy_access_t* phy, phymod_pattern_t* pattern);
     38 
     39 /*Set\get pattern state*/
     40 int tscf16_phy_pattern_enable_set(const phymod_phy_access_t* phy, uint32_t enable, const phymod_pattern_t* pattern);
     41 int tscf16_phy_pattern_enable_get(const phymod_phy_access_t* phy, uint32_t* enable);
     42 
     43 /*Get core diagnostics information*/
     44 int tscf16_core_diagnostics_get(const phymod_core_access_t* core, phymod_core_diagnostics_t* diag);
     45 
     46 /*Get phy diagnostics information*/
     47 int tscf16_phy_pmd_info_dump(const phymod_phy_access_t* phy, const char* type);
     48 
     49 /*Get phy diagnostics information*/
     50 int tscf16_phy_pcs_info_dump(const phymod_phy_access_t* phy, const char* type);
     51 
     52 /*Get CL74 FEC Corrected Codeword Counter*/
     53 int tscf16_phy_fec_correctable_counter_get(const phymod_phy_access_t* phy, uint32_t* count);
     54 
     55 /*Get CL74 FEC Uncorrected Codeword Counter*/
     56 int tscf16_phy_fec_uncorrectable_counter_get(const phymod_phy_access_t* phy, uint32_t* count);
     57 
     58 /*Get CL91 FEC Corrected Codeword Counter*/
     59 int tscf16_phy_fec_cl91_correctable_counter_get(const phymod_phy_access_t* phy, uint32_t* count);
     60 
     61 /*Get CL91 FEC Uncorrected Codeword Counter*/
     62 int tscf16_phy_fec_cl91_uncorrectable_counter_get(const phymod_phy_access_t* phy, uint32_t* count);
     63 
     64 #endif /*_TSCF16_DIAGNOSTICS_H_*/