Go to the documentation of this file.
22 #define GRU_BASENAME "gru"
23 #define GRU_FULLNAME "/dev/gru"
24 #define GRU_IOCTL_NUM 'G'
30 #define GRU_MAX_OPEN_CONTEXTS 32
33 #define GRU_CREATE_CONTEXT _IOWR(GRU_IOCTL_NUM, 1, void *)
36 #define GRU_SET_CONTEXT_OPTION _IOWR(GRU_IOCTL_NUM, 4, void *)
39 #define GRU_USER_GET_EXCEPTION_DETAIL _IOWR(GRU_IOCTL_NUM, 6, void *)
42 #define GRU_USER_CALL_OS _IOWR(GRU_IOCTL_NUM, 8, void *)
45 #define GRU_USER_UNLOAD_CONTEXT _IOWR(GRU_IOCTL_NUM, 9, void *)
48 #define GRU_DUMP_CHIPLET_STATE _IOWR(GRU_IOCTL_NUM, 11, void *)
51 #define GRU_GET_GSEG_STATISTICS _IOWR(GRU_IOCTL_NUM, 12, void *)
54 #define GRU_USER_FLUSH_TLB _IOWR(GRU_IOCTL_NUM, 50, void *)
57 #define GRU_GET_CONFIG_INFO _IOWR(GRU_IOCTL_NUM, 51, void *)
60 #define GRU_KTEST _IOWR(GRU_IOCTL_NUM, 52, void *)
62 #define CONTEXT_WINDOW_BYTES(th) (GRU_GSEG_PAGESIZE * (th))
63 #define THREAD_POINTER(p, th) (p + GRU_GSEG_PAGESIZE * (th))
64 #define GSEG_START(cb) ((void *)((unsigned long)(cb) & ~(GRU_GSEG_PAGESIZE - 1)))
129 #define GRU_DUMP_MAGIC 0x3474ab6c