summaryrefslogtreecommitdiff
path: root/Vlv2TbltDevicePkg/Library/I2CLibPei/I2CDelayPei.h
diff options
context:
space:
mode:
authorDavid Wei <david.wei@intel.com>2015-06-02 01:47:57 +0000
committerzwei4 <zwei4@Edk2>2015-06-02 01:47:57 +0000
commit4e5220964b7108bbc9f731b326680e865aa63560 (patch)
tree9d6e583c666ef58ab8d142c4858fe1f24e76ec36 /Vlv2TbltDevicePkg/Library/I2CLibPei/I2CDelayPei.h
parentc85bc0c9d425c04055496fd2111e12ab3471ef31 (diff)
downloadedk2-platforms-4e5220964b7108bbc9f731b326680e865aa63560.tar.xz
Add Sample I2C Library for Baytrail I2C Controller.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei <david.wei@intel.com> Reviewed-by: Tim He <time.he@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17546 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Vlv2TbltDevicePkg/Library/I2CLibPei/I2CDelayPei.h')
-rw-r--r--Vlv2TbltDevicePkg/Library/I2CLibPei/I2CDelayPei.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/Vlv2TbltDevicePkg/Library/I2CLibPei/I2CDelayPei.h b/Vlv2TbltDevicePkg/Library/I2CLibPei/I2CDelayPei.h
new file mode 100644
index 0000000000..44597f3f6b
--- /dev/null
+++ b/Vlv2TbltDevicePkg/Library/I2CLibPei/I2CDelayPei.h
@@ -0,0 +1,36 @@
+/** @file
+ MicroSecondDelay implementation of ACPI Timer.
+
+ Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
+ This program and the accompanying materials
+ are licensed and made available under the terms and conditions of the BSD License
+ which accompanies this distribution. The full text of the license may be found at
+ http://opensource.org/licenses/bsd-license.php.
+
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#ifndef __I2C_DELAY_PEI__
+
+#define __I2C_DELAY_PEI__
+#include "PiPei.h"
+
+/**
+ Stalls the CPU for at least the given number of microseconds.
+
+ Stalls the CPU for the number of microseconds specified by MicroSeconds.
+
+ @param MicroSeconds The minimum number of microseconds to delay.
+
+ @return MicroSeconds
+
+**/
+EFI_STATUS
+EFIAPI
+MicroSecondDelay (
+ IN UINTN MicroSeconds
+ );
+
+#endif