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