Xenomai  3.1
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 /* bit 6 (64) formerly used for DEBUG_POSIX_SYNCHRO */
33 # define _CC_COBALT_DEBUG_LEGACY 128
34 # define _CC_COBALT_DEBUG_TRACE_RELAX 256
35 # define _CC_COBALT_DEBUG_NET 512
36 
37 #define _CC_COBALT_GET_POLICIES 4
38 # define _CC_COBALT_SCHED_FIFO 1
39 # define _CC_COBALT_SCHED_RR 2
40 # define _CC_COBALT_SCHED_WEAK 4
41 # define _CC_COBALT_SCHED_SPORADIC 8
42 # define _CC_COBALT_SCHED_QUOTA 16
43 # define _CC_COBALT_SCHED_TP 32
44 
45 #define _CC_COBALT_GET_WATCHDOG 5
46 #define _CC_COBALT_GET_CORE_STATUS 6
47 #define _CC_COBALT_START_CORE 7
48 #define _CC_COBALT_STOP_CORE 8
49 
50 #define _CC_COBALT_GET_NET_CONFIG 9
51 # define _CC_COBALT_NET 0x00000001
52 # define _CC_COBALT_NET_ETH_P_ALL 0x00000002
53 # define _CC_COBALT_NET_IPV4 0x00000004
54 # define _CC_COBALT_NET_ICMP 0x00000008
55 # define _CC_COBALT_NET_NETROUTING 0x00000010
56 # define _CC_COBALT_NET_ROUTER 0x00000020
57 # define _CC_COBALT_NET_UDP 0x00000040
58 # define _CC_COBALT_NET_AF_PACKET 0x00000080
59 # define _CC_COBALT_NET_TDMA 0x00000100
60 # define _CC_COBALT_NET_NOMAC 0x00000200
61 # define _CC_COBALT_NET_CFG 0x00000400
62 # define _CC_COBALT_NET_CAP 0x00000800
63 # define _CC_COBALT_NET_PROXY 0x00001000
64 
65 
66 enum cobalt_run_states {
67  COBALT_STATE_DISABLED,
68  COBALT_STATE_RUNNING,
69  COBALT_STATE_STOPPED,
70  COBALT_STATE_TEARDOWN,
71  COBALT_STATE_WARMUP,
72 };
73 
74 #endif /* !_COBALT_UAPI_CORECTL_H */