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_access.h (2575B)


      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  * DO NOT EDIT THIS FILE!
      8  * This file is auto-generated.
      9  * Edits to this file will be lost when it is regenerated.
     10  * search for 'sw_state_cbs_t' for the root of the struct
     11  */
     12 
     13 #ifndef _SHR_SW_STATE_ACCESS_H_
     14 #define _SHR_SW_STATE_ACCESS_H_
     15 
     16 #include <shared/swstate/sw_state_defs.h>
     17 
     18 #include <shared/swstate/access/sw_state_dpp_access.h>
     19 #include <shared/swstate/access/sw_state_exm_access.h>
     20 #include <shared/swstate/access/sw_state_exmMixStatDyn_access.h>
     21 #include <shared/swstate/access/sw_state_issu_example_access.h>
     22 #include <shared/swstate/access/sw_state_issu_test_access.h>
     23 #include <shared/swstate/access/sw_state_miniExm_access.h>
     24 /********************************* access calbacks definitions *************************************/
     25 /* this set of callbacks, are the callbacks used in the access calbacks struct 'sw_state_cbs_t' to */
     26 /* access the data in 'sw_state_t'.                                                                */
     27 /* the calbacks are inserted into the access struct by 'sw_state_access_cb_init'.                  */
     28 /***************************************************************************************************/
     29 
     30 /*********************************** access calbacks struct ****************************************/
     31 /* this set of structs, rooted at 'sw_state_cbs_t' define the access layer for the entire SW state.*/
     32 /* use this tree to alloc/free/set/get fields in the sw state rooted at 'sw_state_t'.              */
     33 /* NOTE: 'sw_state_t' data should not be accessed directly.                                        */
     34 /***************************************************************************************************/
     35 
     36 typedef struct sw_state_cbs_s {
     37 #ifdef BCM_PETRA_SUPPORT
     38     sw_state_dpp_cbs_t dpp;
     39 #endif /* BCM_PETRA_SUPPORT*/ 
     40 #ifdef _SHR_SW_STATE_EXM
     41     sw_state_exm_cbs_t exm;
     42 #endif /* _SHR_SW_STATE_EXM*/ 
     43 #ifdef _SHR_SW_STATE_EXM
     44     sw_state_exmMixStatDyn_cbs_t exmMixStatDyn;
     45 #endif /* _SHR_SW_STATE_EXM*/ 
     46 #ifdef _SHR_SW_STATE_EXM
     47     sw_state_miniExm_cbs_t miniExm;
     48 #endif /* _SHR_SW_STATE_EXM*/ 
     49 #ifdef _SHR_SW_STATE_EXM
     50     sw_state_issu_example_cbs_t issu_example;
     51 #endif /* _SHR_SW_STATE_EXM*/ 
     52     sw_state_issu_test_cbs_t issu_test;
     53 } sw_state_cbs_t;
     54 
     55 
     56 extern sw_state_cbs_t sw_state_access[SOC_MAX_NUM_DEVICES];
     57 
     58 
     59 int sw_state_access_cb_init(int unit);
     60 
     61 #endif /* _SHR_SW_STATE_ACCESS_H_ */