Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * IPWireless 3G PCMCIA Network Driver
0004  *
0005  * Original code
0006  *   by Stephen Blackheath <stephen@blacksapphire.com>,
0007  *      Ben Martel <benm@symmetric.co.nz>
0008  *
0009  * Copyrighted as follows:
0010  *   Copyright (C) 2004 by Symmetric Systems Ltd (NZ)
0011  *
0012  * Various driver changes and rewrites, port to new kernels
0013  *   Copyright (C) 2006-2007 Jiri Kosina
0014  *
0015  * Misc code cleanups and updates
0016  *   Copyright (C) 2007 David Sterba
0017  */
0018 
0019 #ifndef _IPWIRELESS_CS_H_
0020 #define _IPWIRELESS_CS_H_
0021 
0022 #include <linux/sched.h>
0023 #include <linux/types.h>
0024 
0025 #include <pcmcia/cistpl.h>
0026 #include <pcmcia/ds.h>
0027 
0028 #include "hardware.h"
0029 
0030 #define IPWIRELESS_PCCARD_NAME      "ipwireless"
0031 #define IPWIRELESS_PCMCIA_VERSION   "1.1"
0032 #define IPWIRELESS_PCMCIA_AUTHOR        \
0033     "Stephen Blackheath, Ben Martel, Jiri Kosina and David Sterba"
0034 
0035 #define IPWIRELESS_TX_QUEUE_SIZE  262144
0036 #define IPWIRELESS_RX_QUEUE_SIZE  262144
0037 
0038 #define IPWIRELESS_STATE_DEBUG
0039 
0040 struct ipw_hardware;
0041 struct ipw_network;
0042 struct ipw_tty;
0043 
0044 struct ipw_dev {
0045     struct pcmcia_device *link;
0046     int is_v2_card;
0047 
0048     void __iomem *attr_memory;
0049 
0050     void __iomem *common_memory;
0051 
0052     /* Reference to attribute memory, containing CIS data */
0053     void *attribute_memory;
0054 
0055     /* Hardware context */
0056     struct ipw_hardware *hardware;
0057     /* Network layer context */
0058     struct ipw_network *network;
0059     /* TTY device context */
0060     struct ipw_tty *tty;
0061     struct work_struct work_reboot;
0062 };
0063 
0064 /* Module parametres */
0065 extern int ipwireless_debug;
0066 extern int ipwireless_loopback;
0067 extern int ipwireless_out_queue;
0068 
0069 #endif