summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/fman/inc/Peripherals
diff options
context:
space:
mode:
authorCristian Bercaru <cristian.bercaru@freescale.com>2014-03-28 18:46:02 (GMT)
committerJose Rivera <German.Rivera@freescale.com>2014-03-31 19:55:28 (GMT)
commit1877f35001b018bc7ad0f7b8ef41bdea04311b54 (patch)
tree37df0c76fe330453da6e8fbc8345261d190ed8a2 /drivers/net/ethernet/freescale/fman/inc/Peripherals
parent642ff687a348d96f1d6ed0ffc8fed321fb9b95d5 (diff)
downloadlinux-fsl-qoriq-1877f35001b018bc7ad0f7b8ef41bdea04311b54.tar.xz
FMD: add PFC support for FMan v3 platforms
Configure up to 4 PFC priorities each with its PAUSE quanta. Each PFC priority controls a Work Queue on a FMan port. When the private interfaces' buffer pool depletes, there are issued PFC frames for the number of all configured priorities. Signed-off-by: Cristian Bercaru <cristian.bercaru@freescale.com> Change-Id: I8a6102f4a77b44d07973a38b98493226e9b69bbd Reviewed-on: http://git.am.freescale.net:8181/9767 Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Tested-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/fman/inc/Peripherals')
-rw-r--r--drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_ext.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_ext.h b/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_ext.h
index a45682f..5bba643 100644
--- a/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_ext.h
+++ b/drivers/net/ethernet/freescale/fman/inc/Peripherals/fm_ext.h
@@ -411,17 +411,6 @@ typedef struct t_FmExtPoolParams {
} t_FmExtPoolParams;
/**************************************************************************//**
- @Description A structure for informing the driver about the external
- buffer pools allocated in the BM and used by a port or a
- storage-profile.
-*//***************************************************************************/
-typedef struct t_FmExtPools {
- uint8_t numOfPoolsUsed; /**< Number of pools use by this port */
- t_FmExtPoolParams extBufPool[FM_PORT_MAX_NUM_OF_EXT_POOLS];
- /**< Parameters for each port */
-} t_FmExtPools;
-
-/**************************************************************************//**
@Description A structure for defining backup BM Pools.
*//***************************************************************************/
typedef struct t_FmBackupBmPools {
@@ -458,6 +447,21 @@ typedef struct t_FmBufPoolDepletion {
} t_FmBufPoolDepletion;
/**************************************************************************//**
+ @Description A structure for informing the driver about the external
+ buffer pools allocated in the BM and used by a port or a
+ storage-profile.
+*//***************************************************************************/
+typedef struct t_FmExtPools {
+ uint8_t numOfPoolsUsed; /**< Number of pools use by this port */
+ t_FmExtPoolParams extBufPool[FM_PORT_MAX_NUM_OF_EXT_POOLS];
+ /**< Parameters for each port */
+ /**< External buffer pool depletion parameters */
+#ifdef CONFIG_FMAN_PFC
+ t_FmBufPoolDepletion poolDepletion;
+#endif
+} t_FmExtPools;
+
+/**************************************************************************//**
@Description A Structure for defining Ucode patch for loading.
*//***************************************************************************/
typedef struct t_FmFirmwareParams {