linux/drivers/tty/ipwireless/tty.h
<<
>>
Prefs
   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
  28struct ipw_tty;
  29struct ipw_network;
  30struct ipw_hardware;
  31
  32int ipwireless_tty_init(void);
  33void ipwireless_tty_release(void);
  34
  35struct ipw_tty *ipwireless_tty_create(struct ipw_hardware *hw,
  36                                      struct ipw_network *net);
  37void ipwireless_tty_free(struct ipw_tty *tty);
  38void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data,
  39                             unsigned int length);
  40int ipwireless_tty_is_modem(struct ipw_tty *tty);
  41void 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