]>
Commit | Line | Data |
---|---|---|
18b84857 | 1 | /** @file\r |
ca162103 | 2 | \r |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | SerialStatusCode.h\r | |
14 | \r | |
15 | Abstract:\r | |
16 | \r | |
17 | Revision History:\r | |
18 | \r | |
18b84857 | 19 | **/\r |
ca162103 | 20 | \r |
21 | #ifndef _DXELDR_SERIAL_STATUS_CODE_H_\r | |
22 | #define _DXELDR_SERIAL_STATUS_CODE_H_\r | |
23 | \r | |
24 | //\r | |
25 | // Statements that include other files\r | |
26 | //\r | |
27 | #include "DxeIpl.h"\r | |
28 | \r | |
29 | //\r | |
30 | // GUID consumed\r | |
31 | //\r | |
32 | \r | |
33 | \r | |
34 | //---------------------------------------------\r | |
35 | // UART Register Offsets\r | |
36 | //---------------------------------------------\r | |
37 | #define BAUD_LOW_OFFSET 0x00\r | |
38 | #define BAUD_HIGH_OFFSET 0x01\r | |
39 | #define IER_OFFSET 0x01\r | |
40 | #define LCR_SHADOW_OFFSET 0x01\r | |
41 | #define FCR_SHADOW_OFFSET 0x02\r | |
42 | #define IR_CONTROL_OFFSET 0x02\r | |
43 | #define FCR_OFFSET 0x02\r | |
44 | #define EIR_OFFSET 0x02\r | |
45 | #define BSR_OFFSET 0x03\r | |
46 | #define LCR_OFFSET 0x03\r | |
47 | #define MCR_OFFSET 0x04\r | |
48 | #define LSR_OFFSET 0x05\r | |
49 | #define MSR_OFFSET 0x06\r | |
50 | \r | |
51 | //---------------------------------------------\r | |
52 | // UART Register Bit Defines\r | |
53 | //---------------------------------------------\r | |
54 | #define LSR_TXRDY 0x20\r | |
55 | #define LSR_RXDA 0x01\r | |
56 | #define DLAB 0x01\r | |
57 | \r | |
58 | //\r | |
59 | // Globals for Serial Port settings\r | |
60 | //\r | |
61 | extern UINT16 gComBase;\r | |
62 | extern UINTN gBps;\r | |
63 | extern UINT8 gData;\r | |
64 | extern UINT8 gStop;\r | |
65 | extern UINT8 gParity;\r | |
66 | extern UINT8 gBreakSet;\r | |
67 | \r | |
68 | VOID\r | |
69 | DebugSerialPrint (\r | |
f40bbc08 | 70 | IN CHAR8 *OutputString\r |
ca162103 | 71 | );\r |
72 | \r | |
73 | VOID\r | |
74 | DebugSerialWrite (\r | |
75 | IN UINT8 Character\r | |
76 | );\r | |
77 | \r | |
78 | VOID\r | |
79 | InstallSerialStatusCode (\r | |
80 | IN EFI_REPORT_STATUS_CODE *ReportStatusCode\r | |
81 | );\r | |
82 | \r | |
83 | #endif \r |