]>
Commit | Line | Data |
---|---|---|
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 | |
20 | enum xenbus_state {\r | |
ac0a286f | 21 | XenbusStateUnknown = 0,\r |
6b621f95 | 22 | \r |
ac0a286f | 23 | XenbusStateInitialising = 1,\r |
6b621f95 | 24 | \r |
ac0a286f MK |
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 | |
6b621f95 | 30 | \r |
ac0a286f MK |
31 | /*\r |
32 | * Initialised: Waiting for a connection from the peer.\r | |
33 | */\r | |
34 | XenbusStateInitialised = 3,\r | |
6b621f95 | 35 | \r |
ac0a286f | 36 | XenbusStateConnected = 4,\r |
6b621f95 | 37 | \r |
ac0a286f MK |
38 | /*\r |
39 | * Closing: The device is being closed due to an error or an unplug event.\r | |
40 | */\r | |
41 | XenbusStateClosing = 5,\r | |
6b621f95 | 42 | \r |
ac0a286f | 43 | XenbusStateClosed = 6,\r |
6b621f95 | 44 | \r |
ac0a286f MK |
45 | /*\r |
46 | * Reconfiguring: The device is being reconfigured.\r | |
47 | */\r | |
48 | XenbusStateReconfiguring = 7,\r | |
6b621f95 | 49 | \r |
ac0a286f | 50 | XenbusStateReconfigured = 8\r |
6b621f95 | 51 | };\r |
ac0a286f | 52 | \r |
6b621f95 AP |
53 | typedef enum xenbus_state XenbusState;\r |
54 | \r | |
55 | #endif /* _XEN_PUBLIC_IO_XENBUS_H */\r | |
56 | \r | |
57 | /*\r | |
58 | * Local variables:\r | |
59 | * mode: C\r | |
60 | * c-file-style: "BSD"\r | |
61 | * c-basic-offset: 4\r | |
62 | * tab-width: 4\r | |
63 | * indent-tabs-mode: nil\r | |
64 | * End:\r | |
65 | */\r |