]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.h
Program SD Cards into 4-bit mode (support for this is required in the spec). This...
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Isa / IsaSerialDxe / Serial.h
index 8d985a408f9c879a2a9130a3ea4024419a4d6c84..6c29fa95db188e746695269d4e1272f41371b7dc 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   Include for Serial Driver\r
   \r
-Copyright (c) 2006 - 2009, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 2009, 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
@@ -16,8 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define _SERIAL_H_\r
 \r
 \r
-#include <PiDxe.h>\r
-#include <FrameworkPei.h>\r
+#include <FrameworkDxe.h>\r
 \r
 #include <Protocol/IsaIo.h>\r
 #include <Protocol/SerialIo.h>\r
@@ -25,7 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiDriverEntryPoint.h>\r
-#include <Library/BaseLib.h>\r
 #include <Library/UefiLib.h>\r
 #include <Library/DevicePathLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
@@ -109,7 +107,6 @@ typedef struct {
   BOOLEAN                                HardwareFlowControl;\r
   EFI_UART_TYPE                          Type;\r
   EFI_UNICODE_STRING_TABLE               *ControllerNameTable;\r
-  BOOLEAN                                UseHalfHandshake;\r
 } SERIAL_DEV;\r
 \r
 #define SERIAL_DEV_FROM_THIS(a) CR (a, SERIAL_DEV, SerialIo, SERIAL_DEV_SIGNATURE)\r
@@ -119,7 +116,17 @@ typedef struct {
 //\r
 #define SERIAL_PORT_DEFAULT_RECEIVE_FIFO_DEPTH  1\r
 #define SERIAL_PORT_DEFAULT_TIMEOUT             1000000\r
-#define SERIAL_PORT_DEFAULT_CONTROL_MASK        0\r
+#define SERIAL_PORT_SUPPORT_CONTROL_MASK        (EFI_SERIAL_CLEAR_TO_SEND                | \\r
+                                                 EFI_SERIAL_DATA_SET_READY               | \\r
+                                                 EFI_SERIAL_RING_INDICATE                | \\r
+                                                 EFI_SERIAL_CARRIER_DETECT               | \\r
+                                                 EFI_SERIAL_REQUEST_TO_SEND              | \\r
+                                                 EFI_SERIAL_DATA_TERMINAL_READY          | \\r
+                                                 EFI_SERIAL_HARDWARE_LOOPBACK_ENABLE     | \\r
+                                                 EFI_SERIAL_SOFTWARE_LOOPBACK_ENABLE     | \\r
+                                                 EFI_SERIAL_HARDWARE_FLOW_CONTROL_ENABLE | \\r
+                                                 EFI_SERIAL_OUTPUT_BUFFER_EMPTY          | \\r
+                                                 EFI_SERIAL_INPUT_BUFFER_EMPTY)\r
 \r
 \r
 //\r