0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
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
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