18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/****************************************************************************** 38c2ecf20Sopenharmony_ci * features.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Query the features reported by Xen. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Copyright (c) 2006, Ian Campbell 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#ifndef __XEN_FEATURES_H__ 118c2ecf20Sopenharmony_ci#define __XEN_FEATURES_H__ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#include <xen/interface/features.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_civoid xen_setup_features(void); 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciextern u8 xen_features[XENFEAT_NR_SUBMAPS * 32]; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_cistatic inline int xen_feature(int flag) 208c2ecf20Sopenharmony_ci{ 218c2ecf20Sopenharmony_ci return xen_features[flag]; 228c2ecf20Sopenharmony_ci} 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#endif /* __ASM_XEN_FEATURES_H__ */ 25