1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Netronome Systems, Inc.
11 #define NFP_RESOURCE_NFP_NFFW "nfp.nffw"
12 #define NFP_RESOURCE_NFP_HWINFO "nfp.info"
13 #define NFP_RESOURCE_NSP "nfp.sp"
16 * Opaque handle to a NFP Resource
20 struct nfp_resource *nfp_resource_acquire(struct nfp_cpp *cpp,
24 * Release a NFP Resource, and free the handle
25 * @param[in] res NFP Resource handle
27 void nfp_resource_release(struct nfp_resource *res);
30 * Return the CPP ID of a NFP Resource
31 * @param[in] res NFP Resource handle
32 * @return CPP ID of the NFP Resource
34 uint32_t nfp_resource_cpp_id(const struct nfp_resource *res);
37 * Return the name of a NFP Resource
38 * @param[in] res NFP Resource handle
39 * @return Name of the NFP Resource
41 const char *nfp_resource_name(const struct nfp_resource *res);
44 * Return the target address of a NFP Resource
45 * @param[in] res NFP Resource handle
46 * @return Address of the NFP Resource
48 uint64_t nfp_resource_address(const struct nfp_resource *res);
50 uint64_t nfp_resource_size(const struct nfp_resource *res);
52 #endif /* NFP_RESOURCE_H */