netdev
[Top] [All Lists]

[PATCH 1/3] net: generic netdev_ioaddr

To: davem@xxxxxxxxxxxxx
Subject: [PATCH 1/3] net: generic netdev_ioaddr
From: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
Date: Fri, 29 Oct 2004 13:04:38 +0300
Cc: netdev@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
In-reply-to: <1099044244.9566.0.camel@localhost>
References: <1099044244.9566.0.camel@localhost>
Sender: netdev-bounce@xxxxxxxxxxx
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.



<Prev in Thread] Current Thread [Next in Thread>