Whamcloud - gitweb
b=2776
[fs/lustre-release.git] / lnet / include / lnet / p30.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  */
4 #ifndef _P30_H_
5 #define _P30_H_
6
7 #include "build_check.h"
8
9 /*
10  * p30.h
11  *
12  * User application interface file
13  */
14
15 #if defined (__KERNEL__)
16 #include <linux/uio.h>
17 #include <linux/types.h>
18 #else
19 #include <sys/types.h>
20 #include <sys/uio.h>
21 #endif
22
23 #include <portals/types.h>
24 #include <portals/nal.h>
25 #include <portals/api.h>
26 #include <portals/nalids.h>
27
28 /*
29  * Debugging flags reserved for the Portals reference library.
30  * These are not part of the API as described in the SAND report
31  * but are for the use of the maintainers of the reference implementation.
32  *
33  * It is not expected that the real implementations will export
34  * this functionality.
35  */
36 #define PTL_DEBUG_NONE          0ul
37 #define PTL_DEBUG_ALL           (0x0FFFul)      /* Only the Portals flags */
38
39 #define __bit(x)                ((unsigned long) 1<<(x))
40 #define PTL_DEBUG_PUT           __bit(0)
41 #define PTL_DEBUG_GET           __bit(1)
42 #define PTL_DEBUG_REPLY         __bit(2)
43 #define PTL_DEBUG_ACK           __bit(3)
44 #define PTL_DEBUG_DROP          __bit(4)
45 #define PTL_DEBUG_REQUEST       __bit(5)
46 #define PTL_DEBUG_DELIVERY      __bit(6)
47 #define PTL_DEBUG_UNLINK        __bit(7)
48 #define PTL_DEBUG_THRESHOLD     __bit(8)
49 #define PTL_DEBUG_API           __bit(9)
50
51 /*
52  * These eight are reserved for the NAL to define
53  * It should probably give them better names...
54  */
55 #define PTL_DEBUG_NI_ALL        (0xF000ul)      /* Only the NAL flags */
56 #define PTL_DEBUG_NI0           __bit(24)
57 #define PTL_DEBUG_NI1           __bit(25)
58 #define PTL_DEBUG_NI2           __bit(26)
59 #define PTL_DEBUG_NI3           __bit(27)
60 #define PTL_DEBUG_NI4           __bit(28)
61 #define PTL_DEBUG_NI5           __bit(29)
62 #define PTL_DEBUG_NI6           __bit(30)
63 #define PTL_DEBUG_NI7           __bit(31)
64
65 #endif