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

rawwrite.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 
00047 NTSTATUS
00048 cbmiec_raw_write(IN PDEVICE_EXTENSION Pdx, 
00049                                  IN const PUCHAR Buffer, IN ULONG Size, 
00050                                  OUT ULONG *Written)
00051 {
00052     NTSTATUS ntStatus;
00053 
00054 #if DBG
00055     unsigned i;
00056 #endif
00057 
00058     FUNC_ENTER();
00059 
00060     PERF_EVENT_VERBOSE(0x1000, 0);
00061 
00062     FUNC_PARAM((DBG_PREFIX "Buffer = 0x%p, Size = 0x%04x", Buffer, Size));
00063 
00064 #if DBG
00065     for (i=0;i<Size;i++)
00066     {
00067         FUNC_PARAM((DBG_PREFIX "   output %2u: 0x%02x '%c'", i, (unsigned int) Buffer[i], (UCHAR) Buffer[i]));
00068     }
00069 #endif
00070 
00071     PERF_EVENT_VERBOSE(0x1001, 0);
00072 
00073     ntStatus = cbmiec_i_raw_write(Pdx, Buffer, Size, Written, 0, 0);
00074 
00075     PERF_EVENT_VERBOSE(0x1002, 0);
00076 
00077     FUNC_LEAVE_NTSTATUS(ntStatus);
00078 }

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