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

pfc.h (1098B)


      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  * File:        pfc.h
      8  * Purpose:     Declarations for PFC BCM Internal functions/data structures.
      9  */
     10 
     11 #ifndef _BCM_INT_TOMAHAWK3_PFC_H_
     12 #define _BCM_INT_TOMAHAWK3_PFC_H_
     13 #include <soc/defs.h>
     14 #if defined(BCM_TOMAHAWK3_SUPPORT)
     15 #include <bcm/port.h>
     16 #include <bcm/error.h>
     17 #include <bcm_int/tomahawk3_dispatch.h>
     18 #include <bcm_int/esw/tomahawk3.h>
     19 
     20 
     21 int
     22 bcm_th3_port_priority_group_config_set(
     23     int unit,
     24     bcm_gport_t gport,
     25     int priority_group,
     26     bcm_port_priority_group_config_t *prigrp_config);
     27 
     28 int
     29 bcm_th3_port_priority_group_config_get(
     30     int unit,
     31     bcm_gport_t gport,
     32     int priority_group,
     33     bcm_port_priority_group_config_t *prigrp_config);
     34 
     35 int
     36 bcm_th3_mmu_pfc_tx_config_set(
     37     int unit,
     38     bcm_port_t port,
     39     int pfc_enable,
     40     uint32 pri_bmp);
     41 
     42 int
     43 bcm_th3_mmu_pfc_rx_config_set(
     44     int unit,
     45     bcm_port_t port,
     46     int pfc_enable);
     47 
     48 
     49 
     50 #endif
     51 #endif