lkml.org 
[lkml]   [2004]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 1/3] net: generic netdev_ioaddr
    From
    Date
    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@cs.helsinki.fi>
    ---

    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:07    [W:0.020 / U:1.052 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site