Author: janderwald
Date: Mon Dec 8 15:42:44 2008
New Revision: 37946
URL:
http://svn.reactos.org/svn/reactos?rev=37946&view=rev
Log:
- Partly implement PcRegisterIoTimeout, PcUnregisterIoTimeout
Modified:
trunk/reactos/drivers/wdm/audio/backpln/portcls/api.c
trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/api.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/api.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/api.c [iso-8859-1] Mon Dec 8 15:42:44
2008
@@ -30,3 +30,46 @@
return (CurrentTime.QuadPart - Since);
}
+/*
+ * @unimplemented
+ */
+NTSTATUS NTAPI
+PcRegisterIoTimeout(
+ IN PDEVICE_OBJECT pDeviceObject,
+ IN PIO_TIMER_ROUTINE pTimerRoutine,
+ IN PVOID pContext)
+{
+ NTSTATUS Status;
+
+
+ /* FIXME
+ * check if timer is already used
+ */
+
+ Status = IoInitializeTimer(pDeviceObject, pTimerRoutine, pContext);
+ if (!NT_SUCCESS(Status))
+ {
+ DPRINT("IoInitializeTimer failed with %x\n", Status);
+ return Status;
+ }
+
+ IoStartTimer(pDeviceObject);
+ return STATUS_SUCCESS;
+}
+
+/*
+ * @unimplemented
+ */
+NTSTATUS NTAPI
+PcUnregisterIoTimeout(
+ IN PDEVICE_OBJECT pDeviceObject,
+ IN PIO_TIMER_ROUTINE pTimerRoutine,
+ IN PVOID pContext)
+{
+ /* FIXME
+ * check if timer is already used
+ */
+
+ IoStopTimer(pDeviceObject);
+ return STATUS_SUCCESS;
+}
Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
==============================================================================
--- trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c [iso-8859-1] Mon Dec 8
15:42:44 2008
@@ -86,38 +86,6 @@
return STATUS_UNSUCCESSFUL;
}
-
-/* ===============================================================
- I/O Timeouts
-*/
-
-/*
- * @unimplemented
- */
-NTSTATUS NTAPI
-PcRegisterIoTimeout(
- IN PDEVICE_OBJECT pDeviceObject,
- IN PIO_TIMER_ROUTINE pTimerRoutine,
- IN PVOID pContext)
-{
- UNIMPLEMENTED;
- return STATUS_UNSUCCESSFUL;
-}
-
-/*
- * @unimplemented
- */
-NTSTATUS NTAPI
-PcUnregisterIoTimeout(
- IN PDEVICE_OBJECT pDeviceObject,
- IN PIO_TIMER_ROUTINE pTimerRoutine,
- IN PVOID pContext)
-{
- UNIMPLEMENTED;
- return STATUS_UNSUCCESSFUL;
-}
-
-
/* ===============================================================
Physical Connections
*/