https://git.reactos.org/?p=reactos.git;a=commitdiff;h=71a7208f693ff9af09cc3…
commit 71a7208f693ff9af09cc3852ac4baed5a903e055
Author: Vadim Galyant <vgal(a)rambler.ru>
AuthorDate: Fri Dec 1 10:13:10 2017 +0900
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sun Jan 21 19:35:44 2018 +0100
[USBPORT] Add USB2_IncMicroFrame().
---
drivers/usb/usbport/usb2.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/usb/usbport/usb2.c b/drivers/usb/usbport/usb2.c
index b70ac11851..d8d5da9af1 100644
--- a/drivers/usb/usbport/usb2.c
+++ b/drivers/usb/usbport/usb2.c
@@ -38,6 +38,20 @@ USB2_AddDataBitStuff(IN USHORT DataTime)
return (DataTime + (DataTime / 16));
}
+VOID
+NTAPI
+USB2_IncMicroFrame(OUT PUCHAR frame,
+ OUT PUCHAR uframe)
+{
+ ++*uframe;
+
+ if (*uframe > (USB2_MICROFRAMES - 1))
+ {
+ *uframe = 0;
+ *frame = (*frame + 1) & (USB2_FRAMES - 1);
+ }
+}
+
BOOLEAN
NTAPI
USB2_CheckTtEndpointInsert(IN PUSB2_TT_ENDPOINT nextTtEndpoint,