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

int.h (2745B)


      1 /*
      2  * 
      3  * 
      4  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      5  * 
      6  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      7  * 
      8  * DO NOT EDIT THIS FILE!
      9  * This file is auto-generated.
     10  * Edits to this file will be lost when it is regenerated.
     11  */
     12 
     13 #ifndef __BCM_INT_H__
     14 #define __BCM_INT_H__
     15 
     16 #include <bcm/types.h>
     17 
     18 #if defined(INCLUDE_INT)
     19 /* INT Turnaround configuration information data. */
     20 typedef struct bcm_int_turnaround_config_s {
     21     bcm_mac_t src_mac; 
     22 } bcm_int_turnaround_config_t;
     23 #endif
     24 
     25 #if defined(INCLUDE_INT)
     26 /* INT Turnaround statistics information data. */
     27 typedef struct bcm_int_turnaround_stat_s {
     28     uint64 rx_pkt_cnt;                  /* Number of packet recieved in FW. */
     29     uint64 tx_pkt_cnt;                  /* Number of packet transmitted from FW. */
     30     uint64 drop_pkt_cnt;                /* Number of packet dropped in FW. */
     31     uint64 int_init_config_drop;        /* Number of pkt dropped due to missing
     32                                            configuration. */
     33     uint64 int_hop_cnt_invalid_drop;    /* Number of pkt dropped due to Hop
     34                                            count exceeded Hop limit. */
     35     uint64 int_hdr_len_invalid_drop;    /* Number of pkt dropped due to current
     36                                            length exceeded maximum length. */
     37     uint64 int_pkt_size_invalid_drop;   /* Number of pkt dropped due to invalid
     38                                            packet size. */
     39 } bcm_int_turnaround_stat_t;
     40 #endif
     41 
     42 #ifndef BCM_HIDE_DISPATCHABLE
     43 
     44 #if defined(INCLUDE_INT)
     45 /* Initialize the In-band Telemetry(INT) subsystem. */
     46 extern int bcm_int_init(
     47     int unit);
     48 #endif
     49 
     50 #if defined(INCLUDE_INT)
     51 /* Shut down the In-band Telemetry(INT) subsystem. */
     52 extern int bcm_int_detach(
     53     int unit);
     54 #endif
     55 
     56 #endif /* BCM_HIDE_DISPATCHABLE */
     57 
     58 #if defined(INCLUDE_INT)
     59 /* Initialize INT Turnaround configuration information structure. */
     60 extern void bcm_int_turnaround_config_t_init(
     61     bcm_int_turnaround_config_t *config_info);
     62 #endif
     63 
     64 #ifndef BCM_HIDE_DISPATCHABLE
     65 
     66 #if defined(INCLUDE_INT)
     67 /* Set INT Turnaround - configuration information */
     68 extern int bcm_int_turnaround_config_set(
     69     int unit, 
     70     bcm_int_turnaround_config_t *config_data);
     71 #endif
     72 
     73 #if defined(INCLUDE_INT)
     74 /* Get INT Turnaround - configuration information */
     75 extern int bcm_int_turnaround_config_get(
     76     int unit, 
     77     bcm_int_turnaround_config_t *config_data);
     78 #endif
     79 
     80 #if defined(INCLUDE_INT)
     81 /* Get INT Turnaround - statistics information */
     82 extern int bcm_int_turnaround_stat_get(
     83     int unit, 
     84     bcm_int_turnaround_stat_t *stat_data);
     85 #endif
     86 
     87 #endif /* BCM_HIDE_DISPATCHABLE */
     88 
     89 #endif /* __BCM_INT_H__ */