Go to the documentation of this file.
22 #define SN_HWPERF_MAXSTRING 128
40 #define sn_hwp_this_part f.fields.this_part
41 #define sn_hwp_is_shared f.fields.is_shared
42 #define sn_hwp_flags f.b.flags
45 #define SN_HWPERF_IS_NODE(x) ((x) && strstr((x)->name, "SHub"))
46 #define SN_HWPERF_IS_NODE_SHUB2(x) ((x) && strstr((x)->name, "SHub 2."))
47 #define SN_HWPERF_IS_IONODE(x) ((x) && strstr((x)->name, "TIO"))
48 #define SN_HWPERF_IS_NL3ROUTER(x) ((x) && strstr((x)->name, "NL3Router"))
49 #define SN_HWPERF_IS_NL4ROUTER(x) ((x) && strstr((x)->name, "NL4Router"))
50 #define SN_HWPERF_IS_OLDROUTER(x) ((x) && strstr((x)->name, "Router"))
51 #define SN_HWPERF_IS_ROUTER(x) (SN_HWPERF_IS_NL3ROUTER(x) || \
52 SN_HWPERF_IS_NL4ROUTER(x) || \
53 SN_HWPERF_IS_OLDROUTER(x))
54 #define SN_HWPERF_FOREIGN(x) ((x) && !(x)->sn_hwp_this_part && !(x)->sn_hwp_is_shared)
55 #define SN_HWPERF_SAME_OBJTYPE(x,y) ((SN_HWPERF_IS_NODE(x) && SN_HWPERF_IS_NODE(y)) ||\
56 (SN_HWPERF_IS_IONODE(x) && SN_HWPERF_IS_IONODE(y)) ||\
57 (SN_HWPERF_IS_ROUTER(x) && SN_HWPERF_IS_ROUTER(y)))
87 #define SN_HWPERF_ARG_ANY_CPU 0x7fffffffUL
88 #define SN_HWPERF_ARG_CPU_MASK 0x7fffffff00000000ULL
89 #define SN_HWPERF_ARG_USE_IPI_MASK 0x8000000000000000ULL
90 #define SN_HWPERF_ARG_OBJID_MASK 0x00000000ffffffffULL
95 #define SN_HWPERF_OP_MEM_COPYIN 0x1000
96 #define SN_HWPERF_OP_MEM_COPYOUT 0x2000
97 #define SN_HWPERF_OP_MASK 0x0fff
105 #define SN_HWPERF_GET_HEAPSIZE 1
113 #define SN_HWPERF_INSTALL_HEAP 2
121 #define SN_HWPERF_OBJECT_COUNT (10|SN_HWPERF_OP_MEM_COPYOUT)
133 #define SN_HWPERF_OBJECT_DISTANCE (11|SN_HWPERF_OP_MEM_COPYOUT)
142 #define SN_HWPERF_ENUM_OBJECTS (12|SN_HWPERF_OP_MEM_COPYOUT)
151 #define SN_HWPERF_ENUM_PORTS (13|SN_HWPERF_OP_MEM_COPYOUT)
163 #define SN_HWPERF_SET_MMRS (14|SN_HWPERF_OP_MEM_COPYIN)
164 #define SN_HWPERF_GET_MMRS (15|SN_HWPERF_OP_MEM_COPYOUT| \
165 SN_HWPERF_OP_MEM_COPYIN)
172 #define SN_HWPERF_ACQUIRE 16
180 #define SN_HWPERF_RELEASE 17
188 #define SN_HWPERF_FORCE_RELEASE 18
204 #define SN_HWPERF_GET_CPU_INFO (100|SN_HWPERF_OP_MEM_COPYOUT)
212 #define SN_HWPERF_GET_OBJ_NODE (101|SN_HWPERF_OP_MEM_COPYOUT)
220 #define SN_HWPERF_GET_NODE_NASID (102|SN_HWPERF_OP_MEM_COPYOUT)
232 #define SN_HWPERF_OP_OK 0
233 #define SN_HWPERF_OP_NOMEM 1
234 #define SN_HWPERF_OP_NO_PERM 2
235 #define SN_HWPERF_OP_IO_ERROR 3
236 #define SN_HWPERF_OP_BUSY 4
237 #define SN_HWPERF_OP_RECONFIGURE 253
238 #define SN_HWPERF_OP_INVAL 254