From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com []) by mx.groups.io with SMTP id smtpd.web08.34931.1624204037148521455 for ; Sun, 20 Jun 2021 08:47:19 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: zhiguang.liu@intel.com) IronPort-SDR: QRwHvgGi528cqcsO7JNZBk0ZObiuqQLFPn/geMxvC8ntwOWl+b98YI3C5cJbn1UB4y1QEKjxak Ohx+ZkzlwXtw== X-IronPort-AV: E=McAfee;i="6200,9189,10021"; a="194044387" X-IronPort-AV: E=Sophos;i="5.83,287,1616482800"; d="scan'208";a="194044387" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2021 08:47:19 -0700 IronPort-SDR: NxoKZcQMVrFnv9usmCEVay9pwOKu37MbqxVF7HZP0qArOd/P4KrLblHkbo+/cFK4/X9iEFkeIV jdGpn9E195gw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,287,1616482800"; d="scan'208";a="451932611" Received: from fieedk002.ccr.corp.intel.com ([10.239.158.144]) by orsmga008.jf.intel.com with ESMTP; 20 Jun 2021 08:47:17 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Ray Ni Subject: [PATCH 02/12] MdeModulePkg: Add new structure for the Universal Payload Serial Port Info Date: Sun, 20 Jun 2021 23:46:52 +0800 Message-Id: <20210620154702.2681-3-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.30.0.windows.2 In-Reply-To: <20210620154702.2681-1-zhiguang.liu@intel.com> References: <20210620154702.2681-1-zhiguang.liu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Add Universal Payload Serial Port Info definition header file according to Universal Payload's documentation as below: https://universalpayload.github.io/documentation/ Cc: Jian J Wang Cc: Hao A Wu Cc: Ray Ni Signed-off-by: Zhiguang Liu --- MdeModulePkg/Include/UniversalPayload/SerialPortInfo.h | 30 ++++++++++++++= ++++++++++++++++ MdeModulePkg/MdeModulePkg.dec | 3 +++ 2 files changed, 33 insertions(+) diff --git a/MdeModulePkg/Include/UniversalPayload/SerialPortInfo.h b/MdeMo= dulePkg/Include/UniversalPayload/SerialPortInfo.h new file mode 100644 index 0000000000..87181f7634 --- /dev/null +++ b/MdeModulePkg/Include/UniversalPayload/SerialPortInfo.h @@ -0,0 +1,30 @@ +/** @file=0D + This file defines the structure for serial port info.=0D +=0D + Copyright (c) 2021, Intel Corporation. All rights reserved.
=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +=0D + @par Revision Reference:=0D + - Universal Payload Specification 0.75 (https://universalpayload.githu= b.io/documentation/)=0D +**/=0D +=0D +#ifndef UNIVERSAL_PAYLOAD_SERIAL_PORT_INFO_H_=0D +#define UNIVERSAL_PAYLOAD_SERIAL_PORT_INFO_H_=0D +=0D +#include =0D +=0D +#pragma pack(1)=0D +typedef struct {=0D + UNIVERSAL_PAYLOAD_GENERIC_HEADER Header;=0D + BOOLEAN UseMmio;=0D + UINT8 RegisterStride;=0D + UINT32 BaudRate;=0D + EFI_PHYSICAL_ADDRESS RegisterBase;=0D +} UNIVERSAL_PAYLOAD_SERIAL_PORT_INFO;=0D +#pragma pack()=0D +=0D +#define UNIVERSAL_PAYLOAD_SERIAL_PORT_INFO_REVISION 1=0D +=0D +extern GUID gUniversalPayloadSerialPortInfoGuid;=0D +=0D +#endif // UNIVERSAL_PAYLOAD_SERIAL_PORT_INFO_H_=0D diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 10602a8f79..ad84421cf3 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -422,6 +422,9 @@ ## Include/UniversalPayload/ExtraData.h=0D gUniversalPayloadExtraDataGuid =3D {0x15a5baf6, 0x1c91, 0x467d, {0x9d, 0= xfb, 0x31, 0x9d, 0x17, 0x8d, 0x4b, 0xb4}}=0D =0D + ## Include/UniversalPayload/SerialPortInfo.h=0D + gUniversalPayloadSerialPortInfoGuid =3D { 0xaa7e190d, 0xbe21, 0x4409, { = 0x8e, 0x67, 0xa2, 0xcd, 0xf, 0x61, 0xe1, 0x70 } }=0D +=0D [Ppis]=0D ## Include/Ppi/AtaController.h=0D gPeiAtaControllerPpiGuid =3D { 0xa45e60d1, 0xc719, 0x44aa, { 0xb0,= 0x7a, 0xaa, 0x77, 0x7f, 0x85, 0x90, 0x6d }}=0D --=20 2.16.2.windows.1