aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/color_shm.h6
-rw-r--r--include/litmus.h12
2 files changed, 15 insertions, 3 deletions
diff --git a/include/color_shm.h b/include/color_shm.h
index a95ffde..f6ad8a5 100644
--- a/include/color_shm.h
+++ b/include/color_shm.h
@@ -1,13 +1,13 @@
1#include <sys/ioctl.h> 1#include <sys/ioctl.h>
2#include <fcntl.h> 2#include <fcntl.h>
3 3
4#define SHM_MAJOR 240 4#define SHM_MAJOR (240)
5 5
6struct ioctl_cmd { 6struct color_ioctl_cmd {
7 unsigned int color; 7 unsigned int color;
8 unsigned int bank; 8 unsigned int bank;
9}; 9};
10 10
11#define SET_COLOR_SHM_CMD \ 11#define SET_COLOR_SHM_CMD \
12 _IOW(SHM_MAJOR, 0x1, struct ioctl_cmd) 12 _IOW(SHM_MAJOR, 0x1, struct color_ioctl_cmd)
13 13
diff --git a/include/litmus.h b/include/litmus.h
index e96a4a6..aaa8d1c 100644
--- a/include/litmus.h
+++ b/include/litmus.h
@@ -148,6 +148,12 @@ int sporadic_clustered(lt_t e_ns, lt_t p_ns, int cluster);
148/** Convert microseconds to nanoseconds 148/** Convert microseconds to nanoseconds
149 * @param us Time units in microseconds */ 149 * @param us Time units in microseconds */
150#define us2ns(us) ((us)*1000LL) 150#define us2ns(us) ((us)*1000LL)
151#define ns2s(ns) ((ns)/1000000000LL)
152#define ns2ms(ns) ((ns)/1000000LL)
153#define ns2us(ns) ((ns)/1000LL)
154#define us2ms(us) ((us)/1000LL)
155#define us2s(us) ((us)/1000000LL)
156#define ms2s(ms) ((ms)/1000LL)
151 157
152/** 158/**
153 * Locking protocols for allocated shared objects 159 * Locking protocols for allocated shared objects
@@ -288,6 +294,12 @@ void exit_np(void);
288 */ 294 */
289int requested_to_preempt(void); 295int requested_to_preempt(void);
290 296
297/* pgm support */
298void enter_pgm_wait(void);
299void exit_pgm_wait(void);
300void enter_pgm_send(void);
301void exit_pgm_send(void);
302
291/***** Task System support *****/ 303/***** Task System support *****/
292/** 304/**
293 * Wait until task master releases all real-time tasks 305 * Wait until task master releases all real-time tasks