sn_feature_sets.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef _ASM_IA64_SN_FEATURE_SETS_H
  2. #define _ASM_IA64_SN_FEATURE_SETS_H
  3. /*
  4. * SN PROM Features
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. *
  10. * Copyright (c) 2005-2006 Silicon Graphics, Inc. All rights reserved.
  11. */
  12. /* --------------------- PROM Features -----------------------------*/
  13. extern int sn_prom_feature_available(int id);
  14. #define MAX_PROM_FEATURE_SETS 2
  15. /*
  16. * The following defines features that may or may not be supported by the
  17. * current PROM. The OS uses sn_prom_feature_available(feature) to test for
  18. * the presence of a PROM feature. Down rev (old) PROMs will always test
  19. * "false" for new features.
  20. *
  21. * Use:
  22. * if (sn_prom_feature_available(PRF_XXX))
  23. * ...
  24. */
  25. #define PRF_PAL_CACHE_FLUSH_SAFE 0
  26. #define PRF_DEVICE_FLUSH_LIST 1
  27. #define PRF_HOTPLUG_SUPPORT 2
  28. #define PRF_CPU_DISABLE_SUPPORT 3
  29. /* --------------------- OS Features -------------------------------*/
  30. /*
  31. * The following defines OS features that are optionally present in
  32. * the operating system.
  33. * During boot, PROM is notified of these features via a series of calls:
  34. *
  35. * ia64_sn_set_os_feature(feature1);
  36. *
  37. * Once enabled, a feature cannot be disabled.
  38. *
  39. * By default, features are disabled unless explicitly enabled.
  40. *
  41. * These defines must be kept in sync with the corresponding
  42. * PROM definitions in feature_sets.h.
  43. */
  44. #define OSF_MCA_SLV_TO_OS_INIT_SLV 0
  45. #define OSF_FEAT_LOG_SBES 1
  46. #define OSF_ACPI_ENABLE 2
  47. #define OSF_PCISEGMENT_ENABLE 3
  48. #endif /* _ASM_IA64_SN_FEATURE_SETS_H */