0001
0002 #ifndef _ASM_X86_UV_UV_H
0003 #define _ASM_X86_UV_UV_H
0004
0005 enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC};
0006
0007 #ifdef CONFIG_X86_UV
0008 #include <linux/efi.h>
0009
0010 #define UV_PROC_NODE "sgi_uv"
0011
0012 static inline int uv(int uvtype)
0013 {
0014
0015 if (uvtype >= 0 && uvtype <= 30)
0016 return 1 << uvtype;
0017 return 1;
0018 }
0019
0020 extern unsigned long uv_systab_phys;
0021
0022 extern enum uv_system_type get_uv_system_type(void);
0023 static inline bool is_early_uv_system(void)
0024 {
0025 return uv_systab_phys && uv_systab_phys != EFI_INVALID_TABLE_ADDR;
0026 }
0027 extern int is_uv_system(void);
0028 extern int is_uv_hubbed(int uvtype);
0029 extern void uv_cpu_init(void);
0030 extern void uv_nmi_init(void);
0031 extern void uv_system_init(void);
0032
0033 #else
0034
0035 static inline enum uv_system_type get_uv_system_type(void) { return UV_NONE; }
0036 static inline bool is_early_uv_system(void) { return 0; }
0037 static inline int is_uv_system(void) { return 0; }
0038 static inline int is_uv_hubbed(int uv) { return 0; }
0039 static inline void uv_cpu_init(void) { }
0040 static inline void uv_system_init(void) { }
0041
0042 #endif
0043
0044 #endif