mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +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;
|
NTSTATUS Status;
|
||||||
KIRQL OldIrql;
|
KIRQL OldIrql;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(Irp);
|
||||||
|
UNREFERENCED_PARAMETER(IrpSp);
|
||||||
|
|
||||||
KeAcquireSpinLock(&FdoExt->Lock, &OldIrql);
|
KeAcquireSpinLock(&FdoExt->Lock, &OldIrql);
|
||||||
|
|
||||||
Status = IsaHwDetectReadDataPort(FdoExt);
|
Status = IsaHwDetectReadDataPort(FdoExt);
|
||||||
|
|
|
@ -319,7 +319,7 @@ TryIsolate(PUCHAR ReadDataPort)
|
||||||
INT Csn = 0;
|
INT Csn = 0;
|
||||||
USHORT Byte, Data;
|
USHORT Byte, Data;
|
||||||
|
|
||||||
DPRINT("Setting read data port: 0x%x\n", ReadDataPort);
|
DPRINT("Setting read data port: 0x%p\n", ReadDataPort);
|
||||||
|
|
||||||
WaitForKey();
|
WaitForKey();
|
||||||
SendKey();
|
SendKey();
|
||||||
|
@ -408,7 +408,7 @@ TryIsolate(PUCHAR ReadDataPort)
|
||||||
|
|
||||||
if (Csn > 0)
|
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;
|
return Csn;
|
||||||
|
@ -543,7 +543,7 @@ IsaHwDetectReadDataPort(
|
||||||
return STATUS_UNSUCCESSFUL;
|
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;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
static IO_COMPLETION_ROUTINE ForwardIrpCompletion;
|
||||||
|
|
||||||
static
|
static
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
@ -17,6 +19,9 @@ ForwardIrpCompletion(
|
||||||
IN PIRP Irp,
|
IN PIRP Irp,
|
||||||
IN PVOID Context)
|
IN PVOID Context)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
|
||||||
if (Irp->PendingReturned)
|
if (Irp->PendingReturned)
|
||||||
KeSetEvent((PKEVENT)Context, IO_NO_INCREMENT, FALSE);
|
KeSetEvent((PKEVENT)Context, IO_NO_INCREMENT, FALSE);
|
||||||
|
|
||||||
|
@ -48,6 +53,7 @@ IsaForwardIrpSynchronous(
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static DRIVER_DISPATCH IsaCreateClose;
|
||||||
|
|
||||||
static
|
static
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
@ -66,6 +72,8 @@ IsaCreateClose(
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static DRIVER_DISPATCH IsaIoctl;
|
||||||
|
|
||||||
static
|
static
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
@ -92,6 +100,8 @@ IsaIoctl(
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static DRIVER_DISPATCH IsaReadWrite;
|
||||||
|
|
||||||
static
|
static
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
@ -153,6 +163,8 @@ IsaAddDevice(
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static DRIVER_DISPATCH IsaPnp;
|
||||||
|
|
||||||
static
|
static
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
|
|
|
@ -40,6 +40,9 @@ typedef struct _ISAPNP_LOGICAL_DEVICE {
|
||||||
} ISAPNP_LOGICAL_DEVICE, *PISAPNP_LOGICAL_DEVICE;
|
} ISAPNP_LOGICAL_DEVICE, *PISAPNP_LOGICAL_DEVICE;
|
||||||
|
|
||||||
/* isapnp.c */
|
/* isapnp.c */
|
||||||
|
|
||||||
|
DRIVER_INITIALIZE DriverEntry;
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
DriverEntry(
|
DriverEntry(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue