diff options
Diffstat (limited to 'include/linux/usb/rndis_host.h')
-rw-r--r-- | include/linux/usb/rndis_host.h | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/include/linux/usb/rndis_host.h b/include/linux/usb/rndis_host.h index 88fceb718c77..9a005b627eb2 100644 --- a/include/linux/usb/rndis_host.h +++ b/include/linux/usb/rndis_host.h | |||
@@ -49,46 +49,46 @@ struct rndis_msg_hdr { | |||
49 | */ | 49 | */ |
50 | #define RNDIS_CONTROL_TIMEOUT_MS (5 * 1000) | 50 | #define RNDIS_CONTROL_TIMEOUT_MS (5 * 1000) |
51 | 51 | ||
52 | #define RNDIS_MSG_COMPLETION cpu_to_le32(0x80000000) | 52 | #define RNDIS_MSG_COMPLETION 0x80000000 |
53 | 53 | ||
54 | /* codes for "msg_type" field of rndis messages; | 54 | /* codes for "msg_type" field of rndis messages; |
55 | * only the data channel uses packet messages (maybe batched); | 55 | * only the data channel uses packet messages (maybe batched); |
56 | * everything else goes on the control channel. | 56 | * everything else goes on the control channel. |
57 | */ | 57 | */ |
58 | #define RNDIS_MSG_PACKET cpu_to_le32(0x00000001) /* 1-N packets */ | 58 | #define RNDIS_MSG_PACKET 0x00000001 /* 1-N packets */ |
59 | #define RNDIS_MSG_INIT cpu_to_le32(0x00000002) | 59 | #define RNDIS_MSG_INIT 0x00000002 |
60 | #define RNDIS_MSG_INIT_C (RNDIS_MSG_INIT|RNDIS_MSG_COMPLETION) | 60 | #define RNDIS_MSG_INIT_C (RNDIS_MSG_INIT|RNDIS_MSG_COMPLETION) |
61 | #define RNDIS_MSG_HALT cpu_to_le32(0x00000003) | 61 | #define RNDIS_MSG_HALT 0x00000003 |
62 | #define RNDIS_MSG_QUERY cpu_to_le32(0x00000004) | 62 | #define RNDIS_MSG_QUERY 0x00000004 |
63 | #define RNDIS_MSG_QUERY_C (RNDIS_MSG_QUERY|RNDIS_MSG_COMPLETION) | 63 | #define RNDIS_MSG_QUERY_C (RNDIS_MSG_QUERY|RNDIS_MSG_COMPLETION) |
64 | #define RNDIS_MSG_SET cpu_to_le32(0x00000005) | 64 | #define RNDIS_MSG_SET 0x00000005 |
65 | #define RNDIS_MSG_SET_C (RNDIS_MSG_SET|RNDIS_MSG_COMPLETION) | 65 | #define RNDIS_MSG_SET_C (RNDIS_MSG_SET|RNDIS_MSG_COMPLETION) |
66 | #define RNDIS_MSG_RESET cpu_to_le32(0x00000006) | 66 | #define RNDIS_MSG_RESET 0x00000006 |
67 | #define RNDIS_MSG_RESET_C (RNDIS_MSG_RESET|RNDIS_MSG_COMPLETION) | 67 | #define RNDIS_MSG_RESET_C (RNDIS_MSG_RESET|RNDIS_MSG_COMPLETION) |
68 | #define RNDIS_MSG_INDICATE cpu_to_le32(0x00000007) | 68 | #define RNDIS_MSG_INDICATE 0x00000007 |
69 | #define RNDIS_MSG_KEEPALIVE cpu_to_le32(0x00000008) | 69 | #define RNDIS_MSG_KEEPALIVE 0x00000008 |
70 | #define RNDIS_MSG_KEEPALIVE_C (RNDIS_MSG_KEEPALIVE|RNDIS_MSG_COMPLETION) | 70 | #define RNDIS_MSG_KEEPALIVE_C (RNDIS_MSG_KEEPALIVE|RNDIS_MSG_COMPLETION) |
71 | 71 | ||
72 | /* codes for "status" field of completion messages */ | 72 | /* codes for "status" field of completion messages */ |
73 | #define RNDIS_STATUS_SUCCESS cpu_to_le32(0x00000000) | 73 | #define RNDIS_STATUS_SUCCESS 0x00000000 |
74 | #define RNDIS_STATUS_FAILURE cpu_to_le32(0xc0000001) | 74 | #define RNDIS_STATUS_FAILURE 0xc0000001 |
75 | #define RNDIS_STATUS_INVALID_DATA cpu_to_le32(0xc0010015) | 75 | #define RNDIS_STATUS_INVALID_DATA 0xc0010015 |
76 | #define RNDIS_STATUS_NOT_SUPPORTED cpu_to_le32(0xc00000bb) | 76 | #define RNDIS_STATUS_NOT_SUPPORTED 0xc00000bb |
77 | #define RNDIS_STATUS_MEDIA_CONNECT cpu_to_le32(0x4001000b) | 77 | #define RNDIS_STATUS_MEDIA_CONNECT 0x4001000b |
78 | #define RNDIS_STATUS_MEDIA_DISCONNECT cpu_to_le32(0x4001000c) | 78 | #define RNDIS_STATUS_MEDIA_DISCONNECT 0x4001000c |
79 | #define RNDIS_STATUS_MEDIA_SPECIFIC_INDICATION cpu_to_le32(0x40010012) | 79 | #define RNDIS_STATUS_MEDIA_SPECIFIC_INDICATION 0x40010012 |
80 | 80 | ||
81 | /* codes for OID_GEN_PHYSICAL_MEDIUM */ | 81 | /* codes for OID_GEN_PHYSICAL_MEDIUM */ |
82 | #define RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED cpu_to_le32(0x00000000) | 82 | #define RNDIS_PHYSICAL_MEDIUM_UNSPECIFIED 0x00000000 |
83 | #define RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN cpu_to_le32(0x00000001) | 83 | #define RNDIS_PHYSICAL_MEDIUM_WIRELESS_LAN 0x00000001 |
84 | #define RNDIS_PHYSICAL_MEDIUM_CABLE_MODEM cpu_to_le32(0x00000002) | 84 | #define RNDIS_PHYSICAL_MEDIUM_CABLE_MODEM 0x00000002 |
85 | #define RNDIS_PHYSICAL_MEDIUM_PHONE_LINE cpu_to_le32(0x00000003) | 85 | #define RNDIS_PHYSICAL_MEDIUM_PHONE_LINE 0x00000003 |
86 | #define RNDIS_PHYSICAL_MEDIUM_POWER_LINE cpu_to_le32(0x00000004) | 86 | #define RNDIS_PHYSICAL_MEDIUM_POWER_LINE 0x00000004 |
87 | #define RNDIS_PHYSICAL_MEDIUM_DSL cpu_to_le32(0x00000005) | 87 | #define RNDIS_PHYSICAL_MEDIUM_DSL 0x00000005 |
88 | #define RNDIS_PHYSICAL_MEDIUM_FIBRE_CHANNEL cpu_to_le32(0x00000006) | 88 | #define RNDIS_PHYSICAL_MEDIUM_FIBRE_CHANNEL 0x00000006 |
89 | #define RNDIS_PHYSICAL_MEDIUM_1394 cpu_to_le32(0x00000007) | 89 | #define RNDIS_PHYSICAL_MEDIUM_1394 0x00000007 |
90 | #define RNDIS_PHYSICAL_MEDIUM_WIRELESS_WAN cpu_to_le32(0x00000008) | 90 | #define RNDIS_PHYSICAL_MEDIUM_WIRELESS_WAN 0x00000008 |
91 | #define RNDIS_PHYSICAL_MEDIUM_MAX cpu_to_le32(0x00000009) | 91 | #define RNDIS_PHYSICAL_MEDIUM_MAX 0x00000009 |
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 */ |
@@ -226,24 +226,24 @@ struct rndis_keepalive_c { /* IN (optionally OUT) */ | |||
226 | * there are gobs more that may optionally be supported. We'll avoid as much | 226 | * there are gobs more that may optionally be supported. We'll avoid as much |
227 | * of that mess as possible. | 227 | * of that mess as possible. |
228 | */ | 228 | */ |
229 | #define OID_802_3_PERMANENT_ADDRESS cpu_to_le32(0x01010101) | 229 | #define OID_802_3_PERMANENT_ADDRESS 0x01010101 |
230 | #define OID_GEN_MAXIMUM_FRAME_SIZE cpu_to_le32(0x00010106) | 230 | #define OID_GEN_MAXIMUM_FRAME_SIZE 0x00010106 |
231 | #define OID_GEN_CURRENT_PACKET_FILTER cpu_to_le32(0x0001010e) | 231 | #define OID_GEN_CURRENT_PACKET_FILTER 0x0001010e |
232 | #define OID_GEN_PHYSICAL_MEDIUM cpu_to_le32(0x00010202) | 232 | #define OID_GEN_PHYSICAL_MEDIUM 0x00010202 |
233 | 233 | ||
234 | /* packet filter bits used by OID_GEN_CURRENT_PACKET_FILTER */ | 234 | /* packet filter bits used by OID_GEN_CURRENT_PACKET_FILTER */ |
235 | #define RNDIS_PACKET_TYPE_DIRECTED cpu_to_le32(0x00000001) | 235 | #define RNDIS_PACKET_TYPE_DIRECTED 0x00000001 |
236 | #define RNDIS_PACKET_TYPE_MULTICAST cpu_to_le32(0x00000002) | 236 | #define RNDIS_PACKET_TYPE_MULTICAST 0x00000002 |
237 | #define RNDIS_PACKET_TYPE_ALL_MULTICAST cpu_to_le32(0x00000004) | 237 | #define RNDIS_PACKET_TYPE_ALL_MULTICAST 0x00000004 |
238 | #define RNDIS_PACKET_TYPE_BROADCAST cpu_to_le32(0x00000008) | 238 | #define RNDIS_PACKET_TYPE_BROADCAST 0x00000008 |
239 | #define RNDIS_PACKET_TYPE_SOURCE_ROUTING cpu_to_le32(0x00000010) | 239 | #define RNDIS_PACKET_TYPE_SOURCE_ROUTING 0x00000010 |
240 | #define RNDIS_PACKET_TYPE_PROMISCUOUS cpu_to_le32(0x00000020) | 240 | #define RNDIS_PACKET_TYPE_PROMISCUOUS 0x00000020 |
241 | #define RNDIS_PACKET_TYPE_SMT cpu_to_le32(0x00000040) | 241 | #define RNDIS_PACKET_TYPE_SMT 0x00000040 |
242 | #define RNDIS_PACKET_TYPE_ALL_LOCAL cpu_to_le32(0x00000080) | 242 | #define RNDIS_PACKET_TYPE_ALL_LOCAL 0x00000080 |
243 | #define RNDIS_PACKET_TYPE_GROUP cpu_to_le32(0x00001000) | 243 | #define RNDIS_PACKET_TYPE_GROUP 0x00001000 |
244 | #define RNDIS_PACKET_TYPE_ALL_FUNCTIONAL cpu_to_le32(0x00002000) | 244 | #define RNDIS_PACKET_TYPE_ALL_FUNCTIONAL 0x00002000 |
245 | #define RNDIS_PACKET_TYPE_FUNCTIONAL cpu_to_le32(0x00004000) | 245 | #define RNDIS_PACKET_TYPE_FUNCTIONAL 0x00004000 |
246 | #define RNDIS_PACKET_TYPE_MAC_FRAME cpu_to_le32(0x00008000) | 246 | #define RNDIS_PACKET_TYPE_MAC_FRAME 0x00008000 |
247 | 247 | ||
248 | /* default filter used with RNDIS devices */ | 248 | /* default filter used with RNDIS devices */ |
249 | #define RNDIS_DEFAULT_FILTER ( \ | 249 | #define RNDIS_DEFAULT_FILTER ( \ |