1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #ifndef _IPWIRELESS_CS_NETWORK_H_
20 #define _IPWIRELESS_CS_NETWORK_H_
21
22 #include <linux/types.h>
23
24 struct ipw_network;
25 struct ipw_tty;
26 struct ipw_hardware;
27
28
29 #define IPW_CHANNEL_RAS 0
30 #define IPW_CHANNEL_DIALLER 1
31 #define IPW_CHANNEL_CONSOLE 2
32 #define NO_OF_IPW_CHANNELS 5
33
34 void ipwireless_network_notify_control_line_change(struct ipw_network *net,
35 unsigned int channel_idx, unsigned int control_lines,
36 unsigned int control_mask);
37 void ipwireless_network_packet_received(struct ipw_network *net,
38 unsigned int channel_idx, unsigned char *data,
39 unsigned int length);
40 struct ipw_network *ipwireless_network_create(struct ipw_hardware *hw);
41 void ipwireless_network_free(struct ipw_network *net);
42 void ipwireless_associate_network_tty(struct ipw_network *net,
43 unsigned int channel_idx, struct ipw_tty *tty);
44 void ipwireless_disassociate_network_ttys(struct ipw_network *net,
45 unsigned int channel_idx);
46
47 void ipwireless_ppp_open(struct ipw_network *net);
48
49 void ipwireless_ppp_close(struct ipw_network *net);
50 int ipwireless_ppp_channel_index(struct ipw_network *net);
51 int ipwireless_ppp_unit_number(struct ipw_network *net);
52 int ipwireless_ppp_mru(const struct ipw_network *net);
53
54 #endif