Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
0002 /* Copyright 2021 Marvell. All rights reserved. */
0003 
0004 #ifndef _QED_NVMETCP_FW_FUNCS_H
0005 #define _QED_NVMETCP_FW_FUNCS_H
0006 
0007 #include <linux/kernel.h>
0008 #include <linux/module.h>
0009 #include <linux/pci.h>
0010 #include <linux/list.h>
0011 #include <linux/mm.h>
0012 #include <linux/types.h>
0013 #include <asm/byteorder.h>
0014 #include <linux/qed/common_hsi.h>
0015 #include <linux/qed/storage_common.h>
0016 #include <linux/qed/nvmetcp_common.h>
0017 #include <linux/qed/qed_nvmetcp_if.h>
0018 
0019 #if IS_ENABLED(CONFIG_QED_NVMETCP)
0020 
0021 void init_nvmetcp_host_read_task(struct nvmetcp_task_params *task_params,
0022                  struct nvme_tcp_cmd_pdu *cmd_pdu_header,
0023                  struct nvme_command *nvme_cmd,
0024                  struct storage_sgl_task_params *sgl_task_params);
0025 void init_nvmetcp_host_write_task(struct nvmetcp_task_params *task_params,
0026                   struct nvme_tcp_cmd_pdu *cmd_pdu_header,
0027                   struct nvme_command *nvme_cmd,
0028                   struct storage_sgl_task_params *sgl_task_params);
0029 void init_nvmetcp_init_conn_req_task(struct nvmetcp_task_params *task_params,
0030                      struct nvme_tcp_icreq_pdu *init_conn_req_pdu_hdr,
0031                      struct storage_sgl_task_params *tx_sgl_task_params,
0032                      struct storage_sgl_task_params *rx_sgl_task_params);
0033 void init_cleanup_task_nvmetcp(struct nvmetcp_task_params *task_params);
0034 
0035 #else /* IS_ENABLED(CONFIG_QED_NVMETCP) */
0036 
0037 #endif /* IS_ENABLED(CONFIG_QED_NVMETCP) */
0038 
0039 #endif /* _QED_NVMETCP_FW_FUNCS_H */