]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add SerialPortPoll Api in SerialPortLib to Poll the serial device to see if there...
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 10 Aug 2008 05:39:21 +0000 (05:39 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 10 Aug 2008 05:39:21 +0000 (05:39 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5624 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Library/SerialPortLib.h
MdePkg/Library/SerialPortLibNull/SerialPortLibNull.c

index dc4031a974dbf091a49531a92ead1552a01a573a..59c5c27e3f764b813e85ab6cab6605a61acdf59a 100644 (file)
@@ -70,5 +70,21 @@ SerialPortRead (
   IN  UINTN    NumberOfBytes\r
   );\r
 \r
+/**\r
+  Poll the serial device to see if there is any data waiting.\r
+\r
+  If there is data waiting to be read from the serial port, then return\r
+  TRUE.  If there is no data waiting to be read from the serial port, then \r
+  return FALSE.\r
+\r
+  @retval TRUE             Data is waiting to be read.\r
+  @retval FALSE            There is no data waiting to be read.\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+SerialPortPoll (\r
+  VOID\r
+  );\r
 \r
 #endif\r
index 1fdc6586a5612ba9f5f5d7b37f17f2a088aaea22..fa256facc7abdaa5aed2a668b31ac2eaa09159d1 100644 (file)
@@ -73,3 +73,23 @@ SerialPortRead (
   return 0;\r
 }\r
 \r
+/**\r
+  Poll the serial device to see if there is any data waiting.\r
+\r
+  If there is data waiting to be read from the serial port, then return\r
+  TRUE.  If there is no data waiting to be read from the serial port, then \r
+  return FALSE.\r
+\r
+  @retval FALSE            There is no data waiting to be read.\r
+\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+SerialPortPoll (\r
+  VOID\r
+  )\r
+{\r
+  return FALSE; \r
+} \r
+\r
\ No newline at end of file