Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * QLogic iSCSI Offload Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * Copyright (c) 2016 Cavium Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #ifndef _QEDI_GBL_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define _QEDI_GBL_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include "qedi_iscsi.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #ifdef CONFIG_DEBUG_FS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) extern int qedi_do_not_recover;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define qedi_do_not_recover (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern uint qedi_io_tracing;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) extern struct scsi_host_template qedi_host_template;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) extern struct iscsi_transport qedi_iscsi_transport;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) extern const struct qed_iscsi_ops *qedi_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) extern const struct qedi_debugfs_ops qedi_debugfs_ops[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern const struct file_operations qedi_dbg_fops[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern struct device_attribute *qedi_shost_attrs[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) int qedi_alloc_sq(struct qedi_ctx *qedi, struct qedi_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) void qedi_free_sq(struct qedi_ctx *qedi, struct qedi_endpoint *ep);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) int qedi_send_iscsi_login(struct qedi_conn *qedi_conn,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 			  struct iscsi_task *task);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) int qedi_send_iscsi_logout(struct qedi_conn *qedi_conn,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 			   struct iscsi_task *task);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) int qedi_iscsi_abort_work(struct qedi_conn *qedi_conn,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 			  struct iscsi_task *mtask);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) int qedi_send_iscsi_text(struct qedi_conn *qedi_conn,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 			 struct iscsi_task *task);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) int qedi_send_iscsi_nopout(struct qedi_conn *qedi_conn,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 			   struct iscsi_task *task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 			   char *datap, int data_len, int unsol);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) int qedi_iscsi_send_ioreq(struct iscsi_task *task);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) int qedi_get_task_idx(struct qedi_ctx *qedi);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) void qedi_clear_task_idx(struct qedi_ctx *qedi, int idx);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) int qedi_iscsi_cleanup_task(struct iscsi_task *task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 			    bool mark_cmd_node_deleted);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) void qedi_iscsi_unmap_sg_list(struct qedi_cmd *cmd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) void qedi_update_itt_map(struct qedi_ctx *qedi, u32 tid, u32 proto_itt,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 			 struct qedi_cmd *qedi_cmd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) void qedi_get_proto_itt(struct qedi_ctx *qedi, u32 tid, u32 *proto_itt);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) void qedi_get_task_tid(struct qedi_ctx *qedi, u32 itt, int16_t *tid);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) void qedi_process_iscsi_error(struct qedi_endpoint *ep,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 			      struct iscsi_eqe_data *data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) void qedi_start_conn_recovery(struct qedi_ctx *qedi,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 			      struct qedi_conn *qedi_conn);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) struct qedi_conn *qedi_get_conn_from_id(struct qedi_ctx *qedi, u32 iscsi_cid);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) void qedi_process_tcp_error(struct qedi_endpoint *ep,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 			    struct iscsi_eqe_data *data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) void qedi_mark_device_missing(struct iscsi_cls_session *cls_session);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) void qedi_mark_device_available(struct iscsi_cls_session *cls_session);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) void qedi_reset_host_mtu(struct qedi_ctx *qedi, u16 mtu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) int qedi_recover_all_conns(struct qedi_ctx *qedi);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) void qedi_fp_process_cqes(struct qedi_work *work);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) int qedi_cleanup_all_io(struct qedi_ctx *qedi,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) 			struct qedi_conn *qedi_conn,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) 			struct iscsi_task *task, bool in_recovery);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) void qedi_trace_io(struct qedi_ctx *qedi, struct iscsi_task *task,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) 		   u16 tid, int8_t direction);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) int qedi_alloc_id(struct qedi_portid_tbl *id_tbl, u16 id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) u16 qedi_alloc_new_id(struct qedi_portid_tbl *id_tbl);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) void qedi_free_id(struct qedi_portid_tbl *id_tbl, u16 id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) int qedi_create_sysfs_ctx_attr(struct qedi_ctx *qedi);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) void qedi_remove_sysfs_ctx_attr(struct qedi_ctx *qedi);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) void qedi_clearsq(struct qedi_ctx *qedi,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) 		  struct qedi_conn *qedi_conn,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) 		  struct iscsi_task *task);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) void qedi_clear_session_ctx(struct iscsi_cls_session *cls_sess);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) #endif