From: Luis R. Rodriguez Date: Tue, 4 Dec 2012 21:46:45 +0000 (+0000) Subject: compat: backplane mode negotiation ethtool definitions X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7fda12b5fd257467346a9120a4e1a4aa9310e123;p=openwrt%2Fstaging%2Fblogic.git compat: backplane mode negotiation ethtool definitions This backports the ethtool definitions implemented on commit 894b19a6. mcgrof@frijol ~/linux-next (git::master)$ git describe --contains 894b19a6 v2.6.31-rc1~14^2~577 commit 894b19a6b343ce3589237167a56e6df0fe72ef0d Author: Ben Hutchings Date: Wed Apr 29 08:25:57 2009 +0000 ethtool/mdio: Support backplane mode negotiation Compile-tested only. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-2.6.31.h b/include/linux/compat-2.6.31.h index cfa34dfa9028..ce90f0a6fbb5 100644 --- a/include/linux/compat-2.6.31.h +++ b/include/linux/compat-2.6.31.h @@ -13,6 +13,18 @@ #include #include +#define SUPPORTED_Backplane (1 << 16) +#define SUPPORTED_1000baseKX_Full (1 << 17) +#define SUPPORTED_10000baseKX4_Full (1 << 18) +#define SUPPORTED_10000baseKR_Full (1 << 19) +#define SUPPORTED_10000baseR_FEC (1 << 20) + +#define ADVERTISED_Backplane (1 << 16) +#define ADVERTISED_1000baseKX_Full (1 << 17) +#define ADVERTISED_10000baseKX4_Full (1 << 18) +#define ADVERTISED_10000baseKR_Full (1 << 19) +#define ADVERTISED_10000baseR_FEC (1 << 20) + /* * These macros allow us to backport rfkill without any * changes on cfg80211 through compat.diff. Note that this