qedi_hsi.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_HSI__
  10. #define __QEDI_HSI__
  11. /*
  12. * Add include to common target
  13. */
  14. #include <linux/qed/common_hsi.h>
  15. /*
  16. * Add include to common storage target
  17. */
  18. #include <linux/qed/storage_common.h>
  19. /*
  20. * Add include to common TCP target
  21. */
  22. #include <linux/qed/tcp_common.h>
  23. /*
  24. * Add include to common iSCSI target for both eCore and protocol driver
  25. */
  26. #include <linux/qed/iscsi_common.h>
  27. /*
  28. * iSCSI CMDQ element
  29. */
  30. struct iscsi_cmdqe {
  31. __le16 conn_id;
  32. u8 invalid_command;
  33. u8 cmd_hdr_type;
  34. __le32 reserved1[2];
  35. __le32 cmd_payload[13];
  36. };
  37. /*
  38. * iSCSI CMD header type
  39. */
  40. enum iscsi_cmd_hdr_type {
  41. ISCSI_CMD_HDR_TYPE_BHS_ONLY /* iSCSI BHS with no expected AHS */,
  42. ISCSI_CMD_HDR_TYPE_BHS_W_AHS /* iSCSI BHS with expected AHS */,
  43. ISCSI_CMD_HDR_TYPE_AHS /* iSCSI AHS */,
  44. MAX_ISCSI_CMD_HDR_TYPE
  45. };
  46. #endif /* __QEDI_HSI__ */