cxgb4i.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * cxgb4i.h: Chelsio T4 iSCSI driver.
  3. *
  4. * Copyright (c) 2010-2015 Chelsio Communications, Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation.
  9. *
  10. * Written by: Karen Xie (kxie@chelsio.com)
  11. * Written by: Rakesh Ranjan (rranjan@chelsio.com)
  12. */
  13. #ifndef __CXGB4I_H__
  14. #define __CXGB4I_H__
  15. #define CXGB4I_SCSI_HOST_QDEPTH 1024
  16. #define CXGB4I_MAX_CONN 16384
  17. #define CXGB4I_MAX_TARGET CXGB4I_MAX_CONN
  18. #define CXGB4I_MAX_LUN 0x1000
  19. /* for TX: a skb must have a headroom of at least TX_HEADER_LEN bytes */
  20. #define CXGB4I_TX_HEADER_LEN \
  21. (sizeof(struct fw_ofld_tx_data_wr) + sizeof(struct sge_opaque_hdr))
  22. #define T5_ISS_VALID (1 << 18)
  23. struct ulptx_idata {
  24. __be32 cmd_more;
  25. __be32 len;
  26. };
  27. struct cpl_rx_data_ddp {
  28. union opcode_tid ot;
  29. __be16 urg;
  30. __be16 len;
  31. __be32 seq;
  32. union {
  33. __be32 nxt_seq;
  34. __be32 ddp_report;
  35. };
  36. __be32 ulp_crc;
  37. __be32 ddpvld;
  38. };
  39. #endif /* __CXGB4I_H__ */