mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[USBEHCI]
- Fix some debug prints and some whitespace issues svn path=/trunk/; revision=62582
This commit is contained in:
parent
12268a1b66
commit
2d721bca08
1 changed files with 34 additions and 34 deletions
|
@ -360,14 +360,14 @@ CUSBHardwareDevice::PnpStart(
|
|||
// Get controllers capabilities
|
||||
//
|
||||
m_Capabilities.Length = READ_REGISTER_UCHAR((PUCHAR)ResourceBase + EHCI_CAPLENGTH);
|
||||
m_Capabilities.HCIVersion = READ_REGISTER_USHORT((PUSHORT)((ULONG)ResourceBase + EHCI_HCIVERSION));
|
||||
m_Capabilities.HCSParamsLong = READ_REGISTER_ULONG((PULONG)((ULONG)ResourceBase + EHCI_HCSPARAMS));
|
||||
m_Capabilities.HCCParamsLong = READ_REGISTER_ULONG((PULONG)((ULONG)ResourceBase + EHCI_HCCPARAMS));
|
||||
m_Capabilities.HCIVersion = READ_REGISTER_USHORT((PUSHORT)((ULONG_PTR)ResourceBase + EHCI_HCIVERSION));
|
||||
m_Capabilities.HCSParamsLong = READ_REGISTER_ULONG((PULONG)((ULONG_PTR)ResourceBase + EHCI_HCSPARAMS));
|
||||
m_Capabilities.HCCParamsLong = READ_REGISTER_ULONG((PULONG)((ULONG_PTR)ResourceBase + EHCI_HCCPARAMS));
|
||||
|
||||
DPRINT1("Controller has %c Length\n", m_Capabilities.Length);
|
||||
DPRINT1("Controller EHCI Version %x\n", m_Capabilities.HCIVersion);
|
||||
DPRINT1("Controller EHCI Caps HCSParamsLong %x\n", m_Capabilities.HCSParamsLong);
|
||||
DPRINT1("Controller EHCI Caps HCCParamsLong %x\n", m_Capabilities.HCCParamsLong);
|
||||
DPRINT1("Controller Capabilities Length 0x%x\n", m_Capabilities.Length);
|
||||
DPRINT1("Controller EHCI Version 0x%x\n", m_Capabilities.HCIVersion);
|
||||
DPRINT1("Controller EHCI Caps HCSParamsLong 0x%lx\n", m_Capabilities.HCSParamsLong);
|
||||
DPRINT1("Controller EHCI Caps HCCParamsLong 0x%lx\n", m_Capabilities.HCCParamsLong);
|
||||
DPRINT1("Controller has %lu Ports\n", m_Capabilities.HCSParams.PortCount);
|
||||
|
||||
//
|
||||
|
@ -391,7 +391,7 @@ CUSBHardwareDevice::PnpStart(
|
|||
m_Capabilities.PortRoute[(Count*2)+1] = (Value & 0x0F);
|
||||
|
||||
Count++;
|
||||
}while(Count < PortCount);
|
||||
} while(Count < PortCount);
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -1250,7 +1250,7 @@ InterruptServiceRoutine(
|
|||
CStatus = This->EHCI_READ_REGISTER_ULONG(EHCI_USBSTS);
|
||||
|
||||
CStatus &= (EHCI_ERROR_INT | EHCI_STS_INT | EHCI_STS_IAA | EHCI_STS_PCD | EHCI_STS_FLR);
|
||||
DPRINT("CStatus %x\n", CStatus);
|
||||
DPRINT("InterruptServiceRoutine CStatus %lx\n", CStatus);
|
||||
|
||||
//
|
||||
// Check that it belongs to EHCI
|
||||
|
@ -1301,7 +1301,7 @@ EhciDefferedRoutine(
|
|||
This = (CUSBHardwareDevice*) SystemArgument1;
|
||||
CStatus = (ULONG) SystemArgument2;
|
||||
|
||||
DPRINT("CStatus %x\n", CStatus);
|
||||
DPRINT("EhciDefferedRoutine CStatus %lx\n", CStatus);
|
||||
|
||||
//
|
||||
// check for completion of async schedule
|
||||
|
@ -1318,7 +1318,7 @@ EhciDefferedRoutine(
|
|||
//
|
||||
// controller reported error
|
||||
//
|
||||
DPRINT1("CStatus %x\n", CStatus);
|
||||
DPRINT1("CStatus %lx\n", CStatus);
|
||||
//ASSERT(FALSE);
|
||||
}
|
||||
|
||||
|
@ -1330,28 +1330,28 @@ EhciDefferedRoutine(
|
|||
//
|
||||
// was a queue head completed?
|
||||
//
|
||||
if (ShouldRingDoorBell)
|
||||
{
|
||||
//
|
||||
// set door ring bell in progress status flag
|
||||
//
|
||||
This->m_DoorBellRingInProgress = TRUE;
|
||||
if (ShouldRingDoorBell)
|
||||
{
|
||||
//
|
||||
// set door ring bell in progress status flag
|
||||
//
|
||||
This->m_DoorBellRingInProgress = TRUE;
|
||||
|
||||
//
|
||||
// get command register
|
||||
//
|
||||
This->GetCommandRegister(&UsbCmd);
|
||||
//
|
||||
// get command register
|
||||
//
|
||||
This->GetCommandRegister(&UsbCmd);
|
||||
|
||||
//
|
||||
// set door rang bell bit
|
||||
//
|
||||
UsbCmd.DoorBell = TRUE;
|
||||
//
|
||||
// set door rang bell bit
|
||||
//
|
||||
UsbCmd.DoorBell = TRUE;
|
||||
|
||||
//
|
||||
// update command status
|
||||
//
|
||||
This->SetCommandRegister(&UsbCmd);
|
||||
}
|
||||
//
|
||||
// update command status
|
||||
//
|
||||
This->SetCommandRegister(&UsbCmd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue