18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*****************************************************************************
38c2ecf20Sopenharmony_ci * xenbus.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Xenbus protocol details.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (C) 2005 XenSource Ltd.
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifndef _XEN_PUBLIC_IO_XENBUS_H
118c2ecf20Sopenharmony_ci#define _XEN_PUBLIC_IO_XENBUS_H
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci/* The state of either end of the Xenbus, i.e. the current communication
148c2ecf20Sopenharmony_ci   status of initialisation across the bus.  States here imply nothing about
158c2ecf20Sopenharmony_ci   the state of the connection between the driver and the kernel's device
168c2ecf20Sopenharmony_ci   layers.  */
178c2ecf20Sopenharmony_cienum xenbus_state
188c2ecf20Sopenharmony_ci{
198c2ecf20Sopenharmony_ci	XenbusStateUnknown      = 0,
208c2ecf20Sopenharmony_ci	XenbusStateInitialising = 1,
218c2ecf20Sopenharmony_ci	XenbusStateInitWait     = 2,  /* Finished early
228c2ecf20Sopenharmony_ci					 initialisation, but waiting
238c2ecf20Sopenharmony_ci					 for information from the peer
248c2ecf20Sopenharmony_ci					 or hotplug scripts. */
258c2ecf20Sopenharmony_ci	XenbusStateInitialised  = 3,  /* Initialised and waiting for a
268c2ecf20Sopenharmony_ci					 connection from the peer. */
278c2ecf20Sopenharmony_ci	XenbusStateConnected    = 4,
288c2ecf20Sopenharmony_ci	XenbusStateClosing      = 5,  /* The device is being closed
298c2ecf20Sopenharmony_ci					 due to an error or an unplug
308c2ecf20Sopenharmony_ci					 event. */
318c2ecf20Sopenharmony_ci	XenbusStateClosed       = 6,
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci	/*
348c2ecf20Sopenharmony_ci	* Reconfiguring: The device is being reconfigured.
358c2ecf20Sopenharmony_ci	*/
368c2ecf20Sopenharmony_ci	XenbusStateReconfiguring = 7,
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci	XenbusStateReconfigured  = 8
398c2ecf20Sopenharmony_ci};
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci#endif /* _XEN_PUBLIC_IO_XENBUS_H */
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci/*
448c2ecf20Sopenharmony_ci * Local variables:
458c2ecf20Sopenharmony_ci *  c-file-style: "linux"
468c2ecf20Sopenharmony_ci *  indent-tabs-mode: t
478c2ecf20Sopenharmony_ci *  c-indent-level: 8
488c2ecf20Sopenharmony_ci *  c-basic-offset: 8
498c2ecf20Sopenharmony_ci *  tab-width: 8
508c2ecf20Sopenharmony_ci * End:
518c2ecf20Sopenharmony_ci */
52