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

sw_state_cb_db.h (811B)


      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  * this module is used to store and acquire all of the device lock's, semaphores, mutexes etc. 
      8  */
      9 #ifndef _SW_STATE_CB_DB_H
     10 #define _SW_STATE_CB_DB_H
     11 
     12 #include <sal/core/sync.h>
     13 
     14 #include <bcm_int/dpp/l2.h>
     15 
     16 typedef struct sw_dpp_state_cb_db_s{
     17 
     18     /* 
     19      * bcm cbs
     20      */
     21     _bcm_petra_l2_cb_t  l2_cb;
     22 
     23 
     24     /* 
     25      * soc cbs
     26      */
     27     /* add dpp's soc mutexes and semaphores here */
     28      
     29 } sw_dpp_state_cb_db_t;
     30 
     31 typedef struct sw_state_cb_db_s {
     32     sw_dpp_state_cb_db_t  dpp;
     33 } sw_state_cb_db_t;
     34 
     35 extern sw_state_cb_db_t sw_state_cb_db[BCM_MAX_NUM_UNITS];
     36 
     37 #endif /*_SW_STATE_CB_DB_H*/