Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*****************************************************************************
0003  * xenbus.h
0004  *
0005  * Xenbus protocol details.
0006  *
0007  * Copyright (C) 2005 XenSource Ltd.
0008  */
0009 
0010 #ifndef _XEN_PUBLIC_IO_XENBUS_H
0011 #define _XEN_PUBLIC_IO_XENBUS_H
0012 
0013 /* The state of either end of the Xenbus, i.e. the current communication
0014    status of initialisation across the bus.  States here imply nothing about
0015    the state of the connection between the driver and the kernel's device
0016    layers.  */
0017 enum xenbus_state
0018 {
0019     XenbusStateUnknown      = 0,
0020     XenbusStateInitialising = 1,
0021     XenbusStateInitWait     = 2,  /* Finished early
0022                      initialisation, but waiting
0023                      for information from the peer
0024                      or hotplug scripts. */
0025     XenbusStateInitialised  = 3,  /* Initialised and waiting for a
0026                      connection from the peer. */
0027     XenbusStateConnected    = 4,
0028     XenbusStateClosing      = 5,  /* The device is being closed
0029                      due to an error or an unplug
0030                      event. */
0031     XenbusStateClosed       = 6,
0032 
0033     /*
0034     * Reconfiguring: The device is being reconfigured.
0035     */
0036     XenbusStateReconfiguring = 7,
0037 
0038     XenbusStateReconfigured  = 8
0039 };
0040 
0041 #endif /* _XEN_PUBLIC_IO_XENBUS_H */