hc
2024-03-22 f63cd4c03ea42695d5f9b0e1798edd196923aae6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0 */
/******************************************************************************
 * features.h
 *
 * Query the features reported by Xen.
 *
 * Copyright (c) 2006, Ian Campbell
 */
 
#ifndef __XEN_FEATURES_H__
#define __XEN_FEATURES_H__
 
#include <xen/interface/features.h>
 
void xen_setup_features(void);
 
extern u8 xen_features[XENFEAT_NR_SUBMAPS * 32];
 
static inline int xen_feature(int flag)
{
   return xen_features[flag];
}
 
#endif /* __ASM_XEN_FEATURES_H__ */