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

counter.h (884B)


      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:        counter.h
      8  * Purpose:     Extern declarations for counter support.
      9  */
     10 
     11 #ifndef   _DIAG_DCMN_COUNTER_H_
     12 #define   _DIAG_DCMN_COUNTER_H_
     13 
     14 extern int
     15 do_show_dpp_counters(int unit, soc_reg_t ctr_reg, soc_pbmp_t pbmp, int flags);
     16 
     17 /* deinit dcmn_counter_val */
     18 extern void
     19 dcmn_counter_val_deinit(int unit);
     20 
     21 /*access to diag counter data base*/
     22 extern void
     23 dpp_counter_val_set(int unit, soc_port_t port, soc_reg_t ctr_reg,
     24                     int ar_idx, uint64 val);
     25 
     26 /*access to diag counter data base*/
     27 extern void
     28 dpp_counter_val_get(int unit, soc_port_t port, soc_reg_t ctr_reg,
     29                 int ar_idx, uint64 *val);
     30 
     31 #endif /* _DIAG_DCMN_COUNTER_H_ */