Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

eoi.c

Go to the documentation of this file.
00001 /*
00002  *  This program is free software; you can redistribute it and/or
00003  *  modify it under the terms of the GNU General Public License
00004  *  as published by the Free Software Foundation; either version
00005  *  2 of the License, or (at your option) any later version.
00006  *
00007  *  Copyright 1999-2004 Michael Klein <michael(dot)klein(at)puffin(dot)lb(dot)shuttle(dot)de>
00008  *  Copyright 2001-2004 Spiro Trikaliotis
00009  *
00010  */
00011 
00023 #include <wdm.h>
00024 #include "cbm_driver.h"
00025 #include "i_iec.h"
00026 
00040 NTSTATUS
00041 cbmiec_get_eoi(IN PDEVICE_EXTENSION Pdx, OUT PBOOLEAN Result)
00042 {
00043     FUNC_ENTER();
00044 
00045     // give back if we encountered an EOI
00046 
00047     *Result = Pdx->Eoi ? TRUE : FALSE;
00048 
00049     FUNC_LEAVE_NTSTATUS_CONST(STATUS_SUCCESS);
00050 }
00051 
00061 NTSTATUS
00062 cbmiec_clear_eoi(IN PDEVICE_EXTENSION Pdx)
00063 {
00064     FUNC_ENTER();
00065 
00066     // reset the EOI state
00067 
00068     Pdx->Eoi = FALSE;
00069 
00070     FUNC_LEAVE_NTSTATUS_CONST(STATUS_SUCCESS);
00071 }

Generated on Sun Apr 30 18:45:48 2006 for opencbm by  doxygen 1.4.2