compat_6514.h (2232B)
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-2019 Broadcom Inc. All rights reserved. 6 * 7 * RPC Compatibility with sdk-6.5.14 routines 8 */ 9 10 #ifndef _COMPAT_6514_H_ 11 #define _COMPAT_6514_H_ 12 13 #ifdef BCM_RPC_SUPPORT 14 #include <bcm/types.h> 15 #include <bcm/field.h> 16 #include <bcm/cosq.h> 17 18 #ifdef INCLUDE_TCB 19 typedef struct bcm_compat6514_cosq_tcb_config_s { 20 bcm_cosq_tcb_scope_t scope_type; /* TCB monitor scope type */ 21 bcm_gport_t gport; /* TCB monitor entity, can be a Unicast 22 queue gport or a physical port gport */ 23 bcm_cos_queue_t cosq; /* Reserved field */ 24 uint32 trigger_reason; /* Define the event which could trigger 25 the capture */ 26 uint32 pre_freeze_capture_num; /* Define the capture number after TCB 27 enter freeze status */ 28 uint32 pre_freeze_capture_time; /* Define the capture time after TCB 29 enter freeze status. Unit is usec */ 30 uint32 post_sample_probability; /* The sample probability in 31 post-trigger phase. Step is 1/16, 32 valid configure range is 1 to 16, 1 33 means 1/16 sample, 16 means sample 34 all */ 35 uint32 pre_sample_probability; /* The sample probability in pre-trigger 36 phase. Step is 1/16, valid configure 37 range is 1 to 16, 1 means 1/16 38 sample, 16 means sample all */ 39 } bcm_compat6514_cosq_tcb_config_t; 40 41 extern int bcm_compat6514_cosq_tcb_config_get( 42 int unit, 43 bcm_cosq_buffer_id_t buffer_id, 44 bcm_compat6514_cosq_tcb_config_t *config); 45 46 extern int bcm_compat6514_cosq_tcb_config_set( 47 int unit, 48 bcm_cosq_buffer_id_t buffer_id, 49 bcm_compat6514_cosq_tcb_config_t *config); 50 #endif 51 #endif 52 #endif /* !_COMPAT_6514_H */