summaryrefslogtreecommitdiff
path: root/Board/EM/Isct/Protocol
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 /Board/EM/Isct/Protocol
downloadzprj-b7c51c9cf4864df6aabb99a1ae843becd577237c.tar.xz
init. 1AQQW051HEADmaster
Diffstat (limited to 'Board/EM/Isct/Protocol')
-rw-r--r--Board/EM/Isct/Protocol/IsctNvsArea/IsctNvsArea.c64
-rw-r--r--Board/EM/Isct/Protocol/IsctNvsArea/IsctNvsArea.h102
-rw-r--r--Board/EM/Isct/Protocol/IsctProtocolLib.cif12
-rw-r--r--Board/EM/Isct/Protocol/IsctProtocolLib.inf66
-rw-r--r--Board/EM/Isct/Protocol/IsctProtocolLib.mak68
-rw-r--r--Board/EM/Isct/Protocol/IsctProtocolLib.sdl82
6 files changed, 394 insertions, 0 deletions
diff --git a/Board/EM/Isct/Protocol/IsctNvsArea/IsctNvsArea.c b/Board/EM/Isct/Protocol/IsctNvsArea/IsctNvsArea.c
new file mode 100644
index 0000000..024cab8
--- /dev/null
+++ b/Board/EM/Isct/Protocol/IsctNvsArea/IsctNvsArea.c
@@ -0,0 +1,64 @@
+//**********************************************************************
+//**********************************************************************
+//** **
+//** (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/SharkBayRefCodes/ISCT/IsctProtocolLib/IsctNvsArea/IsctNvsArea.c 1 9/02/12 11:20p Bensonlai $
+//
+// $Revision: 1 $
+//
+// $Date: 9/02/12 11:20p $
+//**********************************************************************
+// Revision History
+// ----------------
+// $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/ISCT/IsctProtocolLib/IsctNvsArea/IsctNvsArea.c $
+//
+// 1 9/02/12 11:20p Bensonlai
+// Intel Smart Connect Technology initially releases.
+//
+//
+//**********************************************************************
+//<AMI_FHDR_START>
+//
+// Name: IsctNvsArea.c
+//
+// Description: Isct NVS Area description protocol implementation.
+//
+//<AMI_FHDR_END>
+//**********************************************************************
+
+#include "EdkIIGlueDxe.h"
+
+#include "IsctNvsArea.h"
+
+EFI_GUID gIsctNvsAreaProtocolGuid = ISCT_NVS_AREA_PROTOCOL_GUID;
+
+EFI_GUID_STRING
+ (
+ &gIsctNvsAreaProtocolGuid, "ISCT NVS Area Protocol",
+ "Protocol describing ISCT ACPI NVS memory region used by ACPI subsystem."
+ );
+
+//**********************************************************************
+//**********************************************************************
+//** **
+//** (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/Board/EM/Isct/Protocol/IsctNvsArea/IsctNvsArea.h b/Board/EM/Isct/Protocol/IsctNvsArea/IsctNvsArea.h
new file mode 100644
index 0000000..5802aa7
--- /dev/null
+++ b/Board/EM/Isct/Protocol/IsctNvsArea/IsctNvsArea.h
@@ -0,0 +1,102 @@
+//**********************************************************************
+//**********************************************************************
+//** **
+//** (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/SharkBayRefCodes/ISCT/IsctProtocolLib/IsctNvsArea/IsctNvsArea.h 1 9/02/12 11:20p Bensonlai $
+//
+// $Revision: 1 $
+//
+// $Date: 9/02/12 11:20p $
+//**********************************************************************
+// Revision History
+// ----------------
+// $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/ISCT/IsctProtocolLib/IsctNvsArea/IsctNvsArea.h $
+//
+// 1 9/02/12 11:20p Bensonlai
+// Intel Smart Connect Technology initially releases.
+//
+//
+//**********************************************************************
+//<AMI_FHDR_START>
+//
+// Name: IsctNvsArea.h
+//
+// Description: Data structures defined in this protocol are not naturally aligned.
+//
+//<AMI_FHDR_END>
+//**********************************************************************
+
+#ifndef _ISCT_NVS_AREA_H_
+#define _ISCT_NVS_AREA_H_
+
+//
+// Includes
+//
+//
+// Forward reference for pure ANSI compatability
+//
+EFI_FORWARD_DECLARATION (ISCT_NVS_AREA_PROTOCOL);
+
+//
+// Isct NVS Area Protocol GUID
+//
+#define ISCT_NVS_AREA_PROTOCOL_GUID \
+ { \
+ 0x6614a586, 0x788c, 0x47e2, 0x89, 0x2d, 0x72, 0xe2, 0xc, 0x34, 0x48, 0x90 \
+ }
+
+//
+// Extern the GUID for protocol users.
+//
+extern EFI_GUID gIsctNvsAreaProtocolGuid;
+
+//
+// Isct NVS Area definition
+//
+#pragma pack(1)
+typedef struct {
+ UINT8 IsctWakeReason; //(0): Wake Reason
+ UINT8 IsctEnabled; //(1): 1 - Enabled, 0 - Disabled
+ UINT8 RapidStartEnabled; //(2): IFFS service enabled
+ UINT8 IsctTimerChoice; //(3): 1 - RTC timer, 0 - EC timer
+ UINT32 EcDurationTime; //(4): EC Duration Time
+ UINT32 RtcDurationTime; //(8): RTC Duration Time
+ UINT32 IsctNvsPtr; //(12): Ptr of Isct GlobalNvs
+ UINT8 IsctOverWrite; //(16): 1 - Isct , 0 - OS RTC
+} ISCT_NVS_AREA;
+#pragma pack()
+
+//
+// Isct NVS Area Protocol
+//
+typedef struct _ISCT_NVS_AREA_PROTOCOL {
+ ISCT_NVS_AREA *Area;
+ VOID *IsctData;
+} ISCT_NVS_AREA_PROTOCOL;
+
+#endif
+
+//**********************************************************************
+//**********************************************************************
+//** **
+//** (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/Board/EM/Isct/Protocol/IsctProtocolLib.cif b/Board/EM/Isct/Protocol/IsctProtocolLib.cif
new file mode 100644
index 0000000..c96731d
--- /dev/null
+++ b/Board/EM/Isct/Protocol/IsctProtocolLib.cif
@@ -0,0 +1,12 @@
+<component>
+ name = "IsctProtocolLib"
+ category = ModulePart
+ LocalRoot = "Board\EM\Isct\Protocol"
+ RefName = "IsctProtocolLib"
+[files]
+"IsctProtocolLib.inf"
+"IsctProtocolLib.mak"
+"IsctProtocolLib.sdl"
+"IsctNvsArea\IsctNvsArea.h"
+"IsctNvsArea\IsctNvsArea.c"
+<endComponent>
diff --git a/Board/EM/Isct/Protocol/IsctProtocolLib.inf b/Board/EM/Isct/Protocol/IsctProtocolLib.inf
new file mode 100644
index 0000000..ea1f31d
--- /dev/null
+++ b/Board/EM/Isct/Protocol/IsctProtocolLib.inf
@@ -0,0 +1,66 @@
+#
+# 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
+#
+#/*++
+#
+# 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.
+#
+# Module Name:
+#
+# PlatformPolicyUpdatePeiLib.inf
+#
+# Abstract:
+#
+# Component description file for PEI DxePlatformPolicyUpdateLib Library
+#
+#--*/
+
+[defines]
+BASE_NAME = IsctProtocolLib
+COMPONENT_TYPE = LIBRARY
+
+[sources.common]
+ IsctNvsArea\IsctNvsArea.h
+ IsctNvsArea\IsctNvsArea.c
+
+[sources.ia32]
+
+[sources.x64]
+
+[sources.ipf]
+
+[includes.common]
+ .
+ $(BUILD_DIR)\$(PROCESSOR)
+ $(EDK_SOURCE)\Foundation\Efi
+ $(EDK_SOURCE)\Foundation\Include
+ $(EDK_SOURCE)\Foundation\Efi\Include
+ $(EDK_SOURCE)\Foundation\Framework\Include
+
+#
+# EDK II Glue Library utilizes some standard headers from EDK
+#
+ $(EFI_SOURCE)
+ $(EDK_SOURCE)\Foundation
+ $(EDK_SOURCE)\Foundation\Framework
+ $(EDK_SOURCE)\Foundation\Include\IndustryStandard
+ $(EDK_SOURCE)\Foundation\Core\Dxe
+ $(EDK_SOURCE)\Foundation\Include\Pei
+ $(EDK_SOURCE)\Foundation\Library\Pei\Include
+ $(EDK_SOURCE)\Foundation\Library\Dxe\Include
+ $(EDK_SOURCE)\Foundation\Library\EdkIIGlueLib\Include
+# $(PLATFORM_ECP_PACKAGE)\Include
+
+[libraries.common]
+
+[nmake.common]
diff --git a/Board/EM/Isct/Protocol/IsctProtocolLib.mak b/Board/EM/Isct/Protocol/IsctProtocolLib.mak
new file mode 100644
index 0000000..0645759
--- /dev/null
+++ b/Board/EM/Isct/Protocol/IsctProtocolLib.mak
@@ -0,0 +1,68 @@
+#**********************************************************************
+#**********************************************************************
+#** **
+#** (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/SharkBayRefCodes/ISCT/IsctProtocolLib/IsctProtocolLib.mak 1 9/02/12 11:20p Bensonlai $
+#
+# $Revision: 1 $
+#
+# $Date: 9/02/12 11:20p $
+#**********************************************************************
+# Revision History
+# ----------------
+# $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/ISCT/IsctProtocolLib/IsctProtocolLib.mak $
+#
+# 1 9/02/12 11:20p Bensonlai
+# Intel Smart Connect Technology initially releases.
+#
+#
+#**********************************************************************
+#<AMI_FHDR_START>
+#
+# Name: IsctProtocolLib.mak
+#
+# Description: Make file to build IsctProtocolLib components
+#
+#
+#<AMI_FHDR_END>
+#**********************************************************************
+
+all : IsctProtocolLib
+
+$(BUILD_DIR)\IsctProtocolLib.lib : IsctProtocolLib
+
+IsctProtocolLib : $(BUILD_DIR)\IsctProtocolLib.mak IsctProtocolLibBin
+
+$(BUILD_DIR)\IsctProtocolLib.mak : $(IsctProtocolLib_DIR)\$(@B).cif $(IsctProtocolLib_DIR)\$(@B).mak $(BUILD_RULES)
+ $(CIF2MAK) $(IsctProtocolLib_DIR)\$(@B).cif $(CIF2MAK_DEFAULTS)
+
+IsctProtocolLibBin :
+ $(MAKE) /$(MAKEFLAGS) $(EDK_DEFAULTS)\
+ /f $(BUILD_DIR)\IsctProtocolLib.mak all\
+ "MY_INCLUDES=$(EDK_INCLUDES) $(MISCFRAMEWORK_INCLUDES) $(EdkIIGlueLib_INCLUDES)" \
+ TYPE=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/Board/EM/Isct/Protocol/IsctProtocolLib.sdl b/Board/EM/Isct/Protocol/IsctProtocolLib.sdl
new file mode 100644
index 0000000..add6e76
--- /dev/null
+++ b/Board/EM/Isct/Protocol/IsctProtocolLib.sdl
@@ -0,0 +1,82 @@
+#**********************************************************************
+#**********************************************************************
+#** **
+#** (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/SharkBayRefCodes/ISCT/IsctProtocolLib/IsctProtocolLib.sdl 1 9/02/12 11:20p Bensonlai $
+#
+# $Revision: 1 $
+#
+# $Date: 9/02/12 11:20p $
+#**********************************************************************
+# Revision History
+# ----------------
+# $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/ISCT/IsctProtocolLib/IsctProtocolLib.sdl $
+#
+# 1 9/02/12 11:20p Bensonlai
+# Intel Smart Connect Technology initially releases.
+#
+#
+#**********************************************************************
+#<AMI_FHDR_START>
+#
+# Name: IsctProtocolLib.sdl
+#
+# Description: SDL file for IsctProtocolLib
+#
+#
+#<AMI_FHDR_END>
+#**********************************************************************
+
+TOKEN
+ Name = IsctProtocolLib_SUPPORT
+ Value = 1
+ TokenType = Boolean
+ TargetEQU = Yes
+ TargetMAK = Yes
+ Master = Yes
+ Help = "Main switch to enable IsctProtocolLib support in Project"
+End
+
+MODULE
+ Help = "Includes IsctProtocolLib.mak to Project"
+ File = "IsctProtocolLib.mak"
+End
+
+PATH
+ Name = "IsctProtocolLib_DIR"
+End
+
+ELINK
+ Name = "IsctProtocolLib_LIB"
+ InvokeOrder = ReplaceParent
+End
+
+ELINK
+ Name = "$(BUILD_DIR)\IsctProtocolLib.lib"
+ Parent = "IsctProtocolLib_LIB"
+ InvokeOrder = AfterParent
+End
+#*************************************************************************
+#*************************************************************************
+#** **
+#** (C)Copyright 1985-2012, American Megatrends, Inc. **
+#** **
+#** All Rights Reserved. **
+#** **
+#** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
+#** **
+#** Phone: (770)-246-8600 **
+#** **
+#*************************************************************************
+#*************************************************************************