[USBPORT] Add USB2_InitTtEndpoint().

This commit is contained in:
Vadim Galyant 2017-11-27 18:19:05 +09:00 committed by Amine Khaldi
parent 9cdc1d64b3
commit da1e283837

View file

@ -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,