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