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_dpp_access.h (2370B)


      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_DPP_ACCESS_H_
     14 #define _SHR_SW_STATE_DPP_ACCESS_H_
     15 
     16 #include <shared/swstate/access/sw_state_dpp_bcm_access.h>
     17 #include <shared/swstate/access/sw_state_dpp_shr_access.h>
     18 #include <shared/swstate/access/sw_state_dpp_soc_access.h>
     19 /********************************* access calbacks definitions *************************************/
     20 /* this set of callbacks, are the callbacks used in the access calbacks struct 'sw_state_cbs_t' to */
     21 /* access the data in 'sw_state_t'.                                                                */
     22 /* the calbacks are inserted into the access struct by 'sw_state_access_cb_init'.                  */
     23 /***************************************************************************************************/
     24 
     25 #ifdef BCM_PETRA_SUPPORT
     26 /* implemented by: sw_state_dpp_verify */
     27 typedef int (*sw_state_dpp_verify_cb)(
     28     int unit);
     29 #endif /* BCM_PETRA_SUPPORT*/ 
     30 
     31 /*********************************** access calbacks struct ****************************************/
     32 /* this set of structs, rooted at 'sw_state_cbs_t' define the access layer for the entire SW state.*/
     33 /* use this tree to alloc/free/set/get fields in the sw state rooted at 'sw_state_t'.              */
     34 /* NOTE: 'sw_state_t' data should not be accessed directly.                                        */
     35 /***************************************************************************************************/
     36 
     37 #ifdef BCM_PETRA_SUPPORT
     38 typedef struct sw_state_dpp_cbs_s {
     39 #ifdef BCM_PETRA_SUPPORT
     40     sw_state_dpp_verify_cb verify;
     41 #endif /* BCM_PETRA_SUPPORT*/ 
     42 #ifdef BCM_PETRA_SUPPORT
     43     sw_state_dpp_bcm_cbs_t bcm;
     44 #endif /* BCM_PETRA_SUPPORT*/ 
     45 #ifdef BCM_PETRA_SUPPORT
     46     sw_state_dpp_soc_cbs_t soc;
     47 #endif /* BCM_PETRA_SUPPORT*/ 
     48 #ifdef BCM_PETRA_SUPPORT
     49     sw_state_dpp_shr_cbs_t shr;
     50 #endif /* BCM_PETRA_SUPPORT*/ 
     51 } sw_state_dpp_cbs_t;
     52 
     53 #endif /* BCM_PETRA_SUPPORT*/ 
     54 
     55 int sw_state_dpp_access_cb_init(int unit);
     56 
     57 #endif /* _SHR_SW_STATE_DPP_ACCESS_H_ */