xenbus.h 1.3 KB

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