qedi_fw_scsi.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * QLogic iSCSI Offload Driver
  3. * Copyright (c) 2016 Cavium Inc.
  4. *
  5. * This software is available under the terms of the GNU General Public License
  6. * (GPL) Version 2, available from the file COPYING in the main directory of
  7. * this source tree.
  8. */
  9. #ifndef _QEDI_FW_SCSI_H_
  10. #define _QEDI_FW_SCSI_H_
  11. #include <linux/types.h>
  12. #include <asm/byteorder.h>
  13. #include "qedi_hsi.h"
  14. #include <linux/qed/qed_if.h>
  15. struct scsi_sgl_task_params {
  16. struct scsi_sge *sgl;
  17. struct regpair sgl_phys_addr;
  18. u32 total_buffer_size;
  19. u16 num_sges;
  20. bool small_mid_sge;
  21. };
  22. struct scsi_dif_task_params {
  23. u32 initial_ref_tag;
  24. bool initial_ref_tag_is_valid;
  25. u16 application_tag;
  26. u16 application_tag_mask;
  27. u16 dif_block_size_log;
  28. bool dif_on_network;
  29. bool dif_on_host;
  30. u8 host_guard_type;
  31. u8 protection_type;
  32. u8 ref_tag_mask;
  33. bool crc_seed;
  34. bool tx_dif_conn_err_en;
  35. bool ignore_app_tag;
  36. bool keep_ref_tag_const;
  37. bool validate_guard;
  38. bool validate_app_tag;
  39. bool validate_ref_tag;
  40. bool forward_guard;
  41. bool forward_app_tag;
  42. bool forward_ref_tag;
  43. bool forward_app_tag_with_mask;
  44. bool forward_ref_tag_with_mask;
  45. };
  46. struct scsi_initiator_cmd_params {
  47. struct scsi_sge extended_cdb_sge;
  48. struct regpair sense_data_buffer_phys_addr;
  49. };
  50. #endif