Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers...
[reactos.git] / drivers / filesystems / fastfat / pnp.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: drivers/filesystems/fastfat/pnp.c
5 * PURPOSE: VFAT Filesystem
6 * PROGRAMMER: Pierre Schweitzer
7 *
8 */
9
10 /* INCLUDES *****************************************************************/
11
12 #include "vfat.h"
13
14 #define NDEBUG
15 #include <debug.h>
16
17 /* FUNCTIONS ****************************************************************/
18
19 NTSTATUS
20 VfatPnp(
21 PVFAT_IRP_CONTEXT IrpContext)
22 {
23 PVCB Vcb = NULL;
24 NTSTATUS Status;
25
26 /* PRECONDITION */
27 ASSERT(IrpContext);
28
29 switch (IrpContext->Stack->MinorFunction)
30 {
31 case IRP_MN_QUERY_REMOVE_DEVICE:
32 case IRP_MN_SURPRISE_REMOVAL:
33 case IRP_MN_REMOVE_DEVICE:
34 case IRP_MN_CANCEL_REMOVE_DEVICE:
35 Status = STATUS_NOT_IMPLEMENTED;
36 break;
37
38 default:
39 IoSkipCurrentIrpStackLocation(IrpContext->Irp);
40 Vcb = (PVCB)IrpContext->Stack->DeviceObject->DeviceExtension;
41 IrpContext->Flags &= ~IRPCONTEXT_COMPLETE;
42 Status = IoCallDriver(Vcb->StorageDevice, IrpContext->Irp);
43 }
44
45 return Status;
46 }