Author: akhaldi
Date: Fri May 10 10:30:21 2013
New Revision: 58983
URL:
http://svn.reactos.org/svn/reactos?rev=58983&view=rev
Log:
[PCMCIA]
* Add some function annotations.
* Properly mark some unreferenced parameters as such.
Modified:
trunk/reactos/drivers/bus/pcmcia/fdo.c
trunk/reactos/drivers/bus/pcmcia/pcmcia.c
trunk/reactos/drivers/bus/pcmcia/pdo.c
Modified: trunk/reactos/drivers/bus/pcmcia/fdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcmcia/fdo.c?r…
==============================================================================
--- trunk/reactos/drivers/bus/pcmcia/fdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pcmcia/fdo.c [iso-8859-1] Fri May 10 10:30:21 2013
@@ -16,7 +16,9 @@
PcmciaFdoPlugPlay(PPCMCIA_FDO_EXTENSION FdoExt,
PIRP Irp)
{
- UNIMPLEMENTED
+ UNREFERENCED_PARAMETER(FdoExt);
+
+ UNIMPLEMENTED;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
Modified: trunk/reactos/drivers/bus/pcmcia/pcmcia.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcmcia/pcmcia.…
==============================================================================
--- trunk/reactos/drivers/bus/pcmcia/pcmcia.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pcmcia/pcmcia.c [iso-8859-1] Fri May 10 10:30:21 2013
@@ -13,11 +13,15 @@
BOOLEAN IoctlEnabled;
+DRIVER_DISPATCH PcmciaCreateClose;
+
NTSTATUS
NTAPI
PcmciaCreateClose(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
+ UNREFERENCED_PARAMETER(DeviceObject);
+
Irp->IoStatus.Status = STATUS_SUCCESS;
Irp->IoStatus.Information = 0;
@@ -28,6 +32,8 @@
return STATUS_SUCCESS;
}
+DRIVER_DISPATCH PcmciaDeviceControl;
+
NTSTATUS
NTAPI
PcmciaDeviceControl(PDEVICE_OBJECT DeviceObject,
@@ -35,6 +41,8 @@
{
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp);
NTSTATUS Status;
+
+ UNREFERENCED_PARAMETER(DeviceObject);
DPRINT("PCMCIA: DeviceIoControl\n");
@@ -54,12 +62,17 @@
return Status;
}
+DRIVER_UNLOAD PcmciaUnload;
+
VOID
NTAPI
PcmciaUnload(PDRIVER_OBJECT DriverObject)
{
+ UNREFERENCED_PARAMETER(DriverObject);
DPRINT("PCMCIA: Unload\n");
}
+
+DRIVER_DISPATCH PcmciaPlugPlay;
NTSTATUS
NTAPI
@@ -80,6 +93,8 @@
Irp);
}
}
+
+DRIVER_DISPATCH PcmciaPower;
NTSTATUS
NTAPI
@@ -159,6 +174,8 @@
return Status;
}
+
+DRIVER_ADD_DEVICE PcmciaAddDevice;
NTSTATUS
NTAPI
@@ -207,6 +224,8 @@
RTL_QUERY_REGISTRY_TABLE QueryTable[2];
NTSTATUS Status;
+ UNREFERENCED_PARAMETER(RegistryPath);
+
DPRINT1("PCMCIA: DriverEntry\n");
DriverObject->MajorFunction[IRP_MJ_CREATE] = PcmciaCreateClose;
Modified: trunk/reactos/drivers/bus/pcmcia/pdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pcmcia/pdo.c?r…
==============================================================================
--- trunk/reactos/drivers/bus/pcmcia/pdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pcmcia/pdo.c [iso-8859-1] Fri May 10 10:30:21 2013
@@ -16,7 +16,9 @@
PcmciaPdoPlugPlay(PPCMCIA_PDO_EXTENSION PdoExt,
PIRP Irp)
{
- UNIMPLEMENTED
+ UNREFERENCED_PARAMETER(PdoExt);
+
+ UNIMPLEMENTED;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
@@ -27,7 +29,9 @@
NTAPI
PcmciaPdoSetPowerState(PPCMCIA_PDO_EXTENSION PdoExt)
{
- UNIMPLEMENTED
+ UNREFERENCED_PARAMETER(PdoExt);
+
+ UNIMPLEMENTED;
return STATUS_SUCCESS;
}