]> bbs.cooldavid.org Git - net-next-2.6.git/blame - drivers/staging/brcm80211/include/linuxver.h
Staging: brcm80211: remove free_netdev wrapper
[net-next-2.6.git] / drivers / staging / brcm80211 / include / linuxver.h
CommitLineData
a9533e7e
HP
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
a9533e7e
HP
37typedef 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
a9533e7e
HP
66/* suspend args */
67#define DRV_SUSPEND_STATE_TYPE pm_message_t
68
69#define CHECKSUM_HW CHECKSUM_PARTIAL
70
71#include <linux/time.h>
72#include <linux/wait.h>
73
74#define KILL_PROC(nr, sig) \
75 do { \
76 struct task_struct *tsk; \
77 struct pid *pid; \
78 pid = find_get_pid((pid_t)nr); \
79 tsk = pid_task(pid, PIDTYPE_PID); \
62145822
JC
80 if (tsk) \
81 send_sig(sig, tsk, 1); \
a9533e7e
HP
82 } while (0)
83
39dcff3f 84#define WL_DEV_IF(dev) ((wl_if_t *)netdev_priv(dev))
a9533e7e
HP
85
86#endif /* _linuxver_h_ */