ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

kdb_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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.