DPAA platorm MAC interface is known as FMAN i.e. Frame Manager. There are two ways to control it. 1. Statically configure the queues and classification rules before the start of the application using FMC tool. 2. Dynamically configure it within application by making API calls of fmlib. The fmlib or Frame Manager library provides an API on top of the Frame Manager driver ioctl calls, that provides a user space application with a simple way to configure driver parameters and PCD (parse - classify - distribute) rules. This patch integrates the base fmlib so that various queue config, RSS and classification related features can be supported on DPAA platform. Signed-off-by: Sachin Saxena <sachin.saxena@nxp.com> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
51 lines
1.5 KiB
C
51 lines
1.5 KiB
C
/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
|
|
* Copyright 2009-2012 Freescale Semiconductor Inc.
|
|
* Copyright 2017-2020 NXP
|
|
*/
|
|
|
|
#ifndef __DPAA_INTEGRATION_H
|
|
#define __DPAA_INTEGRATION_H
|
|
|
|
#include "ncsw_ext.h"
|
|
|
|
#define DPAA_VERSION 11
|
|
|
|
#define BM_MAX_NUM_OF_POOLS 64 /**< Number of buffers pools */
|
|
|
|
#define INTG_MAX_NUM_OF_FM 2
|
|
|
|
/* Ports defines */
|
|
#define FM_MAX_NUM_OF_1G_MACS 6
|
|
#define FM_MAX_NUM_OF_10G_MACS 2
|
|
#define FM_MAX_NUM_OF_MACS (FM_MAX_NUM_OF_1G_MACS + FM_MAX_NUM_OF_10G_MACS)
|
|
#define FM_MAX_NUM_OF_OH_PORTS 6
|
|
|
|
#define FM_MAX_NUM_OF_1G_RX_PORTS FM_MAX_NUM_OF_1G_MACS
|
|
#define FM_MAX_NUM_OF_10G_RX_PORTS FM_MAX_NUM_OF_10G_MACS
|
|
#define FM_MAX_NUM_OF_RX_PORTS \
|
|
(FM_MAX_NUM_OF_10G_RX_PORTS + FM_MAX_NUM_OF_1G_RX_PORTS)
|
|
|
|
#define FM_MAX_NUM_OF_1G_TX_PORTS FM_MAX_NUM_OF_1G_MACS
|
|
#define FM_MAX_NUM_OF_10G_TX_PORTS FM_MAX_NUM_OF_10G_MACS
|
|
#define FM_MAX_NUM_OF_TX_PORTS \
|
|
(FM_MAX_NUM_OF_10G_TX_PORTS + FM_MAX_NUM_OF_1G_TX_PORTS)
|
|
|
|
#define FM_PORT_MAX_NUM_OF_EXT_POOLS 4
|
|
/**< Number of external BM pools per Rx port */
|
|
#define FM_NUM_CONG_GRPS 256
|
|
/**< Total number of congestion groups in QM */
|
|
#define FM_MAX_NUM_OF_SUB_PORTALS 16
|
|
#define FM_PORT_MAX_NUM_OF_OBSERVED_EXT_POOLS 0
|
|
|
|
/* PCD defines */
|
|
#define FM_PCD_PLCR_NUM_ENTRIES 256
|
|
/**< Total number of policer profiles */
|
|
#define FM_PCD_KG_NUM_OF_SCHEMES 32
|
|
/**< Total number of KG schemes */
|
|
#define FM_PCD_MAX_NUM_OF_CLS_PLANS 256
|
|
/**< Number of classification plan entries. */
|
|
|
|
#define FM_MAX_PFC_PRIO 8
|
|
|
|
#endif /* __DPAA_INTEGRATION_H */
|