From dcfc76336a67c3430837effedff871ceba427eb9 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 17 Aug 2014 09:46:03 -0600 Subject: [PATCH] Add some helper macros to make the code a little more compac --- include/net/if.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/net/if.h b/include/net/if.h index e05cc78692..7337217b0c 100644 --- a/include/net/if.h +++ b/include/net/if.h @@ -114,6 +114,9 @@ struct lifreq #define lifr_mtu lifr_ifru.lifru_mtu /* MTU */ #define lifr_count lifr_ifru.lifru_count /* Number of devices */ #define lifr_flags lifr_ifru.lifru_flags /* interface flags */ +#define lifr_mii_notify_pid lifr_ifru.llfru_mii_notify.pid /* PID to be notified */ +#define lifr_mii_notify_signo lifr_ifru.llfru_mii_notify.signo /* Signal to notify with */ +#define lifr_mii_notify_arg lifr_ifru.llfru_mii_notify.arg /* sigval argument */ #define lifr_mii_phy_id lifr_ifru.lifru_mii_data.phy_id /* PHY device address */ #define lifr_mii_reg_num lifr_ifru.lifru_mii_data.reg_num /* PHY register address */ #define lifr_mii_val_in lifr_ifru.lifru_mii_data.val_in /* PHY input data */ @@ -151,6 +154,9 @@ struct ifreq #define ifr_mtu ifr_ifru.ifru_mtu /* MTU */ #define ifr_count ifr_ifru.ifru_count /* Number of devices */ #define ifr_flags ifr_ifru.ifru_flags /* interface flags */ +#define ifr_mii_notify_pid ifr_ifru.ifru_mii_notify.pid /* PID to be notified */ +#define ifr_mii_notify_signo ifr_ifru.ifru_mii_notify.signo /* Signal to notify with */ +#define ifr_mii_notify_arg ifr_ifru.ifru_mii_notify.arg /* sigval argument */ #define ifr_mii_phy_id ifr_ifru.ifru_mii_data.phy_id /* PHY device address */ #define ifr_mii_reg_num ifr_ifru.ifru_mii_data.reg_num /* PHY register address */ #define ifr_mii_val_in ifr_ifru.ifru_mii_data.val_in /* PHY input data */