]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/XenBusDxe/XenBus.h
OvmfPkg/XenBusDxe: Introduce XenBus support itself.
[mirror_edk2.git] / OvmfPkg / XenBusDxe / XenBus.h
diff --git a/OvmfPkg/XenBusDxe/XenBus.h b/OvmfPkg/XenBusDxe/XenBus.h
new file mode 100644 (file)
index 0000000..e96439a
--- /dev/null
@@ -0,0 +1,44 @@
+/** @file\r
+  XenBus Bus driver declarations.\r
+\r
+  Copyright (C) 2014, Citrix Ltd.\r
+\r
+  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
+#ifndef _XEN_XENBUS_XENBUSB_H\r
+#define _XEN_XENBUS_XENBUSB_H\r
+\r
+#include "XenBusDxe.h"\r
+\r
+#define XENBUS_DEVICE_PATH_TYPE_VBD 0x1\r
+struct _XENBUS_DEVICE_PATH {\r
+  VENDOR_DEVICE_PATH  Vendor;\r
+  UINT8               Type;\r
+  UINT16              DeviceId;\r
+};\r
+\r
+\r
+/**\r
+  Perform XenBus bus enumeration and install protocol for children.\r
+\r
+  Caller should ensure that it is the only one to call this function. This\r
+  function cannot be called concurrently.\r
+\r
+  @param Dev   A XENBUS_DEVICE instance.\r
+\r
+  @return      On success, XENSTORE_STATUS_SUCCESS. Otherwise an errno value\r
+               indicating the type of failure.\r
+**/\r
+XENSTORE_STATUS\r
+XenBusEnumerateBus (\r
+  XENBUS_DEVICE *Dev\r
+  );\r
+\r
+#endif /* _XEN_XENBUS_XENBUSB_H */\r