direct-io.hg

annotate linux-2.6-xen-sparse/include/xen/features.h @ 8731:0e87a5bd6e8b

Unpack xen_features into an array of u8 'booleans'

This allows us to avoid including bitops.h all over the tree as well
as avoiding any potential endianness issues in the future.

Use __read_mostly on the xen_features array now that the tree is based
on a version of Linux which supports it.

Also export xen_features for use in modules.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
author Ian.Campbell@xensource.com
date Wed Feb 01 20:11:18 2006 +0000 (2006-02-01)
parents fd9b2c1bb577
children
rev   line source
Ian@8675 1 /******************************************************************************
Ian@8675 2 * features.h
Ian@8675 3 *
Ian@8675 4 * Query the features reported by Xen.
Ian@8675 5 *
Ian@8675 6 * Copyright (c) 2006, Ian Campbell
Ian@8675 7 */
Ian@8675 8
Ian@8675 9 #ifndef __ASM_XEN_FEATURES_H__
Ian@8675 10 #define __ASM_XEN_FEATURES_H__
Ian@8675 11
cl349@8706 12 #include <xen/interface/version.h>
Ian@8675 13
Ian@8675 14 extern void setup_xen_features(void);
Ian@8675 15
Ian@8731 16 extern u8 xen_features[XENFEAT_NR_SUBMAPS * 32];
Ian@8675 17
Ian@8731 18 #define xen_feature(flag) (xen_features[flag])
Ian@8675 19
kaf24@8701 20 #endif /* __ASM_XEN_FEATURES_H__ */