xenbus.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* SPDX-License-Identifier: MIT */
  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. /*
  12. * The state of either end of the Xenbus, i.e. the current communication
  13. * status of initialisation across the bus. States here imply nothing about
  14. * the state of the connection between the driver and the kernel's device
  15. * layers.
  16. */
  17. enum xenbus_state {
  18. XenbusStateUnknown = 0,
  19. XenbusStateInitialising = 1,
  20. /*
  21. * InitWait: Finished early initialisation but waiting for information
  22. * from the peer or hotplug scripts.
  23. */
  24. XenbusStateInitWait = 2,
  25. /*
  26. * Initialised: Waiting for a connection from the peer.
  27. */
  28. XenbusStateInitialised = 3,
  29. XenbusStateConnected = 4,
  30. /*
  31. * Closing: The device is being closed due to an error or an unplug event.
  32. */
  33. XenbusStateClosing = 5,
  34. XenbusStateClosed = 6,
  35. /*
  36. * Reconfiguring: The device is being reconfigured.
  37. */
  38. XenbusStateReconfiguring = 7,
  39. XenbusStateReconfigured = 8
  40. };
  41. typedef enum xenbus_state XenbusState;
  42. #endif /* _XEN_PUBLIC_IO_XENBUS_H */
  43. /*
  44. * Local variables:
  45. * mode: C
  46. * c-file-style: "BSD"
  47. * c-basic-offset: 4
  48. * tab-width: 4
  49. * indent-tabs-mode: nil
  50. * End:
  51. */