This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / xen / interface / io / xenbus.h
1 /*****************************************************************************
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 /*
13  * The state of either end of the Xenbus, i.e. the current communication
14  * status of initialisation across the bus.  States here imply nothing about
15  * the state of the connection between the driver and the kernel's device
16  * layers.
17  */
18 enum xenbus_state {
19     XenbusStateUnknown       = 0,
20
21     XenbusStateInitialising  = 1,
22
23     /*
24      * InitWait: Finished early initialisation but waiting for information
25      * from the peer or hotplug scripts.
26      */
27     XenbusStateInitWait      = 2,
28
29     /*
30      * Initialised: Waiting for a connection from the peer.
31      */
32     XenbusStateInitialised   = 3,
33
34     XenbusStateConnected     = 4,
35
36     /*
37      * Closing: The device is being closed due to an error or an unplug event.
38      */
39     XenbusStateClosing       = 5,
40
41     XenbusStateClosed        = 6
42 };
43 typedef enum xenbus_state XenbusState;
44
45 #endif /* _XEN_PUBLIC_IO_XENBUS_H */