Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
#include <rte_dpaa_logs.h>
#include <netcfg.h>
#include <rte_dpaa_logs.h>
#include <netcfg.h>
-/* Structure contains information about all the interfaces given by user
- * on command line.
- */
-struct netcfg_interface *netcfg_interface;
-
/* This data structure contaings all configurations information
* related to usages of DPA devices.
*/
/* This data structure contaings all configurations information
* related to usages of DPA devices.
*/
/*
* Global variables of the max portal/pool number this bman version supported
*/
/*
* Global variables of the max portal/pool number this bman version supported
*/
+static void *bman_ccsr_map;
/*****************/
/* Portal driver */
/*****************/
/* Portal driver */
#define MAX_GLOBAL_PORTALS 8
static struct qman_portal global_portals[MAX_GLOBAL_PORTALS];
#define MAX_GLOBAL_PORTALS 8
static struct qman_portal global_portals[MAX_GLOBAL_PORTALS];
-rte_atomic16_t global_portals_used[MAX_GLOBAL_PORTALS];
+static rte_atomic16_t global_portals_used[MAX_GLOBAL_PORTALS];
static struct qman_portal *
qman_alloc_global_portal(void)
static struct qman_portal *
qman_alloc_global_portal(void)
u16 qm_channel_pme = QMAN_CHANNEL_PME;
/* Ccsr map address to access ccsrbased register */
u16 qm_channel_pme = QMAN_CHANNEL_PME;
/* Ccsr map address to access ccsrbased register */
+static void *qman_ccsr_map;
/* The qman clock frequency */
/* The qman clock frequency */
static __thread int qmfd = -1;
static __thread struct qm_portal_config qpcfg;
static __thread int qmfd = -1;
static __thread struct qm_portal_config qpcfg;
#define QMAN_REV31 0x0301
#define QMAN_REV32 0x0302
extern u16 qman_ip_rev; /* 0 if uninitialised, otherwise QMAN_REVx */
#define QMAN_REV31 0x0301
#define QMAN_REV32 0x0302
extern u16 qman_ip_rev; /* 0 if uninitialised, otherwise QMAN_REVx */
int qm_set_wpm(int wpm);
int qm_get_wpm(int *wpm);
int qm_set_wpm(int wpm);
int qm_get_wpm(int *wpm);
struct netcfg_info *dpaa_netcfg;
/* define a variable to hold the portal_key, once created.*/
struct netcfg_info *dpaa_netcfg;
/* define a variable to hold the portal_key, once created.*/
-pthread_key_t dpaa_portal_key;
+static pthread_key_t dpaa_portal_key;
unsigned int dpaa_svr_family;
unsigned int dpaa_svr_family;