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_TTY_H_ 20282361a0SGreg Kroah-Hartman #define _IPWIRELESS_CS_TTY_H_ 21282361a0SGreg Kroah-Hartman 22282361a0SGreg Kroah-Hartman #include <linux/types.h> 23282361a0SGreg Kroah-Hartman #include <linux/sched.h> 24282361a0SGreg Kroah-Hartman 25282361a0SGreg Kroah-Hartman #include <pcmcia/cistpl.h> 26282361a0SGreg Kroah-Hartman #include <pcmcia/ds.h> 27282361a0SGreg Kroah-Hartman 28282361a0SGreg Kroah-Hartman struct ipw_tty; 29282361a0SGreg Kroah-Hartman struct ipw_network; 30282361a0SGreg Kroah-Hartman struct ipw_hardware; 31282361a0SGreg Kroah-Hartman 32282361a0SGreg Kroah-Hartman int ipwireless_tty_init(void); 33282361a0SGreg Kroah-Hartman void ipwireless_tty_release(void); 34282361a0SGreg Kroah-Hartman 35282361a0SGreg Kroah-Hartman struct ipw_tty *ipwireless_tty_create(struct ipw_hardware *hw, 36282361a0SGreg Kroah-Hartman struct ipw_network *net); 37282361a0SGreg Kroah-Hartman void ipwireless_tty_free(struct ipw_tty *tty); 38282361a0SGreg Kroah-Hartman void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data, 39282361a0SGreg Kroah-Hartman unsigned int length); 40282361a0SGreg Kroah-Hartman int ipwireless_tty_is_modem(struct ipw_tty *tty); 41282361a0SGreg Kroah-Hartman void ipwireless_tty_notify_control_line_change(struct ipw_tty *tty, 42282361a0SGreg Kroah-Hartman unsigned int channel_idx, 43282361a0SGreg Kroah-Hartman unsigned int control_lines, 44282361a0SGreg Kroah-Hartman unsigned int changed_mask); 45282361a0SGreg Kroah-Hartman 46282361a0SGreg Kroah-Hartman #endif 47