blob: 4e6aa3df9d8ba896719f4fb8c4a825799f7ebc9e [file] [log] [blame]
Ronak Kanabar1ae366f2023-06-07 01:21:56 +05301/** @file
2 SMM CPU I/O 2 protocol as defined in the PI 1.2 specification.
3
4 This protocol provides CPU I/O and memory access within SMM.
5
6 Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9**/
10
11#ifndef _SMM_CPU_IO2_H_
12#define _SMM_CPU_IO2_H_
13
14#include <Protocol/MmCpuIo.h>
15
16#define EFI_SMM_CPU_IO2_PROTOCOL_GUID EFI_MM_CPU_IO_PROTOCOL_GUID
17
18typedef EFI_MM_CPU_IO_PROTOCOL EFI_SMM_CPU_IO2_PROTOCOL;
19
20///
21/// Width of the SMM CPU I/O operations
22///
23#define SMM_IO_UINT8 MM_IO_UINT8
24#define SMM_IO_UINT16 MM_IO_UINT16
25#define SMM_IO_UINT32 MM_IO_UINT32
26#define SMM_IO_UINT64 MM_IO_UINT64
27
28typedef EFI_MM_IO_WIDTH EFI_SMM_IO_WIDTH;
29typedef EFI_MM_CPU_IO EFI_SMM_CPU_IO2;
30
31typedef EFI_MM_IO_ACCESS EFI_SMM_IO_ACCESS2;
32
33extern EFI_GUID gEfiSmmCpuIo2ProtocolGuid;
34
35#endif