Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / xen / interface / io / xenbus.h
blob9cd0cd7c6709694575262795d20fa8cfa4c20d0b
1 /* SPDX-License-Identifier: MIT */
2 /*****************************************************************************
3 * xenbus.h
5 * Xenbus protocol details.
7 * Copyright (C) 2005 XenSource Ltd.
8 */
10 #ifndef _XEN_PUBLIC_IO_XENBUS_H
11 #define _XEN_PUBLIC_IO_XENBUS_H
14 * The state of either end of the Xenbus, i.e. the current communication
15 * status of initialisation across the bus. States here imply nothing about
16 * the state of the connection between the driver and the kernel's device
17 * layers.
19 enum xenbus_state {
20 XenbusStateUnknown = 0,
22 XenbusStateInitialising = 1,
25 * InitWait: Finished early initialisation but waiting for information
26 * from the peer or hotplug scripts.
28 XenbusStateInitWait = 2,
31 * Initialised: Waiting for a connection from the peer.
33 XenbusStateInitialised = 3,
35 XenbusStateConnected = 4,
38 * Closing: The device is being closed due to an error or an unplug event.
40 XenbusStateClosing = 5,
42 XenbusStateClosed = 6,
45 * Reconfiguring: The device is being reconfigured.
47 XenbusStateReconfiguring = 7,
49 XenbusStateReconfigured = 8
51 typedef enum xenbus_state XenbusState;
53 #endif /* _XEN_PUBLIC_IO_XENBUS_H */
56 * Local variables:
57 * mode: C
58 * c-file-style: "BSD"
59 * c-basic-offset: 4
60 * tab-width: 4
61 * indent-tabs-mode: nil
62 * End: