Xenomai  3.0-rc3
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_RELAX 16
31 
32 #define _CC_COBALT_GET_POLICIES 4
33 # define _CC_COBALT_SCHED_FIFO 1
34 # define _CC_COBALT_SCHED_RR 2
35 # define _CC_COBALT_SCHED_WEAK 4
36 # define _CC_COBALT_SCHED_SPORADIC 8
37 # define _CC_COBALT_SCHED_QUOTA 16
38 # define _CC_COBALT_SCHED_TP 32
39 
40 #define _CC_COBALT_GET_WATCHDOG 5
41 #define _CC_COBALT_GET_CORE_STATUS 6
42 #define _CC_COBALT_START_CORE 7
43 #define _CC_COBALT_STOP_CORE 8
44 
45 enum cobalt_run_states {
46  COBALT_STATE_DISABLED,
47  COBALT_STATE_RUNNING,
48  COBALT_STATE_STOPPED,
49  COBALT_STATE_TEARDOWN,
50  COBALT_STATE_WARMUP,
51 };
52 
53 #endif /* !_COBALT_UAPI_CORECTL_H */