1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 ******************************************************************************/
15 #ifndef __OSDEP_SERVICE_H_
16 #define __OSDEP_SERVICE_H_
20 #define RTW_RX_HANDLED 2
22 #include <linux/spinlock.h>
23 #include <linux/compiler.h>
24 #include <linux/kernel.h>
25 #include <linux/errno.h>
26 #include <linux/init.h>
27 #include <linux/slab.h>
28 #include <linux/module.h>
29 #include <linux/kref.h>
30 #include <linux/netdevice.h>
31 #include <linux/skbuff.h>
32 #include <linux/uaccess.h>
33 #include <asm/byteorder.h>
34 #include <linux/atomic.h>
36 #include <linux/semaphore.h>
37 #include <linux/sem.h>
38 #include <linux/sched.h>
39 #include <linux/etherdevice.h>
40 #include <linux/wireless.h>
41 #include <linux/if_arp.h>
42 #include <linux/rtnetlink.h>
43 #include <linux/delay.h>
44 #include <linux/interrupt.h> /* for struct tasklet_struct */
47 #include <net/ieee80211_radiotap.h>
48 #include <net/cfg80211.h>
51 struct list_head queue
;
55 static inline struct list_head
*get_list_head(struct rtw_queue
*queue
)
60 static inline int rtw_netif_queue_stopped(struct net_device
*pnetdev
)
62 return (netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev
, 0)) &&
63 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev
, 1)) &&
64 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev
, 2)) &&
65 netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev
, 3)));
68 static inline u32
CHKBIT(u32 x
)
76 extern unsigned char MCS_rate_2R23A
[16];
78 extern unsigned char MCS_rate_2R23A
[16];
79 extern unsigned char MCS_rate_1R23A
[16];
81 void _rtw_init_queue23a(struct rtw_queue
*pqueue
);
83 /* Macros for handling unaligned memory accesses */
85 #define RTW_GET_BE24(a) ((((u32) (a)[0]) << 16) | (((u32) (a)[1]) << 8) | \
This page took 0.034233 seconds and 6 git commands to generate.