Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

mlx_nvconfig_defaults.h 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #ifndef MLX_NVCONFIG_DEFAULTS_H_
  2. #define MLX_NVCONFIG_DEFAULTS_H_
  3. /*
  4. * Copyright (C) 2015 Mellanox Technologies Ltd.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of the
  9. * License, or any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19. * 02110-1301, USA.
  20. */
  21. FILE_LICENCE ( GPL2_OR_LATER );
  22. #include "mlx_nvconfig_prm.h"
  23. /*
  24. * Default values
  25. */
  26. #define DEFAULT_FLEXBOOT_MENU_TO 4
  27. #define DEFAULT_MAX_VFS 8
  28. #define DEFAULT_BOOT_PROTOCOL 1
  29. #define DEFAULT_OPTION_ROM_EN 1
  30. #define DEFAULT_BOOT_VLAN 1
  31. #define DEFAULT_ISCSI_DHCP_PARAM_EN 1
  32. #define DEFAULT_ISCSI_IPV4_DHCP_EN 1
  33. #define DEFAULT_OCSD_OCBB_EN 1
  34. #define DEFAULT_BOOT_IP_VER 0
  35. #define DEFAULT_BOOT_LINK_UP_TO 0
  36. struct mlx_nvconfig_port_conf_defaults {
  37. mlx_uint8 pptx;
  38. mlx_uint8 pprx;
  39. mlx_boolean boot_option_rom_en;
  40. mlx_boolean boot_vlan_en;
  41. mlx_uint8 boot_retry_count;
  42. mlx_uint8 boot_protocol;
  43. mlx_uint8 boot_vlan;
  44. mlx_uint8 boot_pkey;
  45. mlx_boolean en_wol_magic;
  46. mlx_uint8 network_link_type;
  47. mlx_uint8 iscsi_boot_to_target;
  48. mlx_boolean iscsi_vlan_en;
  49. mlx_boolean iscsi_tcp_timestamps_en;
  50. mlx_boolean iscsi_chap_mutual_auth_en;
  51. mlx_boolean iscsi_chap_auth_en;
  52. mlx_boolean iscsi_dhcp_params_en;
  53. mlx_boolean iscsi_ipv4_dhcp_en;
  54. mlx_uint8 iscsi_lun_busy_retry_count;
  55. mlx_uint8 iscsi_link_up_delay_time;
  56. mlx_uint8 client_identifier;
  57. mlx_uint8 mac_admin_bit;
  58. mlx_uint8 default_link_type;
  59. mlx_uint8 linkup_timeout;
  60. mlx_uint8 ip_ver;
  61. };
  62. struct mlx_nvconfig_conf_defaults {
  63. mlx_uint8 max_vfs;
  64. mlx_uint8 total_vfs;
  65. mlx_uint8 sriov_en;
  66. mlx_uint8 maximum_uar_bar_size;
  67. mlx_uint8 uar_bar_size;
  68. mlx_uint8 flexboot_menu_to;
  69. mlx_boolean ocsd_ocbb_en;
  70. };
  71. mlx_status
  72. nvconfig_read_port_default_values(
  73. IN mlx_utils *utils,
  74. IN mlx_uint8 port,
  75. OUT struct mlx_nvconfig_port_conf_defaults *port_conf_def
  76. );
  77. mlx_status
  78. nvconfig_read_general_default_values(
  79. IN mlx_utils *utils,
  80. OUT struct mlx_nvconfig_conf_defaults *conf_def
  81. );
  82. mlx_status
  83. nvconfig_read_rom_ini_values(
  84. IN mlx_utils *utils,
  85. OUT struct mlx_nvcofnig_romini *rom_ini
  86. );
  87. #endif /* MLX_NVCONFIG_DEFAULTS_H_ */