Xenomai  3.0-rc6
features.h
1 /*
2  * Copyright (C) 2011 Philippe Gerum <rpm@xenomai.org>.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13 
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17  */
18 #ifndef _COBALT_SH_ASM_FEATURES_H
19 #define _COBALT_SH_ASM_FEATURES_H
20 
21 #include <linux/types.h>
22 
23 /* The ABI revision level we use on this arch. */
24 #define XENOMAI_ABI_REV 11UL
25 
26 #define XENOMAI_FEAT_DEP __xn_feat_generic_mask
27 
28 #define XENOMAI_FEAT_MAN __xn_feat_generic_man_mask
29 
30 #define XNARCH_HAVE_LLMULSHFT 1
31 #define XNARCH_HAVE_NODIV_LLIMD 1
32 
33 struct cobalt_featinfo_archdep {
34  __u32 hrclock_membase;
35 };
36 
37 #include <cobalt/uapi/asm-generic/features.h>
38 
39 static inline const char *get_feature_label(unsigned int feature)
40 {
41  return get_generic_feature_label(feature);
42 }
43 
44 #endif /* !_COBALT_SH_ASM_FEATURES_H */