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