]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/XenBusDxe/XenBus.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[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
10 #ifndef _XEN_XENBUS_XENBUSB_H
11 #define _XEN_XENBUS_XENBUSB_H
12
13 #include "XenBusDxe.h"
14
15 #define XENBUS_DEVICE_PATH_TYPE_VBD 0x1
16 struct _XENBUS_DEVICE_PATH {
17 VENDOR_DEVICE_PATH Vendor;
18 UINT8 Type;
19 UINT16 DeviceId;
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 */