162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/* Copyright 2014 Cisco Systems, Inc.  All rights reserved. */
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#ifndef _VNIC_SNIC_H_
562306a36Sopenharmony_ci#define _VNIC_SNIC_H_
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#define VNIC_SNIC_WQ_DESCS_MIN              64
862306a36Sopenharmony_ci#define VNIC_SNIC_WQ_DESCS_MAX              1024
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci#define VNIC_SNIC_MAXDATAFIELDSIZE_MIN      256
1162306a36Sopenharmony_ci#define VNIC_SNIC_MAXDATAFIELDSIZE_MAX      2112
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#define VNIC_SNIC_IO_THROTTLE_COUNT_MIN     1
1462306a36Sopenharmony_ci#define VNIC_SNIC_IO_THROTTLE_COUNT_MAX     1024
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci#define VNIC_SNIC_PORT_DOWN_TIMEOUT_MIN     0
1762306a36Sopenharmony_ci#define VNIC_SNIC_PORT_DOWN_TIMEOUT_MAX     240000
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MIN  0
2062306a36Sopenharmony_ci#define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MAX  255
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci#define VNIC_SNIC_LUNS_PER_TARGET_MIN       1
2362306a36Sopenharmony_ci#define VNIC_SNIC_LUNS_PER_TARGET_MAX       1024
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci/* Device-specific region: scsi configuration */
2662306a36Sopenharmony_cistruct vnic_snic_config {
2762306a36Sopenharmony_ci	u32 flags;
2862306a36Sopenharmony_ci	u32 wq_enet_desc_count;
2962306a36Sopenharmony_ci	u32 io_throttle_count;
3062306a36Sopenharmony_ci	u32 port_down_timeout;
3162306a36Sopenharmony_ci	u32 port_down_io_retries;
3262306a36Sopenharmony_ci	u32 luns_per_tgt;
3362306a36Sopenharmony_ci	u16 maxdatafieldsize;
3462306a36Sopenharmony_ci	u16 intr_timer;
3562306a36Sopenharmony_ci	u8 intr_timer_type;
3662306a36Sopenharmony_ci	u8 _resvd2;
3762306a36Sopenharmony_ci	u8 xpt_type;
3862306a36Sopenharmony_ci	u8 hid;
3962306a36Sopenharmony_ci};
4062306a36Sopenharmony_ci#endif /* _VNIC_SNIC_H_ */
41