aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pcs
diff options
context:
space:
mode:
authorOng Boon Leong <boon.leong.ong@intel.com>2021-03-15 13:27:06 +0800
committerDavid S. Miller <davem@davemloft.net>2021-03-15 12:53:11 -0700
commit07a4bc51fc732b3618fd46dc51609948933064a4 (patch)
treecd756579109945874d559b0ebbfefea502e200ac /include/linux/pcs
parentnet: ethernet: neterion: Fix a typo in the file s2io.c (diff)
downloadlinux-dev-07a4bc51fc732b3618fd46dc51609948933064a4.tar.xz
linux-dev-07a4bc51fc732b3618fd46dc51609948933064a4.zip
net: pcs: rearrange C73 functions to prepare for C37 support later
The current implementation for XPCS is validated for C73, so we rename them to have _c73 suffix and introduce a set of functions to use an_mode flag to switch between C73 and C37 AN later. Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/pcs')
-rw-r--r--include/linux/pcs/pcs-xpcs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/pcs/pcs-xpcs.h b/include/linux/pcs/pcs-xpcs.h
index 351c1c9aedc5..a04e57c25fea 100644
--- a/include/linux/pcs/pcs-xpcs.h
+++ b/include/linux/pcs/pcs-xpcs.h
@@ -10,10 +10,14 @@
#include <linux/phy.h>
#include <linux/phylink.h>
+/* AN mode */
+#define DW_AN_C73 1
+
struct mdio_xpcs_args {
__ETHTOOL_DECLARE_LINK_MODE_MASK(supported);
struct mii_bus *bus;
int addr;
+ int an_mode;
};
struct mdio_xpcs_ops {