hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 * Copyright (C) 2015 Philippe Gerum <rpm@xenomai.org>.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
 */
#ifndef _COBALT_UAPI_CORECTL_H
#define _COBALT_UAPI_CORECTL_H
 
#define _CC_COBALT_GET_VERSION        0
#define _CC_COBALT_GET_NR_PIPES        1
#define _CC_COBALT_GET_NR_TIMERS    2
 
#define _CC_COBALT_GET_DEBUG            3
#   define _CC_COBALT_DEBUG_ASSERT        1
#   define _CC_COBALT_DEBUG_CONTEXT        2
#   define _CC_COBALT_DEBUG_LOCKING        4
#   define _CC_COBALT_DEBUG_USER        8
#   define _CC_COBALT_DEBUG_MUTEX_RELAXED    16
#   define _CC_COBALT_DEBUG_MUTEX_SLEEP        32
/* bit 6 (64) formerly used for DEBUG_POSIX_SYNCHRO */
#   define _CC_COBALT_DEBUG_LEGACY        128
#   define _CC_COBALT_DEBUG_TRACE_RELAX        256
#   define _CC_COBALT_DEBUG_NET            512
 
#define _CC_COBALT_GET_POLICIES        4
#   define _CC_COBALT_SCHED_FIFO    1
#   define _CC_COBALT_SCHED_RR        2
#   define _CC_COBALT_SCHED_WEAK    4
#   define _CC_COBALT_SCHED_SPORADIC    8
#   define _CC_COBALT_SCHED_QUOTA    16
#   define _CC_COBALT_SCHED_TP        32
 
#define _CC_COBALT_GET_WATCHDOG        5
#define _CC_COBALT_GET_CORE_STATUS    6
#define _CC_COBALT_START_CORE        7
#define _CC_COBALT_STOP_CORE        8
 
#define _CC_COBALT_GET_NET_CONFIG    9
#   define _CC_COBALT_NET        0x00000001
#   define _CC_COBALT_NET_ETH_P_ALL    0x00000002
#   define _CC_COBALT_NET_IPV4        0x00000004
#   define _CC_COBALT_NET_ICMP        0x00000008
#   define _CC_COBALT_NET_NETROUTING    0x00000010
#   define _CC_COBALT_NET_ROUTER    0x00000020
#   define _CC_COBALT_NET_UDP        0x00000040
#   define _CC_COBALT_NET_AF_PACKET    0x00000080
#   define _CC_COBALT_NET_TDMA        0x00000100
#   define _CC_COBALT_NET_NOMAC        0x00000200
#   define _CC_COBALT_NET_CFG        0x00000400
#   define _CC_COBALT_NET_CAP        0x00000800
#   define _CC_COBALT_NET_PROXY        0x00001000
 
 
enum cobalt_run_states {
   COBALT_STATE_DISABLED,
   COBALT_STATE_RUNNING,
   COBALT_STATE_STOPPED,
   COBALT_STATE_TEARDOWN,
   COBALT_STATE_WARMUP,
};
 
#endif /* !_COBALT_UAPI_CORECTL_H */