ctrans.h (2494B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 6 * 7 * File: ctrans.h 8 * Purpose: 9 */ 10 11 #ifndef _DIAG_CTRANS_H_ 12 #define _DIAG_CTRANS_H_ 13 14 #include <bcm/types.h> 15 #include <appl/cpudb/cpudb.h> 16 17 #if defined(INCLUDE_LIB_CPUDB) && defined(INCLUDE_LIB_CPUTRANS) && \ 18 defined(INCLUDE_LIB_DISCOVER) && defined(INCLUDE_LIB_STKTASK) 19 20 extern const bcm_mac_t _bcast_mac; 21 22 #define MAX_DBS 10 23 extern cpudb_ref_t db_refs[MAX_DBS]; 24 extern int cur_db; 25 extern int num_db; 26 27 #define PQ_KEY PQ_MAC 28 29 /* See stklink.h */ 30 #define EVENT_LIST_NAMES \ 31 "INVALID", \ 32 "UNBlock", \ 33 "BLock", \ 34 "LinkUp", \ 35 "LinkDown", \ 36 "PKT", \ 37 "DRestart", \ 38 "DSuccess", \ 39 "DFailure", \ 40 "TSuccess", \ 41 "TFailure", \ 42 "ASuccess", \ 43 "AFailure", \ 44 "TimeOut", \ 45 "COMMFAIL", \ 46 NULL 47 48 49 #define PARSE_OBJ_CPUDB_STK_PORT 0 50 #define PARSE_OBJ_CPUDB_ENTRY 1 51 #define PARSE_OBJ_MASTER_KEY 2 52 #define PARSE_OBJ_LOCAL_KEY 3 53 #define PARSE_OBJ_TOPO_STK_PORT 4 54 #define PARSE_OBJ_TOPO_TX_MOD 5 55 #define PARSE_OBJ_TOPO_RX_MOD 6 56 #define PARSE_OBJ_TOPO_CPU 7 57 #define PARSE_OBJ_TOPO_CLEAR 8 58 #define PARSE_OBJ_TOPO_INSTALL 9 59 #define PARSE_OBJ_STACK_INSTALL 10 60 #define PARSE_OBJ_CPUDB_UNIT_MOD_IDS 11 61 #define PARSE_OBJ_LOCAL_ENTRY 12 62 #define PARSE_OBJ_CPUDB_STK_PORT_STR 13 63 64 #define PARSE_OBJECT_NAMES \ 65 "cpudb_stk_port", \ 66 "cpudb_entry", \ 67 "master_key", \ 68 "local_key", \ 69 "topo_stk_port", \ 70 "topo_tx_mod", \ 71 "topo_rx_mod", \ 72 "topo_cpu", \ 73 "topo_clear", /* Command to clear data from parse_tp_cpu */ \ 74 "topo_install", /* Command to install topology info */ \ 75 "stack_install", /* Call with current CPUDB */ \ 76 "cpudb_unit_mod_ids", \ 77 "local_entry", \ 78 "cpudb_stk_port_str", \ 79 NULL 80 81 #endif /* TKS libs defined */ 82 83 #endif /* _DIAG_CTRANS_H_ */