1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
10 * User application interface file
13 #if defined (__KERNEL__)
14 #include <linux/uio.h>
15 #include <linux/types.h>
17 #include <sys/types.h>
21 #include <portals/types.h>
22 #include <portals/nal.h>
23 #include <portals/api.h>
24 #include <portals/nalids.h>
26 extern int __p30_initialized; /* for libraries & test codes */
27 extern int __p30_myr_initialized; /* that don't know if p30 */
28 extern int __p30_ip_initialized; /* had been initialized yet */
29 extern ptl_handle_ni_t __myr_ni_handle, __ip_ni_handle;
31 extern int __p30_myr_timeout; /* in seconds, for PtlNIBarrier, */
32 extern int __p30_ip_timeout; /* PtlReduce_all, & PtlBroadcast_all */
35 * Debugging flags reserved for the Portals reference library.
36 * These are not part of the API as described in the SAND report
37 * but are for the use of the maintainers of the reference implementation.
39 * It is not expected that the real implementations will export
42 #define PTL_DEBUG_NONE 0ul
43 #define PTL_DEBUG_ALL (0x0FFFul) /* Only the Portals flags */
45 #define __bit(x) ((unsigned long) 1<<(x))
46 #define PTL_DEBUG_PUT __bit(0)
47 #define PTL_DEBUG_GET __bit(1)
48 #define PTL_DEBUG_REPLY __bit(2)
49 #define PTL_DEBUG_ACK __bit(3)
50 #define PTL_DEBUG_DROP __bit(4)
51 #define PTL_DEBUG_REQUEST __bit(5)
52 #define PTL_DEBUG_DELIVERY __bit(6)
53 #define PTL_DEBUG_UNLINK __bit(7)
54 #define PTL_DEBUG_THRESHOLD __bit(8)
55 #define PTL_DEBUG_API __bit(9)
58 * These eight are reserved for the NAL to define
59 * It should probably give them better names...
61 #define PTL_DEBUG_NI_ALL (0xF000ul) /* Only the NAL flags */
62 #define PTL_DEBUG_NI0 __bit(24)
63 #define PTL_DEBUG_NI1 __bit(25)
64 #define PTL_DEBUG_NI2 __bit(26)
65 #define PTL_DEBUG_NI3 __bit(27)
66 #define PTL_DEBUG_NI4 __bit(28)
67 #define PTL_DEBUG_NI5 __bit(29)
68 #define PTL_DEBUG_NI6 __bit(30)
69 #define PTL_DEBUG_NI7 __bit(31)