[PATCH 1/3] net: generic netdev_ioaddr

From: Pekka Enberg
Date: Fri Oct 29 2004 - 05:06:45 EST


This patch introduces a generic netdev_ioaddr in include/linux/netdevice.h.
It is pulled from driver/net/natsemi.c.

Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
---

netdevice.h | 5 +++++
1 files changed, 5 insertions(+)

Index: 2.6.10-rc1-mm1/include/linux/netdevice.h
===================================================================
--- 2.6.10-rc1-mm1.orig/include/linux/netdevice.h 2004-10-29 11:07:56.000000000 +0300
+++ 2.6.10-rc1-mm1/include/linux/netdevice.h 2004-10-29 11:37:56.000000000 +0300
@@ -500,6 +500,11 @@
& ~NETDEV_ALIGN_CONST);
}

+static inline void __iomem *netdev_ioaddr(struct net_device *dev)
+{
+ return (void __iomem *) dev->base_addr;
+}
+
#define SET_MODULE_OWNER(dev) do { } while (0)
/* Set the sysfs physical device reference for the network logical device
* if set prior to registration will cause a symlink during initialization.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/