xenbus.h 1.3 KB

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