net: DCB: Validate DCB_ATTR_DCB_BUFFER argument
[linux/fpc-iii.git] / drivers / tty / ipwireless / main.h
blob73818bb64416759ed32cbca23037be1bd315540e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * IPWireless 3G PCMCIA Network Driver
5 * Original code
6 * by Stephen Blackheath <stephen@blacksapphire.com>,
7 * Ben Martel <benm@symmetric.co.nz>
9 * Copyrighted as follows:
10 * Copyright (C) 2004 by Symmetric Systems Ltd (NZ)
12 * Various driver changes and rewrites, port to new kernels
13 * Copyright (C) 2006-2007 Jiri Kosina
15 * Misc code cleanups and updates
16 * Copyright (C) 2007 David Sterba
19 #ifndef _IPWIRELESS_CS_H_
20 #define _IPWIRELESS_CS_H_
22 #include <linux/sched.h>
23 #include <linux/types.h>
25 #include <pcmcia/cistpl.h>
26 #include <pcmcia/ds.h>
28 #include "hardware.h"
30 #define IPWIRELESS_PCCARD_NAME "ipwireless"
31 #define IPWIRELESS_PCMCIA_VERSION "1.1"
32 #define IPWIRELESS_PCMCIA_AUTHOR \
33 "Stephen Blackheath, Ben Martel, Jiri Kosina and David Sterba"
35 #define IPWIRELESS_TX_QUEUE_SIZE 262144
36 #define IPWIRELESS_RX_QUEUE_SIZE 262144
38 #define IPWIRELESS_STATE_DEBUG
40 struct ipw_hardware;
41 struct ipw_network;
42 struct ipw_tty;
44 struct ipw_dev {
45 struct pcmcia_device *link;
46 int is_v2_card;
48 void __iomem *attr_memory;
50 void __iomem *common_memory;
52 /* Reference to attribute memory, containing CIS data */
53 void *attribute_memory;
55 /* Hardware context */
56 struct ipw_hardware *hardware;
57 /* Network layer context */
58 struct ipw_network *network;
59 /* TTY device context */
60 struct ipw_tty *tty;
61 struct work_struct work_reboot;
64 /* Module parametres */
65 extern int ipwireless_debug;
66 extern int ipwireless_loopback;
67 extern int ipwireless_out_queue;
69 #endif