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

topo.h (882B)


      1 /*
      2  * 
      3  * 
      4  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      5  * 
      6  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      7  *
      8  */
      9 
     10 #ifndef __BCM_TOPO_H__
     11 #define __BCM_TOPO_H__
     12 
     13 #include <bcm/port.h>
     14 
     15 /* Topology mapping lookup function prototype. */
     16 typedef int (*bcm_topo_map_f)(
     17     int unit, 
     18     int dest_modid, 
     19     bcm_port_t *exit_port);
     20 
     21 /* Set or Get Topology mapping lookup function. */
     22 extern int bcm_topo_map_get(
     23     bcm_topo_map_f *_map);
     24 
     25 /* Set or Get Topology mapping lookup function. */
     26 extern int bcm_topo_map_set(
     27     bcm_topo_map_f _map);
     28 
     29 #ifndef BCM_HIDE_DISPATCHABLE
     30 
     31 /* Lookup a path to a destination module. */
     32 extern int bcm_topo_port_get(
     33     int unit, 
     34     int dest_modid, 
     35     bcm_port_t *exit_port);
     36 
     37 #endif /* BCM_HIDE_DISPATCHABLE */
     38 
     39 #endif /* __BCM_TOPO_H__ */