mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 12:04:51 +00:00
Fix indentation
svn path=/trunk/; revision=22225
This commit is contained in:
parent
48badfaf22
commit
de5ef123ee
1 changed files with 44 additions and 43 deletions
|
@ -17,19 +17,19 @@
|
||||||
|
|
||||||
NTSTATUS STDCALL
|
NTSTATUS STDCALL
|
||||||
IrpStub(IN PDEVICE_OBJECT DeviceObject,
|
IrpStub(IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN PIRP Irp)
|
IN PIRP Irp)
|
||||||
{
|
{
|
||||||
NTSTATUS Status = STATUS_NOT_SUPPORTED;
|
NTSTATUS Status = STATUS_NOT_SUPPORTED;
|
||||||
Irp->IoStatus.Status = Status;
|
Irp->IoStatus.Status = Status;
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS STDCALL
|
NTSTATUS STDCALL
|
||||||
AddDevice(IN PDRIVER_OBJECT DriverObject,
|
AddDevice(IN PDRIVER_OBJECT DriverObject,
|
||||||
IN PDEVICE_OBJECT pdo)
|
IN PDEVICE_OBJECT pdo)
|
||||||
{
|
{
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID STDCALL
|
VOID STDCALL
|
||||||
|
@ -39,64 +39,64 @@ DriverUnload(PDRIVER_OBJECT DriverObject)
|
||||||
|
|
||||||
VOID STDCALL
|
VOID STDCALL
|
||||||
StartIo(PUSBSTOR_DEVICE_EXTENSION DeviceExtension,
|
StartIo(PUSBSTOR_DEVICE_EXTENSION DeviceExtension,
|
||||||
PIRP Irp)
|
PIRP Irp)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS STDCALL
|
static NTSTATUS STDCALL
|
||||||
DispatchClose(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
DispatchClose(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
{
|
{
|
||||||
Irp->IoStatus.Information = 0;
|
Irp->IoStatus.Information = 0;
|
||||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS STDCALL
|
static NTSTATUS STDCALL
|
||||||
DispatchCleanup(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
DispatchCleanup(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
{
|
{
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS STDCALL
|
static NTSTATUS STDCALL
|
||||||
DispatchDeviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
DispatchDeviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
{
|
{
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static NTSTATUS STDCALL
|
static NTSTATUS STDCALL
|
||||||
DispatchScsi(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
DispatchScsi(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
{
|
{
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS STDCALL
|
static NTSTATUS STDCALL
|
||||||
DispatchReadWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
DispatchReadWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
{
|
{
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS STDCALL
|
static NTSTATUS STDCALL
|
||||||
DispatchSystemControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
DispatchSystemControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
{
|
{
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS STDCALL
|
static NTSTATUS STDCALL
|
||||||
DispatchPnp(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
DispatchPnp(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
{
|
{
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS STDCALL
|
static NTSTATUS STDCALL
|
||||||
DispatchPower(PDEVICE_OBJECT fido, PIRP Irp)
|
DispatchPower(PDEVICE_OBJECT fido, PIRP Irp)
|
||||||
{
|
{
|
||||||
DPRINT1("USBSTOR: IRP_MJ_POWER unimplemented\n");
|
DPRINT1("USBSTOR: IRP_MJ_POWER unimplemented\n");
|
||||||
Irp->IoStatus.Information = 0;
|
Irp->IoStatus.Information = 0;
|
||||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,31 +107,32 @@ DispatchPower(PDEVICE_OBJECT fido, PIRP Irp)
|
||||||
NTSTATUS STDCALL
|
NTSTATUS STDCALL
|
||||||
DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegPath)
|
DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegPath)
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
DPRINT("********* USB Storage *********\n");
|
|
||||||
|
|
||||||
DriverObject->DriverUnload = DriverUnload;
|
DPRINT("********* USB Storage *********\n");
|
||||||
DriverObject->DriverExtension->AddDevice = AddDevice;
|
|
||||||
|
|
||||||
for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
|
DriverObject->DriverUnload = DriverUnload;
|
||||||
DriverObject->MajorFunction[i] = IrpStub;
|
DriverObject->DriverExtension->AddDevice = AddDevice;
|
||||||
|
|
||||||
DriverObject->DriverStartIo = (PVOID)StartIo;
|
for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
|
||||||
|
DriverObject->MajorFunction[i] = IrpStub;
|
||||||
|
|
||||||
DriverObject->MajorFunction[IRP_MJ_CREATE] = DispatchClose;
|
DriverObject->DriverStartIo = (PVOID)StartIo;
|
||||||
DriverObject->MajorFunction[IRP_MJ_CLOSE] = DispatchClose;
|
|
||||||
DriverObject->MajorFunction[IRP_MJ_CLEANUP] = DispatchCleanup;
|
|
||||||
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = DispatchDeviceControl;
|
|
||||||
DriverObject->MajorFunction[IRP_MJ_READ] = DispatchReadWrite;
|
|
||||||
DriverObject->MajorFunction[IRP_MJ_WRITE] = DispatchReadWrite;
|
|
||||||
|
|
||||||
/* Scsi Miniport support */
|
DriverObject->MajorFunction[IRP_MJ_CREATE] = DispatchClose;
|
||||||
DriverObject->MajorFunction[IRP_MJ_SCSI] = DispatchScsi;
|
DriverObject->MajorFunction[IRP_MJ_CLOSE] = DispatchClose;
|
||||||
DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = DispatchSystemControl;
|
DriverObject->MajorFunction[IRP_MJ_CLEANUP] = DispatchCleanup;
|
||||||
|
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = DispatchDeviceControl;
|
||||||
|
DriverObject->MajorFunction[IRP_MJ_READ] = DispatchReadWrite;
|
||||||
|
DriverObject->MajorFunction[IRP_MJ_WRITE] = DispatchReadWrite;
|
||||||
|
|
||||||
DriverObject->MajorFunction[IRP_MJ_PNP] = DispatchPnp;
|
/* Scsi Miniport support */
|
||||||
DriverObject->MajorFunction[IRP_MJ_POWER] = DispatchPower;
|
DriverObject->MajorFunction[IRP_MJ_SCSI] = DispatchScsi;
|
||||||
|
DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = DispatchSystemControl;
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
DriverObject->MajorFunction[IRP_MJ_PNP] = DispatchPnp;
|
||||||
|
DriverObject->MajorFunction[IRP_MJ_POWER] = DispatchPower;
|
||||||
|
|
||||||
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue