From b7c51c9cf4864df6aabb99a1ae843becd577237c Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 15 Jun 2018 00:00:50 +0800 Subject: init. 1AQQW051 --- .../LynxPoint/Ppi/PchPeiInitDone/PchPeiInitDone.c | 47 +++++++++++++++++++ .../LynxPoint/Ppi/PchPeiInitDone/PchPeiInitDone.h | 53 ++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 ReferenceCode/Chipset/LynxPoint/Ppi/PchPeiInitDone/PchPeiInitDone.c create mode 100644 ReferenceCode/Chipset/LynxPoint/Ppi/PchPeiInitDone/PchPeiInitDone.h (limited to 'ReferenceCode/Chipset/LynxPoint/Ppi/PchPeiInitDone') diff --git a/ReferenceCode/Chipset/LynxPoint/Ppi/PchPeiInitDone/PchPeiInitDone.c b/ReferenceCode/Chipset/LynxPoint/Ppi/PchPeiInitDone/PchPeiInitDone.c new file mode 100644 index 0000000..b754481 --- /dev/null +++ b/ReferenceCode/Chipset/LynxPoint/Ppi/PchPeiInitDone/PchPeiInitDone.c @@ -0,0 +1,47 @@ +/** @file + To indicate PCH code finish PCH controller initialization + upon policy configuration + +@copyright + Copyright (c) 2011 -2012 Intel Corporation. All rights reserved + This software and associated documentation (if any) is furnished + under a license and may only be used or copied in accordance + with the terms of the license. Except as permitted by such + license, no part of this software or documentation may be + reproduced, stored in a retrieval system, or transmitted in any + form or by any means without the express written consent of + Intel Corporation. + + This file contains a 'Sample Driver' and is licensed as such + under the terms of your license agreement with Intel or your + vendor. This file may be modified by the user, subject to + the additional terms of the license agreement +**/ + +// +// Include the ppi header file +// +// +// External include files do NOT need to be explicitly specified in real EDKII +// environment +// +#if !defined(EDK_RELEASE_VERSION) || (EDK_RELEASE_VERSION < 0x00020000) + +#include "EdkIIGluePeim.h" +#endif + +#include EFI_PPI_DEFINITION (PchPeiInitDone) + +// +// PPI GUID definition +// +EFI_GUID gPchPeiInitDonePpiGuid = PCH_PEI_INIT_DONE_PPI_GUID; + +// +// PPI description +// +EFI_GUID_STRING + ( + &gPchPeiInitDonePpiGuid, "Pch PEI Init Done Ppi", + "This is a dummy PPI to ensure PCH PEI Init Done PPI is updated before RC modules" + ); diff --git a/ReferenceCode/Chipset/LynxPoint/Ppi/PchPeiInitDone/PchPeiInitDone.h b/ReferenceCode/Chipset/LynxPoint/Ppi/PchPeiInitDone/PchPeiInitDone.h new file mode 100644 index 0000000..ee764cb --- /dev/null +++ b/ReferenceCode/Chipset/LynxPoint/Ppi/PchPeiInitDone/PchPeiInitDone.h @@ -0,0 +1,53 @@ +/** @file + PCH Init Done PPI + +@copyright + Copyright (c) 2011 - 2012 Intel Corporation. All rights reserved + This software and associated documentation (if any) is furnished + under a license and may only be used or copied in accordance + with the terms of the license. Except as permitted by such + license, no part of this software or documentation may be + reproduced, stored in a retrieval system, or transmitted in any + form or by any means without the express written consent of + Intel Corporation. + + This file contains a 'Sample Driver' and is licensed as such + under the terms of your license agreement with Intel or your + vendor. This file may be modified by the user, subject to + the additional terms of the license agreement +**/ + +#ifndef _PCH_PEI_INIT_DONE_PPI_H_ +#define _PCH_PEI_INIT_DONE_PPI_H_ + +/// +/// GUID for the PCH PEI Init Done PPI +/// +/// +/// EDK and EDKII have different GUID formats +/// +#if !defined(EDK_RELEASE_VERSION) || (EDK_RELEASE_VERSION < 0x00020000) +#define PCH_PEI_INIT_DONE_PPI_GUID \ + { \ + 0x1edcbdf9, 0xffc6, 0x4bd4, 0x94, 0xf6, 0x19, 0x5d, 0x1d, 0xe1, 0x70, 0x56 \ + } +#else +#define PCH_PEI_INIT_DONE_PPI_GUID \ + { \ + 0x1edcbdf9, 0xffc6, 0x4bd4, \ + { \ + 0x94, 0xf6, 0x19, 0x5d, 0x1d, 0xe1, 0x70, 0x56 \ + } \ + } +#endif +// +// Extern the GUID for PPI users. +// +extern EFI_GUID gPchPeiInitDonePpiGuid; + +// +// Forward reference for ANSI C compatibility +// +typedef struct _PCH_PEI_INIT_DONE_PPI PCH_PEI_INIT_DONE_PPI; + +#endif -- cgit v1.2.3