MdePkg[all]
1.08
|
Enumerations | |
enum | FILTER_IO_WIDTH { FilterWidth8, FilterWidth16, FilterWidth32, FilterWidth64 } |
Public include file for the Port IO/MMIO/MSR RegisterFilterLib.
Copyright (c) 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
enum FILTER_IO_WIDTH |
Trace IO read operation after read IO port. It is used to trace IO operation.
[in] | Width | Signifies the width of the I/O operation. |
[in] | Address | The base address of the I/O operation. |
[in] | Buffer | The destination buffer to store the results. |
Trace IO Write operation after wirte IO port. It is used to trace IO operation.
[in] | Width | Signifies the width of the I/O operation. |
[in] | Address | The base address of the I/O operation. |
[in] | Buffer | The source buffer from which to BeforeWrite data. |
Tracer memory IO after read operation
[in] | Width | Signifies the width of the memory I/O operation. |
[in] | Address | The base address of the memory I/O operation. |
[in] | Buffer | The destination buffer to store the results. |
Tracer memory IO after write operation
[in] | Width | Signifies the width of the memory I/O operation. |
[in] | Address | The base address of the memory I/O operation. |
[in] | Buffer | The source buffer from which to BeforeWrite data. |
Trace MSR after read operation
Index | The 8-bit Machine Specific Register index to BeforeWrite. |
Value | The 64-bit value to BeforeRead from the Machine Specific Register. |
Trace MSR after write operation
Index | The 8-bit Machine Specific Register index to BeforeWrite. |
Value | The 64-bit value to BeforeWrite to the Machine Specific Register. |
BOOLEAN EFIAPI FilterBeforeIoRead | ( | IN FILTER_IO_WIDTH | Width, |
IN UINTN | Address, | ||
IN OUT VOID * | Buffer | ||
) |
Filter IO read operation before read IO port. It is used to filter IO read operation.
It will return the flag to decide whether require read real IO port. It can be used for emulation environment.
[in] | Width | Signifies the width of the I/O operation. |
[in] | Address | The base address of the I/O operation. |
[in] | Buffer | The destination buffer to store the results. |
TRUE | Need to excute the IO read. |
FALSE | Skip the IO read. |
Filter IO Write operation before wirte IO port. It is used to filter IO operation.
It will return the flag to decide whether require read write IO port. It can be used for emulation environment.
[in] | Width | Signifies the width of the I/O operation. |
[in] | Address | The base address of the I/O operation. |
[in] | Buffer | The source buffer from which to BeforeWrite data. |
TRUE | Need to excute the IO write. |
FALSE | Skip the IO write. |
BOOLEAN EFIAPI FilterBeforeMmIoRead | ( | IN FILTER_IO_WIDTH | Width, |
IN UINTN | Address, | ||
IN OUT VOID * | Buffer | ||
) |
Filter memory IO before Read operation.
It will return the flag to decide whether require read real MMIO. It can be used for emulation environment.
[in] | Width | Signifies the width of the memory I/O operation. |
[in] | Address | The base address of the memory I/O operation. |
[in] | Buffer | The destination buffer to store the results. |
TRUE | Need to excute the MMIO read. |
FALSE | Skip the MMIO read. |
BOOLEAN EFIAPI FilterBeforeMmIoWrite | ( | IN FILTER_IO_WIDTH | Width, |
IN UINTN | Address, | ||
IN VOID * | Buffer | ||
) |
Filter memory IO before write operation
It will return the flag to decide whether require wirte real MMIO. It can be used for emulation environment.
[in] | Width | Signifies the width of the memory I/O operation. |
[in] | Address | The base address of the memory I/O operation. |
[in] | Buffer | The source buffer from which to BeforeWrite data. |
TRUE | Need to excute the MMIO write. |
FALSE | Skip the MMIO write. |
Filter MSR before read operation.
It will return the flag to decide whether require read real MSR. It can be used for emulation environment.
Index | The 8-bit Machine Specific Register index to BeforeWrite. |
Value | The 64-bit value to BeforeRead from the Machine Specific Register. |
TRUE | Need to excute the MSR read. |
FALSE | Skip the MSR read. |
Filter MSR before write operation
It will return the flag to decide whether require write real MSR. It can be used for emulation environment.
Index | The 8-bit Machine Specific Register index to BeforeWrite. |
Value | The 64-bit value to BeforeWrite to the Machine Specific Register. |
TRUE | Need to excute the MSR write. |
FALSE | Skip the MSR write. |