diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/color_shm.h | 6 | ||||
-rw-r--r-- | include/litmus.h | 12 |
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 | ||
6 | struct ioctl_cmd { | 6 | struct 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 | */ |
289 | int requested_to_preempt(void); | 295 | int requested_to_preempt(void); |
290 | 296 | ||
297 | /* pgm support */ | ||
298 | void enter_pgm_wait(void); | ||
299 | void exit_pgm_wait(void); | ||
300 | void enter_pgm_send(void); | ||
301 | void 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 |