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

sat.h (2497B)


      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  * File:        sat.h
      8  * Purpose:     Function declarations for SAT bcm internal functions
      9  */
     10 
     11 #ifndef _BCM_INT_SAT_H_
     12 #define _BCM_INT_SAT_H_
     13 
     14 
     15 /* SAT UP-MEP OLP header type/subtype */
     16 #define BCM_SAT_UPMEP_OLP_HDR_COMPRESSED             0x000E
     17 
     18 /* SAT Down-MEP OLP header type/subtype */
     19 #define BCM_SAT_DOWNMEP_OLP_HDR_COMPRESSED           0x000E
     20 
     21 
     22 struct _bcm_sat_hash_data_s {
     23     int             in_use;           /* Endpoint usage status.  */
     24     uint16          sglp;             /* Source GLP port */              
     25     uint16          dglp;             /* Destination GLP port */
     26 	bcm_sat_endpoint_info_t  ep_info; /* End point information */
     27 };  
     28 
     29 
     30 typedef struct _bcm_sat_hash_data_s _bcm_sat_hash_data_t;  
     31  
     32 
     33 /*
     34  * Typedef:
     35  *     _bcm_sat_control_t
     36  * Purpose:
     37  *     SAT module control structure. One structure for each XGS device.
     38  */
     39 struct _bcm_sat_control_s {
     40     int                         init;               /* TRUE if SAT module has    */
     41                                                     /* been initialized.         */
     42     sal_mutex_t                 sat_lock;           /* Protection mutex          */
     43     uint32                      upsamp_ep_count;    /* Max number of UP-MEP      */
     44                                                     /* endpoints supported.      */
     45     uint32                      downsamp_ep_count;  /* Max number of DOWN_MEP    */
     46                                                     /* endpoints supported.      */
     47     shr_idxres_list_handle_t    upsamp_mep_pool;    /* SAT UP-MEP endpoint indices  */
     48                                                     /* pool.                        */
     49     shr_idxres_list_handle_t    downsamp_mep_pool;  /* SAT UP-MEP endpoint indices  */
     50 	                                                /* pool.                        */
     51     shr_htb_hash_table_t        upsamp_htbl;        /* SAT UP-MEP endpoint hash table.      */
     52 	_bcm_sat_hash_data_t       *upsamp_hash_data;   /* Pointer to UP-MEP SAT hash data memory. */
     53     shr_htb_hash_table_t        downsamp_htbl;      /* SAT Down-MEP endpoint hash table.      */
     54     _bcm_sat_hash_data_t       *downsamp_hash_data; /* Pointer to Down-MEP SAT hash data memory. */
     55 };
     56 
     57 typedef struct _bcm_sat_control_s _bcm_sat_control_t;
     58 
     59 #endif  /* !_BCM_INT_SAT_H_ */