TianoCore EDK2 master
Loading...
Searching...
No Matches
xenbus.h
1/*****************************************************************************
2 * xenbus.h
3 *
4 * Xenbus protocol details.
5 *
6 * SPDX-License-Identifier: MIT
7 *
8 * Copyright (C) 2005 XenSource Ltd.
9 */
10
11#ifndef _XEN_PUBLIC_IO_XENBUS_H
12#define _XEN_PUBLIC_IO_XENBUS_H
13
14/*
15 * The state of either end of the Xenbus, i.e. the current communication
16 * status of initialisation across the bus. States here imply nothing about
17 * the state of the connection between the driver and the kernel's device
18 * layers.
19 */
20enum xenbus_state {
21 XenbusStateUnknown = 0,
22
23 XenbusStateInitialising = 1,
24
25 /*
26 * InitWait: Finished early initialisation but waiting for information
27 * from the peer or hotplug scripts.
28 */
29 XenbusStateInitWait = 2,
30
31 /*
32 * Initialised: Waiting for a connection from the peer.
33 */
34 XenbusStateInitialised = 3,
35
36 XenbusStateConnected = 4,
37
38 /*
39 * Closing: The device is being closed due to an error or an unplug event.
40 */
41 XenbusStateClosing = 5,
42
43 XenbusStateClosed = 6,
44
45 /*
46 * Reconfiguring: The device is being reconfigured.
47 */
48 XenbusStateReconfiguring = 7,
49
50 XenbusStateReconfigured = 8
51};
52
53typedef enum xenbus_state XenbusState;
54
55#endif /* _XEN_PUBLIC_IO_XENBUS_H */
56
57/*
58 * Local variables:
59 * mode: C
60 * c-file-style: "BSD"
61 * c-basic-offset: 4
62 * tab-width: 4
63 * indent-tabs-mode: nil
64 * End:
65 */