brintos

brintos / linux-shallow public Read only

0
0
Text · 1.7 KiB · 784932a Raw
55 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/*3 * IPWireless 3G PCMCIA Network Driver4 *5 * Original code6 *   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 kernels13 *   Copyright (C) 2006-2007 Jiri Kosina14 *15 * Misc code cleanups and updates16 *   Copyright (C) 2007 David Sterba17 */18 19#ifndef _IPWIRELESS_CS_NETWORK_H_20#define _IPWIRELESS_CS_NETWORK_H_21 22#include <linux/types.h>23 24struct ipw_network;25struct ipw_tty;26struct ipw_hardware;27 28/* Definitions of the different channels on the PCMCIA UE */29#define IPW_CHANNEL_RAS      030#define IPW_CHANNEL_DIALLER  131#define IPW_CHANNEL_CONSOLE  232#define NO_OF_IPW_CHANNELS   533 34void ipwireless_network_notify_control_line_change(struct ipw_network *net,35		unsigned int channel_idx, unsigned int control_lines,36		unsigned int control_mask);37void ipwireless_network_packet_received(struct ipw_network *net,38		unsigned int channel_idx, unsigned char *data,39		unsigned int length);40struct ipw_network *ipwireless_network_create(struct ipw_hardware *hw);41void ipwireless_network_free(struct ipw_network *net);42void ipwireless_associate_network_tty(struct ipw_network *net,43		unsigned int channel_idx, struct ipw_tty *tty);44void ipwireless_disassociate_network_ttys(struct ipw_network *net,45		unsigned int channel_idx);46 47void ipwireless_ppp_open(struct ipw_network *net);48 49void ipwireless_ppp_close(struct ipw_network *net);50int ipwireless_ppp_channel_index(struct ipw_network *net);51int ipwireless_ppp_unit_number(struct ipw_network *net);52int ipwireless_ppp_mru(const struct ipw_network *net);53 54#endif55