2 * Copyright 2014 Cisco Systems, Inc. All rights reserved.
4 * This program is free software; you may redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
9 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
10 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
11 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
12 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
13 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
14 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 #define VNIC_SNIC_WQ_DESCS_MIN 64
22 #define VNIC_SNIC_WQ_DESCS_MAX 1024
24 #define VNIC_SNIC_MAXDATAFIELDSIZE_MIN 256
25 #define VNIC_SNIC_MAXDATAFIELDSIZE_MAX 2112
27 #define VNIC_SNIC_IO_THROTTLE_COUNT_MIN 1
28 #define VNIC_SNIC_IO_THROTTLE_COUNT_MAX 1024
30 #define VNIC_SNIC_PORT_DOWN_TIMEOUT_MIN 0
31 #define VNIC_SNIC_PORT_DOWN_TIMEOUT_MAX 240000
33 #define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MIN 0
34 #define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MAX 255
36 #define VNIC_SNIC_LUNS_PER_TARGET_MIN 1
37 #define VNIC_SNIC_LUNS_PER_TARGET_MAX 1024
39 /* Device-specific region: scsi configuration */
40 struct vnic_snic_config
{
42 u32 wq_enet_desc_count
;
43 u32 io_throttle_count
;
44 u32 port_down_timeout
;
45 u32 port_down_io_retries
;
54 #endif /* _VNIC_SNIC_H_ */