diag_dnx_fabric.h (2008B)
1 2 /*! \file diag_dnx_fabric.h 3 * Purpose: External declarations for command functions and 4 * their associated usage strings. 5 */ 6 /* 7 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 8 * 9 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 10 */ 11 12 #ifndef DIAG_DNX_FABRIC_H_INCLUDED 13 /* { */ 14 #define DIAG_DNX_FABRIC_H_INCLUDED 15 16 /************* 17 * INCLUDES * 18 */ 19 #include <appl/diag/sand/diag_sand_framework.h> 20 21 /************* 22 * DEFINES * 23 */ 24 25 /************* 26 * MACROS * 27 */ 28 29 /************* 30 * GLOBALS * 31 */ 32 33 extern sh_sand_man_t dnx_fabric_mesh_man; 34 extern sh_sand_man_t dnx_fabric_force_man; 35 extern sh_sand_option_t dnx_fabric_force_options[]; 36 37 /** 38 * \brief - Check is fabric available in this device 39 */ 40 extern shr_error_e sh_cmd_is_fabric_available( 41 int unit, 42 rhlist_t * test_list); 43 /** 44 * \brief 45 * Check if device is from DNX family and fabric is available in the device 46 */ 47 extern shr_error_e sh_cmd_is_dnx_with_fabric_available( 48 int unit, 49 rhlist_t * test_list); 50 /** 51 * \brief 52 * Check if device is from DNX family and fabric is NOT available in the device 53 */ 54 extern shr_error_e sh_cmd_is_dnx_with_fabric_unvailable( 55 int unit, 56 rhlist_t * test_list); 57 /** 58 * \brief - Callback in shell command framework allowing to enable command for DNX MESH device 59 */ 60 extern shr_error_e sh_cmd_is_dnx_mesh( 61 int unit, 62 rhlist_t * test_list); 63 64 /** 65 * \brief - Callback in shell command framework allowing to enable command for DNX CLOS devices 66 */ 67 extern shr_error_e sh_cmd_is_dnx_clos( 68 int unit, 69 rhlist_t * test_list); 70 71 /** 72 * \brief - display fabric mesh info 73 */ 74 extern shr_error_e cmd_dnx_fabric_mesh( 75 int unit, 76 args_t * args, 77 sh_sand_control_t * sand_control); 78 79 /** 80 * \brief - fabric force command 81 */ 82 extern shr_error_e cmd_dnx_fabric_force( 83 int unit, 84 args_t * args, 85 sh_sand_control_t * sand_control); 86 87 #endif /* DIAG_DNX_FABRIC_H_INCLUDED */