]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add 64-bit I/O port functions that ASSERT()
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 22 Nov 2006 00:39:03 +0000 (00:39 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 22 Nov 2006 00:39:03 +0000 (00:39 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1992 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c

index 234c3369b29bbfc26bbfdff845d011b6a231bb44..1de7f93e298ef015affad44b81f7b4f5bc1870ca 100644 (file)
@@ -106,6 +106,30 @@ IoRead32 (
   return MmioRead32 (Address);\r
 }\r
 \r
   return MmioRead32 (Address);\r
 }\r
 \r
+/**\r
+  Reads a 64-bit I/O port.\r
+\r
+  Reads the 64-bit I/O port specified by Port. The 64-bit read value is returned.\r
+  This function must guarantee that all I/O read and write operations are\r
+  serialized.\r
+\r
+  If 64-bit I/O port operations are not supported, then ASSERT().\r
+\r
+  @param  Port  The I/O port to read.\r
+\r
+  @return The value read.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+IoRead64 (\r
+  IN      UINTN                     Port\r
+  )\r
+{\r
+  ASSERT (FALSE);\r
+  return 0;\r
+}\r
+\r
 /**\r
   Writes a 8-bit I/O port.\r
 \r
 /**\r
   Writes a 8-bit I/O port.\r
 \r
@@ -199,6 +223,32 @@ IoWrite32 (
   return MmioWrite32 (Address, Data);\r
 }\r
 \r
   return MmioWrite32 (Address, Data);\r
 }\r
 \r
+/**\r
+  Writes a 64-bit I/O port.\r
+\r
+  Writes the 64-bit I/O port specified by Port with the value specified by Value\r
+  and returns Value. This function must guarantee that all I/O read and write\r
+  operations are serialized.\r
+\r
+  If 64-bit I/O port operations are not supported, then ASSERT().\r
+\r
+  @param  Port  The I/O port to write.\r
+  @param  Value The value to write to the I/O port.\r
+\r
+  @return The value written the I/O port.\r
+\r
+**/\r
+UINT64\r
+EFIAPI\r
+IoWrite64 (\r
+  IN      UINTN                     Port,\r
+  IN      UINT64                    Value\r
+  )\r
+{\r
+  ASSERT (FALSE);\r
+  return 0;\r
+}\r
+\r
 /**\r
   Reads a 8-bit MMIO register.\r
 \r
 /**\r
   Reads a 8-bit MMIO register.\r
 \r