qedi_fw_scsi.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * QLogic iSCSI Offload Driver
  4. * Copyright (c) 2016 Cavium Inc.
  5. */
  6. #ifndef _QEDI_FW_SCSI_H_
  7. #define _QEDI_FW_SCSI_H_
  8. #include <linux/types.h>
  9. #include <asm/byteorder.h>
  10. #include "qedi_hsi.h"
  11. #include <linux/qed/qed_if.h>
  12. struct scsi_sgl_task_params {
  13. struct scsi_sge *sgl;
  14. struct regpair sgl_phys_addr;
  15. u32 total_buffer_size;
  16. u16 num_sges;
  17. bool small_mid_sge;
  18. };
  19. struct scsi_dif_task_params {
  20. u32 initial_ref_tag;
  21. bool initial_ref_tag_is_valid;
  22. u16 application_tag;
  23. u16 application_tag_mask;
  24. u16 dif_block_size_log;
  25. bool dif_on_network;
  26. bool dif_on_host;
  27. u8 host_guard_type;
  28. u8 protection_type;
  29. u8 ref_tag_mask;
  30. bool crc_seed;
  31. bool tx_dif_conn_err_en;
  32. bool ignore_app_tag;
  33. bool keep_ref_tag_const;
  34. bool validate_guard;
  35. bool validate_app_tag;
  36. bool validate_ref_tag;
  37. bool forward_guard;
  38. bool forward_app_tag;
  39. bool forward_ref_tag;
  40. bool forward_app_tag_with_mask;
  41. bool forward_ref_tag_with_mask;
  42. };
  43. struct scsi_initiator_cmd_params {
  44. struct scsi_sge extended_cdb_sge;
  45. struct regpair sense_data_buffer_phys_addr;
  46. };
  47. #endif