22 #include "../../mlx_lib/mlx_nvconfig/mlx_nvconfig.h" 23 #include "../../include/public/mlx_memory.h" 24 #include "../../include/public/mlx_bail.h" 25 #include "../../mlx_lib/mlx_nvconfig/mlx_nvconfig_defaults.h" 31 OUT void *def_struct);
34 #define TlvDefaultEntry( _tlv_type, _data_size, _set_defaults) { \ 35 .tlv_type = _tlv_type, \ 36 .data_size = sizeof ( _data_size ), \ 37 .set_defaults = _set_defaults, \ 57 "TLV not found. Using hard-coded defaults ");
86 "TLV not found. Using hard-coded defaults ");
113 "TLV not found. Using hard-coded defaults ");
140 "nvconfig_nvdata_default_access failed ");
160 "nvconfig_nvdata_default_access failed ");
172 OUT void *def_struct)
180 "nvconfig_nvdata_default_access failed ");
211 "nvconfig_nvdata_default_access failed ");
229 "TLV not found. Using hard-coded defaults ");
254 "nvconfig_nvdata_default_access failed ");
276 "TLV not found. Using hard-coded defaults ");
301 "TLV not found. Using hard-coded defaults ");
326 "nvconfig_nvdata_default_access failed ");
344 "TLV not found. Using hard-coded defaults ");
392 "nvconfig_nvdata_access failed ");
416 "mlx_memory_zalloc failed ");
418 def->data_size,
data);
439 for (i = 0; i < defaults_table_size; i++) {
440 defs = &defaults_table[i];
454 if (utils ==
NULL || port_conf_def ==
NULL) {
476 if (utils ==
NULL || conf_def ==
NULL) {
500 if (utils ==
NULL || rom_ini ==
NULL) {
511 "nvconfig_nvdata_access failed ");
static mlx_status nvconfig_get_rom_banner_to_default_conf(IN void *data, IN int status, OUT void *def_struct)
mlx_boolean boot_ip_ver_en
mlx_uint32 max_vfs_per_pf
static mlx_status nvconfig_get_iscsi_init_dhcp_default_conf(IN void *data, IN int status, OUT void *def_struct)
static mlx_status nvconfig_nvdata_default_access(IN mlx_utils *utils, IN mlx_uint8 port, IN mlx_uint16 tlv_type, IN mlx_size data_size, OUT mlx_void *data)
mlx_uint32 linkup_timeout
#define MLX_INVALID_PARAMETER
#define DEFAULT_OPTION_ROM_EN
#define DEFAULT_ISCSI_DHCP_PARAM_EN
static struct tlv_default tlv_port_defaults[]
static mlx_status nvconfig_get_boot_default_conf(IN void *data, IN int status, OUT void *def_struct)
static mlx_status nvconfig_get_iscsi_gen_default_conf(IN void *data, IN int status, OUT void *def_struct)
mlx_boolean iscsi_ipv4_dhcp_en
mlx_boolean iscsi_tcp_timestamps_en
#define DEFAULT_BOOT_IP_VERSION_EN
mlx_uint32 network_link_type
mlx_uint32 boot_retry_count
mlx_status(* set_defaults)(IN void *data, IN int status, OUT void *def_struct)
#define DEFAULT_BOOT_IP_VER
static void nvconfig_nvdata_read_default_values(IN mlx_utils *utils, IN mlx_uint8 modifier, IN struct tlv_default defaults_table[], IN mlx_uint8 defaults_table_size, OUT void *def_strct)
mlx_status nvconfig_read_port_default_values(IN mlx_utils *utils, IN mlx_uint8 port, OUT struct mlx_nvconfig_port_conf_defaults *port_conf_def)
mlx_uint32 link_up_delay_time
mlx_uint8 iscsi_boot_to_target
mlx_status mlx_memory_free(IN mlx_utils *utils, IN mlx_void **ptr)
mlx_status mlx_memory_set(IN mlx_utils *utils, IN mlx_void *block, IN mlx_int32 value, IN mlx_size size)
u32 version
Driver version.
static mlx_status nvconfig_get_vpi_link_default_conf(IN void *data, IN int status, OUT void *def_struct)
mlx_boolean iscsi_vlan_en
mlx_uint32 default_link_type
mlx_uint8 boot_retry_count
mlx_uint32 chap_mutual_auth_en
static mlx_status nvconfig_get_ib_boot_default_conf(IN void *data, IN int status, OUT void *def_struct)
#define DEFAULT_BOOT_UNDI_NETWORK_WAIT_TO
#define DEFAULT_ISCSI_IPV4_DHCP_EN
static mlx_status nvconfig_get_wol_default_conf(IN void *data, IN int status, OUT void *def_struct)
static mlx_status nvconfig_nvdata_read_default_value(IN mlx_utils *utils, IN mlx_uint8 modifier, IN struct tlv_default *def, OUT void *def_struct)
mlx_status nvconfig_read_rom_ini_values(IN mlx_utils *utils, OUT struct mlx_nvcofnig_romini *rom_ini)
mlx_boolean iscsi_dhcp_params_en
mlx_uint8 default_link_type
mlx_status nvconfig_read_general_default_values(IN mlx_utils *utils, OUT struct mlx_nvconfig_conf_defaults *conf_def)
static mlx_status nvconfig_get_rom_cap_default_conf(IN void *data, IN int status, OUT void *def_struct)
mlx_uint32 boot_ip_ver_en
static mlx_status nvconfig_get_nv_virt_caps_default_conf(IN void *data, IN int status, OUT void *def_struct)
mlx_boolean boot_option_rom_en
mlx_uint32 lun_busy_retry_count
mlx_uint32 undi_network_wait_to
#define TlvDefaultEntry(_tlv_type, _data_size, _set_defaults)
mlx_uint8 network_link_type
static mlx_status nvconfig_get_nv_virt_default_conf(IN void *data, IN int status, OUT void *def_struct)
mlx_status mlx_memory_zalloc(IN mlx_utils *utils, IN mlx_size size, OUT mlx_void **ptr)
#define DEFAULT_BOOT_VLAN
mlx_uint8 iscsi_lun_busy_retry_count
FILE_LICENCE(GPL2_OR_LATER)
static mlx_status nvconfig_get_ocsd_ocbb_default_conf(IN void *data, IN int status, OUT void *def_struct)
#define MLX_DEBUG_ERROR(...)
mlx_uint32 tcp_timestamps_en
static mlx_status nvconfig_get_boot_ext_default_conf(IN void *data, IN int status, OUT void *def_struct)
mlx_boolean iscsi_chap_mutual_auth_en
uint8_t data[48]
Additional event data.
mlx_boolean iscsi_chap_auth_en
mlx_uint8 iscsi_drive_num
mlx_uint8 iscsi_link_up_delay_time
#define DEFAULT_FLEXBOOT_MENU_TO
mlx_status mlx_memory_be32_to_cpu(IN mlx_utils *utils, IN mlx_uint32 source, IN mlx_uint32 *destination)
mlx_uint32 legacy_boot_prot
mlx_uint32 boot_to_target
#define DEFAULT_ISCSI_DRIVE_NUM
mlx_uint8 flexboot_menu_to
static struct tlv_default tlv_general_defaults[]
#define MLX_CHECK_STATUS(id, status, label, message)
#define DEFAULT_BOOT_LINK_UP_TO
static mlx_status nvconfig_get_ib_dhcp_default_conf(IN void *data, IN int status, OUT void *def_struct)
#define NULL
NULL pointer (VOID *)
mlx_uint32 client_identifier
#define DEFAULT_OCSD_OCBB_EN
mlx_status nvconfig_nvdata_access(IN mlx_utils *utils, IN mlx_uint8 port, IN mlx_uint16 tlv_type, IN REG_ACCESS_OPT opt, IN mlx_size data_size, IN NV_DEFAULT_OPT def_en, IN NVDA_WRITER_ID writer_id, IN OUT mlx_uint8 *version, IN OUT mlx_void *data)
mlx_uint8 client_identifier
mlx_uint8 undi_network_wait_to
#define DEFAULT_BOOT_PROTOCOL