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

port.h (1252B)


      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  * File:        port.h
      8  * Purpose:     PORT internal definitions to the BCM library.
      9  */
     10 
     11 #ifndef   _BCM_INT_DNXF_PORT_H_
     12 #define   _BCM_INT_DNXF_PORT_H_
     13 
     14 #ifndef BCM_DNXF_SUPPORT 
     15 #error "This file is for use by DNXF (Ramon) family only!" 
     16 #endif
     17 
     18 /* Attributes taht can be controlled on BCM88750*/
     19 #define _BCM_DNXF_PORT_ATTRS      \
     20    (BCM_PORT_ATTR_ENABLE_MASK      | \
     21     BCM_PORT_ATTR_SPEED_MASK       | \
     22     BCM_PORT_ATTR_LINKSCAN_MASK    | \
     23     BCM_PORT_ATTR_LOOPBACK_MASK)
     24 
     25 int dnxf_port_init(int unit);
     26 int dnxf_port_deinit(int unit);
     27 
     28 /**
     29  * \brief - provide the fabric serdes rate measurment
     30  * 
     31  * \param [in] unit - chip unit id
     32  * \param [in] port - logical port
     33  * \param [in] is_rx - indicate the FIFO used to measure
     34  * \param [out] phy_measure - phy measure output
     35  *   
     36  * \return
     37  *   int - see _SHR_E_*
     38  *   
     39  * \remarks
     40  *   * None
     41  * \see
     42  *   * None
     43  */
     44 int
     45 dnxf_port_phy_measure_get(
     46     int unit,
     47     bcm_port_t port,
     48     int is_rx,
     49     soc_dnxc_port_phy_measure_t * phy_measure);
     50 #endif /*_BCM_INT_DNXF_PORT_H_*/