]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/SmmIoLib.h
MdePkg/SmmIoLib: Add header file.
[mirror_edk2.git] / MdePkg / Include / Library / SmmIoLib.h
CommitLineData
37a00f1a
JY
1/** @file\r
2 Provides services for SMM IO Operation.\r
3\r
4 The SMM IO Library provides function for checking if IO resource is accessible inside of SMM.\r
5\r
6 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
7 This program and the accompanying materials\r
8 are licensed and made available under the terms and conditions of the BSD License\r
9 which accompanies this distribution. The full text of the license may be found at\r
10 http://opensource.org/licenses/bsd-license.php\r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
15**/\r
16\r
17#ifndef _SMM_IO_LIB_H_\r
18#define _SMM_IO_LIB_H_\r
19\r
20/**\r
21 This function check if the MMIO resource is valid per processor architecture and\r
22 valid per platform design.\r
23\r
24 @param BaseAddress The MMIO start address to be checked.\r
25 @param Length The MMIO length to be checked.\r
26 @param Owner A GUID representing the owner of the resource.\r
27 This GUID may be used by producer to correlate the device ownership of the resource.\r
28 NULL means no specific owner.\r
29\r
30 @retval TRUE This MMIO resource is valid per processor architecture and valid per platform design.\r
31 @retval FALSE This MMIO resource is not valid per processor architecture or valid per platform design.\r
32**/\r
33BOOLEAN\r
34EFIAPI\r
35SmmIsMmioValid (\r
36 IN EFI_PHYSICAL_ADDRESS BaseAddress,\r
37 IN UINT64 Length,\r
38 IN EFI_GUID *Owner OPTIONAL\r
39 );\r
40\r
41#endif\r
42\r