mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[USBPORT] Add USB2_ChangePeriod().
This commit is contained in:
parent
69406c2628
commit
0558635f98
1 changed files with 26 additions and 0 deletions
|
@ -1660,6 +1660,32 @@ USB2_AllocateTimeForEndpoint(IN PUSB2_TT_ENDPOINT TtEndpoint,
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
NTAPI
|
||||||
|
USB2_ChangePeriod(IN PUSB2_TT_ENDPOINT TtEndpoint,
|
||||||
|
IN PUSB2_REBALANCE Rebalance,
|
||||||
|
IN PULONG RebalanceListEntries)
|
||||||
|
{
|
||||||
|
BOOLEAN Result;
|
||||||
|
|
||||||
|
DPRINT("USB2_ChangePeriod: RebalanceListEntries - %X\n",
|
||||||
|
*RebalanceListEntries);
|
||||||
|
|
||||||
|
USB2_DeallocateEndpointBudget(TtEndpoint,
|
||||||
|
Rebalance,
|
||||||
|
RebalanceListEntries,
|
||||||
|
USB2_FRAMES);
|
||||||
|
|
||||||
|
TtEndpoint->PreviosPeriod = TtEndpoint->Period;
|
||||||
|
TtEndpoint->Period = ENDPOINT_INTERRUPT_1ms;
|
||||||
|
|
||||||
|
Result = USB2_AllocateTimeForEndpoint(TtEndpoint,
|
||||||
|
Rebalance,
|
||||||
|
RebalanceListEntries);
|
||||||
|
|
||||||
|
return Result;
|
||||||
|
}
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
USB2_PromotePeriods(IN PUSB2_TT_ENDPOINT TtEndpoint,
|
USB2_PromotePeriods(IN PUSB2_TT_ENDPOINT TtEndpoint,
|
||||||
|
|
Loading…
Reference in a new issue