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

rawread.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 
00049 NTSTATUS cbmiec_raw_read(IN PDEVICE_EXTENSION Pdx, 
00050                                                  OUT PUCHAR Buffer, IN ULONG Size, 
00051                                                  OUT ULONG* Read)
00052 {
00053     NTSTATUS ntStatus;
00054 
00055 #if DBG
00056     USHORT i;
00057 #endif
00058 
00059     FUNC_ENTER();
00060 
00061     FUNC_PARAM((DBG_PREFIX "Buffer = 0x%p, Size = 0x%04x", Buffer, Size));
00062 
00063     ntStatus = cbmiec_i_raw_read(Pdx, Buffer, Size, Read);
00064 
00065 #if DBG
00066     for (i=0;i<*Read;i++)
00067     {
00068         FUNC_PARAM((DBG_PREFIX "   input %2u: 0x%02x '%c'", i, (unsigned int) Buffer[i], (UCHAR) Buffer[i]));
00069     }
00070 #endif
00071 
00072     FUNC_LEAVE_NTSTATUS(ntStatus);
00073 }

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