]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Library/SerialPortLib/PlatformSerialPortLib.h
fe47e8f68d78a32ed27e48a714830cd0248af921
[mirror_edk2.git] / Vlv2TbltDevicePkg / Library / SerialPortLib / PlatformSerialPortLib.h
1 /** @file
2 Header file of Serial port hardware definition.
3
4 Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #ifndef __PLATFORM_SERIAL_PORT_LIB_H_
11 #define __PLATFORM_SERIAL_PORT_LIB_H_
12
13 #include <Base.h>
14 #include <Library/BaseLib.h>
15 #include <Library/IoLib.h>
16 #include <Library/PcdLib.h>
17 #include <Library/SerialPortLib.h>
18
19 //
20 // UART Register Offsets
21 //
22 #define BAUD_LOW_OFFSET 0x00
23 #define BAUD_HIGH_OFFSET 0x01
24 #define IER_OFFSET 0x01
25 #define LCR_SHADOW_OFFSET 0x01
26 #define FCR_SHADOW_OFFSET 0x02
27 #define IR_CONTROL_OFFSET 0x02
28 #define FCR_OFFSET 0x02
29 #define EIR_OFFSET 0x02
30 #define BSR_OFFSET 0x03
31 #define LCR_OFFSET 0x03
32 #define MCR_OFFSET 0x04
33 #define LSR_OFFSET 0x05
34 #define MSR_OFFSET 0x06
35
36 //
37 // UART Register Bit Defines
38 //
39 #define LSR_TXRDY 0x20
40 #define LSR_RXDA 0x01
41 #define DLAB 0x01
42
43 #define UART_DATA 8
44 #define UART_STOP 1
45 #define UART_PARITY 0
46 #define UART_BREAK_SET 0
47
48 VOID
49 InitializeSio (
50 VOID
51 );
52
53 #endif