diff options
Diffstat (limited to 'include/litmus/nvidia_info.h')
-rw-r--r-- | include/litmus/nvidia_info.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/litmus/nvidia_info.h b/include/litmus/nvidia_info.h new file mode 100644 index 000000000000..579301d77cf5 --- /dev/null +++ b/include/litmus/nvidia_info.h | |||
@@ -0,0 +1,37 @@ | |||
1 | #ifndef __LITMUS_NVIDIA_H | ||
2 | #define __LITMUS_NVIDIA_H | ||
3 | |||
4 | #include <linux/interrupt.h> | ||
5 | |||
6 | |||
7 | #include <litmus/litmus_softirq.h> | ||
8 | |||
9 | |||
10 | #define NV_DEVICE_NUM NR_LITMUS_SOFTIRQD | ||
11 | |||
12 | int init_nvidia_info(void); | ||
13 | |||
14 | int is_nvidia_func(void* func_addr); | ||
15 | |||
16 | void dump_nvidia_info(const struct tasklet_struct *t); | ||
17 | |||
18 | |||
19 | // Returns the Nvidia device # associated with provided tasklet and work_struct. | ||
20 | u32 get_tasklet_nv_device_num(const struct tasklet_struct *t); | ||
21 | u32 get_work_nv_device_num(const struct work_struct *t); | ||
22 | |||
23 | |||
24 | int init_nv_device_reg(void); | ||
25 | //int get_nv_device_id(struct task_struct* owner); | ||
26 | |||
27 | |||
28 | int reg_nv_device(int reg_device_id, int register_device); | ||
29 | |||
30 | struct task_struct* get_nv_device_owner(u32 target_device_id); | ||
31 | |||
32 | void lock_nv_registry(u32 reg_device_id, unsigned long* flags); | ||
33 | void unlock_nv_registry(u32 reg_device_id, unsigned long* flags); | ||
34 | |||
35 | void increment_nv_int_count(u32 device); | ||
36 | |||
37 | #endif | ||