]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/UnixConsoleDxe/ConsoleIn.c
Update this library to restrict usage to DXE_RUNTIME_DRIVER and DXE_SAL_DRIVER module...
[mirror_edk2.git] / UnixPkg / UnixConsoleDxe / ConsoleIn.c
index 821ff2c805772cec830f3b9bbf01dcc87f655526..08100bc00017c3d449cea1a3e1af7479b02f6a1a 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2004, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 http://opensource.org/licenses/bsd-license.php\r
@@ -27,7 +27,7 @@ Abstract:
 --*/\r
 \r
 #include "Console.h"\r
-#include <sys/poll.h>
+#include <sys/poll.h>\r
 \r
 //\r
 // Private worker functions\r
@@ -68,7 +68,7 @@ Returns:
 \r
 EFI_STATUS\r
 UnixConvertInputRecordToEfiKey (\r
-  IN  char c,
+  IN  char c,\r
   OUT EFI_INPUT_KEY   *Key\r
   )\r
 /*++\r
@@ -92,8 +92,8 @@ Returns:
 --*/\r
 {\r
   Key->ScanCode     = 0;\r
-  if (c == '\n')
-    c = '\r';
+  if (c == '\n')\r
+    c = '\r';\r
   Key->UnicodeChar  = c;\r
   return EFI_SUCCESS;\r
 }\r
@@ -124,7 +124,7 @@ Returns:
 {\r
   EFI_STATUS                      Status;\r
   UNIX_SIMPLE_TEXT_PRIVATE_DATA *Private;\r
-  char c;
+  char c;\r
 \r
   Private = UNIX_SIMPLE_TEXT_IN_PRIVATE_DATA_FROM_THIS (This);\r
 \r
@@ -133,7 +133,7 @@ Returns:
     return Status;\r
   }\r
 \r
-  if (Private->UnixThunk->Read (0, &c, 1) != 1)
+  if (Private->UnixThunk->Read (0, &c, 1) != 1)\r
     return EFI_NOT_READY;\r
   Status = UnixConvertInputRecordToEfiKey (c, Key);\r
 \r
@@ -193,11 +193,11 @@ Returns:
 \r
 --*/\r
 {\r
-  struct pollfd pfd;
+  struct pollfd pfd;\r
 \r
-  pfd.fd = 0;
-  pfd.events = POLLIN;
-  if (Private->UnixThunk->Poll (&pfd, 1, 0) <= 0) {
+  pfd.fd = 0;\r
+  pfd.events = POLLIN;\r
+  if (Private->UnixThunk->Poll (&pfd, 1, 0) <= 0) {\r
     return EFI_NOT_READY;\r
   }\r
   return EFI_SUCCESS;\r