TianoCore EDK2 master
Loading...
Searching...
No Matches
CpuIo2Mm.h
Go to the documentation of this file.
1
9#ifndef _CPU_IO2_SMM_H_
10#define _CPU_IO2_SMM_H_
11
12#include <PiSmm.h>
13
14#include <Protocol/SmmCpuIo2.h>
15
16#include <Library/BaseLib.h>
17#include <Library/DebugLib.h>
18#include <Library/IoLib.h>
21
22#define MAX_IO_PORT_ADDRESS 0xFFFF
23
48EFIAPI
51 IN EFI_SMM_IO_WIDTH Width,
52 IN UINT64 Address,
53 IN UINTN Count,
54 OUT VOID *Buffer
55 );
56
81EFIAPI
84 IN EFI_SMM_IO_WIDTH Width,
85 IN UINT64 Address,
86 IN UINTN Count,
87 IN VOID *Buffer
88 );
89
114EFIAPI
117 IN EFI_SMM_IO_WIDTH Width,
118 IN UINT64 Address,
119 IN UINTN Count,
120 OUT VOID *Buffer
121 );
122
147EFIAPI
150 IN EFI_SMM_IO_WIDTH Width,
151 IN UINT64 Address,
152 IN UINTN Count,
153 IN VOID *Buffer
154 );
155
165 VOID
166 );
167
168#endif
UINT64 UINTN
EFI_STATUS EFIAPI CpuMemoryServiceRead(IN CONST EFI_SMM_CPU_IO2_PROTOCOL *This, IN EFI_SMM_IO_WIDTH Width, IN UINT64 Address, IN UINTN Count, OUT VOID *Buffer)
Definition: CpuIo2Mm.c:156
EFI_STATUS EFIAPI CpuIoServiceWrite(IN CONST EFI_SMM_CPU_IO2_PROTOCOL *This, IN EFI_SMM_IO_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
Definition: CpuIo2Mm.c:337
EFI_STATUS EFIAPI CpuIoServiceRead(IN CONST EFI_SMM_CPU_IO2_PROTOCOL *This, IN EFI_SMM_IO_WIDTH Width, IN UINT64 Address, IN UINTN Count, OUT VOID *Buffer)
Definition: CpuIo2Mm.c:278
EFI_STATUS EFIAPI CpuMemoryServiceWrite(IN CONST EFI_SMM_CPU_IO2_PROTOCOL *This, IN EFI_SMM_IO_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer)
Definition: CpuIo2Mm.c:217
EFI_STATUS CommonCpuIo2Initialize(VOID)
Definition: CpuIo2Mm.c:382
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_MM_IO_WIDTH
Definition: MmCpuIo.h:24
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29