/*++\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
+Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Portions copyright (c) 2008 - 2009, Apple Inc. 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
\r
#ifndef _UNIXPKG_SERIAL_IO_\r
#define _UNIXPKG_SERIAL_IO_\r
-#include <sys/types.h>\r
-#include <sys/stat.h>\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <termio.h>\r
-#include <fcntl.h>\r
-#include <errno.h>\r
-\r
-//#include "PiDxe.h"
-#include "Uefi.h"\r
+\r
+#include <Common/UnixInclude.h>\r
+\r
+#include <Uefi.h>\r
#include <Protocol/SerialIo.h>\r
#include <Protocol/DevicePath.h>\r
\r
#define SERIAL_PARITY_DEFAULT DefaultParity\r
#define SERIAL_STOPBITS_DEFAULT DefaultStopBits\r
\r
-#define SERIAL_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
+#define SERIAL_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_INPUT_BUFFER_EMPTY)\r
\r
#define ConvertBaud2Nt(x) (DWORD) x\r