]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.c
2 Null instance of RegisterFilterLib.
4 Copyright (c) 2021 Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <Library/RegisterFilterLib.h>
13 Filter IO read operation before read IO port.
14 It is used to filter IO read operation.
16 It will return the flag to decide whether require read real IO port.
17 It can be used for emulation environment.
19 @param[in] Width Signifies the width of the I/O operation.
20 @param[in] Address The base address of the I/O operation.
21 @param[in,out] Buffer The destination buffer to store the results.
23 @retval TRUE Need to excute the IO read.
24 @retval FALSE Skip the IO read.
30 IN FILTER_IO_WIDTH Width
,
39 Trace IO read operation after read IO port.
40 It is used to trace IO operation.
42 @param[in] Width Signifies the width of the I/O operation.
43 @param[in] Address The base address of the I/O operation.
44 @param[in] Buffer The destination buffer to store the results.
50 IN FILTER_IO_WIDTH Width
,
59 Filter IO Write operation before wirte IO port.
60 It is used to filter IO operation.
62 It will return the flag to decide whether require read write IO port.
63 It can be used for emulation environment.
65 @param[in] Width Signifies the width of the I/O operation.
66 @param[in] Address The base address of the I/O operation.
67 @param[in] Buffer The source buffer from which to write data.
69 @retval TRUE Need to excute the IO write.
70 @retval FALSE Skip the IO write.
76 IN FILTER_IO_WIDTH Width
,
85 Trace IO Write operation after wirte IO port.
86 It is used to trace IO operation.
88 @param[in] Width Signifies the width of the I/O operation.
89 @param[in] Address The base address of the I/O operation.
90 @param[in] Buffer The source buffer from which to Write data.
96 IN FILTER_IO_WIDTH Width
,
105 Filter memory IO before Read operation.
107 It will return the flag to decide whether require read real MMIO.
108 It can be used for emulation environment.
110 @param[in] Width Signifies the width of the memory I/O operation.
111 @param[in] Address The base address of the memory I/O operation.
112 @param[in,out] Buffer The destination buffer to store the results.
114 @retval TRUE Need to excute the MMIO read.
115 @retval FALSE Skip the MMIO read.
120 FilterBeforeMmIoRead (
121 IN FILTER_IO_WIDTH Width
,
130 Tracer memory IO after read operation.
132 @param[in] Width Signifies the width of the memory I/O operation.
133 @param[in] Address The base address of the memory I/O operation.
134 @param[in] Buffer The destination buffer to store the results.
139 FilterAfterMmIoRead (
140 IN FILTER_IO_WIDTH Width
,
149 Filter memory IO before write operation.
151 It will return the flag to decide whether require wirte real MMIO.
152 It can be used for emulation environment.
154 @param[in] Width Signifies the width of the memory I/O operation.
155 @param[in] Address The base address of the memory I/O operation.
156 @param[in] Buffer The source buffer from which to write data.
158 @retval TRUE Need to excute the MMIO write.
159 @retval FALSE Skip the MMIO write.
164 FilterBeforeMmIoWrite (
165 IN FILTER_IO_WIDTH Width
,
174 Tracer memory IO after write operation.
176 @param[in] Width Signifies the width of the memory I/O operation.
177 @param[in] Address The base address of the memory I/O operation.
178 @param[in] Buffer The source buffer from which to write data.
183 FilterAfterMmIoWrite (
184 IN FILTER_IO_WIDTH Width
,
193 Filter MSR before read operation.
195 It will return the flag to decide whether require read real MSR.
196 It can be used for emulation environment.
198 @param Index The Register index of the MSR.
199 @param Value Point to the data will be read from the MSR.
201 @retval TRUE Need to excute the MSR read.
202 @retval FALSE Skip the MSR read.
207 FilterBeforeMsrRead (
216 Trace MSR after read operation.
218 @param Index The Register index of the MSR.
219 @param Value Point to the data has been be read from the MSR.
233 Filter MSR before write operation.
235 It will return the flag to decide whether require write real MSR.
236 It can be used for emulation environment.
238 @param Index The Register index of the MSR.
239 @param Value Point to the data want to be written to the MSR.
241 @retval TRUE Need to excute the MSR write.
242 @retval FALSE Skip the MSR write.
247 FilterBeforeMsrWrite (
256 Trace MSR after write operation.
258 @param Index The Register index of the MSR.
259 @param Value Point to the data has been be written to the MSR.
264 FilterAfterMsrWrite (