net/bnxt: add initial TruFlow core session open
[dpdk.git] / drivers / net / bnxt / tf_core / tf_rm.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019-2020 Broadcom
3  * All rights reserved.
4  */
5
6 #ifndef TF_RM_H_
7 #define TF_RM_H_
8
9 #include "tf_resources.h"
10 #include "tf_core.h"
11
12 struct tf;
13 struct tf_session;
14
15 /**
16  * Resource query single entry
17  */
18 struct tf_rm_query_entry {
19         /** Minimum guaranteed number of elements */
20         uint16_t min;
21         /** Maximum non-guaranteed number of elements */
22         uint16_t max;
23 };
24
25 /**
26  * Resource query array of HW entities
27  */
28 struct tf_rm_hw_query {
29         /** array of HW resource entries */
30         struct tf_rm_query_entry hw_query[TF_RESC_TYPE_HW_MAX];
31 };
32
33 #endif /* TF_RM_H_ */