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