vnic_snic.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright 2014 Cisco Systems, Inc. All rights reserved.
  3. *
  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.
  7. *
  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
  15. * SOFTWARE.
  16. */
  17. #ifndef _VNIC_SNIC_H_
  18. #define _VNIC_SNIC_H_
  19. #define VNIC_SNIC_WQ_DESCS_MIN 64
  20. #define VNIC_SNIC_WQ_DESCS_MAX 1024
  21. #define VNIC_SNIC_MAXDATAFIELDSIZE_MIN 256
  22. #define VNIC_SNIC_MAXDATAFIELDSIZE_MAX 2112
  23. #define VNIC_SNIC_IO_THROTTLE_COUNT_MIN 1
  24. #define VNIC_SNIC_IO_THROTTLE_COUNT_MAX 1024
  25. #define VNIC_SNIC_PORT_DOWN_TIMEOUT_MIN 0
  26. #define VNIC_SNIC_PORT_DOWN_TIMEOUT_MAX 240000
  27. #define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MIN 0
  28. #define VNIC_SNIC_PORT_DOWN_IO_RETRIES_MAX 255
  29. #define VNIC_SNIC_LUNS_PER_TARGET_MIN 1
  30. #define VNIC_SNIC_LUNS_PER_TARGET_MAX 1024
  31. /* Device-specific region: scsi configuration */
  32. struct vnic_snic_config {
  33. u32 flags;
  34. u32 wq_enet_desc_count;
  35. u32 io_throttle_count;
  36. u32 port_down_timeout;
  37. u32 port_down_io_retries;
  38. u32 luns_per_tgt;
  39. u16 maxdatafieldsize;
  40. u16 intr_timer;
  41. u8 intr_timer_type;
  42. u8 _resvd2;
  43. u8 xpt_type;
  44. u8 hid;
  45. };
  46. #endif /* _VNIC_SNIC_H_ */