From 1360f69c61cd3aba8a20d09eb46009b41480432b Mon Sep 17 00:00:00 2001 From: Vipul Pandya Date: Thu, 10 May 2012 18:09:55 +0530 Subject: [PATCH] compat: backport ethtool_phys_id_state Signed-off-by: Vipul Pandya --- include/linux/compat-3.0.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/linux/compat-3.0.h b/include/linux/compat-3.0.h index 22ab539..f1df271 100644 --- a/include/linux/compat-3.0.h +++ b/include/linux/compat-3.0.h @@ -125,6 +125,22 @@ static inline int __must_check kstrtos32_from_user(const char __user *s, size_t #endif +/* + * enum ethtool_phys_id_state - indicator state for physical identification + * @ETHTOOL_ID_INACTIVE: Physical ID indicator should be deactivated + * @ETHTOOL_ID_ACTIVE: Physical ID indicator should be activated + * @ETHTOOL_ID_ON: LED should be turned on (used iff %ETHTOOL_ID_ACTIVE + * is not supported) + * @ETHTOOL_ID_OFF: LED should be turned off (used iff %ETHTOOL_ID_ACTIVE + * is not supported) + */ +enum ethtool_phys_id_state { + ETHTOOL_ID_INACTIVE, + ETHTOOL_ID_ACTIVE, + ETHTOOL_ID_ON, + ETHTOOL_ID_OFF +}; + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)) */ #endif /* LINUX_3_0_COMPAT_H */ -- 2.41.0