[USBPORT] Add USB2_GetPrevMicroFrame().

This commit is contained in:
Vadim Galyant 2017-12-01 10:16:24 +09:00 committed by Amine Khaldi
parent 71a7208f69
commit e39b88e3e7

View file

@ -52,6 +52,19 @@ USB2_IncMicroFrame(OUT PUCHAR frame,
}
}
VOID
NTAPI
USB2_GetPrevMicroFrame(OUT PUCHAR frame,
OUT PUCHAR uframe)
{
*uframe = USB2_MICROFRAMES - 1;
if (*frame)
--*frame;
else
*frame = USB2_FRAMES - 1;
}
BOOLEAN
NTAPI
USB2_CheckTtEndpointInsert(IN PUSB2_TT_ENDPOINT nextTtEndpoint,