Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenkdb_serial.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS kernel 00004 * FILE: ntoskrnl/dbg/kdb_serial.c 00005 * PURPOSE: Serial driver 00006 * 00007 * PROGRAMMERS: Victor Kirhenshtein (sauros@iname.com) 00008 * Jason Filby (jasonfilby@yahoo.com) 00009 * arty 00010 */ 00011 00012 /* INCLUDES ****************************************************************/ 00013 00014 #include <ntoskrnl.h> 00015 #define NDEBUG 00016 #include <debug.h> 00017 00018 CHAR 00019 KdbpTryGetCharSerial(ULONG Retry) 00020 { 00021 CHAR Result = -1; 00022 00023 if (Retry == 0) 00024 while (!KdPortGetByteEx(&SerialPortInfo, (PUCHAR)&Result)); 00025 else 00026 while (!KdPortGetByteEx(&SerialPortInfo, (PUCHAR)&Result) && Retry-- > 0); 00027 00028 return Result; 00029 } Generated on Fri May 25 2012 04:35:53 for ReactOS by
1.7.6.1
|