summaryrefslogtreecommitdiff
path: root/MdePkg/Library/SerialPortLibNull
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-08-10 05:39:21 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2008-08-10 05:39:21 +0000
commita2ddd00bfec1fa0f16da093e72a5277641e39470 (patch)
treed94f6035539672e79345eb7edcd59591427e0c71 /MdePkg/Library/SerialPortLibNull
parentbdf37b3c46c803a6c60c9422ebded5bcd9e7f512 (diff)
downloadedk2-platforms-a2ddd00bfec1fa0f16da093e72a5277641e39470.tar.xz
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
Diffstat (limited to 'MdePkg/Library/SerialPortLibNull')
-rw-r--r--MdePkg/Library/SerialPortLibNull/SerialPortLibNull.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/MdePkg/Library/SerialPortLibNull/SerialPortLibNull.c b/MdePkg/Library/SerialPortLibNull/SerialPortLibNull.c
index 1fdc6586a5..fa256facc7 100644
--- a/MdePkg/Library/SerialPortLibNull/SerialPortLibNull.c
+++ b/MdePkg/Library/SerialPortLibNull/SerialPortLibNull.c
@@ -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;
+}
+
+ \ No newline at end of file