blackhawk_diagnostics.h (3175B)
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 _BLACKHAWK_DIAGNOSTICS_H__H_ 14 #define _BLACKHAWK_DIAGNOSTICS_H__H_ 15 16 #include <phymod/phymod_definitions.h> 17 /*Set\get slicer position*/ 18 int blackhawk_phy_rx_slicer_position_set(const phymod_phy_access_t* phy, uint32_t flags, const phymod_slicer_position_t* position); 19 int blackhawk_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 blackhawk_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 blackhawk_phy_prbs_config_set(const phymod_phy_access_t* phy, uint32_t flags , const phymod_prbs_t* prbs); 26 int blackhawk_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 blackhawk_phy_prbs_enable_set(const phymod_phy_access_t* phy, uint32_t flags , uint32_t enable); 30 int blackhawk_phy_prbs_enable_get(const phymod_phy_access_t* phy, uint32_t flags , uint32_t* enable); 31 32 /*Get PRBS Status*/ 33 int blackhawk_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 blackhawk_phy_pattern_config_set(const phymod_phy_access_t* phy, const phymod_pattern_t* pattern); 37 int blackhawk_phy_pattern_config_get(const phymod_phy_access_t* phy, phymod_pattern_t* pattern); 38 39 /*Set\get pattern state*/ 40 int blackhawk_phy_pattern_enable_set(const phymod_phy_access_t* phy, uint32_t enable, const phymod_pattern_t* pattern); 41 int blackhawk_phy_pattern_enable_get(const phymod_phy_access_t* phy, uint32_t* enable); 42 43 /*Get core diagnostics information*/ 44 int blackhawk_core_diagnostics_get(const phymod_core_access_t* core, phymod_core_diagnostics_t* diag); 45 46 /*Get phy diagnostics information*/ 47 int blackhawk_phy_diagnostics_get(const phymod_phy_access_t* phy, phymod_phy_diagnostics_t* diag); 48 49 /*Get phy diagnostics information*/ 50 int blackhawk_phy_pmd_info_dump(const phymod_phy_access_t* phy, const char* type); 51 52 /*Display eyescan information*/ 53 int blackhawk_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); 54 55 /*PAM4 tx pattern set/get*/ 56 int blackhawk_phy_PAM4_tx_pattern_enable_set(const phymod_phy_access_t* phy, phymod_PAM4_tx_pattern_t pattern_type, uint32_t enable); 57 int blackhawk_phy_PAM4_tx_pattern_enable_get(const phymod_phy_access_t* phy, phymod_PAM4_tx_pattern_t pattern_type, uint32_t* enable); 58 59 /* BER Projection*/ 60 int blackhawk_phy_ber_proj(const phymod_phy_access_t* phy, phymod_ber_proj_mode_t mode, const phymod_phy_ber_proj_options_t* options); 61 62 /* fast BER Projection*/ 63 int blackhawk_phy_fast_ber_proj_get(const phymod_phy_access_t* phy, uint32_t* ber_proj_data); 64 65 #endif /*_BLACKHAWK_DIAGNOSTICS_H_*/