···1+#ifndef _ASM_IA64_SN_FEATURE_SETS_H2+#define _ASM_IA64_SN_FEATURE_SETS_H3+4+/*5+ * SN PROM Features6+ *7+ * This file is subject to the terms and conditions of the GNU General Public8+ * License. See the file "COPYING" in the main directory of this archive9+ * for more details.10+ *11+ * Copyright (c) 2005 Silicon Graphics, Inc. All rights reserved.12+ */13+14+15+#include <asm/types.h>16+#include <asm/bitops.h>17+18+/* --------------------- PROM Features -----------------------------*/19+extern int sn_prom_feature_available(int id);20+21+#define MAX_PROM_FEATURE_SETS 222+23+/*24+ * The following defines features that may or may not be supported by the25+ * current PROM. The OS uses sn_prom_feature_available(feature) to test for26+ * the presence of a PROM feature. Down rev (old) PROMs will always test27+ * "false" for new features.28+ *29+ * Use:30+ * if (sn_prom_feature_available(PRF_FEATURE_XXX))31+ * ...32+ */33+34+/*35+ * Example: feature XXX36+ */37+#define PRF_FEATURE_XXX 038+39+40+41+/* --------------------- OS Features -------------------------------*/42+43+/*44+ * The following defines OS features that are optionally present in45+ * the operating system.46+ * During boot, PROM is notified of these features via a series of calls:47+ *48+ * ia64_sn_set_os_feature(feature1);49+ *50+ * Once enabled, a feature cannot be disabled.51+ *52+ * By default, features are disabled unless explicitly enabled.53+ */54+#define OSF_MCA_SLV_TO_OS_INIT_SLV 055+#define OSF_FEAT_LOG_SBES 156+57+#endif /* _ASM_IA64_SN_FEATURE_SETS_H */
+27-9
include/asm-ia64/sn/sn_sal.h
···80#define SN_SAL_RESERVED_DO_NOT_USE 0x0200006281#define SN_SAL_IOIF_GET_PCI_TOPOLOGY 0x020000648200083/*84 * Service-specific constants85 */···121/*122 * Error Handling Features123 */124-#define SAL_ERR_FEAT_MCA_SLV_TO_OS_INIT_SLV 0x1125-#define SAL_ERR_FEAT_LOG_SBES 0x2126#define SAL_ERR_FEAT_MFR_OVERRIDE 0x4127#define SAL_ERR_FEAT_SBE_THRESHOLD 0xffff0000128···153154 return (u32)(systab->sal_b_rev_major << 8 | systab->sal_b_rev_minor);155}156-157-/*158- * Specify the minimum PROM revsion required for this kernel.159- * Note that they're stored in hex format...160- */161-#define SN_SAL_MIN_VERSION 0x0404162163/*164 * Returns the master console nasid, if the call fails, return an illegal···333}334335/*336- * Set Error Handling Features337 */338static inline u64339ia64_sn_plat_set_error_handling_features(void)···1047 struct ia64_sal_retval rv;1048 SAL_CALL_NOLOCK(rv, SN_SAL_FAKE_PROM, 0, 0, 0, 0, 0, 0, 0);1049 return (rv.status == 0);0000000000000000000001050}10511052#endif /* _ASM_IA64_SN_SN_SAL_H */