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_TTY_H_
0020 #define _IPWIRELESS_CS_TTY_H_
0021 
0022 #include <linux/types.h>
0023 #include <linux/sched.h>
0024 
0025 #include <pcmcia/cistpl.h>
0026 #include <pcmcia/ds.h>
0027 
0028 struct ipw_tty;
0029 struct ipw_network;
0030 struct ipw_hardware;
0031 
0032 int ipwireless_tty_init(void);
0033 void ipwireless_tty_release(void);
0034 
0035 struct ipw_tty *ipwireless_tty_create(struct ipw_hardware *hw,
0036                       struct ipw_network *net);
0037 void ipwireless_tty_free(struct ipw_tty *tty);
0038 void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data,
0039                  unsigned int length);
0040 int ipwireless_tty_is_modem(struct ipw_tty *tty);
0041 void ipwireless_tty_notify_control_line_change(struct ipw_tty *tty,
0042                            unsigned int channel_idx,
0043                            unsigned int control_lines,
0044                            unsigned int changed_mask);
0045 
0046 #endif