aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2011-06-02 16:12:13 -0400
committerGlenn Elliott <gelliott@cs.unc.edu>2011-06-02 16:12:13 -0400
commit46e1995ef071f61cd1e21e61857c7ce66cac2022 (patch)
tree04d28ecbc954dfd962f7ec033660aba874d54561 /include
parented2742a29674222173147b73f223bc7be01e1eaf (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.h12
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 */
50typedef enum { 50typedef 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
55int od_openx(int fd, obj_type_t type, int obj_id, void* config); 56int 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)
64int litmus_lock(int od); 65int litmus_lock(int od);
65int litmus_unlock(int od); 66int litmus_unlock(int od);
66 67
68/* nvidia graphics cards */
69int register_nv_device(int nv_device_id);
70int unregister_nv_device(int nv_device_id);
71
67/* job control*/ 72/* job control*/
68int get_job_no(unsigned int* job_no); 73int get_job_no(unsigned int* job_no);
69int wait_for_job_release(unsigned int job_no); 74int 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
128static inline int open_kfmlp_sem(int fd, int name, void* arg)
129{
130 return od_openx(fd, KFMLP_SEM, name, arg);
131}
132
123static inline int open_srp_sem(int fd, int name) 133static 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);