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