1 --- src/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h 2010-07-09 04:13:47.000000000 +0200
2 +++ src/2010_0709_RT2870_Linux_STA_v2.4.0.1/include/os/rt_linux.h 2010-08-19 14:58:11.176667029 +0200
4 #define RT28XX_PUT_DEVICE usb_put_dev
5 #define RTUSB_ALLOC_URB(iso) usb_alloc_urb(iso, GFP_ATOMIC)
6 #define RTUSB_SUBMIT_URB(pUrb) usb_submit_urb(pUrb, GFP_ATOMIC)
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
8 #define RTUSB_URB_ALLOC_BUFFER(pUsb_Dev, BufSize, pDma_addr) usb_buffer_alloc(pUsb_Dev, BufSize, GFP_ATOMIC, pDma_addr)
9 #define RTUSB_URB_FREE_BUFFER(pUsb_Dev, BufSize, pTransferBuf, Dma_addr) usb_buffer_free(pUsb_Dev, BufSize, pTransferBuf, Dma_addr)
11 +#define RTUSB_URB_ALLOC_BUFFER(pUsb_Dev, BufSize, pDma_addr) usb_alloc_coherent(pUsb_Dev, BufSize, GFP_ATOMIC, pDma_addr)
12 +#define RTUSB_URB_FREE_BUFFER(pUsb_Dev, BufSize, pTransferBuf, Dma_addr) usb_free_coherent(pUsb_Dev, BufSize, pTransferBuf, Dma_addr)
16 #define RT28XX_PUT_DEVICE rausb_put_dev
17 #define RTUSB_ALLOC_URB(iso) rausb_alloc_urb(iso)