]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseIoLibIntrinsic/IoLibInternalTdxNull.c
2 Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
3 SPDX-License-Identifier: BSD-2-Clause-Patent
7 #include <Library/BaseLib.h>
8 #include "BaseIoLibIntrinsicInternal.h"
12 Check if it is Tdx guest.
14 @return TRUE It is Tdx guest
15 @return FALSE It is not Tdx guest
28 Reads an 8-bit I/O port.
30 TDVMCALL_IO is invoked to read I/O port.
32 @param Port The I/O port to read.
34 @return The value read.
48 Reads a 16-bit I/O port.
50 TDVMCALL_IO is invoked to write I/O port.
52 @param Port The I/O port to read.
54 @return The value read.
68 Reads a 32-bit I/O port.
70 TDVMCALL_IO is invoked to read I/O port.
72 @param Port The I/O port to read.
74 @return The value read.
88 Writes an 8-bit I/O port.
90 TDVMCALL_IO is invoked to write I/O port.
92 @param Port The I/O port to write.
93 @param Value The value to write to the I/O port.
95 @return The value written the I/O port.
110 Writes a 16-bit I/O port.
112 TDVMCALL_IO is invoked to write I/O port.
114 @param Port The I/O port to write.
115 @param Value The value to write to the I/O port.
117 @return The value written the I/O port.
132 Writes a 32-bit I/O port.
134 TDVMCALL_IO is invoked to write I/O port.
136 @param Port The I/O port to write.
137 @param Value The value to write to the I/O port.
139 @return The value written the I/O port.
154 Reads an 8-bit MMIO register.
156 TDVMCALL_MMIO is invoked to read MMIO registers.
158 @param Address The MMIO register to read.
160 @return The value read.
174 Writes an 8-bit MMIO register.
176 TDVMCALL_MMIO is invoked to read write registers.
178 @param Address The MMIO register to write.
179 @param Value The value to write to the MMIO register.
196 Reads a 16-bit MMIO register.
198 TDVMCALL_MMIO is invoked to read MMIO registers.
200 @param Address The MMIO register to read.
202 @return The value read.
216 Writes a 16-bit MMIO register.
218 TDVMCALL_MMIO is invoked to write MMIO registers.
220 @param Address The MMIO register to write.
221 @param Value The value to write to the MMIO register.
238 Reads a 32-bit MMIO register.
240 TDVMCALL_MMIO is invoked to read MMIO registers.
242 @param Address The MMIO register to read.
244 @return The value read.
258 Writes a 32-bit MMIO register.
260 TDVMCALL_MMIO is invoked to write MMIO registers.
262 @param Address The MMIO register to write.
263 @param Value The value to write to the MMIO register.
280 Reads a 64-bit MMIO register.
282 TDVMCALL_MMIO is invoked to read MMIO registers.
284 @param Address The MMIO register to read.
286 @return The value read.
300 Writes a 64-bit MMIO register.
302 TDVMCALL_MMIO is invoked to write MMIO registers.
304 @param Address The MMIO register to write.
305 @param Value The value to write to the MMIO register.
320 Reads an 8-bit I/O port fifo into a block of memory.
322 Reads the 8-bit I/O fifo port specified by Port.
323 The port is read Count times, and the read data is
324 stored in the provided Buffer.
326 This function must guarantee that all I/O read and write operations are
329 If 8-bit I/O port operations are not supported, then ASSERT().
331 In TDX a serial of TdIoRead8 is invoked to read the I/O port fifo.
333 @param Port The I/O port to read.
334 @param Count The number of times to read I/O port.
335 @param Buffer The buffer to store the read data into.
350 Writes a block of memory into an 8-bit I/O port fifo.
352 Writes the 8-bit I/O fifo port specified by Port.
353 The port is written Count times, and the write data is
354 retrieved from the provided Buffer.
356 This function must guarantee that all I/O write and write operations are
359 If 8-bit I/O port operations are not supported, then ASSERT().
361 In TDX a serial of TdIoWrite8 is invoked to write data to the I/O port.
363 @param Port The I/O port to write.
364 @param Count The number of times to write I/O port.
365 @param Buffer The buffer to retrieve the write data from.
380 Reads a 16-bit I/O port fifo into a block of memory.
382 Reads the 16-bit I/O fifo port specified by Port.
383 The port is read Count times, and the read data is
384 stored in the provided Buffer.
386 This function must guarantee that all I/O read and write operations are
389 If 16-bit I/O port operations are not supported, then ASSERT().
391 In TDX a serial of TdIoRead16 is invoked to read data from the I/O port.
393 @param Port The I/O port to read.
394 @param Count The number of times to read I/O port.
395 @param Buffer The buffer to store the read data into.
410 Writes a block of memory into a 16-bit I/O port fifo.
412 Writes the 16-bit I/O fifo port specified by Port.
413 The port is written Count times, and the write data is
414 retrieved from the provided Buffer.
416 This function must guarantee that all I/O write and write operations are
419 If 16-bit I/O port operations are not supported, then ASSERT().
421 In TDX a serial of TdIoWrite16 is invoked to write data to the I/O port.
423 @param Port The I/O port to write.
424 @param Count The number of times to write I/O port.
425 @param Buffer The buffer to retrieve the write data from.
440 Reads a 32-bit I/O port fifo into a block of memory.
442 Reads the 32-bit I/O fifo port specified by Port.
443 The port is read Count times, and the read data is
444 stored in the provided Buffer.
446 This function must guarantee that all I/O read and write operations are
449 If 32-bit I/O port operations are not supported, then ASSERT().
451 In TDX a serial of TdIoRead32 is invoked to read data from the I/O port.
453 @param Port The I/O port to read.
454 @param Count The number of times to read I/O port.
455 @param Buffer The buffer to store the read data into.
470 Writes a block of memory into a 32-bit I/O port fifo.
472 Writes the 32-bit I/O fifo port specified by Port.
473 The port is written Count times, and the write data is
474 retrieved from the provided Buffer.
476 This function must guarantee that all I/O write and write operations are
479 If 32-bit I/O port operations are not supported, then ASSERT().
481 In TDX a serial of TdIoWrite32 is invoked to write data to the I/O port.
483 @param Port The I/O port to write.
484 @param Count The number of times to write I/O port.
485 @param Buffer The buffer to retrieve the write data from.