]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update DeviceIo protocol based on EFI 1.1 updated spec.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 21 Nov 2008 03:00:06 +0000 (03:00 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 21 Nov 2008 03:00:06 +0000 (03:00 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6654 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Protocol/DeviceIo.h

index d10cc6fa6f3868927b6c69022c5eb48c171d2318..c5720899de4cc952dad733a0b76a452be34d0d84 100644 (file)
@@ -36,10 +36,14 @@ typedef struct _EFI_DEVICE_IO_PROTOCOL EFI_DEVICE_IO_PROTOCOL;
 typedef EFI_DEVICE_IO_PROTOCOL  EFI_DEVICE_IO_INTERFACE;\r
 \r
 typedef enum {\r
-  IO_UINT8 = 0,\r
-  IO_UINT16 = 1,\r
-  IO_UINT32 = 2,\r
-  IO_UINT64 = 3\r
+       IO_UINT8  = 0,\r
+       IO_UINT16 = 1,\r
+       IO_UINT32 = 2,\r
+       IO_UINT64 = 3,\r
+       MMIO_COPY_UINT8  = 4,\r
+       MMIO_COPY_UINT16 = 5,\r
+       MMIO_COPY_UINT32 = 6,\r
+       MMIO_COPY_UINT64 = 7\r
 } EFI_IO_WIDTH;\r
 \r
 /**                                                                 \r
@@ -50,7 +54,10 @@ typedef enum {
   @param  Address               The base address of the I/O operations. \r
   @param  Count                 The number of I/O operations to perform.\r
   @param  Buffer                For read operations, the destination buffer to store the results. For write\r
-                                operations, the source buffer to write data from.                \r
+                                operations, the source buffer to write data from. If\r
+                                                                                                                               Width is MMIO_COPY_UINT8, MMIO_COPY_UINT16,\r
+                                                                                                                               MMIO_COPY_UINT32, or MMIO_COPY_UINT64, then\r
+                                                                                                                               Buffer is interpreted as a base address of an I/O operation such as Address. \r
 \r
   @retval EFI_SUCCESS           The data was read from or written to the device.\r
   @retval EFI_OUT_OF_RESOURCES  The request could not be completed due to a lack of resources.      \r