9 typedef u_int32_t __u32;
10 typedef u_int64_t __u64;
11 typedef unsigned long long cycles_t;
12 static inline cycles_t get_cycles(void) { return 0; }
15 typedef __u64 ptl_nid_t;
16 typedef __u32 ptl_pid_t;
17 typedef __u32 ptl_pt_index_t;
18 typedef __u32 ptl_ac_index_t;
19 typedef __u64 ptl_match_bits_t;
20 typedef __u64 ptl_hdr_data_t;
21 typedef __u32 ptl_size_t;
24 unsigned long nal_idx; /* which network interface */
25 __u64 cookie; /* which thing on that interface */
28 typedef ptl_handle_any_t ptl_handle_ni_t;
29 typedef ptl_handle_any_t ptl_handle_eq_t;
30 typedef ptl_handle_any_t ptl_handle_md_t;
31 typedef ptl_handle_any_t ptl_handle_me_t;
33 #define PTL_HANDLE_NONE \
34 ((const ptl_handle_any_t){.nal_idx = -1, .cookie = -1})
35 #define PTL_EQ_NONE PTL_HANDLE_NONE
37 static inline int PtlHandleEqual (ptl_handle_any_t h1, ptl_handle_any_t h2)
39 return (h1.nal_idx == h2.nal_idx && h1.cookie == h2.cookie);
42 #define PTL_NID_ANY ((ptl_nid_t) -1)
43 #define PTL_PID_ANY ((ptl_pid_t) -1)
47 ptl_pid_t pid; /* node id / process id */
61 struct page *kiov_page;
62 unsigned int kiov_len;
63 unsigned int kiov_offset;
73 ptl_handle_eq_t eventq;
77 /* Options for the MD structure */
78 #define PTL_MD_OP_PUT (1 << 0)
79 #define PTL_MD_OP_GET (1 << 1)
80 #define PTL_MD_MANAGE_REMOTE (1 << 2)
81 #define PTL_MD_AUTO_UNLINK (1 << 3)
82 #define PTL_MD_TRUNCATE (1 << 4)
83 #define PTL_MD_ACK_DISABLE (1 << 5)
84 #define PTL_MD_IOV (1 << 6)
85 #define PTL_MD_MAX_SIZE (1 << 7)
86 #define PTL_MD_KIOV (1 << 8)
88 #define PTL_MD_THRESH_INF (-1)
98 #define PTL_SEQ_BASETYPE long
99 typedef unsigned PTL_SEQ_BASETYPE ptl_seq_t;
100 #define PTL_SEQ_GT(a,b) (((signed PTL_SEQ_BASETYPE)((a) - (b))) > 0)
103 ptl_event_kind_t type;
104 ptl_process_id_t initiator;
105 ptl_pt_index_t portal;
106 ptl_match_bits_t match_bits;
107 ptl_size_t rlength, mlength, offset;
108 ptl_handle_me_t unlinked_me;
110 ptl_hdr_data_t hdr_data;
111 cycles_t arrival_time;
112 volatile ptl_seq_t sequence;
123 volatile ptl_seq_t sequence;
126 ptl_handle_any_t cb_eq_handle;
135 int max_match_entries; /* max number of match entries */
136 int max_mem_descriptors; /* max number of memory descriptors */
137 int max_event_queues; /* max number of event queues */
138 int max_atable_index; /* maximum access control list table index */
139 int max_ptable_index; /* maximum portals table index */
155 typedef int ptl_sr_value_t;