mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
[USBEHCI_NEW]
- Silence usb bulk control traces svn path=/branches/usb-bringup/; revision=51507
This commit is contained in:
parent
6321f84f30
commit
bca978808b
5 changed files with 20 additions and 22 deletions
|
@ -774,7 +774,7 @@ CUSBHardwareDevice::ClearPortStatus(
|
||||||
{
|
{
|
||||||
ULONG Value;
|
ULONG Value;
|
||||||
|
|
||||||
DPRINT1("CUSBHardwareDevice::ClearPortStatus\n");
|
DPRINT("CUSBHardwareDevice::ClearPortStatus\n");
|
||||||
|
|
||||||
if (PortId > m_Capabilities.HCSParams.PortCount)
|
if (PortId > m_Capabilities.HCSParams.PortCount)
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
|
@ -818,7 +818,7 @@ CUSBHardwareDevice::SetPortFeature(
|
||||||
{
|
{
|
||||||
ULONG Value;
|
ULONG Value;
|
||||||
|
|
||||||
DPRINT1("CUSBHardwareDevice::SetPortFeature\n");
|
DPRINT("CUSBHardwareDevice::SetPortFeature\n");
|
||||||
|
|
||||||
if (PortId > m_Capabilities.HCSParams.PortCount)
|
if (PortId > m_Capabilities.HCSParams.PortCount)
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
|
|
|
@ -799,7 +799,7 @@ CHubController::HandleBulkOrInterruptTransfer(
|
||||||
DPRINT1("Control Transfer is not expected!!!\n");
|
DPRINT1("Control Transfer is not expected!!!\n");
|
||||||
return STATUS_INVALID_DEVICE_REQUEST;
|
return STATUS_INVALID_DEVICE_REQUEST;
|
||||||
case USB_ENDPOINT_TYPE_BULK:
|
case USB_ENDPOINT_TYPE_BULK:
|
||||||
DPRINT1("Initiating Bulk Transfer\n");
|
DPRINT("Initiating Bulk Transfer\n");
|
||||||
break;
|
break;
|
||||||
case USB_ENDPOINT_TYPE_ISOCHRONOUS:
|
case USB_ENDPOINT_TYPE_ISOCHRONOUS:
|
||||||
case USB_ENDPOINT_TYPE_INTERRUPT:
|
case USB_ENDPOINT_TYPE_INTERRUPT:
|
||||||
|
|
|
@ -98,7 +98,7 @@ CUSBQueue::Initialize(
|
||||||
{
|
{
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
DPRINT1("CUSBQueue::Initialize()\n");
|
DPRINT("CUSBQueue::Initialize()\n");
|
||||||
|
|
||||||
ASSERT(Hardware);
|
ASSERT(Hardware);
|
||||||
|
|
||||||
|
@ -208,7 +208,7 @@ CUSBQueue::AddUSBRequest(
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT1("Request %p QueueHead %p inserted into AsyncQueue\n", Request, QueueHead);
|
DPRINT("Request %p QueueHead %p inserted into AsyncQueue\n", Request, QueueHead);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Add it to the pending list
|
// Add it to the pending list
|
||||||
|
@ -518,7 +518,7 @@ CUSBQueue::ProcessAsyncList(
|
||||||
//
|
//
|
||||||
IsQueueHeadComplete = Request->IsQueueHeadComplete(QueueHead);
|
IsQueueHeadComplete = Request->IsQueueHeadComplete(QueueHead);
|
||||||
|
|
||||||
DPRINT1("Request %p QueueHead %p Complete %d\n", Request, QueueHead, IsQueueHeadComplete);
|
DPRINT("Request %p QueueHead %p Complete %d\n", Request, QueueHead, IsQueueHeadComplete);
|
||||||
|
|
||||||
//
|
//
|
||||||
// check if queue head is complete
|
// check if queue head is complete
|
||||||
|
@ -550,7 +550,7 @@ CUSBQueue::InterruptCallback(
|
||||||
OUT PULONG ShouldRingDoorBell)
|
OUT PULONG ShouldRingDoorBell)
|
||||||
{
|
{
|
||||||
|
|
||||||
DPRINT1("CUSBQueue::InterruptCallback\n");
|
DPRINT("CUSBQueue::InterruptCallback\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
// iterate asynchronous list
|
// iterate asynchronous list
|
||||||
|
@ -666,7 +666,7 @@ CUSBQueue::CompleteAsyncRequests()
|
||||||
PLIST_ENTRY Entry;
|
PLIST_ENTRY Entry;
|
||||||
PQUEUE_HEAD CurrentQH;
|
PQUEUE_HEAD CurrentQH;
|
||||||
|
|
||||||
DPRINT1("CUSBQueue::CompleteAsyncRequests\n");
|
DPRINT("CUSBQueue::CompleteAsyncRequests\n");
|
||||||
|
|
||||||
//
|
//
|
||||||
// first acquire request lock
|
// first acquire request lock
|
||||||
|
|
|
@ -261,7 +261,7 @@ CUSBRequest::InitializeWithIrp(
|
||||||
//
|
//
|
||||||
// Create one using TransferBuffer
|
// Create one using TransferBuffer
|
||||||
//
|
//
|
||||||
DPRINT1("Creating Mdl from Urb Buffer %p Length %lu\n", Urb->UrbBulkOrInterruptTransfer.TransferBuffer, Urb->UrbBulkOrInterruptTransfer.TransferBufferLength);
|
DPRINT("Creating Mdl from Urb Buffer %p Length %lu\n", Urb->UrbBulkOrInterruptTransfer.TransferBuffer, Urb->UrbBulkOrInterruptTransfer.TransferBufferLength);
|
||||||
m_TransferBufferMDL = IoAllocateMdl(Urb->UrbBulkOrInterruptTransfer.TransferBuffer,
|
m_TransferBufferMDL = IoAllocateMdl(Urb->UrbBulkOrInterruptTransfer.TransferBuffer,
|
||||||
Urb->UrbBulkOrInterruptTransfer.TransferBufferLength,
|
Urb->UrbBulkOrInterruptTransfer.TransferBufferLength,
|
||||||
FALSE,
|
FALSE,
|
||||||
|
@ -384,7 +384,7 @@ CUSBRequest::CompletionCallback(
|
||||||
Urb->UrbBulkOrInterruptTransfer.TransferBufferLength = InternalCalculateTransferLength();
|
Urb->UrbBulkOrInterruptTransfer.TransferBufferLength = InternalCalculateTransferLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT1("Request %p Completing Irp %p NtStatusCode %x UrbStatusCode %x Transferred Length %lu\n", this, m_Irp, NtStatusCode, UrbStatusCode, Urb->UrbBulkOrInterruptTransfer.TransferBufferLength);
|
DPRINT("Request %p Completing Irp %p NtStatusCode %x UrbStatusCode %x Transferred Length %lu\n", this, m_Irp, NtStatusCode, UrbStatusCode, Urb->UrbBulkOrInterruptTransfer.TransferBufferLength);
|
||||||
|
|
||||||
//
|
//
|
||||||
// FIXME: check if the transfer was split
|
// FIXME: check if the transfer was split
|
||||||
|
@ -521,7 +521,6 @@ CUSBRequest::IsRequestComplete()
|
||||||
//
|
//
|
||||||
// FIXME: check if request was split
|
// FIXME: check if request was split
|
||||||
//
|
//
|
||||||
UNIMPLEMENTED
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------
|
||||||
|
@ -790,12 +789,12 @@ CUSBRequest::BuildBulkTransferQueueHead(
|
||||||
PC_ASSERT(Base);
|
PC_ASSERT(Base);
|
||||||
|
|
||||||
|
|
||||||
DPRINT1("EndPointAddress %x\n", m_EndpointDescriptor->bEndpointAddress);
|
DPRINT("EndPointAddress %x\n", m_EndpointDescriptor->bEndpointAddress);
|
||||||
DPRINT1("EndPointDirection %x\n", USB_ENDPOINT_DIRECTION_IN(m_EndpointDescriptor->bEndpointAddress));
|
DPRINT("EndPointDirection %x\n", USB_ENDPOINT_DIRECTION_IN(m_EndpointDescriptor->bEndpointAddress));
|
||||||
|
|
||||||
DPRINT1("Request %p Base Address %p TransferBytesLength %lu MDL %p\n", this, Base, BytesAvailable, m_TransferBufferMDL);
|
DPRINT("Request %p Base Address %p TransferBytesLength %lu MDL %p\n", this, Base, BytesAvailable, m_TransferBufferMDL);
|
||||||
DPRINT1("InternalGetPidDirection() %d EndPointAddress %x\n", InternalGetPidDirection(), m_EndpointDescriptor->bEndpointAddress & 0x0F);
|
DPRINT("InternalGetPidDirection() %d EndPointAddress %x\n", InternalGetPidDirection(), m_EndpointDescriptor->bEndpointAddress & 0x0F);
|
||||||
DPRINT1("Irp %p QueueHead %p\n", m_Irp, QueueHead);
|
DPRINT("Irp %p QueueHead %p\n", m_Irp, QueueHead);
|
||||||
|
|
||||||
//PC_ASSERT(InternalGetPidDirection() == USB_ENDPOINT_DIRECTION_IN(m_EndpointDescriptor->bEndpointAddress));
|
//PC_ASSERT(InternalGetPidDirection() == USB_ENDPOINT_DIRECTION_IN(m_EndpointDescriptor->bEndpointAddress));
|
||||||
|
|
||||||
|
@ -868,7 +867,7 @@ CUSBRequest::BuildBulkTransferQueueHead(
|
||||||
//
|
//
|
||||||
BytesAvailable -= m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer;
|
BytesAvailable -= m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer;
|
||||||
|
|
||||||
DPRINT1("TransferDescriptor %p BufferPointer %p BufferIndex %lu TotalBytes %lu Remaining %lu\n", m_TransferDescriptors[Index], m_TransferDescriptors[Index]->BufferPointer[BufferIndex],
|
DPRINT("TransferDescriptor %p BufferPointer %p BufferIndex %lu TotalBytes %lu Remaining %lu\n", m_TransferDescriptors[Index], m_TransferDescriptors[Index]->BufferPointer[BufferIndex],
|
||||||
BufferIndex, m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer, BytesAvailable);
|
BufferIndex, m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer, BytesAvailable);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -879,7 +878,7 @@ CUSBRequest::BuildBulkTransferQueueHead(
|
||||||
m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer = BytesAvailable;
|
m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer = BytesAvailable;
|
||||||
BytesAvailable = 0;
|
BytesAvailable = 0;
|
||||||
|
|
||||||
DPRINT1("TransferDescriptor %p BufferPointer %p BufferIndex %lu TotalBytes %lu Remaining %lu\n", m_TransferDescriptors[Index], m_TransferDescriptors[Index]->BufferPointer[BufferIndex],
|
DPRINT("TransferDescriptor %p BufferPointer %p BufferIndex %lu TotalBytes %lu Remaining %lu\n", m_TransferDescriptors[Index], m_TransferDescriptors[Index]->BufferPointer[BufferIndex],
|
||||||
BufferIndex, m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer, BytesAvailable);
|
BufferIndex, m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer, BytesAvailable);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -913,7 +912,7 @@ CUSBRequest::BuildBulkTransferQueueHead(
|
||||||
//
|
//
|
||||||
BytesAvailable -= PAGE_SIZE;
|
BytesAvailable -= PAGE_SIZE;
|
||||||
|
|
||||||
DPRINT1("TransferDescriptor %p BufferPointer %p BufferIndex %lu TotalBytes %lu Remaining %lu\n", m_TransferDescriptors[Index], m_TransferDescriptors[Index]->BufferPointer[BufferIndex],
|
DPRINT("TransferDescriptor %p BufferPointer %p BufferIndex %lu TotalBytes %lu Remaining %lu\n", m_TransferDescriptors[Index], m_TransferDescriptors[Index]->BufferPointer[BufferIndex],
|
||||||
BufferIndex, m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer, BytesAvailable);
|
BufferIndex, m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer, BytesAvailable);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -938,7 +937,7 @@ CUSBRequest::BuildBulkTransferQueueHead(
|
||||||
//
|
//
|
||||||
// done
|
// done
|
||||||
//
|
//
|
||||||
DPRINT1("TransferDescriptor %p BufferPointer %p BufferIndex %lu TotalBytes %lu Remaining %lu\n", m_TransferDescriptors[Index], m_TransferDescriptors[Index]->BufferPointer[BufferIndex],
|
DPRINT("TransferDescriptor %p BufferPointer %p BufferIndex %lu TotalBytes %lu Remaining %lu\n", m_TransferDescriptors[Index], m_TransferDescriptors[Index]->BufferPointer[BufferIndex],
|
||||||
BufferIndex, m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer, BytesAvailable);
|
BufferIndex, m_TransferDescriptors[Index]->Token.Bits.TotalBytesToTransfer, BytesAvailable);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -1465,7 +1464,6 @@ CUSBRequest::FreeQueueHead(
|
||||||
//
|
//
|
||||||
// release transfer descriptors
|
// release transfer descriptors
|
||||||
//
|
//
|
||||||
DPRINT1("m_TransferDescriptor[0] Length %lu\n", m_TransferDescriptors[0]->Token.Bits.TotalBytesToTransfer);
|
|
||||||
m_DmaManager->Release(m_TransferDescriptors[0], sizeof(QUEUE_TRANSFER_DESCRIPTOR));
|
m_DmaManager->Release(m_TransferDescriptors[0], sizeof(QUEUE_TRANSFER_DESCRIPTOR));
|
||||||
m_TransferDescriptors[0] = 0;
|
m_TransferDescriptors[0] = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define USBEHCI_H__
|
#define USBEHCI_H__
|
||||||
|
|
||||||
#include <ntddk.h>
|
#include <ntddk.h>
|
||||||
#define YDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <hubbusif.h>
|
#include <hubbusif.h>
|
||||||
#include <usbbusif.h>
|
#include <usbbusif.h>
|
||||||
|
|
Loading…
Reference in a new issue