mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[FBTUSB]
- Shut up warnings - Fix whitespace issues svn path=/trunk/; revision=56469
This commit is contained in:
parent
ae1974497f
commit
4c2fd89c46
5 changed files with 484 additions and 484 deletions
|
@ -22,12 +22,12 @@
|
|||
// Dispatch routine for CreateHandle
|
||||
NTSTATUS FreeBT_DispatchCreate(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
||||
{
|
||||
ULONG i;
|
||||
//ULONG i;
|
||||
NTSTATUS ntStatus;
|
||||
PFILE_OBJECT fileObject;
|
||||
PDEVICE_EXTENSION deviceExtension;
|
||||
PIO_STACK_LOCATION irpStack;
|
||||
PFREEBT_PIPE_CONTEXT pipeContext;
|
||||
//PFREEBT_PIPE_CONTEXT pipeContext;
|
||||
PUSBD_INTERFACE_INFORMATION interface;
|
||||
|
||||
PAGED_CODE();
|
||||
|
@ -105,15 +105,15 @@ NTSTATUS FreeBT_DispatchClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
|||
PFILE_OBJECT fileObject;
|
||||
PDEVICE_EXTENSION deviceExtension;
|
||||
PIO_STACK_LOCATION irpStack;
|
||||
PFREEBT_PIPE_CONTEXT pipeContext;
|
||||
PUSBD_PIPE_INFORMATION pipeInformation;
|
||||
//PFREEBT_PIPE_CONTEXT pipeContext;
|
||||
//PUSBD_PIPE_INFORMATION pipeInformation;
|
||||
|
||||
PAGED_CODE();
|
||||
|
||||
irpStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
fileObject = irpStack->FileObject;
|
||||
pipeContext = NULL;
|
||||
pipeInformation = NULL;
|
||||
//pipeContext = NULL;
|
||||
//pipeInformation = NULL;
|
||||
deviceExtension = (PDEVICE_EXTENSION) DeviceObject->DeviceExtension;
|
||||
|
||||
FreeBT_DbgPrint(3, ("FreeBT_DispatchClose: Entered\n"));
|
||||
|
@ -134,7 +134,7 @@ NTSTATUS FreeBT_DispatchClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
|||
// Called when a HCI Send on the control pipe completes
|
||||
NTSTATUS FreeBT_HCISendCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context)
|
||||
{
|
||||
ULONG stageLength;
|
||||
//ULONG stageLength;
|
||||
NTSTATUS ntStatus;
|
||||
|
||||
FreeBT_DbgPrint(3, ("FBTUSB: FreeBT_HCISendCompletion, status=0x%08X\n", Irp->IoStatus.Status));
|
||||
|
@ -156,9 +156,9 @@ NTSTATUS FreeBT_HCISendCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, I
|
|||
NTSTATUS FreeBT_SendHCICommand(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID IoBuffer, IN ULONG InputBufferLength)
|
||||
{
|
||||
PDEVICE_EXTENSION deviceExtension;
|
||||
ULONG urbFlags;
|
||||
ULONG stageLength;
|
||||
PVOID pBuffer;
|
||||
//ULONG urbFlags;
|
||||
//ULONG stageLength;
|
||||
//PVOID pBuffer;
|
||||
PURB urb;
|
||||
NTSTATUS ntStatus;
|
||||
PIO_STACK_LOCATION nextStack;
|
||||
|
@ -283,7 +283,7 @@ NTSTATUS FreeBT_SendHCICommand(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN P
|
|||
// Called when a HCI Get on the event pipe completes
|
||||
NTSTATUS FreeBT_HCIEventCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context)
|
||||
{
|
||||
ULONG stageLength;
|
||||
//ULONG stageLength;
|
||||
NTSTATUS ntStatus;
|
||||
PIO_STACK_LOCATION nextStack;
|
||||
PURB urb;
|
||||
|
|
|
@ -25,7 +25,7 @@ NTSTATUS FreeBT_DispatchPnP(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
|||
{
|
||||
PIO_STACK_LOCATION irpStack;
|
||||
PDEVICE_EXTENSION deviceExtension;
|
||||
KEVENT startDeviceEvent;
|
||||
//KEVENT startDeviceEvent;
|
||||
NTSTATUS ntStatus;
|
||||
|
||||
irpStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
|
@ -448,7 +448,7 @@ NTSTATUS SelectInterfaces(IN PDEVICE_OBJECT DeviceObject, IN PUSB_CONFIGURATION_
|
|||
LONG numberOfInterfaces, interfaceNumber, interfaceindex;
|
||||
ULONG i;
|
||||
PURB urb;
|
||||
PUCHAR pInf;
|
||||
//PUCHAR pInf;
|
||||
NTSTATUS ntStatus;
|
||||
PDEVICE_EXTENSION deviceExtension;
|
||||
PUSB_INTERFACE_DESCRIPTOR interfaceDescriptor;
|
||||
|
@ -1112,7 +1112,7 @@ NTSTATUS HandleSurpriseRemoval(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
|||
NTSTATUS HandleRemoveDevice(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
||||
{
|
||||
KIRQL oldIrql;
|
||||
KEVENT event;
|
||||
//KEVENT event;
|
||||
ULONG requestCount;
|
||||
NTSTATUS ntStatus;
|
||||
PDEVICE_EXTENSION deviceExtension;
|
||||
|
@ -1351,7 +1351,7 @@ VOID DpcRoutine(IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1
|
|||
|
||||
VOID IdleRequestWorkerRoutine(IN PDEVICE_OBJECT DeviceObject, IN PVOID Context)
|
||||
{
|
||||
PIRP irp;
|
||||
//PIRP irp;
|
||||
NTSTATUS ntStatus;
|
||||
PDEVICE_EXTENSION deviceExtension;
|
||||
PIO_WORKITEM workItem;
|
||||
|
@ -1479,7 +1479,7 @@ Return Value:
|
|||
|
||||
else
|
||||
{
|
||||
PIO_STACK_LOCATION irpStack;
|
||||
//PIO_STACK_LOCATION irpStack;
|
||||
|
||||
FreeBT_DbgPrint(3, ("FBTUSB: ProcessQueuedRequests::"));
|
||||
FreeBT_IoIncrement(DeviceExtension);
|
||||
|
@ -1573,7 +1573,7 @@ NTSTATUS FreeBT_DispatchClean(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
|||
PIRP pendingIrp;
|
||||
PIO_STACK_LOCATION pendingIrpStack,
|
||||
irpStack;
|
||||
NTSTATUS ntStatus;
|
||||
//NTSTATUS ntStatus;
|
||||
|
||||
deviceExtension = (PDEVICE_EXTENSION) DeviceObject->DeviceExtension;
|
||||
irpStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
|
@ -1655,7 +1655,7 @@ NTSTATUS FreeBT_AbortPipes(IN PDEVICE_OBJECT DeviceObject)
|
|||
NTSTATUS ntStatus;
|
||||
PDEVICE_EXTENSION deviceExtension;
|
||||
PFREEBT_PIPE_CONTEXT pipeContext;
|
||||
PUSBD_PIPE_INFORMATION pipeInformation;
|
||||
//PUSBD_PIPE_INFORMATION pipeInformation;
|
||||
PUSBD_INTERFACE_INFORMATION interfaceInfo;
|
||||
|
||||
deviceExtension = (PDEVICE_EXTENSION) DeviceObject->DeviceExtension;
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
// Handle power events
|
||||
NTSTATUS FreeBT_DispatchPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
||||
{
|
||||
NTSTATUS ntStatus;
|
||||
NTSTATUS ntStatus = STATUS_SUCCESS;
|
||||
PIO_STACK_LOCATION irpStack;
|
||||
PUNICODE_STRING tagString;
|
||||
//PUNICODE_STRING tagString;
|
||||
PDEVICE_EXTENSION deviceExtension;
|
||||
|
||||
irpStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
|
|
|
@ -33,7 +33,7 @@ NTSTATUS FreeBT_DispatchRead(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
|||
PIO_STACK_LOCATION irpStack;
|
||||
PIO_STACK_LOCATION nextStack;
|
||||
PFREEBT_RW_CONTEXT rwContext;
|
||||
ULONG maxLength=0;
|
||||
//ULONG maxLength=0;
|
||||
|
||||
urb = NULL;
|
||||
mdl = NULL;
|
||||
|
@ -206,9 +206,9 @@ FreeBT_DispatchRead_Exit:
|
|||
|
||||
NTSTATUS FreeBT_ReadCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context)
|
||||
{
|
||||
ULONG stageLength;
|
||||
//ULONG stageLength;
|
||||
NTSTATUS ntStatus;
|
||||
PIO_STACK_LOCATION nextStack;
|
||||
//PIO_STACK_LOCATION nextStack;
|
||||
PFREEBT_RW_CONTEXT rwContext;
|
||||
PDEVICE_EXTENSION deviceExtension;
|
||||
|
||||
|
@ -263,7 +263,7 @@ NTSTATUS FreeBT_DispatchWrite(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
|
|||
PIO_STACK_LOCATION irpStack;
|
||||
PIO_STACK_LOCATION nextStack;
|
||||
PFREEBT_RW_CONTEXT rwContext;
|
||||
ULONG maxLength=0;
|
||||
//ULONG maxLength=0;
|
||||
|
||||
urb = NULL;
|
||||
mdl = NULL;
|
||||
|
|
|
@ -111,7 +111,7 @@ NTSTATUS NTAPI FreeBT_AddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJEC
|
|||
PDEVICE_OBJECT deviceObject;
|
||||
PDEVICE_EXTENSION deviceExtension;
|
||||
POWER_STATE state;
|
||||
KIRQL oldIrql;
|
||||
//KIRQL oldIrql;
|
||||
UNICODE_STRING uniDeviceName;
|
||||
WCHAR wszDeviceName[255]={0};
|
||||
UNICODE_STRING uniDosDeviceName;
|
||||
|
|
Loading…
Reference in a new issue