version.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /******************************************************************************
  2. * version.h
  3. *
  4. * Xen version, type, and compile information.
  5. *
  6. * Copyright (c) 2005, Nguyen Anh Quynh <aquynh@gmail.com>
  7. * Copyright (c) 2005, Keir Fraser <keir@xensource.com>
  8. */
  9. #ifndef __XEN_PUBLIC_VERSION_H__
  10. #define __XEN_PUBLIC_VERSION_H__
  11. /* NB. All ops return zero on success, except XENVER_version. */
  12. /* arg == NULL; returns major:minor (16:16). */
  13. #define XENVER_version 0
  14. /* arg == xen_extraversion_t. */
  15. #define XENVER_extraversion 1
  16. struct xen_extraversion {
  17. char extraversion[16];
  18. };
  19. #define XEN_EXTRAVERSION_LEN (sizeof(struct xen_extraversion))
  20. /* arg == xen_compile_info_t. */
  21. #define XENVER_compile_info 2
  22. struct xen_compile_info {
  23. char compiler[64];
  24. char compile_by[16];
  25. char compile_domain[32];
  26. char compile_date[32];
  27. };
  28. #define XENVER_capabilities 3
  29. struct xen_capabilities_info {
  30. char info[1024];
  31. };
  32. #define XEN_CAPABILITIES_INFO_LEN (sizeof(struct xen_capabilities_info))
  33. #define XENVER_changeset 4
  34. struct xen_changeset_info {
  35. char info[64];
  36. };
  37. #define XEN_CHANGESET_INFO_LEN (sizeof(struct xen_changeset_info))
  38. #define XENVER_platform_parameters 5
  39. struct xen_platform_parameters {
  40. xen_ulong_t virt_start;
  41. };
  42. #define XENVER_get_features 6
  43. struct xen_feature_info {
  44. unsigned int submap_idx; /* IN: which 32-bit submap to return */
  45. uint32_t submap; /* OUT: 32-bit submap */
  46. };
  47. /* Declares the features reported by XENVER_get_features. */
  48. #include <xen/interface/features.h>
  49. /* arg == NULL; returns host memory page size. */
  50. #define XENVER_pagesize 7
  51. /* arg == xen_domain_handle_t. */
  52. #define XENVER_guest_handle 8
  53. #endif /* __XEN_PUBLIC_VERSION_H__ */