18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef ISCSI_TARGET_ERL0_H
38c2ecf20Sopenharmony_ci#define ISCSI_TARGET_ERL0_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <linux/types.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cistruct iscsi_cmd;
88c2ecf20Sopenharmony_cistruct iscsi_conn;
98c2ecf20Sopenharmony_cistruct iscsi_session;
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciextern void iscsit_set_dataout_sequence_values(struct iscsi_cmd *);
128c2ecf20Sopenharmony_ciextern int iscsit_check_pre_dataout(struct iscsi_cmd *, unsigned char *);
138c2ecf20Sopenharmony_ciextern int iscsit_check_post_dataout(struct iscsi_cmd *, unsigned char *, u8);
148c2ecf20Sopenharmony_ciextern void iscsit_start_time2retain_handler(struct iscsi_session *);
158c2ecf20Sopenharmony_ciextern void iscsit_handle_time2retain_timeout(struct timer_list *t);
168c2ecf20Sopenharmony_ciextern int iscsit_stop_time2retain_timer(struct iscsi_session *);
178c2ecf20Sopenharmony_ciextern void iscsit_connection_reinstatement_rcfr(struct iscsi_conn *);
188c2ecf20Sopenharmony_ciextern void iscsit_cause_connection_reinstatement(struct iscsi_conn *, int);
198c2ecf20Sopenharmony_ciextern void iscsit_fall_back_to_erl0(struct iscsi_session *);
208c2ecf20Sopenharmony_ciextern void iscsit_take_action_for_connection_exit(struct iscsi_conn *, bool *);
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#endif   /*** ISCSI_TARGET_ERL0_H ***/
23