net/bnxt: add initial TruFlow core session open
[dpdk.git] / drivers / net / bnxt / tf_core / tf_msg.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019-2020 Broadcom
3  * All rights reserved.
4  */
5
6 #ifndef _TF_MSG_H_
7 #define _TF_MSG_H_
8
9 #include "tf_rm.h"
10
11 struct tf;
12
13 /**
14  * Sends session open request to Firmware
15  *
16  * [in] session
17  *   Pointer to session handle
18  *
19  * [in] ctrl_chan_name
20  *   PCI name of the control channel
21  *
22  * [in/out] fw_session_id
23  *   Pointer to the fw_session_id that is allocated on firmware side
24  *
25  * Returns:
26  *
27  */
28 int tf_msg_session_open(struct tf *tfp,
29                         char *ctrl_chan_name,
30                         uint8_t *fw_session_id);
31
32 /**
33  * Sends session query config request to TF Firmware
34  */
35 int tf_msg_session_qcfg(struct tf *tfp);
36
37 /**
38  * Sends session HW resource query capability request to TF Firmware
39  */
40 int tf_msg_session_hw_resc_qcaps(struct tf *tfp,
41                                  enum tf_dir dir,
42                                  struct tf_rm_hw_query *hw_query);
43
44 #endif  /* _TF_MSG_H_ */