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_NETWORK_H_
0020 #define _IPWIRELESS_CS_NETWORK_H_
0021 
0022 #include <linux/types.h>
0023 
0024 struct ipw_network;
0025 struct ipw_tty;
0026 struct ipw_hardware;
0027 
0028 /* Definitions of the different channels on the PCMCIA UE */
0029 #define IPW_CHANNEL_RAS      0
0030 #define IPW_CHANNEL_DIALLER  1
0031 #define IPW_CHANNEL_CONSOLE  2
0032 #define NO_OF_IPW_CHANNELS   5
0033 
0034 void ipwireless_network_notify_control_line_change(struct ipw_network *net,
0035         unsigned int channel_idx, unsigned int control_lines,
0036         unsigned int control_mask);
0037 void ipwireless_network_packet_received(struct ipw_network *net,
0038         unsigned int channel_idx, unsigned char *data,
0039         unsigned int length);
0040 struct ipw_network *ipwireless_network_create(struct ipw_hardware *hw);
0041 void ipwireless_network_free(struct ipw_network *net);
0042 void ipwireless_associate_network_tty(struct ipw_network *net,
0043         unsigned int channel_idx, struct ipw_tty *tty);
0044 void ipwireless_disassociate_network_ttys(struct ipw_network *net,
0045         unsigned int channel_idx);
0046 
0047 void ipwireless_ppp_open(struct ipw_network *net);
0048 
0049 void ipwireless_ppp_close(struct ipw_network *net);
0050 int ipwireless_ppp_channel_index(struct ipw_network *net);
0051 int ipwireless_ppp_unit_number(struct ipw_network *net);
0052 int ipwireless_ppp_mru(const struct ipw_network *net);
0053 
0054 #endif