]>
Commit | Line | Data |
---|---|---|
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 | |
9344f092 | 7 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
37a00f1a JY |
8 | \r |
9 | **/\r | |
10 | \r | |
11 | #ifndef _SMM_IO_LIB_H_\r | |
12 | #define _SMM_IO_LIB_H_\r | |
13 | \r | |
14 | /**\r | |
15 | This function check if the MMIO resource is valid per processor architecture and\r | |
16 | valid per platform design.\r | |
17 | \r | |
18 | @param BaseAddress The MMIO start address to be checked.\r | |
19 | @param Length The MMIO length to be checked.\r | |
20 | @param Owner A GUID representing the owner of the resource.\r | |
21 | This GUID may be used by producer to correlate the device ownership of the resource.\r | |
22 | NULL means no specific owner.\r | |
23 | \r | |
24 | @retval TRUE This MMIO resource is valid per processor architecture and valid per platform design.\r | |
25 | @retval FALSE This MMIO resource is not valid per processor architecture or valid per platform design.\r | |
26 | **/\r | |
27 | BOOLEAN\r | |
28 | EFIAPI\r | |
29 | SmmIsMmioValid (\r | |
30 | IN EFI_PHYSICAL_ADDRESS BaseAddress,\r | |
31 | IN UINT64 Length,\r | |
32 | IN EFI_GUID *Owner OPTIONAL\r | |
33 | );\r | |
34 | \r | |
35 | #endif\r | |
36 | \r |