Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
grulib.h File Reference

Go to the source code of this file.

Data Structures

struct  gru_get_gseg_statistics_req
 
struct  gru_create_context_req
 
struct  gru_unload_context_req
 
struct  gru_set_context_option_req
 
struct  gru_flush_tlb_req
 
struct  gru_dump_chiplet_state_req
 
struct  gru_dump_context_header
 
struct  gru_config_info
 

Macros

#define GRU_BASENAME   "gru"
 
#define GRU_FULLNAME   "/dev/gru"
 
#define GRU_IOCTL_NUM   'G'
 
#define GRU_MAX_OPEN_CONTEXTS   32
 
#define GRU_CREATE_CONTEXT   _IOWR(GRU_IOCTL_NUM, 1, void *)
 
#define GRU_SET_CONTEXT_OPTION   _IOWR(GRU_IOCTL_NUM, 4, void *)
 
#define GRU_USER_GET_EXCEPTION_DETAIL   _IOWR(GRU_IOCTL_NUM, 6, void *)
 
#define GRU_USER_CALL_OS   _IOWR(GRU_IOCTL_NUM, 8, void *)
 
#define GRU_USER_UNLOAD_CONTEXT   _IOWR(GRU_IOCTL_NUM, 9, void *)
 
#define GRU_DUMP_CHIPLET_STATE   _IOWR(GRU_IOCTL_NUM, 11, void *)
 
#define GRU_GET_GSEG_STATISTICS   _IOWR(GRU_IOCTL_NUM, 12, void *)
 
#define GRU_USER_FLUSH_TLB   _IOWR(GRU_IOCTL_NUM, 50, void *)
 
#define GRU_GET_CONFIG_INFO   _IOWR(GRU_IOCTL_NUM, 51, void *)
 
#define GRU_KTEST   _IOWR(GRU_IOCTL_NUM, 52, void *)
 
#define CONTEXT_WINDOW_BYTES(th)   (GRU_GSEG_PAGESIZE * (th))
 
#define THREAD_POINTER(p, th)   (p + GRU_GSEG_PAGESIZE * (th))
 
#define GSEG_START(cb)   ((void *)((unsigned long)(cb) & ~(GRU_GSEG_PAGESIZE - 1)))
 
#define GRU_DUMP_MAGIC   0x3474ab6c
 

Enumerations

enum  { sco_gseg_owner, sco_cch_req_slice, sco_blade_chiplet }
 
enum  { dcs_pid, dcs_gid }
 

Macro Definition Documentation

#define CONTEXT_WINDOW_BYTES (   th)    (GRU_GSEG_PAGESIZE * (th))

Definition at line 62 of file grulib.h.

#define GRU_BASENAME   "gru"

Definition at line 22 of file grulib.h.

#define GRU_CREATE_CONTEXT   _IOWR(GRU_IOCTL_NUM, 1, void *)

Definition at line 33 of file grulib.h.

#define GRU_DUMP_CHIPLET_STATE   _IOWR(GRU_IOCTL_NUM, 11, void *)

Definition at line 48 of file grulib.h.

#define GRU_DUMP_MAGIC   0x3474ab6c

Definition at line 129 of file grulib.h.

#define GRU_FULLNAME   "/dev/gru"

Definition at line 23 of file grulib.h.

#define GRU_GET_CONFIG_INFO   _IOWR(GRU_IOCTL_NUM, 51, void *)

Definition at line 57 of file grulib.h.

#define GRU_GET_GSEG_STATISTICS   _IOWR(GRU_IOCTL_NUM, 12, void *)

Definition at line 51 of file grulib.h.

#define GRU_IOCTL_NUM   'G'

Definition at line 24 of file grulib.h.

#define GRU_KTEST   _IOWR(GRU_IOCTL_NUM, 52, void *)

Definition at line 60 of file grulib.h.

#define GRU_MAX_OPEN_CONTEXTS   32

Definition at line 30 of file grulib.h.

#define GRU_SET_CONTEXT_OPTION   _IOWR(GRU_IOCTL_NUM, 4, void *)

Definition at line 36 of file grulib.h.

#define GRU_USER_CALL_OS   _IOWR(GRU_IOCTL_NUM, 8, void *)

Definition at line 42 of file grulib.h.

#define GRU_USER_FLUSH_TLB   _IOWR(GRU_IOCTL_NUM, 50, void *)

Definition at line 54 of file grulib.h.

#define GRU_USER_GET_EXCEPTION_DETAIL   _IOWR(GRU_IOCTL_NUM, 6, void *)

Definition at line 39 of file grulib.h.

#define GRU_USER_UNLOAD_CONTEXT   _IOWR(GRU_IOCTL_NUM, 9, void *)

Definition at line 45 of file grulib.h.

#define GSEG_START (   cb)    ((void *)((unsigned long)(cb) & ~(GRU_GSEG_PAGESIZE - 1)))

Definition at line 64 of file grulib.h.

#define THREAD_POINTER (   p,
  th 
)    (p + GRU_GSEG_PAGESIZE * (th))

Definition at line 63 of file grulib.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
sco_gseg_owner 
sco_cch_req_slice 
sco_blade_chiplet 

Definition at line 93 of file grulib.h.

anonymous enum
Enumerator:
dcs_pid 
dcs_gid 

Definition at line 113 of file grulib.h.