Xenomai  3.0-rc7
corectl.h
1 /*
2  * Copyright (C) 2015 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_UAPI_CORECTL_H
19 #define _COBALT_UAPI_CORECTL_H
20 
21 #define _CC_COBALT_GET_VERSION 0
22 #define _CC_COBALT_GET_NR_PIPES 1
23 #define _CC_COBALT_GET_NR_TIMERS 2
24 
25 #define _CC_COBALT_GET_DEBUG 3
26 # define _CC_COBALT_DEBUG_ASSERT 1
27 # define _CC_COBALT_DEBUG_CONTEXT 2
28 # define _CC_COBALT_DEBUG_LOCKING 4
29 # define _CC_COBALT_DEBUG_USER 8
30 # define _CC_COBALT_DEBUG_MUTEX_RELAXED 16
31 # define _CC_COBALT_DEBUG_MUTEX_SLEEP 32
32 # define _CC_COBALT_DEBUG_POSIX_SYNCHRO 64
33 # define _CC_COBALT_DEBUG_LEGACY 128
34 # define _CC_COBALT_DEBUG_TRACE_RELAX 256
35 
36 #define _CC_COBALT_GET_POLICIES 4
37 # define _CC_COBALT_SCHED_FIFO 1
38 # define _CC_COBALT_SCHED_RR 2
39 # define _CC_COBALT_SCHED_WEAK 4
40 # define _CC_COBALT_SCHED_SPORADIC 8
41 # define _CC_COBALT_SCHED_QUOTA 16
42 # define _CC_COBALT_SCHED_TP 32
43 
44 #define _CC_COBALT_GET_WATCHDOG 5
45 #define _CC_COBALT_GET_CORE_STATUS 6
46 #define _CC_COBALT_START_CORE 7
47 #define _CC_COBALT_STOP_CORE 8
48 
49 enum cobalt_run_states {
50  COBALT_STATE_DISABLED,
51  COBALT_STATE_RUNNING,
52  COBALT_STATE_STOPPED,
53  COBALT_STATE_TEARDOWN,
54  COBALT_STATE_WARMUP,
55 };
56 
57 #endif /* !_COBALT_UAPI_CORECTL_H */