2 * Copyright (c) 2016 QLogic Corporation.
6 * See LICENSE.qede_pmd for copyright and licensing details.
9 #ifndef __ECORE_MCP_API_H__
10 #define __ECORE_MCP_API_H__
12 #include "ecore_status.h"
14 struct ecore_mcp_link_speed_params {
16 u32 advertised_speeds; /* bitmask of DRV_SPEED_CAPABILITY */
17 u32 forced_speed; /* In Mb/s */
20 struct ecore_mcp_link_pause_params {
26 struct ecore_mcp_link_params {
27 struct ecore_mcp_link_speed_params speed;
28 struct ecore_mcp_link_pause_params pause;
29 u32 loopback_mode; /* in PMM_LOOPBACK values */
32 struct ecore_mcp_link_capabilities {
33 u32 speed_capabilities;
34 bool default_speed_autoneg; /* In Mb/s */
35 u32 default_speed; /* In Mb/s */
38 struct ecore_mcp_link_state {
41 u32 line_speed; /* In Mb/s */
42 u32 min_pf_rate; /* In Mb/s */
43 u32 speed; /* In Mb/s */
48 bool parallel_detection;
51 #define ECORE_LINK_PARTNER_SPEED_1G_HD (1 << 0)
52 #define ECORE_LINK_PARTNER_SPEED_1G_FD (1 << 1)
53 #define ECORE_LINK_PARTNER_SPEED_10G (1 << 2)
54 #define ECORE_LINK_PARTNER_SPEED_20G (1 << 3)
55 #define ECORE_LINK_PARTNER_SPEED_25G (1 << 4)
56 #define ECORE_LINK_PARTNER_SPEED_40G (1 << 5)
57 #define ECORE_LINK_PARTNER_SPEED_50G (1 << 6)
58 #define ECORE_LINK_PARTNER_SPEED_100G (1 << 7)
59 u32 partner_adv_speed;
61 bool partner_tx_flow_ctrl_en;
62 bool partner_rx_flow_ctrl_en;
64 #define ECORE_LINK_PARTNER_SYMMETRIC_PAUSE (1)
65 #define ECORE_LINK_PARTNER_ASYMMETRIC_PAUSE (2)
66 #define ECORE_LINK_PARTNER_BOTH_PAUSE (3)
72 struct ecore_mcp_function_info {
75 enum ecore_pci_personality protocol;
85 #define ECORE_MCP_VLAN_UNSET (0xffff)
91 struct ecore_mcp_nvm_common {
98 struct ecore_mcp_nvm_rd {
103 struct ecore_mcp_nvm_wr {
108 struct ecore_mcp_nvm_params {
109 #define ECORE_MCP_CMD (1 << 0)
110 #define ECORE_MCP_NVM_RD (1 << 1)
111 #define ECORE_MCP_NVM_WR (1 << 2)
114 struct ecore_mcp_nvm_common nvm_common;
117 struct ecore_mcp_nvm_rd nvm_rd;
118 struct ecore_mcp_nvm_wr nvm_wr;
122 #ifndef __EXTRACT__LINUX__
123 enum ecore_nvm_images {
124 ECORE_NVM_IMAGE_ISCSI_CFG,
125 ECORE_NVM_IMAGE_FCOE_CFG,
129 struct ecore_mcp_drv_version {
131 u8 name[MCP_DRV_VER_STR_SIZE - 4];
134 struct ecore_mcp_lan_stats {
140 #ifndef ECORE_PROTO_STATS
141 #define ECORE_PROTO_STATS
142 struct ecore_mcp_fcoe_stats {
149 struct ecore_mcp_iscsi_stats {
156 struct ecore_mcp_rdma_stats {
163 enum ecore_mcp_protocol_type {
165 ECORE_MCP_FCOE_STATS,
166 ECORE_MCP_ISCSI_STATS,
170 union ecore_mcp_protocol_stats {
171 struct ecore_mcp_lan_stats lan_stats;
172 struct ecore_mcp_fcoe_stats fcoe_stats;
173 struct ecore_mcp_iscsi_stats iscsi_stats;
174 struct ecore_mcp_rdma_stats rdma_stats;
178 enum ecore_ov_client {
180 ECORE_OV_CLIENT_USER,
181 ECORE_OV_CLIENT_VENDOR_SPEC
184 enum ecore_ov_driver_state {
185 ECORE_OV_DRIVER_STATE_NOT_LOADED,
186 ECORE_OV_DRIVER_STATE_DISABLED,
187 ECORE_OV_DRIVER_STATE_ACTIVE
190 #define ECORE_MAX_NPIV_ENTRIES 128
191 #define ECORE_WWN_SIZE 8
192 struct ecore_fc_npiv_tbl {
194 u8 wwpn[ECORE_MAX_NPIV_ENTRIES][ECORE_WWN_SIZE];
195 u8 wwnn[ECORE_MAX_NPIV_ENTRIES][ECORE_WWN_SIZE];
198 #ifndef __EXTRACT__LINUX__
199 enum ecore_led_mode {
202 ECORE_LED_MODE_RESTORE
206 struct ecore_temperature_sensor {
213 #define ECORE_MAX_NUM_OF_SENSORS 7
214 struct ecore_temperature_info {
216 struct ecore_temperature_sensor sensors[ECORE_MAX_NUM_OF_SENSORS];
219 enum ecore_mba_img_idx {
220 ECORE_MBA_LEGACY_IDX,
221 ECORE_MBA_PCI3CLP_IDX,
228 ECORE_MAX_NUM_OF_ROMIMG
231 struct ecore_mba_vers {
232 u32 mba_vers[ECORE_MAX_NUM_OF_ROMIMG];
235 enum ecore_mfw_tlv_type {
236 ECORE_MFW_TLV_GENERIC = 0x1, /* Core driver TLVs */
237 ECORE_MFW_TLV_FCOE = 0x2, /* FCoE protocol TLVs */
238 ECORE_MFW_TLV_ISCSI = 0x4, /* SCSI protocol TLVs */
241 struct ecore_mfw_tlv_generic {
247 bool additional_mac1_set;
249 bool additional_mac2_set;
251 bool lso_maxoff_size_set;
253 bool lso_minseg_size_set;
257 bool tx_descr_size_set;
259 bool rx_descr_size_set;
267 bool pxe_progress_set;
269 bool tcp4_offloads_set;
271 bool tcp6_offloads_set;
273 bool tx_descr_qdepth_set;
275 bool rx_descr_qdepth_set;
285 bool iov_offload_set;
291 bool num_txqs_full_set;
293 bool num_rxqs_full_set;
296 struct ecore_mfw_tlv_fcoe {
298 bool scsi_timeout_set;
312 bool num_npiv_ids_set;
314 bool switch_name_set;
316 bool switch_portnum_set;
318 bool switch_portid_set;
320 bool vendor_name_set;
322 bool switch_model_set;
323 u8 switch_fw_version[8];
324 bool switch_fw_version_set;
331 u16 fip_tx_descr_size;
332 bool fip_tx_descr_size_set;
333 u16 fip_rx_descr_size;
334 bool fip_rx_descr_size_set;
336 bool link_failures_set;
337 u8 fcoe_boot_progress;
338 bool fcoe_boot_progress_set;
344 bool fcoe_txq_depth_set;
346 bool fcoe_rxq_depth_set;
348 bool fcoe_rx_frames_set;
350 bool fcoe_rx_bytes_set;
352 bool fcoe_tx_frames_set;
354 bool fcoe_tx_bytes_set;
357 u32 crc_err_src_fcid[5];
358 bool crc_err_src_fcid_set[5];
359 u8 crc_err_tstamp[5][14];
360 bool crc_err_tstamp_set[5];
366 bool primtive_err_set;
368 bool disparity_err_set;
369 u16 code_violation_err;
370 bool code_violation_err_set;
372 bool flogi_param_set[4];
374 bool flogi_tstamp_set;
375 u32 flogi_acc_param[4];
376 bool flogi_acc_param_set[4];
377 u8 flogi_acc_tstamp[14];
378 bool flogi_acc_tstamp_set;
381 u8 flogi_rjt_tstamp[14];
382 bool flogi_rjt_tstamp_set;
395 u32 plogi_dst_fcid[5];
396 bool plogi_dst_fcid_set[5];
397 u8 plogi_tstamp[5][14];
398 bool plogi_tstamp_set[5];
399 u32 plogi_acc_src_fcid[5];
400 bool plogi_acc_src_fcid_set[5];
401 u8 plogi_acc_tstamp[5][14];
402 bool plogi_acc_tstamp_set[5];
409 u32 plogo_src_fcid[5];
410 bool plogo_src_fcid_set[5];
411 u8 plogo_tstamp[5][14];
412 bool plogo_tstamp_set[5];
424 bool rx_abts_acc_set;
426 bool rx_abts_rjt_set;
427 u32 abts_dst_fcid[5];
428 bool abts_dst_fcid_set[5];
429 u8 abts_tstamp[5][14];
430 bool abts_tstamp_set[5];
433 u32 rx_rscn_nport[4];
434 bool rx_rscn_nport_set[4];
438 bool abort_task_sets_set;
462 bool scsi_cond_met_set;
467 u8 scsi_inter_cond_met;
468 bool scsi_inter_cond_met_set;
469 u8 scsi_rsv_conflicts;
470 bool scsi_rsv_conflicts_set;
472 bool scsi_tsk_full_set;
474 bool scsi_aca_active_set;
476 bool scsi_tsk_abort_set;
478 bool scsi_rx_chk_set[5];
479 u8 scsi_chk_tstamp[5][14];
480 bool scsi_chk_tstamp_set[5];
483 struct ecore_mfw_tlv_iscsi {
485 bool target_llmnr_set;
487 bool header_digest_set;
489 bool data_digest_set;
491 bool auth_method_set;
492 u16 boot_taget_portal;
493 bool boot_taget_portal_set;
497 bool tx_desc_size_set;
499 bool rx_desc_size_set;
501 bool boot_progress_set;
503 bool tx_desc_qdepth_set;
505 bool rx_desc_qdepth_set;
515 bool cpcp_spcp_map_set;
518 union ecore_mfw_tlv_data {
519 struct ecore_mfw_tlv_generic generic;
520 struct ecore_mfw_tlv_fcoe fcoe;
521 struct ecore_mfw_tlv_iscsi iscsi;
525 * @brief - returns the link params of the hw function
529 * @returns pointer to link params
531 struct ecore_mcp_link_params *ecore_mcp_get_link_params(struct ecore_hwfn *);
534 * @brief - return the link state of the hw function
538 * @returns pointer to link state
540 struct ecore_mcp_link_state *ecore_mcp_get_link_state(struct ecore_hwfn *);
543 * @brief - return the link capabilities of the hw function
547 * @returns pointer to link capabilities
549 struct ecore_mcp_link_capabilities
550 *ecore_mcp_get_link_capabilities(struct ecore_hwfn *p_hwfn);
553 * @brief Request the MFW to set the the link according to 'link_input'.
557 * @param b_up - raise link if `true'. Reset link if `false'.
559 * @return enum _ecore_status_t
561 enum _ecore_status_t ecore_mcp_set_link(struct ecore_hwfn *p_hwfn,
562 struct ecore_ptt *p_ptt,
566 * @brief Get the management firmware version value
570 * @param p_mfw_ver - mfw version value
571 * @param p_running_bundle_id - image id in nvram; Optional.
573 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
575 enum _ecore_status_t ecore_mcp_get_mfw_ver(struct ecore_hwfn *p_hwfn,
576 struct ecore_ptt *p_ptt,
578 u32 *p_running_bundle_id);
581 * @brief Get media type value of the port.
583 * @param p_dev - ecore dev pointer
584 * @param mfw_ver - media type value
586 * @return enum _ecore_status_t -
587 * ECORE_SUCCESS - Operation was successful.
588 * ECORE_BUSY - Operation failed
590 enum _ecore_status_t ecore_mcp_get_media_type(struct ecore_dev *p_dev,
594 * @brief - Sends a command to the MCP mailbox.
596 * @param p_hwfn - hw function
597 * @param p_ptt - PTT required for register access
598 * @param cmd - command to be sent to the MCP
599 * @param param - optional param
600 * @param o_mcp_resp - the MCP response code (exclude sequence)
601 * @param o_mcp_param - optional parameter provided by the MCP response
603 * @return enum _ecore_status_t -
604 * ECORE_SUCCESS - operation was successful
605 * ECORE_BUSY - operation failed
607 enum _ecore_status_t ecore_mcp_cmd(struct ecore_hwfn *p_hwfn,
608 struct ecore_ptt *p_ptt, u32 cmd, u32 param,
609 u32 *o_mcp_resp, u32 *o_mcp_param);
612 * @brief - drains the nig, allowing completion to pass in case of pauses.
613 * (Should be called only from sleepable context)
618 enum _ecore_status_t ecore_mcp_drain(struct ecore_hwfn *p_hwfn,
619 struct ecore_ptt *p_ptt);
623 * @brief - return the mcp function info of the hw function
627 * @returns pointer to mcp function info
629 const struct ecore_mcp_function_info
630 *ecore_mcp_get_function_info(struct ecore_hwfn *p_hwfn);
634 * @brief - Function for reading/manipulating the nvram. Following are supported
636 * 1. Read: Read the specified nvram offset.
638 * type - ECORE_MCP_NVM_RD
639 * cmd - command code (e.g. DRV_MSG_CODE_NVM_READ_NVRAM)
640 * offset - nvm offset
644 * buf_size - buffer size
646 * 2. Write: Write the data at the specified nvram offset
648 * type - ECORE_MCP_NVM_WR
649 * cmd - command code (e.g. DRV_MSG_CODE_NVM_WRITE_NVRAM)
650 * offset - nvm offset
652 * buf_size - buffer size
654 * 3. Command: Send the NVM command to MCP.
656 * type - ECORE_MCP_CMD
657 * cmd - command code (e.g. DRV_MSG_CODE_NVM_DEL_FILE)
658 * offset - nvm offset
665 * @return ECORE_SUCCESS - operation was successful.
667 enum _ecore_status_t ecore_mcp_nvm_command(struct ecore_hwfn *p_hwfn,
668 struct ecore_ptt *p_ptt,
669 struct ecore_mcp_nvm_params *params);
673 * @brief - count number of function with a matching personality on engine.
677 * @param personalities - a bitmask of ecore_pci_personality values
679 * @returns the count of all devices on engine whose personality match one of
682 int ecore_mcp_get_personality_cnt(struct ecore_hwfn *p_hwfn,
683 struct ecore_ptt *p_ptt,
688 * @brief Get the flash size value
692 * @param p_flash_size - flash size in bytes to be filled.
694 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
696 enum _ecore_status_t ecore_mcp_get_flash_size(struct ecore_hwfn *p_hwfn,
697 struct ecore_ptt *p_ptt,
701 * @brief Send driver version to MFW
705 * @param version - Version value
706 * @param name - Protocol driver name
708 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
711 ecore_mcp_send_drv_version(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
712 struct ecore_mcp_drv_version *p_ver);
715 * @brief Read the MFW process kill counter
722 u32 ecore_get_process_kill_counter(struct ecore_hwfn *p_hwfn,
723 struct ecore_ptt *p_ptt);
726 * @brief Trigger a recovery process
731 * @return enum _ecore_status_t
733 enum _ecore_status_t ecore_start_recovery_process(struct ecore_hwfn *p_hwfn,
734 struct ecore_ptt *p_ptt);
737 * @brief Notify MFW about the change in base device properties
741 * @param client - ecore client type
743 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
746 ecore_mcp_ov_update_current_config(struct ecore_hwfn *p_hwfn,
747 struct ecore_ptt *p_ptt,
748 enum ecore_ov_client client);
751 * @brief Notify MFW about the driver state
755 * @param drv_state - Driver state
757 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
760 ecore_mcp_ov_update_driver_state(struct ecore_hwfn *p_hwfn,
761 struct ecore_ptt *p_ptt,
762 enum ecore_ov_driver_state drv_state);
765 * @brief Read NPIV settings form the MFW
769 * @param p_table - Array to hold the FC NPIV data. Client need allocate the
770 * required buffer. The field 'count' specifies number of NPIV
771 * entries. A value of 0 means the table was not populated.
773 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
776 ecore_mcp_ov_get_fc_npiv(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
777 struct ecore_fc_npiv_tbl *p_table);
780 * @brief Send MTU size to MFW
784 * @param mtu - MTU size
786 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
788 enum _ecore_status_t ecore_mcp_ov_update_mtu(struct ecore_hwfn *p_hwfn,
789 struct ecore_ptt *p_ptt, u16 mtu);
792 * @brief Set LED status
796 * @param mode - LED mode
798 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
800 enum _ecore_status_t ecore_mcp_set_led(struct ecore_hwfn *p_hwfn,
801 struct ecore_ptt *p_ptt,
802 enum ecore_led_mode mode);
805 * @brief Set secure mode
808 * @param addr - nvm offset
810 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
812 enum _ecore_status_t ecore_mcp_nvm_set_secure_mode(struct ecore_dev *p_dev,
816 * @brief Write to phy
819 * @param addr - nvm offset
820 * @param cmd - nvm command
821 * @param p_buf - nvm write buffer
822 * @param len - buffer len
824 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
826 enum _ecore_status_t ecore_mcp_phy_write(struct ecore_dev *p_dev, u32 cmd,
827 u32 addr, u8 *p_buf, u32 len);
830 * @brief Write to nvm
833 * @param addr - nvm offset
834 * @param cmd - nvm command
835 * @param p_buf - nvm write buffer
836 * @param len - buffer len
838 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
840 enum _ecore_status_t ecore_mcp_nvm_write(struct ecore_dev *p_dev, u32 cmd,
841 u32 addr, u8 *p_buf, u32 len);
844 * @brief Put file begin
847 * @param addr - nvm offset
849 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
851 enum _ecore_status_t ecore_mcp_nvm_put_file_begin(struct ecore_dev *p_dev,
858 * @param addr - nvm offset
860 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
862 enum _ecore_status_t ecore_mcp_nvm_del_file(struct ecore_dev *p_dev,
866 * @brief Check latest response
869 * @param p_buf - nvm write buffer
871 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
873 enum _ecore_status_t ecore_mcp_nvm_resp(struct ecore_dev *p_dev, u8 *p_buf);
876 * @brief Read from phy
879 * @param addr - nvm offset
880 * @param cmd - nvm command
881 * @param p_buf - nvm write buffer
882 * @param len - buffer len
884 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
886 enum _ecore_status_t ecore_mcp_phy_read(struct ecore_dev *p_dev, u32 cmd,
887 u32 addr, u8 *p_buf, u32 len);
890 * @brief Read from nvm
893 * @param addr - nvm offset
894 * @param p_buf - nvm write buffer
895 * @param len - buffer len
897 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
899 enum _ecore_status_t ecore_mcp_nvm_read(struct ecore_dev *p_dev, u32 addr,
903 * @brief Read from sfp
905 * @param p_hwfn - hw function
906 * @param p_ptt - PTT required for register access
907 * @param port - transceiver port
908 * @param addr - I2C address
909 * @param offset - offset in sfp
910 * @param len - buffer length
911 * @param p_buf - buffer to read into
913 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
915 enum _ecore_status_t ecore_mcp_phy_sfp_read(struct ecore_hwfn *p_hwfn,
916 struct ecore_ptt *p_ptt,
917 u32 port, u32 addr, u32 offset,
921 * @brief Write to sfp
923 * @param p_hwfn - hw function
924 * @param p_ptt - PTT required for register access
925 * @param port - transceiver port
926 * @param addr - I2C address
927 * @param offset - offset in sfp
928 * @param len - buffer length
929 * @param p_buf - buffer to write from
931 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
933 enum _ecore_status_t ecore_mcp_phy_sfp_write(struct ecore_hwfn *p_hwfn,
934 struct ecore_ptt *p_ptt,
935 u32 port, u32 addr, u32 offset,
941 * @param p_hwfn - hw function
942 * @param p_ptt - PTT required for register access
943 * @param gpio - gpio number
944 * @param gpio_val - value read from gpio
946 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
948 enum _ecore_status_t ecore_mcp_gpio_read(struct ecore_hwfn *p_hwfn,
949 struct ecore_ptt *p_ptt,
950 u16 gpio, u32 *gpio_val);
955 * @param p_hwfn - hw function
956 * @param p_ptt - PTT required for register access
957 * @param gpio - gpio number
958 * @param gpio_val - value to write to gpio
960 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
962 enum _ecore_status_t ecore_mcp_gpio_write(struct ecore_hwfn *p_hwfn,
963 struct ecore_ptt *p_ptt,
964 u16 gpio, u16 gpio_val);
967 * @brief Gpio get information
969 * @param p_hwfn - hw function
970 * @param p_ptt - PTT required for register access
971 * @param gpio - gpio number
972 * @param gpio_direction - gpio is output (0) or input (1)
973 * @param gpio_ctrl - gpio control is uninitialized (0),
974 * path 0 (1), path 1 (2) or shared(3)
976 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
978 enum _ecore_status_t ecore_mcp_gpio_info(struct ecore_hwfn *p_hwfn,
979 struct ecore_ptt *p_ptt,
980 u16 gpio, u32 *gpio_direction,
984 * @brief Bist register test
986 * @param p_hwfn - hw function
987 * @param p_ptt - PTT required for register access
989 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
991 enum _ecore_status_t ecore_mcp_bist_register_test(struct ecore_hwfn *p_hwfn,
992 struct ecore_ptt *p_ptt);
995 * @brief Bist clock test
997 * @param p_hwfn - hw function
998 * @param p_ptt - PTT required for register access
1000 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
1002 enum _ecore_status_t ecore_mcp_bist_clock_test(struct ecore_hwfn *p_hwfn,
1003 struct ecore_ptt *p_ptt);
1006 * @brief Bist nvm test - get number of images
1008 * @param p_hwfn - hw function
1009 * @param p_ptt - PTT required for register access
1010 * @param num_images - number of images if operation was
1011 * successful. 0 if not.
1013 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
1015 enum _ecore_status_t ecore_mcp_bist_nvm_test_get_num_images(
1016 struct ecore_hwfn *p_hwfn,
1017 struct ecore_ptt *p_ptt,
1021 * @brief Bist nvm test - get image attributes by index
1023 * @param p_hwfn - hw function
1024 * @param p_ptt - PTT required for register access
1025 * @param p_image_att - Attributes of image
1026 * @param image_index - Index of image to get information for
1028 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
1030 enum _ecore_status_t ecore_mcp_bist_nvm_test_get_image_att(
1031 struct ecore_hwfn *p_hwfn,
1032 struct ecore_ptt *p_ptt,
1033 struct bist_nvm_image_att *p_image_att,
1037 * @brief ecore_mcp_get_temperature_info - get the status of the temperature
1040 * @param p_hwfn - hw function
1041 * @param p_ptt - PTT required for register access
1042 * @param p_temp_status - A pointer to an ecore_temperature_info structure to
1043 * be filled with the temperature data
1045 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
1047 enum _ecore_status_t
1048 ecore_mcp_get_temperature_info(struct ecore_hwfn *p_hwfn,
1049 struct ecore_ptt *p_ptt,
1050 struct ecore_temperature_info *p_temp_info);
1053 * @brief Get MBA versions - get MBA sub images versions
1055 * @param p_hwfn - hw function
1056 * @param p_ptt - PTT required for register access
1057 * @param p_mba_vers - MBA versions array to fill
1059 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
1061 enum _ecore_status_t ecore_mcp_get_mba_versions(
1062 struct ecore_hwfn *p_hwfn,
1063 struct ecore_ptt *p_ptt,
1064 struct ecore_mba_vers *p_mba_vers);
1067 * @brief Count memory ecc events
1069 * @param p_hwfn - hw function
1070 * @param p_ptt - PTT required for register access
1071 * @param num_events - number of memory ecc events
1073 * @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
1075 enum _ecore_status_t ecore_mcp_mem_ecc_events(struct ecore_hwfn *p_hwfn,
1076 struct ecore_ptt *p_ptt,
1079 struct ecore_mdump_info {
1089 * @brief - Gets the MFW crash dump configuration and logs info.
1093 * @param p_mdump_info
1095 * @param return ECORE_SUCCESS upon success.
1097 enum _ecore_status_t
1098 ecore_mcp_mdump_get_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
1099 struct ecore_mdump_info *p_mdump_info);
1102 * @brief - Clears the MFW crash dump logs.
1107 * @param return ECORE_SUCCESS upon success.
1109 enum _ecore_status_t ecore_mcp_mdump_clear_logs(struct ecore_hwfn *p_hwfn,
1110 struct ecore_ptt *p_ptt);
1113 * @brief - Processes the TLV request from MFW i.e., get the required TLV info
1114 * from the ecore client and send it to the MFW.
1119 * @param return ECORE_SUCCESS upon success.
1121 enum _ecore_status_t ecore_mfw_process_tlv_req(struct ecore_hwfn *p_hwfn,
1122 struct ecore_ptt *p_ptt);