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

tdm_td3_shim.c (935B)


      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  * $All Rights Reserved.$
      7  *
      8  * TDM chip to core API shim layer
      9  */
     10 #ifdef _TDM_STANDALONE
     11 	#include <tdm_top.h>
     12 #else
     13 	#include <soc/tdm/core/tdm_top.h>
     14 #endif
     15 
     16 
     17 /**
     18 @name: tdm_td3_shim_get_port_pm
     19 @param:
     20 
     21 Return PM number to which the input port belongs
     22  */
     23 int
     24 tdm_td3_shim_get_port_pm(tdm_mod_t *_tdm)
     25 {
     26     return (tdm_td3_cmn_get_port_pm(_tdm, _tdm->_core_data.vars_pkg.port));
     27 }
     28 
     29 
     30 /**
     31 @name: tdm_td3_shim_get_pipe_ethernet
     32 @param:
     33 
     34 Returns BOOL_TRUE if pipe of the given port has traffic entirely Ethernet,
     35 otherwise returns BOOL_FALSE.
     36  */
     37 int
     38 tdm_td3_shim_get_pipe_ethernet(tdm_mod_t *_tdm)
     39 {
     40     return (tdm_td3_cmn_get_pipe_ethernet(_tdm,
     41                                           _tdm->_core_data.vars_pkg.cal_id));
     42 }