1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2282361a0SGreg Kroah-Hartman /* 3282361a0SGreg Kroah-Hartman * IPWireless 3G PCMCIA Network Driver 4282361a0SGreg Kroah-Hartman * 5282361a0SGreg Kroah-Hartman * Original code 6282361a0SGreg Kroah-Hartman * by Stephen Blackheath <stephen@blacksapphire.com>, 7282361a0SGreg Kroah-Hartman * Ben Martel <benm@symmetric.co.nz> 8282361a0SGreg Kroah-Hartman * 9282361a0SGreg Kroah-Hartman * Copyrighted as follows: 10282361a0SGreg Kroah-Hartman * Copyright (C) 2004 by Symmetric Systems Ltd (NZ) 11282361a0SGreg Kroah-Hartman * 12282361a0SGreg Kroah-Hartman * Various driver changes and rewrites, port to new kernels 13282361a0SGreg Kroah-Hartman * Copyright (C) 2006-2007 Jiri Kosina 14282361a0SGreg Kroah-Hartman * 15282361a0SGreg Kroah-Hartman * Misc code cleanups and updates 16282361a0SGreg Kroah-Hartman * Copyright (C) 2007 David Sterba 17282361a0SGreg Kroah-Hartman */ 18282361a0SGreg Kroah-Hartman 19282361a0SGreg Kroah-Hartman #ifndef _IPWIRELESS_CS_H_ 20282361a0SGreg Kroah-Hartman #define _IPWIRELESS_CS_H_ 21282361a0SGreg Kroah-Hartman 22282361a0SGreg Kroah-Hartman #include <linux/sched.h> 23282361a0SGreg Kroah-Hartman #include <linux/types.h> 24282361a0SGreg Kroah-Hartman 25282361a0SGreg Kroah-Hartman #include <pcmcia/cistpl.h> 26282361a0SGreg Kroah-Hartman #include <pcmcia/ds.h> 27282361a0SGreg Kroah-Hartman 28282361a0SGreg Kroah-Hartman #include "hardware.h" 29282361a0SGreg Kroah-Hartman 30282361a0SGreg Kroah-Hartman #define IPWIRELESS_PCCARD_NAME "ipwireless" 31282361a0SGreg Kroah-Hartman #define IPWIRELESS_PCMCIA_VERSION "1.1" 32282361a0SGreg Kroah-Hartman #define IPWIRELESS_PCMCIA_AUTHOR \ 33282361a0SGreg Kroah-Hartman "Stephen Blackheath, Ben Martel, Jiri Kosina and David Sterba" 34282361a0SGreg Kroah-Hartman 35282361a0SGreg Kroah-Hartman #define IPWIRELESS_TX_QUEUE_SIZE 262144 36282361a0SGreg Kroah-Hartman #define IPWIRELESS_RX_QUEUE_SIZE 262144 37282361a0SGreg Kroah-Hartman 38282361a0SGreg Kroah-Hartman #define IPWIRELESS_STATE_DEBUG 39282361a0SGreg Kroah-Hartman 40282361a0SGreg Kroah-Hartman struct ipw_hardware; 41282361a0SGreg Kroah-Hartman struct ipw_network; 42282361a0SGreg Kroah-Hartman struct ipw_tty; 43282361a0SGreg Kroah-Hartman 44282361a0SGreg Kroah-Hartman struct ipw_dev { 45282361a0SGreg Kroah-Hartman struct pcmcia_device *link; 46282361a0SGreg Kroah-Hartman int is_v2_card; 47282361a0SGreg Kroah-Hartman 48282361a0SGreg Kroah-Hartman void __iomem *attr_memory; 49282361a0SGreg Kroah-Hartman 50282361a0SGreg Kroah-Hartman void __iomem *common_memory; 51282361a0SGreg Kroah-Hartman 52282361a0SGreg Kroah-Hartman /* Hardware context */ 53282361a0SGreg Kroah-Hartman struct ipw_hardware *hardware; 54282361a0SGreg Kroah-Hartman /* Network layer context */ 55282361a0SGreg Kroah-Hartman struct ipw_network *network; 56282361a0SGreg Kroah-Hartman /* TTY device context */ 57282361a0SGreg Kroah-Hartman struct ipw_tty *tty; 58282361a0SGreg Kroah-Hartman struct work_struct work_reboot; 59282361a0SGreg Kroah-Hartman }; 60282361a0SGreg Kroah-Hartman 61282361a0SGreg Kroah-Hartman /* Module parametres */ 62282361a0SGreg Kroah-Hartman extern int ipwireless_debug; 63282361a0SGreg Kroah-Hartman extern int ipwireless_loopback; 64282361a0SGreg Kroah-Hartman extern int ipwireless_out_queue; 65282361a0SGreg Kroah-Hartman 66282361a0SGreg Kroah-Hartman #endif 67