]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Include/UniversalPayload/SerialPortInfo.h
MdeModulePkg: Add new structure for the Universal Payload Serial Port Info
[mirror_edk2.git] / MdeModulePkg / Include / UniversalPayload / SerialPortInfo.h
1 /** @file
2 This file defines the structure for serial port info.
3
4 Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 @par Revision Reference:
8 - Universal Payload Specification 0.75 (https://universalpayload.github.io/documentation/)
9 **/
10
11 #ifndef UNIVERSAL_PAYLOAD_SERIAL_PORT_INFO_H_
12 #define UNIVERSAL_PAYLOAD_SERIAL_PORT_INFO_H_
13
14 #include <UniversalPayload/UniversalPayload.h>
15
16 #pragma pack(1)
17 typedef struct {
18 UNIVERSAL_PAYLOAD_GENERIC_HEADER Header;
19 BOOLEAN UseMmio;
20 UINT8 RegisterStride;
21 UINT32 BaudRate;
22 EFI_PHYSICAL_ADDRESS RegisterBase;
23 } UNIVERSAL_PAYLOAD_SERIAL_PORT_INFO;
24 #pragma pack()
25
26 #define UNIVERSAL_PAYLOAD_SERIAL_PORT_INFO_REVISION 1
27
28 extern GUID gUniversalPayloadSerialPortInfoGuid;
29
30 #endif // UNIVERSAL_PAYLOAD_SERIAL_PORT_INFO_H_