diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2011-06-02 16:12:13 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2011-06-02 16:12:13 -0400 |
commit | 46e1995ef071f61cd1e21e61857c7ce66cac2022 (patch) | |
tree | 04d28ecbc954dfd962f7ec033660aba874d54561 /include | |
parent | ed2742a29674222173147b73f223bc7be01e1eaf (diff) |
LibLitmus2010 changes to support klitirqd and Nvidia GPUs. Changes mostly related to k-FMLP.wip-pai
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/litmus.h b/include/litmus.h index 52435d8..035d1c3 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -49,7 +49,8 @@ int sporadic_task_ns( | |||
49 | /* file descriptor attached shared objects support */ | 49 | /* file descriptor attached shared objects support */ |
50 | typedef enum { | 50 | typedef enum { |
51 | FMLP_SEM = 0, | 51 | FMLP_SEM = 0, |
52 | SRP_SEM = 1, | 52 | KFMLP_SEM = 1, |
53 | SRP_SEM = 2, | ||
53 | } obj_type_t; | 54 | } obj_type_t; |
54 | 55 | ||
55 | int od_openx(int fd, obj_type_t type, int obj_id, void* config); | 56 | int od_openx(int fd, obj_type_t type, int obj_id, void* config); |
@@ -64,6 +65,10 @@ static inline int od_open(int fd, obj_type_t type, int obj_id) | |||
64 | int litmus_lock(int od); | 65 | int litmus_lock(int od); |
65 | int litmus_unlock(int od); | 66 | int litmus_unlock(int od); |
66 | 67 | ||
68 | /* nvidia graphics cards */ | ||
69 | int register_nv_device(int nv_device_id); | ||
70 | int unregister_nv_device(int nv_device_id); | ||
71 | |||
67 | /* job control*/ | 72 | /* job control*/ |
68 | int get_job_no(unsigned int* job_no); | 73 | int get_job_no(unsigned int* job_no); |
69 | int wait_for_job_release(unsigned int job_no); | 74 | int wait_for_job_release(unsigned int job_no); |
@@ -120,6 +125,11 @@ static inline int open_fmlp_sem(int fd, int name) | |||
120 | return od_open(fd, FMLP_SEM, name); | 125 | return od_open(fd, FMLP_SEM, name); |
121 | } | 126 | } |
122 | 127 | ||
128 | static inline int open_kfmlp_sem(int fd, int name, void* arg) | ||
129 | { | ||
130 | return od_openx(fd, KFMLP_SEM, name, arg); | ||
131 | } | ||
132 | |||
123 | static inline int open_srp_sem(int fd, int name) | 133 | static inline int open_srp_sem(int fd, int name) |
124 | { | 134 | { |
125 | return od_open(fd, SRP_SEM, name); | 135 | return od_open(fd, SRP_SEM, name); |