linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.h

/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later */
/*
 * Copyright 2008 - 2016 Freescale Semiconductor Inc.
 */

#ifndef __DPAA_H
#define __DPAA_H

#include <linux/netdevice.h>
#include <linux/refcount.h>
#include <net/xdp.h>
#include <soc/fsl/qman.h>
#include <soc/fsl/bman.h>

#include "fman.h"
#include "mac.h"
#include "dpaa_eth_trace.h"

/* Number of prioritised traffic classes */
#define DPAA_TC_NUM

/* More detailed FQ types - used for fine-grained WQ assignments */
enum dpaa_fq_type {};

struct dpaa_fq {};

struct dpaa_fq_cbs {};

struct dpaa_priv;

struct dpaa_bp {};

struct dpaa_rx_errors {};

/* Counters for QMan ERN frames - one counter per rejection code */
struct dpaa_ern_cnt {};

struct dpaa_napi_portal {};

struct dpaa_percpu_priv {};

struct dpaa_buffer_layout {};

/* Information to be used on the Tx confirmation path. Stored just
 * before the start of the transmit buffer. Maximum size allowed
 * is DPAA_TX_PRIV_DATA_SIZE bytes.
 */
struct dpaa_eth_swbp {};

struct dpaa_priv {};

/* from dpaa_ethtool.c */
extern const struct ethtool_ops dpaa_ethtool_ops;

/* from dpaa_eth_sysfs.c */
void dpaa_eth_sysfs_remove(struct device *dev);
void dpaa_eth_sysfs_init(struct device *dev);

static inline size_t dpaa_num_txqs_per_tc(void)
{}

/* Total number of Tx queues */
static inline size_t dpaa_max_num_txqs(void)
{}

#endif	/* __DPAA_H */