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

compat_531.h (1491B)


      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  * RPC Compatibility with sdk-5.3.1 routines
      8  */
      9 
     10 #ifndef _COMPAT_531_H_
     11 #define _COMPAT_531_H_
     12 
     13 #ifdef	BCM_RPC_SUPPORT
     14 
     15 #include <bcm/types.h>
     16 
     17 typedef struct bcm_compat531_l2_cache_addr_s {
     18     uint32              flags;          /* BCM_L2_CACHE_XXX flags */
     19     bcm_mac_t           mac;            /* dest MAC address to match */
     20     bcm_mac_t           mac_mask;       /* mask */
     21     bcm_vlan_t          vlan;           /* VLAN to match */
     22     bcm_vlan_t          vlan_mask;      /* mask */
     23     bcm_port_t          src_port;       /* ingress port to match (BCM5660x) */
     24     bcm_port_t          src_port_mask;  /* mask (must be 0 if not BCM5660x) */
     25     bcm_module_t        dest_modid;     /* switch destination module */
     26     bcm_port_t          dest_port;      /* switch destination port */
     27     bcm_trunk_t         dest_trunk;     /* switch destination trunk ID */
     28     int                 prio;           /* -1 to not set internal priority */
     29 } bcm_compat531_l2_cache_addr_t;
     30 
     31 extern int bcm_compat531_l2_cache_set(
     32     int unit, 
     33     int index, 
     34     bcm_compat531_l2_cache_addr_t *addr,
     35     int *index_used);
     36 
     37 extern int bcm_compat531_l2_cache_get(
     38     int unit,
     39     int index,
     40     bcm_compat531_l2_cache_addr_t *addr);
     41 
     42 #endif	/* BCM_RPC_SUPPORT */
     43 
     44 #endif	/* !_COMPAT_531_H */