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);
88 * Sends session HW resource flush request to TF Firmware
90 int tf_msg_session_hw_resc_flush(struct tf *tfp,
92 struct tf_rm_entry *hw_entry);
95 * Sends session SRAM resource query capability request to TF Firmware
97 int tf_msg_session_sram_resc_qcaps(struct tf *tfp,
99 struct tf_rm_sram_query *sram_query);
102 * Sends session SRAM resource allocation request to TF Firmware
104 int tf_msg_session_sram_resc_alloc(struct tf *tfp,
106 struct tf_rm_sram_alloc *sram_alloc,
107 struct tf_rm_entry *sram_entry);
110 * Sends session SRAM resource free request to TF Firmware
112 int tf_msg_session_sram_resc_free(struct tf *tfp,
114 struct tf_rm_entry *sram_entry);
117 * Sends session SRAM resource flush request to TF Firmware
119 int tf_msg_session_sram_resc_flush(struct tf *tfp,
121 struct tf_rm_entry *sram_entry);
124 * Sends tcam entry 'set' to the Firmware.
127 * Pointer to session handle
130 * Pointer to set parameters
133 * 0 on Success else internal Truflow error
135 int tf_msg_tcam_entry_set(struct tf *tfp,
136 struct tf_set_tcam_entry_parms *parms);
139 * Sends tcam entry 'free' to the Firmware.
142 * Pointer to session handle
145 * Pointer to free parameters
148 * 0 on Success else internal Truflow error
150 int tf_msg_tcam_entry_free(struct tf *tfp,
151 struct tf_free_tcam_entry_parms *parms);
153 #endif /* _TF_MSG_H_ */