1 #ifndef LINUX_26_35_COMPAT_H
2 #define LINUX_26_35_COMPAT_H
4 #include <linux/version.h>
6 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35))
7 #include <linux/etherdevice.h>
9 #include <linux/types.h>
16 /* added on linux/kernel.h */
17 #define USHRT_MAX ((u16)(~0U))
18 #define SHRT_MAX ((s16)(USHRT_MAX>>1))
19 #define SHRT_MIN ((s16)(-SHRT_MAX - 1))
21 #define SDIO_BUS_ECSI 0x20 /* Enable continuous SPI interrupt */
22 #define SDIO_BUS_SCSI 0x40 /* Support continuous SPI interrupt */
24 #define netdev_hw_addr dev_mc_list
26 static inline wait_queue_head_t *sk_sleep(struct sock *sk)
31 #define sdio_writeb_readb(func, write_byte, addr, err_ret) sdio_readb(func, addr, err_ret)
33 int hex_to_bin(char ch);
35 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)) */
37 #endif /* LINUX_26_35_COMPAT_H */