Staging: brcm80211: remove old module macro wrappers
[pandora-kernel.git] / drivers / staging / brcm80211 / include / linuxver.h
1 /*
2  * Copyright (c) 2010 Broadcom Corporation
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16
17 #ifndef _linuxver_h_
18 #define _linuxver_h_
19
20 #include <linux/version.h>
21 #include <linux/module.h>
22
23 #include <linux/slab.h>
24
25 #include <linux/types.h>
26 #include <linux/init.h>
27 #include <linux/mm.h>
28 #include <linux/string.h>
29 #include <linux/pci.h>
30 #include <linux/interrupt.h>
31 #include <linux/netdevice.h>
32 #undef IP_TOS
33 #include <asm/io.h>
34
35 #include <linux/workqueue.h>
36
37 typedef irqreturn_t(*FN_ISR) (int irq, void *dev_id, struct pt_regs * ptregs);
38
39 #include <linux/sched.h>
40 #include <linux/ieee80211.h>
41
42 #ifndef __exit
43 #define __exit
44 #endif
45 #ifndef __devexit
46 #define __devexit
47 #endif
48 #ifndef __devinit
49 #define __devinit       __init
50 #endif
51 #ifndef __devinitdata
52 #define __devinitdata
53 #endif
54 #ifndef __devexit_p
55 #define __devexit_p(x)  x
56 #endif
57
58 #define pci_module_init pci_register_driver
59
60 #define netif_down(dev)
61
62 /* Power management related macro & routines */
63 #define PCI_SAVE_STATE(a, b)    pci_save_state(a)
64 #define PCI_RESTORE_STATE(a, b) pci_restore_state(a)
65
66 #ifndef HAVE_FREE_NETDEV
67 #define free_netdev(dev)                kfree(dev)
68 #endif
69
70 /* suspend args */
71 #define DRV_SUSPEND_STATE_TYPE pm_message_t
72
73 #define CHECKSUM_HW     CHECKSUM_PARTIAL
74
75 #include <linux/time.h>
76 #include <linux/wait.h>
77
78 #define KILL_PROC(nr, sig) \
79         do { \
80                 struct task_struct *tsk; \
81                 struct pid *pid;    \
82                 pid = find_get_pid((pid_t)nr);    \
83                 tsk = pid_task(pid, PIDTYPE_PID);    \
84                 if (tsk) \
85                         send_sig(sig, tsk, 1); \
86         } while (0)
87
88 #define WL_DEV_IF(dev)          ((wl_if_t *)netdev_priv(dev))
89
90 #endif                          /* _linuxver_h_ */