]>
Commit | Line | Data |
---|---|---|
b38907a6 | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004, 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 | \r | |
14 | BsSerialStatusCode.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Lib to provide Serial I/O status code routines. This uses the PEI library\r | |
19 | print functions.\r | |
20 | \r | |
21 | --*/\r | |
22 | \r | |
23 | #ifndef _EFI_BS_SERIAL_STATUS_CODE_H_\r | |
24 | #define _EFI_BS_SERIAL_STATUS_CODE_H_\r | |
25 | \r | |
26 | //\r | |
27 | // Statements that include other files\r | |
28 | //\r | |
29 | #include "Tiano.h"\r | |
30 | #include "Pei.h"\r | |
31 | #include "PeiLib.h"\r | |
32 | #include "EfiRuntimeLib.h"\r | |
33 | #include "BsSerialStatusCodeLib.h"\r | |
34 | \r | |
35 | //\r | |
36 | // GUID consumed\r | |
37 | //\r | |
38 | #include EFI_GUID_DEFINITION (StatusCodeDataTypeId)\r | |
39 | \r | |
40 | //\r | |
41 | // ---------------------------------------------\r | |
42 | // UART Register Offsets\r | |
43 | // ---------------------------------------------\r | |
44 | //\r | |
45 | #define BAUD_LOW_OFFSET 0x00\r | |
46 | #define BAUD_HIGH_OFFSET 0x01\r | |
47 | #define IER_OFFSET 0x01\r | |
48 | #define LCR_SHADOW_OFFSET 0x01\r | |
49 | #define FCR_SHADOW_OFFSET 0x02\r | |
50 | #define IR_CONTROL_OFFSET 0x02\r | |
51 | #define FCR_OFFSET 0x02\r | |
52 | #define EIR_OFFSET 0x02\r | |
53 | #define BSR_OFFSET 0x03\r | |
54 | #define LCR_OFFSET 0x03\r | |
55 | #define MCR_OFFSET 0x04\r | |
56 | #define LSR_OFFSET 0x05\r | |
57 | #define MSR_OFFSET 0x06\r | |
58 | \r | |
59 | //\r | |
60 | // ---------------------------------------------\r | |
61 | // UART Register Bit Defines\r | |
62 | // ---------------------------------------------\r | |
63 | //\r | |
64 | #define LSR_TXRDY 0x20\r | |
65 | #define LSR_RXDA 0x01\r | |
66 | #define DLAB 0x01\r | |
67 | \r | |
68 | //\r | |
69 | // Globals for Serial Port settings\r | |
70 | //\r | |
71 | extern UINT16 gComBase;\r | |
72 | extern UINTN gBps;\r | |
73 | extern UINT8 gData;\r | |
74 | extern UINT8 gStop;\r | |
75 | extern UINT8 gParity;\r | |
76 | extern UINT8 gBreakSet;\r | |
77 | \r | |
78 | VOID\r | |
79 | DebugSerialPrint (\r | |
80 | IN UINT8 *OutputString\r | |
e00e1d46 | 81 | );\r |
b38907a6 | 82 | \r |
83 | VOID\r | |
84 | DebugSerialWrite (\r | |
85 | IN UINT8 Character\r | |
e00e1d46 | 86 | );\r |
b38907a6 | 87 | \r |
88 | #endif\r |