1*dfb99b05SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2*dfb99b05SThomas Gleixner /* Copyright 2014 Cisco Systems, Inc. All rights reserved. */ 3c8806b6cSNarsimhulu Musini 4c8806b6cSNarsimhulu Musini #ifndef _VNIC_SNIC_H_ 5c8806b6cSNarsimhulu Musini #define _VNIC_SNIC_H_ 6c8806b6cSNarsimhulu Musini 7c8806b6cSNarsimhulu Musini #define VNIC_SNIC_WQ_DESCS_MIN 64 8c8806b6cSNarsimhulu Musini #define VNIC_SNIC_WQ_DESCS_MAX 1024 9c8806b6cSNarsimhulu Musini 10c8806b6cSNarsimhulu Musini #define VNIC_SNIC_MAXDATAFIELDSIZE_MIN 256 11c8806b6cSNarsimhulu Musini #define VNIC_SNIC_MAXDATAFIELDSIZE_MAX 2112 12c8806b6cSNarsimhulu Musini 13c8806b6cSNarsimhulu Musini #define VNIC_SNIC_IO_THROTTLE_COUNT_MIN 1 14c8806b6cSNarsimhulu Musini #define VNIC_SNIC_IO_THROTTLE_COUNT_MAX 1024 15c8806b6cSNarsimhulu Musini 16c8806b6cSNarsimhulu Musini #define VNIC_SNIC_PORT_DOWN_TIMEOUT_MIN 0 17c8806b6cSNarsimhulu Musini #define VNIC_SNIC_PORT_DOWN_TIMEOUT_MAX 240000 18c8806b6cSNarsimhulu Musini 19c8806b6cSNarsimhulu Musini #define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MIN 0 20c8806b6cSNarsimhulu Musini #define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MAX 255 21c8806b6cSNarsimhulu Musini 22c8806b6cSNarsimhulu Musini #define VNIC_SNIC_LUNS_PER_TARGET_MIN 1 23c8806b6cSNarsimhulu Musini #define VNIC_SNIC_LUNS_PER_TARGET_MAX 1024 24c8806b6cSNarsimhulu Musini 25c8806b6cSNarsimhulu Musini /* Device-specific region: scsi configuration */ 26c8806b6cSNarsimhulu Musini struct vnic_snic_config { 27c8806b6cSNarsimhulu Musini u32 flags; 28c8806b6cSNarsimhulu Musini u32 wq_enet_desc_count; 29c8806b6cSNarsimhulu Musini u32 io_throttle_count; 30c8806b6cSNarsimhulu Musini u32 port_down_timeout; 31c8806b6cSNarsimhulu Musini u32 port_down_io_retries; 32c8806b6cSNarsimhulu Musini u32 luns_per_tgt; 33c8806b6cSNarsimhulu Musini u16 maxdatafieldsize; 34c8806b6cSNarsimhulu Musini u16 intr_timer; 35c8806b6cSNarsimhulu Musini u8 intr_timer_type; 36c8806b6cSNarsimhulu Musini u8 _resvd2; 37c8806b6cSNarsimhulu Musini u8 xpt_type; 38c8806b6cSNarsimhulu Musini u8 hid; 39c8806b6cSNarsimhulu Musini }; 40c8806b6cSNarsimhulu Musini #endif /* _VNIC_SNIC_H_ */ 41