Xenomai  3.1
vdso.h
1 /*
2  * Copyright (C) 2009 Wolfgang Mauerer <wolfgang.mauerer@siemens.com>.
3  *
4  * Xenomai is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published
6  * by the Free Software Foundation; either version 2 of the License,
7  * or (at your option) any later version.
8  *
9  * Xenomai is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Xenomai; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17  * 02111-1307, USA.
18  */
19 #ifndef _COBALT_KERNEL_VDSO_H
20 #define _COBALT_KERNEL_VDSO_H
21 
22 #include <linux/time.h>
23 #include <asm/barrier.h>
24 #include <asm/atomic.h>
25 #include <asm/processor.h>
26 #include <cobalt/uapi/kernel/vdso.h>
27 
28 /*
29  * Define the available feature set here. We have a single feature
30  * defined for now.
31  */
32 #ifdef CONFIG_XENO_OPT_HOSTRT
33 #define XNVDSO_FEATURES XNVDSO_FEAT_HOST_REALTIME
34 #else
35 #define XNVDSO_FEATURES 0
36 #endif /* CONFIG_XENO_OPT_HOSTRT */
37 
38 extern struct xnvdso *nkvdso;
39 
40 static inline struct xnvdso_hostrt_data *get_hostrt_data(void)
41 {
42  return &nkvdso->hostrt_data;
43 }
44 
45 #endif /* _COBALT_KERNEL_VDSO_H */