drivers/usbdev/rindis.c: Change some naming to conform with coding standard. Use DEBUGASSERT vs. assert so that the assertions can be disabled.

This commit is contained in:
Gregory Nutt
2017-09-24 11:18:01 -06:00
parent 67e9e1efb6
commit dbf57fb673
2 changed files with 230 additions and 198 deletions
+179 -147
View File
File diff suppressed because it is too large Load Diff
+51 -51
View File
@@ -114,102 +114,102 @@
struct rndis_notification struct rndis_notification
{ {
uint32_t Notification; uint32_t notification; /* Notification */
uint32_t Reserved; uint32_t reserved; /* Reserved */
}; };
struct rndis_command_header struct rndis_command_header
{ {
uint32_t MessageType; uint32_t msgtype; /* MessageType */
uint32_t MessageLength; uint32_t msglen; /* MessageLength */
uint32_t RequestID; uint32_t reqid; /* RequestID */
}; };
struct rndis_response_header struct rndis_response_header
{ {
uint32_t MessageType; uint32_t msgtype; /* MessageType */
uint32_t MessageLength; uint32_t msglen; /* MessageLength */
uint32_t RequestID; uint32_t reqid; /* RequestID */
uint32_t Status; uint32_t status; /* Status */
}; };
struct rndis_initialize_msg struct rndis_initialize_msg
{ {
struct rndis_command_header hdr; struct rndis_command_header hdr;
uint32_t MajorVersion; uint32_t major; /* MajorVersion */
uint32_t MinorVersion; uint32_t minor; /* MinorVersion */
uint32_t MaxTransferSize; uint32_t xfrsize; /* MaxTransferSize */
}; };
struct rndis_initialize_cmplt struct rndis_initialize_cmplt
{ {
struct rndis_response_header hdr; struct rndis_response_header hdr;
uint32_t MajorVersion; uint32_t major; /* MajorVersion */
uint32_t MinorVersion; uint32_t minor; /* MinorVersion */
uint32_t DeviceFlags; uint32_t devflags; /* DeviceFlags */
uint32_t Medium; uint32_t medium; /* Medium */
uint32_t MaxPacketsPerTransfer; uint32_t pktperxfer; /* MaxPacketsPerTransfer */
uint32_t MaxTransferSize; uint32_t xfrsize; /* MaxTransferSize */
uint32_t PacketAlignmentFactor; uint32_t pktalign; /* PacketAlignmentFactor */
uint32_t Reserved1; uint32_t reserved1; /* Reserved1 */
uint32_t Reserved2; uint32_t reserved2; /* Reserved2 */
}; };
struct rndis_query_msg struct rndis_query_msg
{ {
struct rndis_command_header hdr; struct rndis_command_header hdr;
uint32_t ObjectID; uint32_t objid; /* ObjectID */
uint32_t InformationBufferLength; uint32_t buflen; /* InformationBufferLength */
uint32_t InformationBufferOffset; uint32_t bufoffset; /* InformationBufferOffset */
uint32_t Reserved; uint32_t reserved; /* Reserved */
uint32_t Buffer[]; uint32_t buffer[]; /* Buffer */
}; };
struct rndis_query_cmplt struct rndis_query_cmplt
{ {
struct rndis_response_header hdr; struct rndis_response_header hdr;
uint32_t InformationBufferLength; uint32_t buflen; /* InformationBufferLength */
uint32_t InformationBufferOffset; uint32_t bufoffset; /* InformationBufferOffset */
uint32_t Buffer[]; uint32_t buffer[]; /* Buffer */
}; };
struct rndis_set_msg struct rndis_set_msg
{ {
struct rndis_command_header hdr; struct rndis_command_header hdr;
uint32_t ObjectID; uint32_t objid; /* ObjectID */
uint32_t InformationBufferLength; uint32_t buflen; /* InformationBufferLength */
uint32_t InformationBufferOffset; uint32_t bufoffset; /* InformationBufferOffset */
uint32_t Reserved; uint32_t reserved; /* Reserved */
uint32_t Buffer[]; uint32_t buffer[]; /* Buffer */
}; };
struct rndis_reset_cmplt struct rndis_reset_cmplt
{ {
struct rndis_response_header hdr; struct rndis_response_header hdr;
uint32_t AddressingReset; uint32_t addreset; /* AddressingReset */
}; };
struct rndis_indicate_msg struct rndis_indicate_msg
{ {
uint32_t MessageType; uint32_t msgtype; /* MessageType */
uint32_t MessageLength; uint32_t msglen; /* MessageLength */
uint32_t Status; uint32_t status; /* Status */
uint32_t StatusBufferLength; uint32_t buflen; /* StatusBufferLength */
uint32_t StatusBufferOffset; uint32_t bufoffset; /* StatusBufferOffset */
uint32_t Buffer[]; uint32_t buffer[]; /* Buffer */
}; };
struct rndis_packet_msg struct rndis_packet_msg
{ {
uint32_t MessageType; uint32_t msgtype; /* MessageType */
uint32_t MessageLength; uint32_t msglen; /* MessageLength */
uint32_t DataOffset; uint32_t dataoffset; /* DataOffset */
uint32_t DataLength; uint32_t datalen; /* DataLength */
uint32_t OutOfBandDataOffset; uint32_t ooboffset; /* OutOfBandDataOffset */
uint32_t OutOfBandDataLength; uint32_t ooblen; /* OutOfBandDataLength */
uint32_t NumOutOfBandDataElements; uint32_t noobelem; /* NumOutOfBandDataElements */
uint32_t PerPacketInfoOffset; uint32_t infooffset; /* PerPacketInfoOffset */
uint32_t PerPacketInfoLength; uint32_t infolen; /* PerPacketInfoLength */
}; };
#endif #endif