summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/dpaa2/dpmac.h
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2022-03-12 00:22:23 +0300
committerDavid S. Miller <davem@davemloft.net>2022-03-14 13:41:50 +0300
commit38d28b02a08e006f2153dc8414775f811b02fa7a (patch)
treef3107e7728422b3366325182cb26338a6cf8dbb5 /drivers/net/ethernet/freescale/dpaa2/dpmac.h
parentc553f22e0531f41bbf6fd0a06e98110c71f66bdf (diff)
downloadlinux-38d28b02a08e006f2153dc8414775f811b02fa7a.tar.xz
dpaa2-mac: add the MC API for retrieving the version
The dpmac_get_api_version command will be used in the next patches to determine if the current firmware is capable or not to change the Ethernet protocol running on the MAC. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa2/dpmac.h')
-rw-r--r--drivers/net/ethernet/freescale/dpaa2/dpmac.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpmac.h b/drivers/net/ethernet/freescale/dpaa2/dpmac.h
index 8f7ceb731282..b580fb4164b5 100644
--- a/drivers/net/ethernet/freescale/dpaa2/dpmac.h
+++ b/drivers/net/ethernet/freescale/dpaa2/dpmac.h
@@ -205,4 +205,6 @@ enum dpmac_counter_id {
int dpmac_get_counter(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
enum dpmac_counter_id id, u64 *value);
+int dpmac_get_api_version(struct fsl_mc_io *mc_io, u32 cmd_flags,
+ u16 *major_ver, u16 *minor_ver);
#endif /* __FSL_DPMAC_H */