diff options
Diffstat (limited to 'include/linux/usb/rndis_host.h')
-rw-r--r-- | include/linux/usb/rndis_host.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/include/linux/usb/rndis_host.h b/include/linux/usb/rndis_host.h index 1ef1ebc2b04f..05ef52861988 100644 --- a/include/linux/usb/rndis_host.h +++ b/include/linux/usb/rndis_host.h | |||
@@ -34,10 +34,10 @@ | |||
34 | struct rndis_msg_hdr { | 34 | struct rndis_msg_hdr { |
35 | __le32 msg_type; /* RNDIS_MSG_* */ | 35 | __le32 msg_type; /* RNDIS_MSG_* */ |
36 | __le32 msg_len; | 36 | __le32 msg_len; |
37 | // followed by data that varies between messages | 37 | /* followed by data that varies between messages */ |
38 | __le32 request_id; | 38 | __le32 request_id; |
39 | __le32 status; | 39 | __le32 status; |
40 | // ... and more | 40 | /* ... and more */ |
41 | } __attribute__ ((packed)); | 41 | } __attribute__ ((packed)); |
42 | 42 | ||
43 | /* MS-Windows uses this strange size, but RNDIS spec says 1024 minimum */ | 43 | /* MS-Windows uses this strange size, but RNDIS spec says 1024 minimum */ |
@@ -92,67 +92,67 @@ struct rndis_msg_hdr { | |||
92 | 92 | ||
93 | struct rndis_data_hdr { | 93 | struct rndis_data_hdr { |
94 | __le32 msg_type; /* RNDIS_MSG_PACKET */ | 94 | __le32 msg_type; /* RNDIS_MSG_PACKET */ |
95 | __le32 msg_len; // rndis_data_hdr + data_len + pad | 95 | __le32 msg_len; /* rndis_data_hdr + data_len + pad */ |
96 | __le32 data_offset; // 36 -- right after header | 96 | __le32 data_offset; /* 36 -- right after header */ |
97 | __le32 data_len; // ... real packet size | 97 | __le32 data_len; /* ... real packet size */ |
98 | 98 | ||
99 | __le32 oob_data_offset; // zero | 99 | __le32 oob_data_offset; /* zero */ |
100 | __le32 oob_data_len; // zero | 100 | __le32 oob_data_len; /* zero */ |
101 | __le32 num_oob; // zero | 101 | __le32 num_oob; /* zero */ |
102 | __le32 packet_data_offset; // zero | 102 | __le32 packet_data_offset; /* zero */ |
103 | 103 | ||
104 | __le32 packet_data_len; // zero | 104 | __le32 packet_data_len; /* zero */ |
105 | __le32 vc_handle; // zero | 105 | __le32 vc_handle; /* zero */ |
106 | __le32 reserved; // zero | 106 | __le32 reserved; /* zero */ |
107 | } __attribute__ ((packed)); | 107 | } __attribute__ ((packed)); |
108 | 108 | ||
109 | struct rndis_init { /* OUT */ | 109 | struct rndis_init { /* OUT */ |
110 | // header and: | 110 | /* header and: */ |
111 | __le32 msg_type; /* RNDIS_MSG_INIT */ | 111 | __le32 msg_type; /* RNDIS_MSG_INIT */ |
112 | __le32 msg_len; // 24 | 112 | __le32 msg_len; /* 24 */ |
113 | __le32 request_id; | 113 | __le32 request_id; |
114 | __le32 major_version; // of rndis (1.0) | 114 | __le32 major_version; /* of rndis (1.0) */ |
115 | __le32 minor_version; | 115 | __le32 minor_version; |
116 | __le32 max_transfer_size; | 116 | __le32 max_transfer_size; |
117 | } __attribute__ ((packed)); | 117 | } __attribute__ ((packed)); |
118 | 118 | ||
119 | struct rndis_init_c { /* IN */ | 119 | struct rndis_init_c { /* IN */ |
120 | // header and: | 120 | /* header and: */ |
121 | __le32 msg_type; /* RNDIS_MSG_INIT_C */ | 121 | __le32 msg_type; /* RNDIS_MSG_INIT_C */ |
122 | __le32 msg_len; | 122 | __le32 msg_len; |
123 | __le32 request_id; | 123 | __le32 request_id; |
124 | __le32 status; | 124 | __le32 status; |
125 | __le32 major_version; // of rndis (1.0) | 125 | __le32 major_version; /* of rndis (1.0) */ |
126 | __le32 minor_version; | 126 | __le32 minor_version; |
127 | __le32 device_flags; | 127 | __le32 device_flags; |
128 | __le32 medium; // zero == 802.3 | 128 | __le32 medium; /* zero == 802.3 */ |
129 | __le32 max_packets_per_message; | 129 | __le32 max_packets_per_message; |
130 | __le32 max_transfer_size; | 130 | __le32 max_transfer_size; |
131 | __le32 packet_alignment; // max 7; (1<<n) bytes | 131 | __le32 packet_alignment; /* max 7; (1<<n) bytes */ |
132 | __le32 af_list_offset; // zero | 132 | __le32 af_list_offset; /* zero */ |
133 | __le32 af_list_size; // zero | 133 | __le32 af_list_size; /* zero */ |
134 | } __attribute__ ((packed)); | 134 | } __attribute__ ((packed)); |
135 | 135 | ||
136 | struct rndis_halt { /* OUT (no reply) */ | 136 | struct rndis_halt { /* OUT (no reply) */ |
137 | // header and: | 137 | /* header and: */ |
138 | __le32 msg_type; /* RNDIS_MSG_HALT */ | 138 | __le32 msg_type; /* RNDIS_MSG_HALT */ |
139 | __le32 msg_len; | 139 | __le32 msg_len; |
140 | __le32 request_id; | 140 | __le32 request_id; |
141 | } __attribute__ ((packed)); | 141 | } __attribute__ ((packed)); |
142 | 142 | ||
143 | struct rndis_query { /* OUT */ | 143 | struct rndis_query { /* OUT */ |
144 | // header and: | 144 | /* header and: */ |
145 | __le32 msg_type; /* RNDIS_MSG_QUERY */ | 145 | __le32 msg_type; /* RNDIS_MSG_QUERY */ |
146 | __le32 msg_len; | 146 | __le32 msg_len; |
147 | __le32 request_id; | 147 | __le32 request_id; |
148 | __le32 oid; | 148 | __le32 oid; |
149 | __le32 len; | 149 | __le32 len; |
150 | __le32 offset; | 150 | __le32 offset; |
151 | /*?*/ __le32 handle; // zero | 151 | /*?*/ __le32 handle; /* zero */ |
152 | } __attribute__ ((packed)); | 152 | } __attribute__ ((packed)); |
153 | 153 | ||
154 | struct rndis_query_c { /* IN */ | 154 | struct rndis_query_c { /* IN */ |
155 | // header and: | 155 | /* header and: */ |
156 | __le32 msg_type; /* RNDIS_MSG_QUERY_C */ | 156 | __le32 msg_type; /* RNDIS_MSG_QUERY_C */ |
157 | __le32 msg_len; | 157 | __le32 msg_len; |
158 | __le32 request_id; | 158 | __le32 request_id; |
@@ -162,18 +162,18 @@ struct rndis_query_c { /* IN */ | |||
162 | } __attribute__ ((packed)); | 162 | } __attribute__ ((packed)); |
163 | 163 | ||
164 | struct rndis_set { /* OUT */ | 164 | struct rndis_set { /* OUT */ |
165 | // header and: | 165 | /* header and: */ |
166 | __le32 msg_type; /* RNDIS_MSG_SET */ | 166 | __le32 msg_type; /* RNDIS_MSG_SET */ |
167 | __le32 msg_len; | 167 | __le32 msg_len; |
168 | __le32 request_id; | 168 | __le32 request_id; |
169 | __le32 oid; | 169 | __le32 oid; |
170 | __le32 len; | 170 | __le32 len; |
171 | __le32 offset; | 171 | __le32 offset; |
172 | /*?*/ __le32 handle; // zero | 172 | /*?*/ __le32 handle; /* zero */ |
173 | } __attribute__ ((packed)); | 173 | } __attribute__ ((packed)); |
174 | 174 | ||
175 | struct rndis_set_c { /* IN */ | 175 | struct rndis_set_c { /* IN */ |
176 | // header and: | 176 | /* header and: */ |
177 | __le32 msg_type; /* RNDIS_MSG_SET_C */ | 177 | __le32 msg_type; /* RNDIS_MSG_SET_C */ |
178 | __le32 msg_len; | 178 | __le32 msg_len; |
179 | __le32 request_id; | 179 | __le32 request_id; |
@@ -181,14 +181,14 @@ struct rndis_set_c { /* IN */ | |||
181 | } __attribute__ ((packed)); | 181 | } __attribute__ ((packed)); |
182 | 182 | ||
183 | struct rndis_reset { /* IN */ | 183 | struct rndis_reset { /* IN */ |
184 | // header and: | 184 | /* header and: */ |
185 | __le32 msg_type; /* RNDIS_MSG_RESET */ | 185 | __le32 msg_type; /* RNDIS_MSG_RESET */ |
186 | __le32 msg_len; | 186 | __le32 msg_len; |
187 | __le32 reserved; | 187 | __le32 reserved; |
188 | } __attribute__ ((packed)); | 188 | } __attribute__ ((packed)); |
189 | 189 | ||
190 | struct rndis_reset_c { /* OUT */ | 190 | struct rndis_reset_c { /* OUT */ |
191 | // header and: | 191 | /* header and: */ |
192 | __le32 msg_type; /* RNDIS_MSG_RESET_C */ | 192 | __le32 msg_type; /* RNDIS_MSG_RESET_C */ |
193 | __le32 msg_len; | 193 | __le32 msg_len; |
194 | __le32 status; | 194 | __le32 status; |
@@ -196,7 +196,7 @@ struct rndis_reset_c { /* OUT */ | |||
196 | } __attribute__ ((packed)); | 196 | } __attribute__ ((packed)); |
197 | 197 | ||
198 | struct rndis_indicate { /* IN (unrequested) */ | 198 | struct rndis_indicate { /* IN (unrequested) */ |
199 | // header and: | 199 | /* header and: */ |
200 | __le32 msg_type; /* RNDIS_MSG_INDICATE */ | 200 | __le32 msg_type; /* RNDIS_MSG_INDICATE */ |
201 | __le32 msg_len; | 201 | __le32 msg_len; |
202 | __le32 status; | 202 | __le32 status; |
@@ -208,14 +208,14 @@ struct rndis_indicate { /* IN (unrequested) */ | |||
208 | } __attribute__ ((packed)); | 208 | } __attribute__ ((packed)); |
209 | 209 | ||
210 | struct rndis_keepalive { /* OUT (optionally IN) */ | 210 | struct rndis_keepalive { /* OUT (optionally IN) */ |
211 | // header and: | 211 | /* header and: */ |
212 | __le32 msg_type; /* RNDIS_MSG_KEEPALIVE */ | 212 | __le32 msg_type; /* RNDIS_MSG_KEEPALIVE */ |
213 | __le32 msg_len; | 213 | __le32 msg_len; |
214 | __le32 request_id; | 214 | __le32 request_id; |
215 | } __attribute__ ((packed)); | 215 | } __attribute__ ((packed)); |
216 | 216 | ||
217 | struct rndis_keepalive_c { /* IN (optionally OUT) */ | 217 | struct rndis_keepalive_c { /* IN (optionally OUT) */ |
218 | // header and: | 218 | /* header and: */ |
219 | __le32 msg_type; /* RNDIS_MSG_KEEPALIVE_C */ | 219 | __le32 msg_type; /* RNDIS_MSG_KEEPALIVE_C */ |
220 | __le32 msg_len; | 220 | __le32 msg_len; |
221 | __le32 request_id; | 221 | __le32 request_id; |