]>
git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Library/SerialPortLib/PlatformSerialPortLib.h
2 Header file of Serial port hardware definition.
4 Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __PLATFORM_SERIAL_PORT_LIB_H_
11 #define __PLATFORM_SERIAL_PORT_LIB_H_
14 #include <Library/BaseLib.h>
15 #include <Library/IoLib.h>
16 #include <Library/PcdLib.h>
17 #include <Library/SerialPortLib.h>
20 // UART Register Offsets
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
37 // UART Register Bit Defines
39 #define LSR_TXRDY 0x20
46 #define UART_BREAK_SET 0