xref: /openbmc/linux/drivers/tty/ipwireless/tty.h (revision 55fd7e02)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * IPWireless 3G PCMCIA Network Driver
4  *
5  * Original code
6  *   by Stephen Blackheath <stephen@blacksapphire.com>,
7  *      Ben Martel <benm@symmetric.co.nz>
8  *
9  * Copyrighted as follows:
10  *   Copyright (C) 2004 by Symmetric Systems Ltd (NZ)
11  *
12  * Various driver changes and rewrites, port to new kernels
13  *   Copyright (C) 2006-2007 Jiri Kosina
14  *
15  * Misc code cleanups and updates
16  *   Copyright (C) 2007 David Sterba
17  */
18 
19 #ifndef _IPWIRELESS_CS_TTY_H_
20 #define _IPWIRELESS_CS_TTY_H_
21 
22 #include <linux/types.h>
23 #include <linux/sched.h>
24 
25 #include <pcmcia/cistpl.h>
26 #include <pcmcia/ds.h>
27 
28 struct ipw_tty;
29 struct ipw_network;
30 struct ipw_hardware;
31 
32 int ipwireless_tty_init(void);
33 void ipwireless_tty_release(void);
34 
35 struct ipw_tty *ipwireless_tty_create(struct ipw_hardware *hw,
36 				      struct ipw_network *net);
37 void ipwireless_tty_free(struct ipw_tty *tty);
38 void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data,
39 			     unsigned int length);
40 int ipwireless_tty_is_modem(struct ipw_tty *tty);
41 void ipwireless_tty_notify_control_line_change(struct ipw_tty *tty,
42 					       unsigned int channel_idx,
43 					       unsigned int control_lines,
44 					       unsigned int changed_mask);
45 
46 #endif
47