[openib-general] [PATCH RFC 09/21] ofed_1_2 Backport if_mii().

Steve Wise swise at opengridcomputing.com
Mon Jan 15 13:19:36 PST 2007


Backport if_mii().

Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---

 .../backport/2.6.5_sles9_sp3/include/linux/mii.h   |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/mii.h b/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/mii.h
new file mode 100644
index 0000000..9351a64
--- /dev/null
+++ b/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/mii.h
@@ -0,0 +1,17 @@
+#ifndef BACKPORT_LINUX_MII_TO_SLES9SP3
+#define BACKPORT_LINUX_MII_TO_SLES9SP3
+#include_next <linux/mii.h>
+
+#define BMCR_SPEED1000              0x0040  /* MSB of Speed (1000)         */
+#define ADVERTISE_PAUSE_CAP     0x0400  /* Try for pause               */
+#define ADVERTISE_PAUSE_ASYM    0x0800  /* Try for asymetric pause     */
+#define MII_CTRL1000        0x09        /* 1000BASE-T control          */
+#define ADVERTISE_1000FULL      0x0200  /* Advertise 1000BASE-T full duplex */
+#define ADVERTISE_1000HALF      0x0100  /* Advertise 1000BASE-T half duplex */
+
+
+static inline struct mii_ioctl_data *if_mii(struct ifreq *rq)
+{
+	return (struct mii_ioctl_data *) &rq->ifr_ifru;
+}
+#endif




More information about the general mailing list