]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/Serial.h
code scrub on Ps2MouseDxe/Ps2MouseAbsolutePointer module
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Isa / IsaSerialDxe / Serial.h
index d06f728267c3382bd875003483ceb93849eb6164..af4428a99622cea3625e271102bd4b4ea19b082a 100644 (file)
@@ -1,44 +1,28 @@
-/*++\r
-\r
-Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
-\r
-\r
-Module Name:\r
-\r
-  serial.h\r
-\r
-Abstract:\r
-\r
+/**@file\r
   Include for Serial Driver\r
+  \r
+Copyright (c) 2006 - 2007, Intel Corporation.<BR>\r
+All rights reserved. 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
 \r
-Revision History:\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
---*/\r
+**/\r
 \r
 #ifndef _SERIAL_H\r
 #define _SERIAL_H\r
 \r
-//\r
-// The package level header files this module uses\r
-//\r
+\r
 #include <PiDxe.h>\r
 #include <FrameworkPei.h>\r
-//\r
-// The protocols, PPI and GUID defintions for this module\r
-//\r
+\r
 #include <Protocol/IsaIo.h>\r
 #include <Protocol/SerialIo.h>\r
 #include <Protocol/DevicePath.h>\r
-//\r
-// The Library classes this module consumes\r
-//\r
+\r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiDriverEntryPoint.h>\r
 #include <Library/BaseLib.h>\r
@@ -52,13 +36,14 @@ Revision History:
 //\r
 // Driver Binding Externs\r
 //\r
-extern EFI_DRIVER_BINDING_PROTOCOL gSerialControllerDriver;\r
-extern EFI_COMPONENT_NAME_PROTOCOL gIsaSerialComponentName;\r
+extern EFI_DRIVER_BINDING_PROTOCOL  gSerialControllerDriver;\r
+extern EFI_COMPONENT_NAME_PROTOCOL  gIsaSerialComponentName;\r
+extern EFI_COMPONENT_NAME2_PROTOCOL gIsaSerialComponentName2;\r
 \r
 //\r
 // Internal Data Structures\r
 //\r
-#define SERIAL_DEV_SIGNATURE    EFI_SIGNATURE_32 ('s', 'e', 'r', 'd')\r
+#define SERIAL_DEV_SIGNATURE    SIGNATURE_32 ('s', 'e', 'r', 'd')\r
 #define SERIAL_MAX_BUFFER_SIZE  16\r
 #define TIMEOUT_STALL_INTERVAL  10\r
 \r
@@ -129,22 +114,22 @@ typedef struct {
 \r
 #define SERIAL_DEV_FROM_THIS(a) CR (a, SERIAL_DEV, SerialIo, SERIAL_DEV_SIGNATURE)\r
 \r
-//\r
-// Globale Variables\r
-//\r
-extern EFI_DRIVER_BINDING_PROTOCOL  gSerialControllerDriver;\r
 \r
 //\r
 // Serial Driver Defaults\r
 //\r
-#define SERIAL_PORT_DEFAULT_BAUD_RATE           115200\r
 #define SERIAL_PORT_DEFAULT_RECEIVE_FIFO_DEPTH  1\r
 #define SERIAL_PORT_DEFAULT_TIMEOUT             1000000\r
+\r
+/*\r
+#define SERIAL_PORT_DEFAULT_BAUD_RATE           115200\r
 #define SERIAL_PORT_DEFAULT_PARITY              NoParity\r
 #define SERIAL_PORT_DEFAULT_DATA_BITS           8\r
 #define SERIAL_PORT_DEFAULT_STOP_BITS           1\r
+*/\r
 #define SERIAL_PORT_DEFAULT_CONTROL_MASK        0\r
 \r
+\r
 //\r
 // (24000000/13)MHz input clock\r
 //\r