18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright 2014 Cisco Systems, Inc. All rights reserved. 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * This program is free software; you may redistribute it and/or modify 58c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License as published by 68c2ecf20Sopenharmony_ci * the Free Software Foundation; version 2 of the License. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 98c2ecf20Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 108c2ecf20Sopenharmony_ci * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 118c2ecf20Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 128c2ecf20Sopenharmony_ci * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 138c2ecf20Sopenharmony_ci * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 148c2ecf20Sopenharmony_ci * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 158c2ecf20Sopenharmony_ci * SOFTWARE. 168c2ecf20Sopenharmony_ci */ 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#ifndef _VNIC_SNIC_H_ 198c2ecf20Sopenharmony_ci#define _VNIC_SNIC_H_ 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#define VNIC_SNIC_WQ_DESCS_MIN 64 228c2ecf20Sopenharmony_ci#define VNIC_SNIC_WQ_DESCS_MAX 1024 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#define VNIC_SNIC_MAXDATAFIELDSIZE_MIN 256 258c2ecf20Sopenharmony_ci#define VNIC_SNIC_MAXDATAFIELDSIZE_MAX 2112 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#define VNIC_SNIC_IO_THROTTLE_COUNT_MIN 1 288c2ecf20Sopenharmony_ci#define VNIC_SNIC_IO_THROTTLE_COUNT_MAX 1024 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#define VNIC_SNIC_PORT_DOWN_TIMEOUT_MIN 0 318c2ecf20Sopenharmony_ci#define VNIC_SNIC_PORT_DOWN_TIMEOUT_MAX 240000 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci#define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MIN 0 348c2ecf20Sopenharmony_ci#define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MAX 255 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci#define VNIC_SNIC_LUNS_PER_TARGET_MIN 1 378c2ecf20Sopenharmony_ci#define VNIC_SNIC_LUNS_PER_TARGET_MAX 1024 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci/* Device-specific region: scsi configuration */ 408c2ecf20Sopenharmony_cistruct vnic_snic_config { 418c2ecf20Sopenharmony_ci u32 flags; 428c2ecf20Sopenharmony_ci u32 wq_enet_desc_count; 438c2ecf20Sopenharmony_ci u32 io_throttle_count; 448c2ecf20Sopenharmony_ci u32 port_down_timeout; 458c2ecf20Sopenharmony_ci u32 port_down_io_retries; 468c2ecf20Sopenharmony_ci u32 luns_per_tgt; 478c2ecf20Sopenharmony_ci u16 maxdatafieldsize; 488c2ecf20Sopenharmony_ci u16 intr_timer; 498c2ecf20Sopenharmony_ci u8 intr_timer_type; 508c2ecf20Sopenharmony_ci u8 _resvd2; 518c2ecf20Sopenharmony_ci u8 xpt_type; 528c2ecf20Sopenharmony_ci u8 hid; 538c2ecf20Sopenharmony_ci}; 548c2ecf20Sopenharmony_ci#endif /* _VNIC_SNIC_H_ */ 55