Author: janderwald
Date: Wed Jan 25 18:56:56 2012
New Revision: 55176
URL:
http://svn.reactos.org/svn/reactos?rev=55176&view=rev
Log:
[USBOHCI]
- Add alignment check
Modified:
branches/usb-bringup-trunk/drivers/usb/usbohci/hardware.cpp
Modified: branches/usb-bringup-trunk/drivers/usb/usbohci/hardware.cpp
URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbohci/hardware.cpp [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbohci/hardware.cpp [iso-8859-1] Wed Jan 25
18:56:56 2012
@@ -884,6 +884,14 @@
ULONG Index, FrameInterval;
//
+ // alignment check
+ //
+ WRITE_REGISTER_ULONG((PULONG)((PUCHAR)m_Base + OHCI_HCCA_OFFSET, 0xFFFFFFFF);
+ Control = READ_REGISTER_ULONG((PULONG)((PUCHAR)m_Base + OHCI_HCCA_OFFSET));
+ DPRINT1("HcHCCA Alignment %x\n", Control);
+ ASSERT((Control & 0xFFFFFFF0) == 0xFFFFFFF0);
+
+ //
// check context
//
Control = READ_REGISTER_ULONG((PULONG)((PUCHAR)m_Base + OHCI_CONTROL_OFFSET));