bfin: remove inline keyword
[xenomai-head.git] / include / asm-nios2 / features.h
blob4910b897d560678df84c051e99402004849282a4
1 /*
2 * Copyright (C) 2009 Philippe Gerum <rpm@xenomai.org>.
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.
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.
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.
19 #ifndef _XENO_ASM_NIOS2_FEATURES_H
20 #define _XENO_ASM_NIOS2_FEATURES_H
22 struct xnfeatinfo_nios2 {
23 unsigned long hrclock_membase;
26 #define xnfeatinfo_archdep xnfeatinfo_nios2
28 #include <asm-generic/xenomai/features.h>
30 #ifdef __KERNEL__
31 #include <asm/xenomai/hal.h>
32 static inline void collect_arch_features(struct xnfeatinfo *finfo)
34 finfo->feat_arch.hrclock_membase = RTHAL_CLOCK_MEMBASE;
36 #endif
38 /* The ABI revision level we use on this arch. */
39 #define XENOMAI_ABI_REV 3UL
41 #define XENOMAI_FEAT_DEP __xn_feat_generic_mask
43 #define XENOMAI_FEAT_MAN __xn_feat_generic_man_mask
45 static inline int check_abi_revision(unsigned long abirev)
47 return abirev == XENOMAI_ABI_REV;
50 static inline const char *get_feature_label(unsigned feature)
52 return get_generic_feature_label(feature);
55 #define XNARCH_HAVE_LLMULSHFT 1
56 #define XNARCH_HAVE_NODIV_LLIMD 1
57 #define XNARCH_HAVE_NONPRIV_TSC 1
59 #endif /* !_XENO_ASM_NIOS2_FEATURES_H */