XenBus.h 887 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /** @file
  2. XenBus Bus driver declarations.
  3. Copyright (C) 2014, Citrix Ltd.
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _XEN_XENBUS_XENBUSB_H
  7. #define _XEN_XENBUS_XENBUSB_H
  8. #include "XenBusDxe.h"
  9. #define XENBUS_DEVICE_PATH_TYPE_VBD 0x1
  10. struct _XENBUS_DEVICE_PATH {
  11. VENDOR_DEVICE_PATH Vendor;
  12. UINT8 Type;
  13. UINT16 DeviceId;
  14. };
  15. /**
  16. Perform XenBus bus enumeration and install protocol for children.
  17. Caller should ensure that it is the only one to call this function. This
  18. function cannot be called concurrently.
  19. @param Dev A XENBUS_DEVICE instance.
  20. @return On success, XENSTORE_STATUS_SUCCESS. Otherwise an errno value
  21. indicating the type of failure.
  22. **/
  23. XENSTORE_STATUS
  24. XenBusEnumerateBus (
  25. XENBUS_DEVICE *Dev
  26. );
  27. #endif /* _XEN_XENBUS_XENBUSB_H */