Author: akhaldi
Date: Sat Apr 9 16:37:27 2011
New Revision: 51301
URL:
http://svn.reactos.org/svn/reactos?rev=51301&view=rev
Log:
[CMAKE]
* msvc compatibility fixes for usbehci.
Modified:
branches/cmake-bringup/drivers/usb/usbehci/fdo.c
branches/cmake-bringup/drivers/usb/usbehci/hwiface.c
branches/cmake-bringup/drivers/usb/usbehci/pdo.c
Modified: branches/cmake-bringup/drivers/usb/usbehci/fdo.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/usb/usbeh…
==============================================================================
--- branches/cmake-bringup/drivers/usb/usbehci/fdo.c [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/usb/usbehci/fdo.c [iso-8859-1] Sat Apr 9 16:37:27
2011
@@ -22,6 +22,9 @@
ULONG OpRegisters;
PEHCI_HOST_CONTROLLER hcd;
LONG i;
+ ULONG CurrentAddr, OffSet;
+ PQUEUE_HEAD CompletedQH, NextQH;
+ PQUEUE_TRANSFER_DESCRIPTOR CompletedTD, NextTD;
FdoDeviceExtension = (PFDO_DEVICE_EXTENSION) DeferredContext;
@@ -44,10 +47,7 @@
if (CStatus & (EHCI_STS_INT | EHCI_ERROR_INT))
{
DPRINT("Asyn Complete!\n");
- ULONG CurrentAddr, OffSet;
- PQUEUE_HEAD CompletedQH, NextQH;
- PQUEUE_TRANSFER_DESCRIPTOR CompletedTD, NextTD;
-
+
/* AsyncListAddr Register will have the next QueueHead to execute */
CurrentAddr = GetAsyncListQueueRegister(hcd);
Modified: branches/cmake-bringup/drivers/usb/usbehci/hwiface.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/usb/usbeh…
==============================================================================
--- branches/cmake-bringup/drivers/usb/usbehci/hwiface.c [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/usb/usbehci/hwiface.c [iso-8859-1] Sat Apr 9 16:37:27
2011
@@ -58,11 +58,12 @@
DumpQueueHeadList(PEHCI_HOST_CONTROLLER hcd)
{
KIRQL OldIrql;
+ PQUEUE_HEAD QueueHead, FirstQueueHead;
KeAcquireSpinLock(&hcd->Lock, &OldIrql);
- PQUEUE_HEAD QueueHead = (PQUEUE_HEAD)hcd->CommonBufferVA;
- PQUEUE_HEAD FirstQueueHead = QueueHead;
+ QueueHead = (PQUEUE_HEAD)hcd->CommonBufferVA;
+ FirstQueueHead = QueueHead;
DPRINT1("Dumping QueueHead List!!!!!!!!!!!!!\n");
while (1)
{
Modified: branches/cmake-bringup/drivers/usb/usbehci/pdo.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/drivers/usb/usbeh…
==============================================================================
--- branches/cmake-bringup/drivers/usb/usbehci/pdo.c [iso-8859-1] (original)
+++ branches/cmake-bringup/drivers/usb/usbehci/pdo.c [iso-8859-1] Sat Apr 9 16:37:27
2011
@@ -360,6 +360,8 @@
PIO_STACK_LOCATION Stack;
ULONG_PTR Information = Irp->IoStatus.Information;
NTSTATUS Status = Irp->IoStatus.Status;
+ PDEVICE_CAPABILITIES DeviceCapabilities;
+ ULONG i;
Stack = IoGetCurrentIrpStackLocation(Irp);
MinorFunction = Stack->MinorFunction;
@@ -514,8 +516,6 @@
case IRP_MN_QUERY_CAPABILITIES:
{
DPRINT("Ehci: PDO Query Capabilities\n");
- PDEVICE_CAPABILITIES DeviceCapabilities;
- ULONG i;
DeviceCapabilities =
(PDEVICE_CAPABILITIES)Stack->Parameters.DeviceCapabilities.Capabilities;