[USBOHCI]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Wed, 25 Jan 2012 18:56:56 +0000 (18:56 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Wed, 25 Jan 2012 18:56:56 +0000 (18:56 +0000)
- Add alignment check

svn path=/branches/usb-bringup-trunk/; revision=55176

drivers/usb/usbohci/hardware.cpp

index 0636a38..8d8de64 100644 (file)
@@ -883,6 +883,14 @@ CUSBHardwareDevice::StopController(void)
     ULONG Control, Reset, Status;
     ULONG Index, FrameInterval;
 
     ULONG Control, Reset, Status;
     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
     //
     //
     // check context
     //