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