#include <linux/lockdep.h>
#include <linux/netdevice.h>
#include "nfpcore/nfp_cpp.h"
#include "nfpcore/nfp_nsp.h"
#include "nfp_app.h"
#include "nfp_main.h"
#include "nfp_net.h"
#include "nfp_port.h"
struct nfp_port *nfp_port_from_netdev(struct net_device *netdev)
{ … }
int nfp_port_get_port_parent_id(struct net_device *netdev,
struct netdev_phys_item_id *ppid)
{ … }
int nfp_port_setup_tc(struct net_device *netdev, enum tc_setup_type type,
void *type_data)
{ … }
int nfp_port_set_features(struct net_device *netdev, netdev_features_t features)
{ … }
struct nfp_eth_table_port *__nfp_port_get_eth_port(struct nfp_port *port)
{ … }
struct nfp_eth_table_port *nfp_port_get_eth_port(struct nfp_port *port)
{ … }
int
nfp_port_get_phys_port_name(struct net_device *netdev, char *name, size_t len)
{ … }
int nfp_port_configure(struct net_device *netdev, bool configed)
{ … }
int nfp_port_init_phy_port(struct nfp_pf *pf, struct nfp_app *app,
struct nfp_port *port, unsigned int id)
{ … }
struct nfp_port *
nfp_port_alloc(struct nfp_app *app, enum nfp_port_type type,
struct net_device *netdev)
{ … }
void nfp_port_free(struct nfp_port *port)
{ … }