OpenCBM
dpc.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version
5  * 2 of the License, or (at your option) any later version.
6  *
7  * Copyright 2004 Spiro Trikaliotis
8  *
9  */
10 
19 #include <wdm.h>
20 #include "cbm_driver.h"
21 #include "i_iec.h"
22 
23 #ifdef USE_DPC
24 
47 VOID
48 cbmiec_dpc(IN PKDPC Dpc, IN PDEVICE_OBJECT Fdo, IN PIRP Irp, IN PVOID Context)
49 {
50  PDEVICE_EXTENSION pdx;
51 
52  FUNC_ENTER();
53 
54  UNREFERENCED_PARAMETER(Dpc);
55  UNREFERENCED_PARAMETER(Irp);
56  UNREFERENCED_PARAMETER(Context);
57 
58  DBG_DPC((DBG_PREFIX "DPC called"));
59 
60  pdx = Fdo->DeviceExtension;
61 
62  // Set the event that we are ready to quit cbmiec_wait_for_listener()
63 
64  DBG_IRQL( <= DISPATCH_LEVEL);
65  KeSetEvent(&pdx->EventWaitForListener, IO_SOUND_INCREMENT, FALSE);
66 
67  FUNC_LEAVE();
68 }
69 
70 #endif // #ifdef USE_DPC
#define FUNC_LEAVE()
Definition: debug.h:349
Internal functions and definitions of the libiec library.
#define FUNC_ENTER()
Definition: debug.h:347
Definitions for the opencbm driver.
#define DBG_PREFIX
Definition: debug.h:320