mirror of
https://github.com/reactos/reactos.git
synced 2025-05-19 17:14:32 +00:00
[USBPORT] Add USB2_BIT_STUFFING_OVERHEAD constant.
This commit is contained in:
parent
797ebcab72
commit
f37a3dc42f
2 changed files with 3 additions and 1 deletions
|
@ -47,7 +47,7 @@ USBPORT_CalculateUsbBandwidth(IN PDEVICE_OBJECT FdoDevice,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Bandwidth = (EndpointProperties->TotalMaxPacketSize + Overhead) * 8 * 7 / 6;
|
Bandwidth = (EndpointProperties->TotalMaxPacketSize + Overhead) * USB2_BIT_STUFFING_OVERHEAD;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (EndpointProperties->DeviceSpeed == UsbLowSpeed)
|
if (EndpointProperties->DeviceSpeed == UsbLowSpeed)
|
||||||
|
|
|
@ -479,6 +479,8 @@ typedef struct _TIMER_WORK_QUEUE_ITEM {
|
||||||
#define USB2_HS_SS_ISOCHRONOUS_IN_OVERHEAD 39
|
#define USB2_HS_SS_ISOCHRONOUS_IN_OVERHEAD 39
|
||||||
#define USB2_HS_CS_ISOCHRONOUS_IN_OVERHEAD 38
|
#define USB2_HS_CS_ISOCHRONOUS_IN_OVERHEAD 38
|
||||||
|
|
||||||
|
#define USB2_BIT_STUFFING_OVERHEAD (8 * (7/6)) // 7.1.9 Bit Stuffing
|
||||||
|
|
||||||
typedef union _USB2_TT_ENDPOINT_PARAMS {
|
typedef union _USB2_TT_ENDPOINT_PARAMS {
|
||||||
struct {
|
struct {
|
||||||
ULONG TransferType : 4;
|
ULONG TransferType : 4;
|
||||||
|
|
Loading…
Reference in a new issue