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