1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 /********************************************* 1 /****************************************************************************** 3 * features.h 2 * features.h 4 * 3 * 5 * Query the features reported by Xen. 4 * Query the features reported by Xen. 6 * 5 * 7 * Copyright (c) 2006, Ian Campbell 6 * Copyright (c) 2006, Ian Campbell 8 */ 7 */ 9 8 10 #ifndef __XEN_FEATURES_H__ 9 #ifndef __XEN_FEATURES_H__ 11 #define __XEN_FEATURES_H__ 10 #define __XEN_FEATURES_H__ 12 11 13 #include <xen/interface/features.h> 12 #include <xen/interface/features.h> 14 13 15 void xen_setup_features(void); 14 void xen_setup_features(void); 16 15 17 extern u8 xen_features[XENFEAT_NR_SUBMAPS * 32 16 extern u8 xen_features[XENFEAT_NR_SUBMAPS * 32]; 18 17 19 static inline int xen_feature(int flag) 18 static inline int xen_feature(int flag) 20 { 19 { 21 return xen_features[flag]; 20 return xen_features[flag]; 22 } 21 } 23 22 24 #endif /* __ASM_XEN_FEATURES_H__ */ 23 #endif /* __ASM_XEN_FEATURES_H__ */ 25 24
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.