From: mdkinney Date: Wed, 22 Nov 2006 00:39:03 +0000 (+0000) Subject: Add 64-bit I/O port functions that ASSERT() X-Git-Tag: edk2-stable201903~23885 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=9cbd688b1ea9269bca0be76dce4c793075bbeab8 Add 64-bit I/O port functions that ASSERT() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1992 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c b/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c index 234c3369b2..1de7f93e29 100644 --- a/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c +++ b/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c @@ -106,6 +106,30 @@ IoRead32 ( return MmioRead32 (Address); } +/** + Reads a 64-bit I/O port. + + Reads the 64-bit I/O port specified by Port. The 64-bit read value is returned. + This function must guarantee that all I/O read and write operations are + serialized. + + If 64-bit I/O port operations are not supported, then ASSERT(). + + @param Port The I/O port to read. + + @return The value read. + +**/ +UINT64 +EFIAPI +IoRead64 ( + IN UINTN Port + ) +{ + ASSERT (FALSE); + return 0; +} + /** Writes a 8-bit I/O port. @@ -199,6 +223,32 @@ IoWrite32 ( return MmioWrite32 (Address, Data); } +/** + Writes a 64-bit I/O port. + + Writes the 64-bit I/O port specified by Port with the value specified by Value + and returns Value. This function must guarantee that all I/O read and write + operations are serialized. + + If 64-bit I/O port operations are not supported, then ASSERT(). + + @param Port The I/O port to write. + @param Value The value to write to the I/O port. + + @return The value written the I/O port. + +**/ +UINT64 +EFIAPI +IoWrite64 ( + IN UINTN Port, + IN UINT64 Value + ) +{ + ASSERT (FALSE); + return 0; +} + /** Reads a 8-bit MMIO register.