diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2022-03-11 23:22:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-14 10:41:51 +0000 |
commit | dff953813e7d1a7baf86413887e4181fc35b78a1 (patch) | |
tree | 15a164953ee847e7e859cdd2ed0cda390d8995fd /drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h | |
parent | 332b9ea59e56f6fbf670c4534f116b8f77e7eba4 (diff) |
dpaa2-mac: retrieve API version and detect features
Retrieve the API version running on the firmware and based on it detect
which features are available for usage.
The first one to be listed is the capability to change the MAC protocol
at runtime.
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/dpaa2-mac.h')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h b/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h index 1331a8477fe4..d2e51d21c80c 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.h @@ -17,6 +17,8 @@ struct dpaa2_mac { struct net_device *net_dev; struct fsl_mc_io *mc_io; struct dpmac_attr attr; + u16 ver_major, ver_minor; + unsigned long features; struct phylink_config phylink_config; struct phylink *phylink; |