14 #ifndef PHOTON_EVENT_H 15 #define PHOTON_EVENT_H 23 #define PHOTON_EVENT_OK 0x00 24 #define PHOTON_EVENT_ERROR 0x01 25 #define PHOTON_EVENT_NONE 0x02 26 #define PHOTON_EVENT_REQCOMP 0x04 27 #define PHOTON_EVENT_REQFOUND 0x05 28 #define PHOTON_EVENT_NOTIMPL 0x06 30 #define PHOTON_EFLAG_LEDG 0x00 31 #define PHOTON_EFLAG_PACK 0x01 33 #define PHOTON_EFLAG_ONE 0x00 34 #define PHOTON_EFLAG_TWO 0x01 36 #define PHOTON_ETYPE_DATA 0x00 37 #define PHOTON_ETYPE_NTFY 0x01 39 #define ENCODE_RCQ_32(t,l,f,c,p) ((((((uint32_t)t)<<15) | \ 40 (((uint16_t)l)<<14) | \ 41 (((uint16_t)f)<<13) | \ 42 ((uint16_t)c)) << 16) | \ 44 #define DECODE_RCQ_32_PROC(v) ((uint32_t)v<<16>>16) 45 #define DECODE_RCQ_32_CURR(v) ((uint32_t)v<<3>>19) 46 #define DECODE_RCQ_32_FLAG(v) ((uint32_t)v<<2>>31) 47 #define DECODE_RCQ_32_LEAD(v) ((uint32_t)v<<1>>31) 48 #define DECODE_RCQ_32_TYPE(v) ((uint32_t)v>>31) 50 #define ENCODE_RCQ_64_CURR(v) ((uint64_t)v<<32) 51 #define DECODE_RCQ_64_CURR(v) ((uint64_t)v>>32) PHOTON_INTERNAL int __photon_get_nevents(int proc, int max, photon_rid **id, int *n)
PHOTON_INTERNAL int __photon_wait_event(photonRequest req)
PHOTON_INTERNAL int __photon_handle_send_event(photonRequest req, photon_rid rid)
uint64_t photon_rid
The Photon request ID.
PHOTON_INTERNAL int __photon_nbpop_ledger(photonRequest req)
PHOTON_INTERNAL int __photon_get_event(int proc, photon_rid *id)
PHOTON_INTERNAL int __photon_handle_recv_event(photon_rid id)
PHOTON_INTERNAL int __photon_handle_cq_event(photonRequest req, photon_rid rid, photonRequest *rreq)
PHOTON_INTERNAL int __photon_nbpop_sr(photonRequest req)
PHOTON_INTERNAL int __photon_nbpop_event(photonRequest req)
struct photon_req_t * photonRequest
PHOTON_INTERNAL int __photon_try_one_event(photonRequest *rreq)
PHOTON_INTERNAL int __photon_get_revent(int proc, photon_rid *id, uint64_t *imm)
PHOTON_INTERNAL int __photon_get_nrevents(int proc, int max, photon_rid **id, uint64_t **imms, int *n)
PHOTON_INTERNAL int __photon_handle_cq_special(photon_rid rid)
PHOTON_INTERNAL int __photon_wait_ledger(photonRequest req)