From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web11.2469.1624416764968334886 for ; Tue, 22 Jun 2021 19:52:45 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: zhiguang.liu@intel.com) IronPort-SDR: 6CGN2Ds+5/DF4/W9F4DN9o4d47PF44pdhqzZ2l++Bad4c3oS0yVtPAxd2zM/iGL+zn3iYB9rU/ SNEqEjj973Lw== X-IronPort-AV: E=McAfee;i="6200,9189,10023"; a="204175486" X-IronPort-AV: E=Sophos;i="5.83,293,1616482800"; d="scan'208";a="204175486" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2021 19:52:44 -0700 IronPort-SDR: tTgwDr3RphbBmftaTJkj3dAbH55Q+Q9HQfPDbswFcCkxiWzf3wMGkN8hnbaJNfbojHvdEWXtFz pHrQM64Ulw4A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,293,1616482800"; d="scan'208";a="487138256" Received: from fieedk002.ccr.corp.intel.com ([10.239.158.144]) by orsmga001.jf.intel.com with ESMTP; 22 Jun 2021 19:52:43 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Ray Ni Subject: [Patch V2 02/12] MdeModulePkg: Add new structure for the Universal Payload Serial Port Info Date: Wed, 23 Jun 2021 10:52:25 +0800 Message-Id: <20210623025235.3311-3-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.30.0.windows.2 In-Reply-To: <20210623025235.3311-1-zhiguang.liu@intel.com> References: <20210623025235.3311-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 Reviewed-by: Hao A Wu 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.30.0.windows.2