b850f8a7ce1720f2d936eaf50fb7afec2730b9e6
[~emulex/for-vlad/old/compat.git] / include / linux / compat-2.6.35.h
1 #ifndef LINUX_26_35_COMPAT_H
2 #define LINUX_26_35_COMPAT_H
3
4 #include <linux/version.h>
5
6 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35))
7 #include <linux/etherdevice.h>
8 #include <net/sock.h>
9
10 #define IW_HANDLER(id, func)                    \
11         [IW_IOCTL_IDX(id)] = func
12
13 #define  SDIO_BUS_ECSI          0x20    /* Enable continuous SPI interrupt */
14 #define  SDIO_BUS_SCSI          0x40    /* Support continuous SPI interrupt */
15
16 #define netdev_hw_addr dev_mc_list
17
18 static inline wait_queue_head_t *sk_sleep(struct sock *sk)
19 {
20         return sk->sk_sleep;
21 }
22
23 #define kparam_block_sysfs_write(a)
24 #define kparam_unblock_sysfs_write(a)
25
26 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)) */
27
28 #endif /* LINUX_26_35_COMPAT_H */