aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rndis.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-05-11 18:16:30 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-12 15:07:12 -0400
commit91d6aef7d12fc1ba860e0d1c9a445cfcf15655bd (patch)
tree73d53e4cb15e9328b714b099342a79fb4e0797c8 /include/linux/rndis.h
parentc3ef5eae862f642d3526f518086d75b575587e5e (diff)
usb/net: rndis: group all status codes together
Move all RNDIS status codes so they appear in rising order and in one place of the header file. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/rndis.h')
-rw-r--r--include/linux/rndis.h157
1 files changed, 76 insertions, 81 deletions
diff --git a/include/linux/rndis.h b/include/linux/rndis.h
index 70bd80ae8b4..2e0b1bd108c 100644
--- a/include/linux/rndis.h
+++ b/include/linux/rndis.h
@@ -20,15 +20,85 @@
20#define RNDIS_MSG_KEEPALIVE 0x00000008 20#define RNDIS_MSG_KEEPALIVE 0x00000008
21#define RNDIS_MSG_KEEPALIVE_C (RNDIS_MSG_KEEPALIVE|RNDIS_MSG_COMPLETION) 21#define RNDIS_MSG_KEEPALIVE_C (RNDIS_MSG_KEEPALIVE|RNDIS_MSG_COMPLETION)
22 22
23
24/* codes for "status" field of completion messages */ 23/* codes for "status" field of completion messages */
25#define RNDIS_STATUS_SUCCESS 0x00000000 24#define RNDIS_STATUS_SUCCESS 0x00000000
26#define RNDIS_STATUS_FAILURE 0xc0000001 25#define RNDIS_STATUS_PENDING 0x00000103
27#define RNDIS_STATUS_INVALID_DATA 0xc0010015 26
28#define RNDIS_STATUS_NOT_SUPPORTED 0xc00000bb 27/* Status codes */
29#define RNDIS_STATUS_MEDIA_CONNECT 0x4001000b 28#define RNDIS_STATUS_NOT_RECOGNIZED 0x00010001
30#define RNDIS_STATUS_MEDIA_DISCONNECT 0x4001000c 29#define RNDIS_STATUS_NOT_COPIED 0x00010002
30#define RNDIS_STATUS_NOT_ACCEPTED 0x00010003
31#define RNDIS_STATUS_CALL_ACTIVE 0x00010007
32
33#define RNDIS_STATUS_ONLINE 0x40010003
34#define RNDIS_STATUS_RESET_START 0x40010004
35#define RNDIS_STATUS_RESET_END 0x40010005
36#define RNDIS_STATUS_RING_STATUS 0x40010006
37#define RNDIS_STATUS_CLOSED 0x40010007
38#define RNDIS_STATUS_WAN_LINE_UP 0x40010008
39#define RNDIS_STATUS_WAN_LINE_DOWN 0x40010009
40#define RNDIS_STATUS_WAN_FRAGMENT 0x4001000A
41#define RNDIS_STATUS_MEDIA_CONNECT 0x4001000B
42#define RNDIS_STATUS_MEDIA_DISCONNECT 0x4001000C
43#define RNDIS_STATUS_HARDWARE_LINE_UP 0x4001000D
44#define RNDIS_STATUS_HARDWARE_LINE_DOWN 0x4001000E
45#define RNDIS_STATUS_INTERFACE_UP 0x4001000F
46#define RNDIS_STATUS_INTERFACE_DOWN 0x40010010
47#define RNDIS_STATUS_MEDIA_BUSY 0x40010011
31#define RNDIS_STATUS_MEDIA_SPECIFIC_INDICATION 0x40010012 48#define RNDIS_STATUS_MEDIA_SPECIFIC_INDICATION 0x40010012
49#define RNDIS_STATUS_WW_INDICATION RDIA_SPECIFIC_INDICATION
50#define RNDIS_STATUS_LINK_SPEED_CHANGE 0x40010013L
51
52#define RNDIS_STATUS_NOT_RESETTABLE 0x80010001
53#define RNDIS_STATUS_SOFT_ERRORS 0x80010003
54#define RNDIS_STATUS_HARD_ERRORS 0x80010004
55#define RNDIS_STATUS_BUFFER_OVERFLOW 0x80000005
56
57#define RNDIS_STATUS_FAILURE 0xC0000001
58#define RNDIS_STATUS_RESOURCES 0xC000009A
59#define RNDIS_STATUS_NOT_SUPPORTED 0xc00000BB
60#define RNDIS_STATUS_CLOSING 0xC0010002
61#define RNDIS_STATUS_BAD_VERSION 0xC0010004
62#define RNDIS_STATUS_BAD_CHARACTERISTICS 0xC0010005
63#define RNDIS_STATUS_ADAPTER_NOT_FOUND 0xC0010006
64#define RNDIS_STATUS_OPEN_FAILED 0xC0010007
65#define RNDIS_STATUS_DEVICE_FAILED 0xC0010008
66#define RNDIS_STATUS_MULTICAST_FULL 0xC0010009
67#define RNDIS_STATUS_MULTICAST_EXISTS 0xC001000A
68#define RNDIS_STATUS_MULTICAST_NOT_FOUND 0xC001000B
69#define RNDIS_STATUS_REQUEST_ABORTED 0xC001000C
70#define RNDIS_STATUS_RESET_IN_PROGRESS 0xC001000D
71#define RNDIS_STATUS_CLOSING_INDICATING 0xC001000E
72#define RNDIS_STATUS_INVALID_PACKET 0xC001000F
73#define RNDIS_STATUS_OPEN_LIST_FULL 0xC0010010
74#define RNDIS_STATUS_ADAPTER_NOT_READY 0xC0010011
75#define RNDIS_STATUS_ADAPTER_NOT_OPEN 0xC0010012
76#define RNDIS_STATUS_NOT_INDICATING 0xC0010013
77#define RNDIS_STATUS_INVALID_LENGTH 0xC0010014
78#define RNDIS_STATUS_INVALID_DATA 0xC0010015
79#define RNDIS_STATUS_BUFFER_TOO_SHORT 0xC0010016
80#define RNDIS_STATUS_INVALID_OID 0xC0010017
81#define RNDIS_STATUS_ADAPTER_REMOVED 0xC0010018
82#define RNDIS_STATUS_UNSUPPORTED_MEDIA 0xC0010019
83#define RNDIS_STATUS_GROUP_ADDRESS_IN_USE 0xC001001A
84#define RNDIS_STATUS_FILE_NOT_FOUND 0xC001001B
85#define RNDIS_STATUS_ERROR_READING_FILE 0xC001001C
86#define RNDIS_STATUS_ALREADY_MAPPED 0xC001001D
87#define RNDIS_STATUS_RESOURCE_CONFLICT 0xC001001E
88#define RNDIS_STATUS_NO_CABLE 0xC001001F
89
90#define RNDIS_STATUS_INVALID_SAP 0xC0010020
91#define RNDIS_STATUS_SAP_IN_USE 0xC0010021
92#define RNDIS_STATUS_INVALID_ADDRESS 0xC0010022
93#define RNDIS_STATUS_VC_NOT_ACTIVATED 0xC0010023
94#define RNDIS_STATUS_DEST_OUT_OF_ORDER 0xC0010024
95#define RNDIS_STATUS_VC_NOT_AVAILABLE 0xC0010025
96#define RNDIS_STATUS_CELLRATE_NOT_AVAILABLE 0xC0010026
97#define RNDIS_STATUS_INCOMPATABLE_QOS 0xC0010027
98#define RNDIS_STATUS_AAL_PARAMS_UNSUPPORTED 0xC0010028
99#define RNDIS_STATUS_NO_ROUTE_TO_DESTINATION 0xC0010029
100
101#define RNDIS_STATUS_TOKEN_RING_OPEN_ERROR 0xC0011000
32 102
33/* codes for RNDIS_OID_GEN_PHYSICAL_MEDIUM */ 103/* codes for RNDIS_OID_GEN_PHYSICAL_MEDIUM */
34#define RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED 0x00000000 104#define RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED 0x00000000
@@ -139,10 +209,6 @@
139#define RNDIS_MAJOR_VERSION 0x00000001 209#define RNDIS_MAJOR_VERSION 0x00000001
140#define RNDIS_MINOR_VERSION 0x00000000 210#define RNDIS_MINOR_VERSION 0x00000000
141 211
142/* For all not specified status messages:
143 * RNDIS_STATUS_Xxx -> NDIS_STATUS_Xxx
144 */
145
146/* Message Set for Connectionless (802.3) Devices */ 212/* Message Set for Connectionless (802.3) Devices */
147#define REMOTE_NDIS_PACKET_MSG 0x00000001U 213#define REMOTE_NDIS_PACKET_MSG 0x00000001U
148#define REMOTE_NDIS_INITIALIZE_MSG 0x00000002U /* Initialize device */ 214#define REMOTE_NDIS_INITIALIZE_MSG 0x00000002U /* Initialize device */
@@ -175,77 +241,6 @@
175 241
176/* From drivers/net/hyperv/hyperv_net.h */ 242/* From drivers/net/hyperv/hyperv_net.h */
177 243
178/* Status codes */
179#define RNDIS_STATUS_PENDING (0x00000103L)
180#define RNDIS_STATUS_NOT_RECOGNIZED (0x00010001L)
181#define RNDIS_STATUS_NOT_COPIED (0x00010002L)
182#define RNDIS_STATUS_NOT_ACCEPTED (0x00010003L)
183#define RNDIS_STATUS_CALL_ACTIVE (0x00010007L)
184
185#define RNDIS_STATUS_ONLINE (0x40010003L)
186#define RNDIS_STATUS_RESET_START (0x40010004L)
187#define RNDIS_STATUS_RESET_END (0x40010005L)
188#define RNDIS_STATUS_RING_STATUS (0x40010006L)
189#define RNDIS_STATUS_CLOSED (0x40010007L)
190#define RNDIS_STATUS_WAN_LINE_UP (0x40010008L)
191#define RNDIS_STATUS_WAN_LINE_DOWN (0x40010009L)
192#define RNDIS_STATUS_WAN_FRAGMENT (0x4001000AL)
193#define RNDIS_STATUS_HARDWARE_LINE_UP (0x4001000DL)
194#define RNDIS_STATUS_HARDWARE_LINE_DOWN (0x4001000EL)
195#define RNDIS_STATUS_INTERFACE_UP (0x4001000FL)
196#define RNDIS_STATUS_INTERFACE_DOWN (0x40010010L)
197#define RNDIS_STATUS_MEDIA_BUSY (0x40010011L)
198#define RNDIS_STATUS_WW_INDICATION RDIA_SPECIFIC_INDICATION
199#define RNDIS_STATUS_LINK_SPEED_CHANGE (0x40010013L)
200
201#define RNDIS_STATUS_NOT_RESETTABLE (0x80010001L)
202#define RNDIS_STATUS_SOFT_ERRORS (0x80010003L)
203#define RNDIS_STATUS_HARD_ERRORS (0x80010004L)
204#define RNDIS_STATUS_BUFFER_OVERFLOW (0x80000005L)
205
206#define RNDIS_STATUS_RESOURCES (0xC000009AL)
207#define RNDIS_STATUS_CLOSING (0xC0010002L)
208#define RNDIS_STATUS_BAD_VERSION (0xC0010004L)
209#define RNDIS_STATUS_BAD_CHARACTERISTICS (0xC0010005L)
210#define RNDIS_STATUS_ADAPTER_NOT_FOUND (0xC0010006L)
211#define RNDIS_STATUS_OPEN_FAILED (0xC0010007L)
212#define RNDIS_STATUS_DEVICE_FAILED (0xC0010008L)
213#define RNDIS_STATUS_MULTICAST_FULL (0xC0010009L)
214#define RNDIS_STATUS_MULTICAST_EXISTS (0xC001000AL)
215#define RNDIS_STATUS_MULTICAST_NOT_FOUND (0xC001000BL)
216#define RNDIS_STATUS_REQUEST_ABORTED (0xC001000CL)
217#define RNDIS_STATUS_RESET_IN_PROGRESS (0xC001000DL)
218#define RNDIS_STATUS_CLOSING_INDICATING (0xC001000EL)
219#define RNDIS_STATUS_INVALID_PACKET (0xC001000FL)
220#define RNDIS_STATUS_OPEN_LIST_FULL (0xC0010010L)
221#define RNDIS_STATUS_ADAPTER_NOT_READY (0xC0010011L)
222#define RNDIS_STATUS_ADAPTER_NOT_OPEN (0xC0010012L)
223#define RNDIS_STATUS_NOT_INDICATING (0xC0010013L)
224#define RNDIS_STATUS_INVALID_LENGTH (0xC0010014L)
225#define RNDIS_STATUS_BUFFER_TOO_SHORT (0xC0010016L)
226#define RNDIS_STATUS_INVALID_OID (0xC0010017L)
227#define RNDIS_STATUS_ADAPTER_REMOVED (0xC0010018L)
228#define RNDIS_STATUS_UNSUPPORTED_MEDIA (0xC0010019L)
229#define RNDIS_STATUS_GROUP_ADDRESS_IN_USE (0xC001001AL)
230#define RNDIS_STATUS_FILE_NOT_FOUND (0xC001001BL)
231#define RNDIS_STATUS_ERROR_READING_FILE (0xC001001CL)
232#define RNDIS_STATUS_ALREADY_MAPPED (0xC001001DL)
233#define RNDIS_STATUS_RESOURCE_CONFLICT (0xC001001EL)
234#define RNDIS_STATUS_NO_CABLE (0xC001001FL)
235
236#define RNDIS_STATUS_INVALID_SAP (0xC0010020L)
237#define RNDIS_STATUS_SAP_IN_USE (0xC0010021L)
238#define RNDIS_STATUS_INVALID_ADDRESS (0xC0010022L)
239#define RNDIS_STATUS_VC_NOT_ACTIVATED (0xC0010023L)
240#define RNDIS_STATUS_DEST_OUT_OF_ORDER (0xC0010024L)
241#define RNDIS_STATUS_VC_NOT_AVAILABLE (0xC0010025L)
242#define RNDIS_STATUS_CELLRATE_NOT_AVAILABLE (0xC0010026L)
243#define RNDIS_STATUS_INCOMPATABLE_QOS (0xC0010027L)
244#define RNDIS_STATUS_AAL_PARAMS_UNSUPPORTED (0xC0010028L)
245#define RNDIS_STATUS_NO_ROUTE_TO_DESTINATION (0xC0010029L)
246
247#define RNDIS_STATUS_TOKEN_RING_OPEN_ERROR (0xC0011000L)
248
249/* Object Identifiers used by NdisRequest Query/Set Information */ 244/* Object Identifiers used by NdisRequest Query/Set Information */
250/* General (Required) Objects */ 245/* General (Required) Objects */
251#define RNDIS_OID_GEN_SUPPORTED_LIST 0x00010101 246#define RNDIS_OID_GEN_SUPPORTED_LIST 0x00010101