From 3f1983d460d78a108d76315a4e0001add95754fa Mon Sep 17 00:00:00 2001 From: Ioana Ciornei Date: Thu, 9 Feb 2023 18:07:03 +0200 Subject: drivers: net: ldpaa: export driver name and API to get DPMAC id Export the ldpaa_eth_get_dpmac_id() function so that it can be used from other drivers, especially by fsl-mc which will need it the next patch. Also, create a macro for the Ethernet ldpaa driver name and export it as well. Signed-off-by: Ioana Ciornei --- include/net/ldpaa_eth.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/net/ldpaa_eth.h (limited to 'include') diff --git a/include/net/ldpaa_eth.h b/include/net/ldpaa_eth.h new file mode 100644 index 00000000000..7474bfaeec3 --- /dev/null +++ b/include/net/ldpaa_eth.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2023 NXP + */ + +#define LDPAA_ETH_DRIVER_NAME "ldpaa_eth" + +/** + * ldpaa_eth_get_dpmac_id() - Get the dpmac_id of a DPAA2 ethernet device + * + * @dev: DPAA2 ethernet udevice pointer + * Return: requested dpmac_id + */ + +uint32_t ldpaa_eth_get_dpmac_id(struct udevice *dev); -- cgit v1.2.3