summaryrefslogtreecommitdiff
path: root/ReferenceCode/RapidStart/GfxDisplay/Library/Pei
diff options
context:
space:
mode:
authorraywu <raywu0301@gmail.com>2018-06-15 00:00:50 +0800
committerraywu <raywu0301@gmail.com>2018-06-15 00:00:50 +0800
commitb7c51c9cf4864df6aabb99a1ae843becd577237c (patch)
treeeebe9b0d0ca03062955223097e57da84dd618b9a /ReferenceCode/RapidStart/GfxDisplay/Library/Pei
downloadzprj-b7c51c9cf4864df6aabb99a1ae843becd577237c.tar.xz
init. 1AQQW051HEADmaster
Diffstat (limited to 'ReferenceCode/RapidStart/GfxDisplay/Library/Pei')
-rw-r--r--ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.c55
-rw-r--r--ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.cif12
-rw-r--r--ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.h35
-rw-r--r--ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.inf51
-rw-r--r--ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.mak75
-rw-r--r--ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.sdl77
6 files changed, 305 insertions, 0 deletions
diff --git a/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.c b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.c
new file mode 100644
index 0000000..a7c05b2
--- /dev/null
+++ b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.c
@@ -0,0 +1,55 @@
+/** @file
+ Implementation file for GfxDisplay Pei functionality
+
+@copyright
+ Copyright (c) 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 an 'Intel Peripheral Driver' and uniquely
+ identified as "Intel Reference Module" and is
+ licensed for Intel CPUs and chipsets under the terms of your
+ license agreement with Intel or your vendor. This file may
+ be modified by the user, subject to additional terms of the
+ license agreement
+**/
+
+//
+// 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"
+#include "GfxDisplayLibPei.h"
+#include EFI_PPI_DEFINITION (PeiGfxPpi)
+#endif
+
+/**
+ This function allows the platform to restore the display to the Display Save State.
+
+ @retval EFI_SUCCESS - RapidStartGfxDisplayScreen succeeded
+ @retval EFI_INVALID_PARAMETER - Invalid Parameter
+ @retval EFI_NOT_FOUND - Display Save State Header Signature failed
+**/
+EFI_STATUS
+RapidStartGfxDisplayScreen (
+ VOID
+ )
+{
+ EFI_STATUS Status;
+ PEI_GFX_PPI *PeiGfxPpi;
+
+ DEBUG ((EFI_D_INFO, "RapidStartGfxDisplayScreen Start\n"));
+ Status = PeiServicesLocatePpi (&gPeiGfxPpiGuid, 0, NULL, &PeiGfxPpi);
+ ASSERT_EFI_ERROR (Status);
+
+ Status = PeiGfxPpi->RestoreDisplay (GetPeiServicesTablePointer ());
+ DEBUG ((EFI_D_INFO, "Call PeiGfxPpi->RestoreDisplay, Status = %r\n", Status));
+
+ return Status;
+}
diff --git a/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.cif b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.cif
new file mode 100644
index 0000000..3e8c5f3
--- /dev/null
+++ b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.cif
@@ -0,0 +1,12 @@
+<component>
+ name = "GfxDisplayLibPei"
+ category = ModulePart
+ LocalRoot = "ReferenceCode\RapidStart\GfxDisplay\Library\Pei\"
+ RefName = "GfxDisplayLibPei"
+[files]
+"GfxDisplayLibPei.sdl"
+"GfxDisplayLibPei.mak"
+"GfxDisplayLibPei.c"
+"GfxDisplayLibPei.h"
+"GfxDisplayLibPei.inf"
+<endComponent>
diff --git a/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.h b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.h
new file mode 100644
index 0000000..198bfb3
--- /dev/null
+++ b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.h
@@ -0,0 +1,35 @@
+/** @file
+ Header file for GfxDisplay functionality
+
+@copyright
+ Copyright (c) 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 an 'Intel Peripheral Driver' and uniquely
+ identified as "Intel Reference Module" and is
+ licensed for Intel CPUs and chipsets under the terms of your
+ license agreement with Intel or your vendor. This file may
+ be modified by the user, subject to additional terms of the
+ license agreement
+**/
+#ifndef _PEI_GFX_DISPLAY_LIB_H_
+#define _PEI_GFX_DISPLAY_LIB_H_
+
+/**
+ This function allows the platform to restore the display to the Display Save State.
+
+ @retval EFI_SUCCESS - RapidStartGfxDisplayScreen succeeded
+ @retval EFI_INVALID_PARAMETER - Invalid Parameter
+ @retval EFI_NOT_FOUND - Display Save State Header Signature failed
+**/
+EFI_STATUS
+RapidStartGfxDisplayScreen (
+ VOID
+ );
+#endif
diff --git a/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.inf b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.inf
new file mode 100644
index 0000000..44ca9fd
--- /dev/null
+++ b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.inf
@@ -0,0 +1,51 @@
+## @file
+# Component description file for GfxDisplay Library functions for PEIMs
+#
+#@copyright
+# Copyright (c) 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
+#
+
+[defines]
+BASE_NAME = GfxDisplayLibPei
+COMPONENT_TYPE = LIBRARY
+
+[sources.common]
+ GfxDisplayLibPei.c
+ GfxDisplayLibPei.h
+
+[includes.common]
+ $(EFI_SOURCE)\$(PROJECT_RAPID_START_ROOT)
+
+#
+# EDK II Glue Library utilizes some standard headers from EDK
+#
+ $(EDK_SOURCE)\Foundation
+ $(EDK_SOURCE)\Foundation\Core\Dxe
+ $(EDK_SOURCE)\Foundation\Efi
+ $(EDK_SOURCE)\Foundation\Efi\Include
+ $(EDK_SOURCE)\Foundation\Framework
+ $(EDK_SOURCE)\Foundation\Framework\Include
+ $(EDK_SOURCE)\Foundation\Include
+ $(EDK_SOURCE)\Foundation\Include\IndustryStandard
+ $(EDK_SOURCE)\Foundation\Include\Pei
+ $(EDK_SOURCE)\Foundation\Library\Dxe\Include
+ $(EDK_SOURCE)\Foundation\Library\EdkIIGlueLib\Include
+
+[libraries.common]
+ EdkIIGluePeiServicesLib
+ RapidStartPpiLib
+
+[nmake.common]
+ C_FLAGS = $(C_FLAGS) /D __EDKII_GLUE_PEI_SERVICES_LIB__
diff --git a/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.mak b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.mak
new file mode 100644
index 0000000..48f1893
--- /dev/null
+++ b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.mak
@@ -0,0 +1,75 @@
+#*************************************************************************
+#*************************************************************************
+#** **
+#** (C)Copyright 1985-2012, American Megatrends, Inc. **
+#** **
+#** All Rights Reserved. **
+#** **
+#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+#** **
+#** Phone: (770)-246-8600 **
+#** **
+#*************************************************************************
+#*************************************************************************
+
+#*************************************************************************
+# $Header: /Alaska/SOURCE/Modules/Intel Fast Flash Standby/iRST_SharkBay/GfxDisplayLibPei/GfxDisplayLibPei.mak 2 10/15/12 5:07a Bensonlai $
+#
+# $Revision: 2 $
+#
+# $Date: 10/15/12 5:07a $
+#*************************************************************************
+# Revision History
+# ----------------
+# $Log: /Alaska/SOURCE/Modules/Intel Fast Flash Standby/iRST_SharkBay/GfxDisplayLibPei/GfxDisplayLibPei.mak $
+#
+# 2 10/15/12 5:07a Bensonlai
+# [Category] Improvement
+# [Severity] Important
+# [Description] Update Intel Rapid Start Graphics Driver for Shark Bay
+# Platform 5.0.1.1001, please increase your FV_BB_BLOCKS size if you
+# compile fail that caused by FV_BB size too small.
+# [Files] ReferenceCode\RapidStart\GfxDisplay\FfsGfxDriver\Pei\*.*,
+# ReferenceCode\RapidStart\GfxDisplay\FfsGfxDriver\Dxe\*.*
+#
+# 1 9/26/12 3:53a Yurenlai
+# [TAG] None
+# [Category] Improvement
+# [Severity] Important
+# [Description] Update Intel Rapid Start Technology Framework Reference
+# Code Beta Version 0.7.0.
+# [Description] ReferenceCode\RapidStart\*.*, RapidStartPeiLib.h
+#
+#*************************************************************************
+
+all : GfxDisplayLibPei
+
+$(GfxDisplayLibPei_LIB) : GfxDisplayLibPei
+
+GfxDisplayLibPei : $(BUILD_DIR)\GfxDisplayLibPei.mak GfxDisplayLibPeiBin
+
+$(BUILD_DIR)\GfxDisplayLibPei.mak : $(GfxDisplayLibPei_DIR)\$(@B).cif $(GfxDisplayLibPei_DIR)\$(@B).mak $(BUILD_RULES)
+ $(CIF2MAK) $(GfxDisplayLibPei_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS)
+
+GfxDisplayLibPei_INCLUDES =\
+ $(EDK_INCLUDES)\
+ $(RAPIDSTART_INCLUDES)\
+
+GfxDisplayLibPeiBin :
+ $(MAKE) /$(MAKEFLAGS) $(EDKIIGLUE_DEFAULTS)\
+ /f $(BUILD_DIR)\GfxDisplayLibPei.mak all\
+ "MY_INCLUDES=$(GfxDisplayLibPei_INCLUDES)" \
+ TYPE=PEI_LIBRARY
+#*************************************************************************
+#*************************************************************************
+#** **
+#** (C)Copyright 1985-2012, American Megatrends, Inc. **
+#** **
+#** All Rights Reserved. **
+#** **
+#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+#** **
+#** Phone: (770)-246-8600 **
+#** **
+#*************************************************************************
+#*************************************************************************
diff --git a/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.sdl b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.sdl
new file mode 100644
index 0000000..8b78b83
--- /dev/null
+++ b/ReferenceCode/RapidStart/GfxDisplay/Library/Pei/GfxDisplayLibPei.sdl
@@ -0,0 +1,77 @@
+#*************************************************************************
+#*************************************************************************
+#** **
+#** (C)Copyright 1985-2011, American Megatrends, Inc. **
+#** **
+#** All Rights Reserved. **
+#** **
+#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+#** **
+#** Phone: (770)-246-8600 **
+#** **
+#*************************************************************************
+#*************************************************************************
+
+#*************************************************************************
+# $Header: /Alaska/SOURCE/Modules/Intel Fast Flash Standby/iRST_SharkBay/GfxDisplayLibPei/GfxDisplayLibPei.sdl 1 9/26/12 3:53a Yurenlai $
+#
+# $Revision: 1 $
+#
+# $Date: 9/26/12 3:53a $
+#*************************************************************************
+# Revision History
+# ----------------
+# $Log: /Alaska/SOURCE/Modules/Intel Fast Flash Standby/iRST_SharkBay/GfxDisplayLibPei/GfxDisplayLibPei.sdl $
+#
+# 1 9/26/12 3:53a Yurenlai
+# [TAG] None
+# [Category] Improvement
+# [Severity] Important
+# [Description] Update Intel Rapid Start Technology Framework Reference
+# Code Beta Version 0.7.0.
+# [Description] ReferenceCode\RapidStart\*.*, RapidStartPeiLib.h
+#
+#*************************************************************************
+TOKEN
+ Name = "GfxDisplayLibPei_SUPPORT"
+ Value = "1"
+ TokenType = Boolean
+ TargetEQU = Yes
+ TargetMAK = Yes
+ Master = Yes
+ Help = "Main switch to enable GfxDisplayLibPei support in Project"
+End
+
+PATH
+ Name = "GfxDisplayLibPei_DIR"
+ Help = "GfxDisplayLibPei file source directory"
+End
+
+MODULE
+ File = "GfxDisplayLibPei.mak"
+ Help = "Includes GfxDisplayLibPei.mak to Project"
+End
+
+ELINK
+ Name = "GfxDisplayLibPei_LIB"
+ InvokeOrder = ReplaceParent
+End
+
+ELINK
+ Name = "$(BUILD_DIR)\GfxDisplayLibPei.lib"
+ Parent = "GfxDisplayLibPei_LIB"
+ InvokeOrder = AfterParent
+End
+#*************************************************************************
+#*************************************************************************
+#** **
+#** (C)Copyright 1985-2011, American Megatrends, Inc. **
+#** **
+#** All Rights Reserved. **
+#** **
+#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+#** **
+#** Phone: (770)-246-8600 **
+#** **
+#*************************************************************************
+#*************************************************************************