From 9cbd688b1ea9269bca0be76dce4c793075bbeab8 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Wed, 22 Nov 2006 00:39:03 +0000 Subject: 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 --- MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'MdePkg') diff --git a/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c b/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c index 234c336..1de7f93 100644 --- a/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c +++ b/MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c @@ -107,6 +107,30 @@ IoRead32 ( } /** + 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. Writes the 8-bit I/O port specified by Port with the value specified by Value @@ -200,6 +224,32 @@ IoWrite32 ( } /** + 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. Reads the 8-bit MMIO register specified by Address. The 8-bit read value is -- cgit v1.1