MdePkg/SmmIoLib: Add header file.
authorJiewen Yao <>
Wed, 15 Mar 2017 09:23:01 +0000 (17:23 +0800)
committerJiewen Yao <>
Wed, 26 Apr 2017 01:22:17 +0000 (09:22 +0800)
This SmmIoLib is used to check if an IO resource
is valid in SMM.

Cc: Jeff Fan <>
Cc: Liming Gao <>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <>
Reviewed-by: Liming Gao <>
Reviewed-by: Jeff Fan <>
MdePkg/Include/Library/SmmIoLib.h [new file with mode: 0644]

diff --git a/MdePkg/Include/Library/SmmIoLib.h b/MdePkg/Include/Library/SmmIoLib.h
new file mode 100644 (file)
index 0000000..7820f1e
--- /dev/null
@@ -0,0 +1,42 @@
+/** @file\r
+  Provides services for SMM IO Operation.\r
+  The SMM IO Library provides function for checking if IO resource is accessible inside of SMM.\r
+  Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+#ifndef _SMM_IO_LIB_H_\r
+#define _SMM_IO_LIB_H_\r
+  This function check if the MMIO resource is valid per processor architecture and\r
+  valid per platform design.\r
+  @param BaseAddress  The MMIO start address to be checked.\r
+  @param Length       The MMIO length to be checked.\r
+  @param Owner        A GUID representing the owner of the resource.\r
+                      This GUID may be used by producer to correlate the device ownership of the resource.\r
+                      NULL means no specific owner.\r
+  @retval TRUE  This MMIO resource is valid per processor architecture and valid per platform design.\r
+  @retval FALSE This MMIO resource is not valid per processor architecture or valid per platform design.\r
+SmmIsMmioValid (\r
+  IN UINT64                Length,\r
+  IN EFI_GUID              *Owner  OPTIONAL\r
+  );\r