blob: 9fda532973a5fd7dde5e728e640c00b119d45b98 [file] [log] [blame]
Jeremy Fitzhardingea42089d2007-07-17 18:37:04 -07001/*****************************************************************************
2 * xenbus.h
3 *
4 * Xenbus protocol details.
5 *
6 * Copyright (C) 2005 XenSource Ltd.
7 */
8
9#ifndef _XEN_PUBLIC_IO_XENBUS_H
10#define _XEN_PUBLIC_IO_XENBUS_H
11
12/* The state of either end of the Xenbus, i.e. the current communication
13 status of initialisation across the bus. States here imply nothing about
14 the state of the connection between the driver and the kernel's device
15 layers. */
16enum xenbus_state
17{
18 XenbusStateUnknown = 0,
19 XenbusStateInitialising = 1,
20 XenbusStateInitWait = 2, /* Finished early
21 initialisation, but waiting
22 for information from the peer
23 or hotplug scripts. */
24 XenbusStateInitialised = 3, /* Initialised and waiting for a
25 connection from the peer. */
26 XenbusStateConnected = 4,
27 XenbusStateClosing = 5, /* The device is being closed
28 due to an error or an unplug
29 event. */
Yosuke Iwamatsu89afb6e2009-10-13 17:22:27 -040030 XenbusStateClosed = 6,
Jeremy Fitzhardingea42089d2007-07-17 18:37:04 -070031
Yosuke Iwamatsu89afb6e2009-10-13 17:22:27 -040032 /*
33 * Reconfiguring: The device is being reconfigured.
34 */
35 XenbusStateReconfiguring = 7,
36
37 XenbusStateReconfigured = 8
Jeremy Fitzhardingea42089d2007-07-17 18:37:04 -070038};
39
40#endif /* _XEN_PUBLIC_IO_XENBUS_H */
41
42/*
43 * Local variables:
44 * c-file-style: "linux"
45 * indent-tabs-mode: t
46 * c-indent-level: 8
47 * c-basic-offset: 8
48 * tab-width: 8
49 * End:
50 */