Add SerialPortPoll Api in SerialPortLib to Poll the serial device to see if there is any data waiting.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5624 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4 2008-08-10 05:39:21 +00:00
parent bdf37b3c46
commit a2ddd00bfe
2 changed files with 36 additions and 0 deletions

View File

@ -70,5 +70,21 @@ SerialPortRead (
IN UINTN NumberOfBytes
);
/**
Poll the serial device to see if there is any data waiting.
If there is data waiting to be read from the serial port, then return
TRUE. If there is no data waiting to be read from the serial port, then
return FALSE.
@retval TRUE Data is waiting to be read.
@retval FALSE There is no data waiting to be read.
**/
BOOLEAN
EFIAPI
SerialPortPoll (
VOID
);
#endif

View File

@ -73,3 +73,23 @@ SerialPortRead (
return 0;
}
/**
Poll the serial device to see if there is any data waiting.
If there is data waiting to be read from the serial port, then return
TRUE. If there is no data waiting to be read from the serial port, then
return FALSE.
@retval FALSE There is no data waiting to be read.
**/
BOOLEAN
EFIAPI
SerialPortPoll (
VOID
)
{
return FALSE;
}