]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Include/IndustryStandard/Xen/io/xenbus.h
OvmfPkg/IndustryStandard/Xen: replace MIT license text with SPDX ID
[mirror_edk2.git] / OvmfPkg / Include / IndustryStandard / Xen / io / xenbus.h
CommitLineData
6b621f95
AP
1/*****************************************************************************\r
2 * xenbus.h\r
3 *\r
4 * Xenbus protocol details.\r
5 *\r
6f21d772 6 * SPDX-License-Identifier: MIT\r
6b621f95
AP
7 *\r
8 * Copyright (C) 2005 XenSource Ltd.\r
9 */\r
10\r
11#ifndef _XEN_PUBLIC_IO_XENBUS_H\r
12#define _XEN_PUBLIC_IO_XENBUS_H\r
13\r
14/*\r
15 * The state of either end of the Xenbus, i.e. the current communication\r
16 * status of initialisation across the bus. States here imply nothing about\r
17 * the state of the connection between the driver and the kernel's device\r
18 * layers.\r
19 */\r
20enum xenbus_state {\r
21 XenbusStateUnknown = 0,\r
22\r
23 XenbusStateInitialising = 1,\r
24\r
25 /*\r
26 * InitWait: Finished early initialisation but waiting for information\r
27 * from the peer or hotplug scripts.\r
28 */\r
29 XenbusStateInitWait = 2,\r
30\r
31 /*\r
32 * Initialised: Waiting for a connection from the peer.\r
33 */\r
34 XenbusStateInitialised = 3,\r
35\r
36 XenbusStateConnected = 4,\r
37\r
38 /*\r
39 * Closing: The device is being closed due to an error or an unplug event.\r
40 */\r
41 XenbusStateClosing = 5,\r
42\r
43 XenbusStateClosed = 6,\r
44\r
45 /*\r
46 * Reconfiguring: The device is being reconfigured.\r
47 */\r
48 XenbusStateReconfiguring = 7,\r
49\r
50 XenbusStateReconfigured = 8\r
51};\r
52typedef enum xenbus_state XenbusState;\r
53\r
54#endif /* _XEN_PUBLIC_IO_XENBUS_H */\r
55\r
56/*\r
57 * Local variables:\r
58 * mode: C\r
59 * c-file-style: "BSD"\r
60 * c-basic-offset: 4\r
61 * tab-width: 4\r
62 * indent-tabs-mode: nil\r
63 * End:\r
64 */\r