1 /* SPDX-License-Identifier: GPL-2.0 */
2 /******************************************************************************
4 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
6 * Modifications for inclusion into the Linux staging tree are
7 * Copyright(c) 2010 Larry Finger. All rights reserved.
13 ******************************************************************************/
14 #ifndef __OSDEP_SERVICE_H_
15 #define __OSDEP_SERVICE_H_
20 #include <linux/spinlock.h>
22 #include <linux/interrupt.h>
23 #include <linux/semaphore.h>
24 #include <linux/sched/signal.h>
25 #include <linux/sem.h>
26 #include <linux/netdevice.h>
27 #include <linux/etherdevice.h>
28 #include <net/iw_handler.h>
29 #include <linux/proc_fs.h> /* Necessary because we use the proc fs */
31 #include "basic_types.h"
34 struct list_head queue;
38 #define _pkt struct sk_buff
39 #define _buffer unsigned char
41 #define _init_queue(pqueue) \
43 INIT_LIST_HEAD(&((pqueue)->queue)); \
44 spin_lock_init(&((pqueue)->lock)); \
47 static inline u32 end_of_queue_search(struct list_head *head,
48 struct list_head *plist)
50 return (head == plist);
53 static inline void flush_signals_thread(void)
55 if (signal_pending(current))
56 flush_signals(current);