topo.c (847B)
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 8 #include <soc/drv.h> 9 10 #include <bcm/topo.h> 11 #include <bcm/error.h> 12 #include <bcm/stack.h> 13 #include <bcm_int/common/topo.h> 14 15 /* 16 * Function: 17 * bcm_esw_topo_port_get 18 * Purpose: 19 * Determine what port should be used on unit to reach dest_modid 20 * Parameters: 21 * unit - The source unit 22 * dest_modid - Destination to reach 23 * exit_port - (OUT) Port to exit device on 24 * Returns: 25 * BCM_E_XXX 26 * Notes: 27 * The code for the local board is programmed by 28 */ 29 int 30 bcm_esw_topo_port_get(int unit, int dest_modid, bcm_port_t *exit_port) 31 { 32 return _bcm_topo_port_get(unit, dest_modid, exit_port); 33 }