2010-08-17 03:55:53 +00:00
|
|
|
/*
|
|
|
|
* cxgb4i.h: Chelsio T4 iSCSI driver.
|
|
|
|
*
|
2015-04-10 20:57:15 +00:00
|
|
|
* Copyright (c) 2010-2015 Chelsio Communications, Inc.
|
2010-08-17 03:55:53 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Written by: Karen Xie (kxie@chelsio.com)
|
|
|
|
* Written by: Rakesh Ranjan (rranjan@chelsio.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CXGB4I_H__
|
|
|
|
#define __CXGB4I_H__
|
|
|
|
|
|
|
|
#define CXGB4I_SCSI_HOST_QDEPTH 1024
|
|
|
|
#define CXGB4I_MAX_CONN 16384
|
|
|
|
#define CXGB4I_MAX_TARGET CXGB4I_MAX_CONN
|
|
|
|
#define CXGB4I_MAX_LUN 0x1000
|
|
|
|
|
|
|
|
/* for TX: a skb must have a headroom of at least TX_HEADER_LEN bytes */
|
|
|
|
#define CXGB4I_TX_HEADER_LEN \
|
|
|
|
(sizeof(struct fw_ofld_tx_data_wr) + sizeof(struct sge_opaque_hdr))
|
|
|
|
|
2015-04-10 20:57:21 +00:00
|
|
|
#define T5_ISS_VALID (1 << 18)
|
|
|
|
|
2010-09-23 23:43:23 +00:00
|
|
|
struct ulptx_idata {
|
|
|
|
__be32 cmd_more;
|
|
|
|
__be32 len;
|
|
|
|
};
|
|
|
|
|
2010-08-17 03:55:53 +00:00
|
|
|
struct cpl_rx_data_ddp {
|
|
|
|
union opcode_tid ot;
|
|
|
|
__be16 urg;
|
|
|
|
__be16 len;
|
|
|
|
__be32 seq;
|
|
|
|
union {
|
|
|
|
__be32 nxt_seq;
|
|
|
|
__be32 ddp_report;
|
|
|
|
};
|
|
|
|
__be32 ulp_crc;
|
|
|
|
__be32 ddpvld;
|
|
|
|
};
|
|
|
|
#endif /* __CXGB4I_H__ */
|