1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2019-2020 Broadcom
14 * Sends session open request to Firmware
17 * Pointer to session handle
20 * PCI name of the control channel
22 * [in/out] fw_session_id
23 * Pointer to the fw_session_id that is allocated on firmware side
28 int tf_msg_session_open(struct tf *tfp,
30 uint8_t *fw_session_id);
33 * Sends session close request to Firmware
36 * Pointer to session handle
39 * Pointer to the fw_session_id that is assigned to the session at
40 * time of session open
45 int tf_msg_session_attach(struct tf *tfp,
46 char *ctrl_channel_name,
47 uint8_t tf_fw_session_id);
50 * Sends session close request to Firmware
53 * Pointer to session handle
58 int tf_msg_session_close(struct tf *tfp);
61 * Sends session query config request to TF Firmware
63 int tf_msg_session_qcfg(struct tf *tfp);
66 * Sends session HW resource query capability request to TF Firmware
68 int tf_msg_session_hw_resc_qcaps(struct tf *tfp,
70 struct tf_rm_hw_query *hw_query);
73 * Sends session HW resource allocation request to TF Firmware
75 int tf_msg_session_hw_resc_alloc(struct tf *tfp,
77 struct tf_rm_hw_alloc *hw_alloc,
78 struct tf_rm_entry *hw_entry);
81 * Sends session HW resource free request to TF Firmware
83 int tf_msg_session_hw_resc_free(struct tf *tfp,
85 struct tf_rm_entry *hw_entry);
86 #endif /* _TF_MSG_H_ */