Subject: [PATCH 1/3] net: generic netdev_ioaddr

From: Pekka Enberg <[email-masked]>
Date: Fri, 29 Oct 2004 13:04:38 +0300

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 <[email-masked]>
---

 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.