]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Protocol/BlockMmio.h
OVMF: Add Block MMIO protocol definition
[mirror_edk2.git] / OvmfPkg / Include / Protocol / BlockMmio.h
diff --git a/OvmfPkg/Include/Protocol/BlockMmio.h b/OvmfPkg/Include/Protocol/BlockMmio.h
new file mode 100644 (file)
index 0000000..3616464
--- /dev/null
@@ -0,0 +1,50 @@
+/** @file\r
+  Block IO (memory mapped)\r
+\r
+  Copyright (c) 2006 - 2010, Intel Corporation                                                         \r
+  All rights reserved. This program and the accompanying materials                          \r
+  are licensed and made available under the terms and conditions of the BSD License         \r
+  which accompanies this distribution.  The full text of the license may be found at        \r
+  http://opensource.org/licenses/bsd-license.php                                            \r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+**/\r
+\r
+#ifndef __BLOCK_MMIO_H__\r
+#define __BLOCK_MMIO_H__\r
+\r
+#include <Protocol/BlockIo.h>\r
+\r
+#define BLOCK_MMIO_PROTOCOL_GUID \\r
+  { \\r
+    0x6b558ce3, 0x69e5, 0x4c67, {0xa6, 0x34, 0xf7, 0xfe, 0x72, 0xad, 0xbe, 0x84 } \\r
+  }\r
+\r
+typedef struct _BLOCK_MMIO_PROTOCOL  BLOCK_MMIO_PROTOCOL;\r
+\r
+\r
+///\r
+///  This protocol provides control over block devices.\r
+///\r
+struct _BLOCK_MMIO_PROTOCOL {\r
+  ///\r
+  /// The revision to which the block IO interface adheres. All future\r
+  /// revisions must be backwards compatible. If a future version is not\r
+  /// back wards compatible, it is not the same GUID.\r
+  ///\r
+  UINT64                Revision;\r
+  ///\r
+  /// Pointer to the EFI_BLOCK_IO_MEDIA data for this device.\r
+  ///\r
+  EFI_BLOCK_IO_MEDIA    *Media;\r
+\r
+  EFI_PHYSICAL_ADDRESS  BaseAddress;\r
+\r
+};\r
+\r
+extern EFI_GUID gBlockMmioProtocolGuid;\r
+\r
+#endif\r
+\r