1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #ifndef _IPWIRELESS_CS_SETUP_PROTOCOL_H_
20 #define _IPWIRELESS_CS_SETUP_PROTOCOL_H_
21
22
23 #define TL_SETUP_VERSION 1
24
25 #define TL_SETUP_VERSION_QRY_TMO 1000
26 #define TL_SETUP_MAX_VERSION_QRY 30
27
28
29 #define TL_SETUP_SIGNO_GET_VERSION_QRY 10
30 #define TL_SETUP_SIGNO_GET_VERSION_RSP 11
31 #define TL_SETUP_SIGNO_CONFIG_MSG 12
32 #define TL_SETUP_SIGNO_CONFIG_DONE_MSG 13
33 #define TL_SETUP_SIGNO_OPEN_MSG 14
34 #define TL_SETUP_SIGNO_CLOSE_MSG 15
35
36 #define TL_SETUP_SIGNO_INFO_MSG 20
37 #define TL_SETUP_SIGNO_INFO_MSG_ACK 21
38
39 #define TL_SETUP_SIGNO_REBOOT_MSG 22
40 #define TL_SETUP_SIGNO_REBOOT_MSG_ACK 23
41
42
43 struct tl_setup_get_version_qry {
44 unsigned char sig_no;
45 } __attribute__ ((__packed__));
46
47 struct tl_setup_get_version_rsp {
48 unsigned char sig_no;
49 unsigned char version;
50 } __attribute__ ((__packed__));
51
52 struct tl_setup_config_msg {
53 unsigned char sig_no;
54 unsigned char port_no;
55 unsigned char prio_data;
56 unsigned char prio_ctrl;
57 } __attribute__ ((__packed__));
58
59 struct tl_setup_config_done_msg {
60 unsigned char sig_no;
61 } __attribute__ ((__packed__));
62
63
64 struct tl_setup_open_msg {
65 unsigned char sig_no;
66 unsigned char port_no;
67 } __attribute__ ((__packed__));
68
69 struct tl_setup_close_msg {
70 unsigned char sig_no;
71 unsigned char port_no;
72 } __attribute__ ((__packed__));
73
74
75 #define COMM_DRIVER 0
76 #define NDISWAN_DRIVER 1
77 #define NDISWAN_DRIVER_MAJOR_VERSION 2
78 #define NDISWAN_DRIVER_MINOR_VERSION 0
79
80
81
82
83
84 struct tl_setup_info_msg {
85 unsigned char sig_no;
86 unsigned char driver_type;
87 unsigned char major_version;
88 unsigned char minor_version;
89 } __attribute__ ((__packed__));
90
91 struct tl_setup_info_msgAck {
92 unsigned char sig_no;
93 } __attribute__ ((__packed__));
94
95 struct TlSetupRebootMsgAck {
96 unsigned char sig_no;
97 } __attribute__ ((__packed__));
98
99
100 union ipw_setup_rx_msg {
101 unsigned char sig_no;
102 struct tl_setup_get_version_rsp version_rsp_msg;
103 struct tl_setup_open_msg open_msg;
104 struct tl_setup_close_msg close_msg;
105 struct tl_setup_info_msg InfoMsg;
106 struct tl_setup_info_msgAck info_msg_ack;
107 } __attribute__ ((__packed__));
108
109 #endif