Logo Search packages:      
Sourcecode: pcmcia-cs version File versions  Download package

ibmtr.h

#ifndef _COMPAT_IBMTR_H
#define _COMPAT_IBMTR_H

#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,4,0))
#include_next <linux/ibmtr.h>
#else
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,21))
#include <../drivers/net/tokenring/ibmtr.h>
#else
#include <../drivers/net/ibmtr.h>
#endif
#endif

#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,100))
extern struct timer_list tr_timer;
#endif

#if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,1,16))
#define register_trdev register_netdev
#define unregister_trdev unregister_netdev
#endif

#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0))
static inline struct net_device *init_trdev(void *p, int n)
{
    struct net_device *dev;
    dev = kmalloc(sizeof(struct net_device), GFP_KERNEL);
    if (dev)
      memset(dev, 0, sizeof(struct net_device));
    return dev;
}
#endif

#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0))
  #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,17)) || defined(BLOCKSZ)
  #define TR_OLD 0
  #else
  #define TR_OLD 1
  #endif
#else
  #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,7)) || !defined(ADAPTINTCNTRL)
  #define TR_OLD 0
  #else
  #define TR_OLD 1
#endif

#endif

#endif /* _COMPAT_IBMTR_H */

Generated by  Doxygen 1.6.0   Back to index