mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
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:
+179
-147
File diff suppressed because it is too large
Load Diff
+51
-51
@@ -114,102 +114,102 @@
|
||||
|
||||
struct rndis_notification
|
||||
{
|
||||
uint32_t Notification;
|
||||
uint32_t Reserved;
|
||||
uint32_t notification; /* Notification */
|
||||
uint32_t reserved; /* Reserved */
|
||||
};
|
||||
|
||||
struct rndis_command_header
|
||||
{
|
||||
uint32_t MessageType;
|
||||
uint32_t MessageLength;
|
||||
uint32_t RequestID;
|
||||
uint32_t msgtype; /* MessageType */
|
||||
uint32_t msglen; /* MessageLength */
|
||||
uint32_t reqid; /* RequestID */
|
||||
};
|
||||
|
||||
struct rndis_response_header
|
||||
{
|
||||
uint32_t MessageType;
|
||||
uint32_t MessageLength;
|
||||
uint32_t RequestID;
|
||||
uint32_t Status;
|
||||
uint32_t msgtype; /* MessageType */
|
||||
uint32_t msglen; /* MessageLength */
|
||||
uint32_t reqid; /* RequestID */
|
||||
uint32_t status; /* Status */
|
||||
};
|
||||
|
||||
struct rndis_initialize_msg
|
||||
{
|
||||
struct rndis_command_header hdr;
|
||||
uint32_t MajorVersion;
|
||||
uint32_t MinorVersion;
|
||||
uint32_t MaxTransferSize;
|
||||
uint32_t major; /* MajorVersion */
|
||||
uint32_t minor; /* MinorVersion */
|
||||
uint32_t xfrsize; /* MaxTransferSize */
|
||||
};
|
||||
|
||||
struct rndis_initialize_cmplt
|
||||
{
|
||||
struct rndis_response_header hdr;
|
||||
uint32_t MajorVersion;
|
||||
uint32_t MinorVersion;
|
||||
uint32_t DeviceFlags;
|
||||
uint32_t Medium;
|
||||
uint32_t MaxPacketsPerTransfer;
|
||||
uint32_t MaxTransferSize;
|
||||
uint32_t PacketAlignmentFactor;
|
||||
uint32_t Reserved1;
|
||||
uint32_t Reserved2;
|
||||
uint32_t major; /* MajorVersion */
|
||||
uint32_t minor; /* MinorVersion */
|
||||
uint32_t devflags; /* DeviceFlags */
|
||||
uint32_t medium; /* Medium */
|
||||
uint32_t pktperxfer; /* MaxPacketsPerTransfer */
|
||||
uint32_t xfrsize; /* MaxTransferSize */
|
||||
uint32_t pktalign; /* PacketAlignmentFactor */
|
||||
uint32_t reserved1; /* Reserved1 */
|
||||
uint32_t reserved2; /* Reserved2 */
|
||||
};
|
||||
|
||||
struct rndis_query_msg
|
||||
{
|
||||
struct rndis_command_header hdr;
|
||||
uint32_t ObjectID;
|
||||
uint32_t InformationBufferLength;
|
||||
uint32_t InformationBufferOffset;
|
||||
uint32_t Reserved;
|
||||
uint32_t Buffer[];
|
||||
uint32_t objid; /* ObjectID */
|
||||
uint32_t buflen; /* InformationBufferLength */
|
||||
uint32_t bufoffset; /* InformationBufferOffset */
|
||||
uint32_t reserved; /* Reserved */
|
||||
uint32_t buffer[]; /* Buffer */
|
||||
};
|
||||
|
||||
struct rndis_query_cmplt
|
||||
{
|
||||
struct rndis_response_header hdr;
|
||||
uint32_t InformationBufferLength;
|
||||
uint32_t InformationBufferOffset;
|
||||
uint32_t Buffer[];
|
||||
uint32_t buflen; /* InformationBufferLength */
|
||||
uint32_t bufoffset; /* InformationBufferOffset */
|
||||
uint32_t buffer[]; /* Buffer */
|
||||
};
|
||||
|
||||
struct rndis_set_msg
|
||||
{
|
||||
struct rndis_command_header hdr;
|
||||
uint32_t ObjectID;
|
||||
uint32_t InformationBufferLength;
|
||||
uint32_t InformationBufferOffset;
|
||||
uint32_t Reserved;
|
||||
uint32_t Buffer[];
|
||||
uint32_t objid; /* ObjectID */
|
||||
uint32_t buflen; /* InformationBufferLength */
|
||||
uint32_t bufoffset; /* InformationBufferOffset */
|
||||
uint32_t reserved; /* Reserved */
|
||||
uint32_t buffer[]; /* Buffer */
|
||||
};
|
||||
|
||||
struct rndis_reset_cmplt
|
||||
{
|
||||
struct rndis_response_header hdr;
|
||||
uint32_t AddressingReset;
|
||||
uint32_t addreset; /* AddressingReset */
|
||||
};
|
||||
|
||||
struct rndis_indicate_msg
|
||||
{
|
||||
uint32_t MessageType;
|
||||
uint32_t MessageLength;
|
||||
uint32_t Status;
|
||||
uint32_t StatusBufferLength;
|
||||
uint32_t StatusBufferOffset;
|
||||
uint32_t Buffer[];
|
||||
uint32_t msgtype; /* MessageType */
|
||||
uint32_t msglen; /* MessageLength */
|
||||
uint32_t status; /* Status */
|
||||
uint32_t buflen; /* StatusBufferLength */
|
||||
uint32_t bufoffset; /* StatusBufferOffset */
|
||||
uint32_t buffer[]; /* Buffer */
|
||||
};
|
||||
|
||||
struct rndis_packet_msg
|
||||
{
|
||||
uint32_t MessageType;
|
||||
uint32_t MessageLength;
|
||||
uint32_t DataOffset;
|
||||
uint32_t DataLength;
|
||||
uint32_t OutOfBandDataOffset;
|
||||
uint32_t OutOfBandDataLength;
|
||||
uint32_t NumOutOfBandDataElements;
|
||||
uint32_t PerPacketInfoOffset;
|
||||
uint32_t PerPacketInfoLength;
|
||||
uint32_t msgtype; /* MessageType */
|
||||
uint32_t msglen; /* MessageLength */
|
||||
uint32_t dataoffset; /* DataOffset */
|
||||
uint32_t datalen; /* DataLength */
|
||||
uint32_t ooboffset; /* OutOfBandDataOffset */
|
||||
uint32_t ooblen; /* OutOfBandDataLength */
|
||||
uint32_t noobelem; /* NumOutOfBandDataElements */
|
||||
uint32_t infooffset; /* PerPacketInfoOffset */
|
||||
uint32_t infolen; /* PerPacketInfoLength */
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user