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 (971B)


      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  * DO NOT EDIT THIS FILE!
      9  * This file is auto-generated.
     10  * Edits to this file will be lost when it is regenerated.
     11  */
     12 
     13 #ifndef __BCM_TOPO_H__
     14 #define __BCM_TOPO_H__
     15 
     16 #include <bcm/port.h>
     17 
     18 /* bcm_topo_map_f */
     19 typedef int (*bcm_topo_map_f)(
     20     int unit, 
     21     int dest_modid, 
     22     bcm_port_t *exit_port);
     23 
     24 /* Set or Get Topology mapping lookup function. */
     25 extern int bcm_topo_map_get(
     26     bcm_topo_map_f *_map);
     27 
     28 /* Set or Get Topology mapping lookup function. */
     29 extern int bcm_topo_map_set(
     30     bcm_topo_map_f _map);
     31 
     32 #ifndef BCM_HIDE_DISPATCHABLE
     33 
     34 /* Lookup a path to a destination module. */
     35 extern int bcm_topo_port_get(
     36     int unit, 
     37     int dest_modid, 
     38     bcm_port_t *exit_port);
     39 
     40 #endif /* BCM_HIDE_DISPATCHABLE */
     41 
     42 #endif /* __BCM_TOPO_H__ */