]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Sample/Platform/Generic/RuntimeDxe/StatusCode/Lib/BsSerialStatusCode/BsSerialStatusCode.h
3 Copyright (c) 2004, 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
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.
18 Lib to provide Serial I/O status code routines. This uses the PEI library
23 #ifndef _EFI_BS_SERIAL_STATUS_CODE_H_
24 #define _EFI_BS_SERIAL_STATUS_CODE_H_
27 // Statements that include other files
32 #include "EfiRuntimeLib.h"
33 #include "BsSerialStatusCodeLib.h"
38 #include EFI_GUID_DEFINITION (StatusCodeDataTypeId)
41 // ---------------------------------------------
42 // UART Register Offsets
43 // ---------------------------------------------
45 #define BAUD_LOW_OFFSET 0x00
46 #define BAUD_HIGH_OFFSET 0x01
47 #define IER_OFFSET 0x01
48 #define LCR_SHADOW_OFFSET 0x01
49 #define FCR_SHADOW_OFFSET 0x02
50 #define IR_CONTROL_OFFSET 0x02
51 #define FCR_OFFSET 0x02
52 #define EIR_OFFSET 0x02
53 #define BSR_OFFSET 0x03
54 #define LCR_OFFSET 0x03
55 #define MCR_OFFSET 0x04
56 #define LSR_OFFSET 0x05
57 #define MSR_OFFSET 0x06
60 // ---------------------------------------------
61 // UART Register Bit Defines
62 // ---------------------------------------------
64 #define LSR_TXRDY 0x20
69 // Globals for Serial Port settings
71 extern UINT16 gComBase
;
76 extern UINT8 gBreakSet
;
80 IN UINT8
*OutputString