Serial I/O Port library functions with no library constructor/destructor\r
\r
Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r
- Copyright (c) 2012, ARM Ltd. All rights reserved.<BR>\r
- \r
+ Copyright (c) 2012 - 2013, ARM Ltd. All rights reserved.<BR>\r
+\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
VOID\r
)\r
{\r
+ UINT64 BaudRate;\r
+ UINT32 ReceiveFifoDepth;\r
+ EFI_PARITY_TYPE Parity;\r
+ UINT8 DataBits;\r
+ EFI_STOP_BITS_TYPE StopBits;\r
+\r
+ BaudRate = (UINTN)PcdGet64 (PcdUartDefaultBaudRate);\r
+ ReceiveFifoDepth = 0; // Use the default value for Fifo depth\r
+ Parity = (EFI_PARITY_TYPE)PcdGet8 (PcdUartDefaultParity);\r
+ DataBits = PcdGet8 (PcdUartDefaultDataBits);\r
+ StopBits = (EFI_STOP_BITS_TYPE) PcdGet8 (PcdUartDefaultStopBits);\r
+\r
return PL011UartInitializePort (\r
(UINTN)PcdGet64 (PcdSerialRegisterBase),\r
- (UINTN)PcdGet64 (PcdUartDefaultBaudRate),\r
- 0, // Use the default value for Fifo depth\r
- (EFI_PARITY_TYPE)PcdGet8 (PcdUartDefaultParity),\r
- PcdGet8 (PcdUartDefaultDataBits),\r
- (EFI_STOP_BITS_TYPE) PcdGet8 (PcdUartDefaultStopBits));\r
+ &BaudRate, &ReceiveFifoDepth, &Parity, &DataBits, &StopBits);\r
}\r
\r
/**\r