mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[USBPORT] Add USB2_InitTtEndpoint().
This commit is contained in:
parent
9cdc1d64b3
commit
da1e283837
1 changed files with 21 additions and 0 deletions
|
@ -10,6 +10,27 @@
|
|||
//#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
USB2_InitTtEndpoint(IN PUSB2_TT_ENDPOINT TtEndpoint,
|
||||
IN UCHAR TransferType,
|
||||
IN UCHAR Direction,
|
||||
IN UCHAR DeviceSpeed,
|
||||
IN USHORT Period,
|
||||
IN USHORT MaxPacketSize,
|
||||
IN PUSB2_TT Tt)
|
||||
{
|
||||
RtlZeroMemory(TtEndpoint, sizeof(USB2_TT_ENDPOINT));
|
||||
|
||||
TtEndpoint->TtEndpointParams.TransferType = TransferType;
|
||||
TtEndpoint->TtEndpointParams.Direction = Direction;
|
||||
TtEndpoint->TtEndpointParams.DeviceSpeed = DeviceSpeed;
|
||||
|
||||
TtEndpoint->Period = Period;
|
||||
TtEndpoint->MaxPacketSize = MaxPacketSize;
|
||||
TtEndpoint->Tt = Tt;
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
USBPORT_AllocateBandwidthUSB2(IN PDEVICE_OBJECT FdoDevice,
|
||||
|
|
Loading…
Reference in a new issue