mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:26:17 +00:00
[ISAPNP]
* Add some function annotations. * Fix several debug print specifiers. * Properly mark some unreferenced parameters as such. svn path=/trunk/; revision=58975
This commit is contained in:
parent
91ef640fe5
commit
4d9bf5c80a
4 changed files with 21 additions and 3 deletions
|
@ -19,6 +19,9 @@ IsaFdoStartDevice(
|
|||
NTSTATUS Status;
|
||||
KIRQL OldIrql;
|
||||
|
||||
UNREFERENCED_PARAMETER(Irp);
|
||||
UNREFERENCED_PARAMETER(IrpSp);
|
||||
|
||||
KeAcquireSpinLock(&FdoExt->Lock, &OldIrql);
|
||||
|
||||
Status = IsaHwDetectReadDataPort(FdoExt);
|
||||
|
|
|
@ -319,7 +319,7 @@ TryIsolate(PUCHAR ReadDataPort)
|
|||
INT Csn = 0;
|
||||
USHORT Byte, Data;
|
||||
|
||||
DPRINT("Setting read data port: 0x%x\n", ReadDataPort);
|
||||
DPRINT("Setting read data port: 0x%p\n", ReadDataPort);
|
||||
|
||||
WaitForKey();
|
||||
SendKey();
|
||||
|
@ -408,7 +408,7 @@ TryIsolate(PUCHAR ReadDataPort)
|
|||
|
||||
if (Csn > 0)
|
||||
{
|
||||
DPRINT("Found %d cards at read port 0x%x\n", Csn, ReadDataPort);
|
||||
DPRINT("Found %d cards at read port 0x%p\n", Csn, ReadDataPort);
|
||||
}
|
||||
|
||||
return Csn;
|
||||
|
@ -543,7 +543,7 @@ IsaHwDetectReadDataPort(
|
|||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
DPRINT1("Detected read data port at 0x%x\n", FdoExt->ReadDataPort);
|
||||
DPRINT1("Detected read data port at 0x%p\n", FdoExt->ReadDataPort);
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
static IO_COMPLETION_ROUTINE ForwardIrpCompletion;
|
||||
|
||||
static
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
|
@ -17,6 +19,9 @@ ForwardIrpCompletion(
|
|||
IN PIRP Irp,
|
||||
IN PVOID Context)
|
||||
{
|
||||
|
||||
UNREFERENCED_PARAMETER(DeviceObject);
|
||||
|
||||
if (Irp->PendingReturned)
|
||||
KeSetEvent((PKEVENT)Context, IO_NO_INCREMENT, FALSE);
|
||||
|
||||
|
@ -48,6 +53,7 @@ IsaForwardIrpSynchronous(
|
|||
return Status;
|
||||
}
|
||||
|
||||
static DRIVER_DISPATCH IsaCreateClose;
|
||||
|
||||
static
|
||||
NTSTATUS
|
||||
|
@ -66,6 +72,8 @@ IsaCreateClose(
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static DRIVER_DISPATCH IsaIoctl;
|
||||
|
||||
static
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
|
@ -92,6 +100,8 @@ IsaIoctl(
|
|||
return Status;
|
||||
}
|
||||
|
||||
static DRIVER_DISPATCH IsaReadWrite;
|
||||
|
||||
static
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
|
@ -153,6 +163,8 @@ IsaAddDevice(
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static DRIVER_DISPATCH IsaPnp;
|
||||
|
||||
static
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
|
|
|
@ -40,6 +40,9 @@ typedef struct _ISAPNP_LOGICAL_DEVICE {
|
|||
} ISAPNP_LOGICAL_DEVICE, *PISAPNP_LOGICAL_DEVICE;
|
||||
|
||||
/* isapnp.c */
|
||||
|
||||
DRIVER_INITIALIZE DriverEntry;
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
DriverEntry(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue