/* SPDX-License-Identifier: GPL-2.0-only */ /* * QLogic iSCSI Offload Driver * Copyright (c) 2016 Cavium Inc. */ #ifndef _QEDI_ISCSI_H_ #define _QEDI_ISCSI_H_ #include <linux/socket.h> #include <linux/completion.h> #include "qedi.h" #define ISCSI_MAX_SESS_PER_HBA … #define DEF_KA_TIMEOUT … #define DEF_KA_INTERVAL … #define DEF_KA_MAX_PROBE_COUNT … #define DEF_TOS … #define DEF_TTL … #define DEF_SND_SEQ_SCALE … #define DEF_RCV_BUF … #define DEF_SND_BUF … #define DEF_SEED … #define DEF_MAX_RT_TIME … #define DEF_MAX_DA_COUNT … #define DEF_SWS_TIMER … #define DEF_MAX_CWND … #define DEF_PATH_MTU … #define DEF_MSS … #define DEF_LL2_MTU … #define JUMBO_MTU … #define MIN_MTU … #define IPV4_HDR_LEN … #define IPV6_HDR_LEN … #define TCP_HDR_LEN … #define TCP_OPTION_LEN … #define VLAN_LEN … enum { … }; struct qedi_conn; struct qedi_endpoint { … }; #define QEDI_SQ_WQES_MIN … struct qedi_io_bdt { … }; /** * struct generic_pdu_resc - login pdu resource structure * * @req_buf: driver buffer used to stage payload associated with * the login request * @req_dma_addr: dma address for iscsi login request payload buffer * @req_buf_size: actual login request payload length * @req_wr_ptr: pointer into login request buffer when next data is * to be written * @resp_hdr: iscsi header where iscsi login response header is to * be recreated * @resp_buf: buffer to stage login response payload * @resp_dma_addr: login response payload buffer dma address * @resp_buf_size: login response paylod length * @resp_wr_ptr: pointer into login response buffer when next data is * to be written * @req_bd_tbl: iscsi login request payload BD table * @req_bd_dma: login request BD table dma address * @resp_bd_tbl: iscsi login response payload BD table * @resp_bd_dma: login request BD table dma address * * following structure defines buffer info for generic pdus such as iSCSI Login, * Logout and NOP */ struct generic_pdu_resc { … }; struct qedi_conn { … }; struct qedi_cmd { … }; struct qedi_work_map { … }; struct qedi_boot_target { … }; #define qedi_set_itt(task_id, itt) … #define qedi_get_itt(cqe) … #define QEDI_OFLD_WAIT_STATE(q) … #endif /* _QEDI_ISCSI_H_ */