#ifndef _P30_TYPES_H_
#define _P30_TYPES_H_
-#ifdef __linux__
+#ifdef __KERNEL__
+# include <linux/time.h>
# include <asm/types.h>
# include <asm/timex.h>
-#else
+#else /* !__KERNEL__ */
# include <sys/types.h>
+# include <sys/time.h>
typedef u_int32_t __u32;
typedef u_int64_t __u64;
-#endif
-
-#ifdef __KERNEL__
-# include <linux/time.h>
-#else
-# include <sys/time.h>
# define do_gettimeofday(tv) gettimeofday(tv, NULL)
-#endif
+# ifndef cycles_t
+typedef unsigned long cycles_t;
+# endif
+#endif /* !__KERNEL__ */
+
+#include <portals/errno.h>
typedef __u64 ptl_nid_t;
typedef __u32 ptl_pid_t;
PTL_EVENT_PUT,
PTL_EVENT_REPLY,
PTL_EVENT_ACK,
- PTL_EVENT_SENT
+ PTL_EVENT_SENT,
+ PTL_EVENT_UNLINK,
} ptl_event_kind_t;
#define PTL_SEQ_BASETYPE long
#pragma pack(push, 4)
#endif
typedef struct {
- ptl_event_kind_t type;
- ptl_process_id_t initiator;
- ptl_pt_index_t portal;
- ptl_match_bits_t match_bits;
- ptl_size_t rlength, mlength, offset;
- ptl_handle_me_t unlinked_me;
- ptl_md_t mem_desc;
- ptl_hdr_data_t hdr_data;
- struct timeval arrival_time;
+ ptl_event_kind_t type;
+ ptl_err_t status;
+ int unlinked;
+ ptl_process_id_t initiator;
+ ptl_pt_index_t portal;
+ ptl_match_bits_t match_bits;
+ ptl_size_t rlength;
+ ptl_size_t mlength;
+ ptl_size_t offset;
+ ptl_md_t mem_desc;
+ ptl_hdr_data_t hdr_data;
+ struct timeval arrival_time;
+
volatile ptl_seq_t sequence;
-} ptl_event_t;
+} __attribute__((packed)) ptl_event_t;
#ifdef __CYGWIN__
#pragma pop
#endif