]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/DeviceIo.h
Update comments for Protocol definitions to match UEFI spec. And add the missing...
[mirror_edk2.git] / MdePkg / Include / Protocol / DeviceIo.h
index f2dd067bb7ecbc8683e6c35ad13bcd8f9aa3ed46..d10cc6fa6f3868927b6c69022c5eb48c171d2318 100644 (file)
@@ -36,14 +36,10 @@ 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,\r
-  IO_UINT16,\r
-  IO_UINT32,\r
-  IO_UINT64,\r
-  MMIO_COPY_UINT8,\r
-  MMIO_COPY_UINT16,\r
-  MMIO_COPY_UINT32,\r
-  MMIO_COPY_UINT64\r
+  IO_UINT8 = 0,\r
+  IO_UINT16 = 1,\r
+  IO_UINT32 = 2,\r
+  IO_UINT64 = 3\r
 } EFI_IO_WIDTH;\r
 \r
 /**                                                                 \r
@@ -99,8 +95,22 @@ EFI_STATUS
   );\r
 \r
 typedef enum {\r
+  ///\r
+  /// A read operation from system memory by a bus master.\r
+  ///\r
   EfiBusMasterRead,\r
+\r
+  ///\r
+  /// A write operation to system memory by a bus master.\r
+  ///\r
   EfiBusMasterWrite,\r
+  \r
+  ///\r
+  /// Provides both read and write access to system memory\r
+  /// by both the processor and a bus master. The buffer is\r
+  /// coherent from both the processor¡¯s and the bus master¡¯s\r
+  /// point of view.\r
+  ///\r
   EfiBusMasterCommonBuffer\r
 } EFI_IO_OPERATION_TYPE;\r
 \r