git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common/octeontx: move mbox to common folder
[dpdk.git]
/
drivers
/
net
/
qede
/
base
/
ecore_mcp_api.h
diff --git
a/drivers/net/qede/base/ecore_mcp_api.h
b/drivers/net/qede/base/ecore_mcp_api.h
index
cc5a43e
..
225890e
100644
(file)
--- a/
drivers/net/qede/base/ecore_mcp_api.h
+++ b/
drivers/net/qede/base/ecore_mcp_api.h
@@
-59,9
+59,15
@@
struct ecore_mcp_link_capabilities {
struct ecore_mcp_link_state {
bool link_up;
struct ecore_mcp_link_state {
bool link_up;
- u32 line_speed; /* In Mb/s */
u32 min_pf_rate; /* In Mb/s */
u32 min_pf_rate; /* In Mb/s */
- u32 speed; /* In Mb/s */
+
+ /* Actual link speed in Mb/s */
+ u32 line_speed;
+
+ /* PF max speed in MB/s, deduced from line_speed
+ * according to PF max bandwidth configuration.
+ */
+ u32 speed;
bool full_duplex;
bool an;
bool full_duplex;
bool an;
@@
-546,7
+552,7
@@
struct ecore_mcp_link_capabilities
*ecore_mcp_get_link_capabilities(struct ecore_hwfn *p_hwfn);
/**
*ecore_mcp_get_link_capabilities(struct ecore_hwfn *p_hwfn);
/**
- * @brief Request the MFW to set the
the
link according to 'link_input'.
+ * @brief Request the MFW to set the link according to 'link_input'.
*
* @param p_hwfn
* @param p_ptt
*
* @param p_hwfn
* @param p_ptt
@@
-594,9
+600,9
@@
enum _ecore_status_t ecore_mcp_get_media_type(struct ecore_hwfn *p_hwfn,
* @param p_hwfn - hw function
* @param p_ptt - PTT required for register access
* @param cmd - command to be sent to the MCP
* @param p_hwfn - hw function
* @param p_ptt - PTT required for register access
* @param cmd - command to be sent to the MCP
- * @param param -
o
ptional param
- * @param o_mcp_resp -
t
he MCP response code (exclude sequence)
- * @param o_mcp_param -
o
ptional parameter provided by the MCP response
+ * @param param -
O
ptional param
+ * @param o_mcp_resp -
T
he MCP response code (exclude sequence)
+ * @param o_mcp_param -
O
ptional parameter provided by the MCP response
*
* @return enum _ecore_status_t -
* ECORE_SUCCESS - operation was successful
*
* @return enum _ecore_status_t -
* ECORE_SUCCESS - operation was successful
@@
-849,7
+855,7
@@
enum _ecore_status_t ecore_mcp_nvm_resp(struct ecore_dev *p_dev, u8 *p_buf);
* @param p_dev
* @param addr - nvm offset
* @param cmd - nvm command
* @param p_dev
* @param addr - nvm offset
* @param cmd - nvm command
- * @param p_buf - nvm
write
buffer
+ * @param p_buf - nvm
read
buffer
* @param len - buffer len
*
* @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
* @param len - buffer len
*
* @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
@@
-862,7
+868,7
@@
enum _ecore_status_t ecore_mcp_phy_read(struct ecore_dev *p_dev, u32 cmd,
*
* @param p_dev
* @param addr - nvm offset
*
* @param p_dev
* @param addr - nvm offset
- * @param p_buf - nvm
write
buffer
+ * @param p_buf - nvm
read
buffer
* @param len - buffer len
*
* @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
* @param len - buffer len
*
* @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.