nfp: add support for resources
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 9 Feb 2017 17:17:30 +0000 (09:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 20:52:25 +0000 (15:52 -0500)
commitf01a2161577d31b14581e0db3bbbdfa963f145b6
tree9bc73d9d199e4ca8f3f3865a4ba771a6deebd9c8
parent4cb584e0ee7df70fd0376aee60cf701855ea8c81
nfp: add support for resources

Resource table is an array placed in a well defined location
in device's memory which describes device resources and contains
locks which have to be acquired to use them.

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/crc32.h [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfpcore/nfp.h [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c [new file with mode: 0644]