1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright 2014 Cisco Systems, Inc. All rights reserved. */
7 #define VNIC_SNIC_WQ_DESCS_MIN 64
8 #define VNIC_SNIC_WQ_DESCS_MAX 1024
10 #define VNIC_SNIC_MAXDATAFIELDSIZE_MIN 256
11 #define VNIC_SNIC_MAXDATAFIELDSIZE_MAX 2112
13 #define VNIC_SNIC_IO_THROTTLE_COUNT_MIN 1
14 #define VNIC_SNIC_IO_THROTTLE_COUNT_MAX 1024
16 #define VNIC_SNIC_PORT_DOWN_TIMEOUT_MIN 0
17 #define VNIC_SNIC_PORT_DOWN_TIMEOUT_MAX 240000
19 #define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MIN 0
20 #define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MAX 255
22 #define VNIC_SNIC_LUNS_PER_TARGET_MIN 1
23 #define VNIC_SNIC_LUNS_PER_TARGET_MAX 1024
25 /* Device-specific region: scsi configuration */
26 struct vnic_snic_config
{
28 u32 wq_enet_desc_count
;
29 u32 io_throttle_count
;
30 u32 port_down_timeout
;
31 u32 port_down_io_retries
;
40 #endif /* _VNIC_SNIC_H_ */