nfp: add CPP access core
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 9 Feb 2017 17:17:29 +0000 (09:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 20:52:25 +0000 (15:52 -0500)
commit4cb584e0ee7df70fd0376aee60cf701855ea8c81
tree9f114b0d0ffe19e733eb107132ac258be7d39173
parent2633beb99b81f4dd005f99aabd98c8afa056c528
nfp: add CPP access core

Command Push Pull is the name of NFP's network on a chip.
PCIe PF can access the interconnect through a number of mappings
controlled via Base Access Registers.  BARs allow the PF to issue
pretty much any command or address any memory on the chip.

Add appropriate logic and a handful of helper for simple operations
like reading scalars from memories.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/Makefile
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000/nfp6000.h [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000/nfp_xpb.h [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.h [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_arm.h [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cpplib.c [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c [new file with mode: 0644]