OpenCBM
eoi.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 1999-2004 Michael Klein <michael(dot)klein(at)puffin(dot)lb(dot)shuttle(dot)de>
8  * Copyright 2001-2004 Spiro Trikaliotis
9  *
10  */
11 
22 #include <wdm.h>
23 #include "cbm_driver.h"
24 #include "i_iec.h"
25 
39 NTSTATUS
40 cbmiec_get_eoi(IN PDEVICE_EXTENSION Pdx, OUT PBOOLEAN Result)
41 {
42  FUNC_ENTER();
43 
44  // give back if we encountered an EOI
45 
46  *Result = Pdx->Eoi ? TRUE : FALSE;
47 
48  FUNC_LEAVE_NTSTATUS_CONST(STATUS_SUCCESS);
49 }
50 
60 NTSTATUS
61 cbmiec_clear_eoi(IN PDEVICE_EXTENSION Pdx)
62 {
63  FUNC_ENTER();
64 
65  // reset the EOI state
66 
67  Pdx->Eoi = FALSE;
68 
69  FUNC_LEAVE_NTSTATUS_CONST(STATUS_SUCCESS);
70 }
Internal functions and definitions of the libiec library.
NTSTATUS cbmiec_get_eoi(IN PDEVICE_EXTENSION Pdx, OUT PBOOLEAN Result)
Check if an EOI signal has been sent over the IEC bus.
Definition: eoi.c:40
#define FUNC_ENTER()
Definition: debug.h:347
Definitions for the opencbm driver.
NTSTATUS cbmiec_clear_eoi(IN PDEVICE_EXTENSION Pdx)
Reset the EOI state.
Definition: eoi.c:61