- Remove cruft from CMakeLists.txt

- Silence debug flood
- Remove debugging code
- Add traces for composite device detection
- Don't print device descriptor

svn path=/branches/usb-bringup-trunk/; revision=55302
This commit is contained in:
Johannes Anderwald
2012-01-29 23:11:21 +00:00
parent d5f187d853
commit fc2d4e3800
4 changed files with 9 additions and 7 deletions
-4
View File
@@ -364,10 +364,6 @@ CUSBQueue::AddUSBRequest(
LinkQueueHead(AsyncListQueueHead, QueueHead);
KeReleaseSpinLock(m_Lock, OldLevel);
EHCI_USBCMD_CONTENT UsbCmd;
m_Hardware->GetCommandRegister(&UsbCmd);
ASSERT(UsbCmd.AsyncEnable == TRUE);
}
+1 -1
View File
@@ -2,7 +2,7 @@
#define USBEHCI_H__
#include <ntddk.h>
#define YDEBUG
#define NDEBUG
#include <debug.h>
#include <hubbusif.h>
#include <usbbusif.h>
+7 -1
View File
@@ -817,6 +817,7 @@ IsCompositeDevice(
//
// composite device must have only one configuration
//
DPRINT1("IsCompositeDevice bNumConfigurations %x\n", DeviceDescriptor->bNumConfigurations);
return FALSE;
}
@@ -825,6 +826,7 @@ IsCompositeDevice(
//
// composite device must have multiple interfaces
//
DPRINT1("IsCompositeDevice bNumInterfaces %x\n", ConfigurationDescriptor->bNumInterfaces);
return FALSE;
}
@@ -835,6 +837,7 @@ IsCompositeDevice(
//
ASSERT(DeviceDescriptor->bDeviceSubClass == 0);
ASSERT(DeviceDescriptor->bDeviceProtocol == 0);
DPRINT1("IsCompositeDevice: TRUE\n");
return TRUE;
}
@@ -845,9 +848,12 @@ IsCompositeDevice(
//
// USB-IF association descriptor
//
DPRINT1("IsCompositeDevice: TRUE\n");
return TRUE;
}
DPRINT1("DeviceDescriptor bDeviceClass %x bDeviceSubClass %x bDeviceProtocol %x\n", DeviceDescriptor->bDeviceClass, DeviceDescriptor->bDeviceSubClass, DeviceDescriptor->bDeviceProtocol);
//
// not a composite device
//
@@ -1327,7 +1333,7 @@ CreateUsbChildDeviceObject(
goto Cleanup;
}
DumpFullConfigurationDescriptor(UsbChildExtension->FullConfigDesc);
//DumpFullConfigurationDescriptor(UsbChildExtension->FullConfigDesc);
//
// Construct all the strings that will described the device to PNP
+1 -1
View File
@@ -29,6 +29,6 @@ else()
endif(MSVC)
set_module_type(usbohci kernelmodedriver)
add_importlibs(usbohci ntoskrnl ks drmk hal usbd)
add_importlibs(usbohci ntoskrnl hal usbd)
add_cd_file(TARGET usbohci DESTINATION reactos/system32/drivers NO_CAB FOR all)