X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fnfp%2Fnfp_nspu.h;h=8c33835e5ee93b62e633c5b6f9670bf03984aea9;hb=3fc8de4f8df4a5f9ca23b0bc2d1ab592719c5daf;hp=c439700780c069735a513491ef6eefb94935b2b3;hpb=1e37fb52c6f4fe2820a7967d196cab39b332644b;p=dpdk.git diff --git a/drivers/net/nfp/nfp_nspu.h b/drivers/net/nfp/nfp_nspu.h index c439700780..8c33835e5e 100644 --- a/drivers/net/nfp/nfp_nspu.h +++ b/drivers/net/nfp/nfp_nspu.h @@ -57,6 +57,9 @@ * the fast path. */ +#include +#include "nfp_net_eth.h" + typedef struct { int nfp; /* NFP device */ int pcie_bar; /* PF PCI BAR to work with */ @@ -67,9 +70,14 @@ typedef struct { uint64_t windowsz; /* NSPU BAR window size */ void *cfg_base; /* Expansion BARs address */ void *mem_base; /* NSP interface */ + rte_spinlock_t nsp_lock; } nspu_desc_t; int nfp_nspu_init(nspu_desc_t *desc, int nfp, int pcie_bar, size_t pcie_barsz, int exp_bar, void *exp_bar_cfg_base, void *exp_bar_mmap); int nfp_nsp_get_abi_version(nspu_desc_t *desc, int *major, int *minor); int nfp_nsp_fw_setup(nspu_desc_t *desc, const char *sym, uint64_t *pcie_offset); +int nfp_nsp_map_ctrl_bar(nspu_desc_t *desc, uint64_t *pcie_offset); +void nfp_nsp_map_queues_bar(nspu_desc_t *desc, uint64_t *pcie_offset); +int nfp_nsp_eth_config(nspu_desc_t *desc, int port, int up); +int nfp_nsp_eth_read_table(nspu_desc_t *desc, union eth_table_entry **table);