• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef IB_USER_IOCTL_VERBS_H
20 #define IB_USER_IOCTL_VERBS_H
21 #include <rdma/rdma_user_ioctl.h>
22 #define UVERBS_UDATA_DRIVER_DATA_NS 1
23 #define UVERBS_UDATA_DRIVER_DATA_FLAG (1UL << UVERBS_ID_NS_SHIFT)
24 enum uverbs_default_objects {
25   UVERBS_OBJECT_DEVICE,
26   UVERBS_OBJECT_PD,
27   UVERBS_OBJECT_COMP_CHANNEL,
28   UVERBS_OBJECT_CQ,
29   UVERBS_OBJECT_QP,
30   UVERBS_OBJECT_SRQ,
31   UVERBS_OBJECT_AH,
32   UVERBS_OBJECT_MR,
33   UVERBS_OBJECT_MW,
34   UVERBS_OBJECT_FLOW,
35   UVERBS_OBJECT_XRCD,
36   UVERBS_OBJECT_RWQ_IND_TBL,
37   UVERBS_OBJECT_WQ,
38   UVERBS_OBJECT_LAST,
39 };
40 enum {
41   UVERBS_UHW_IN = UVERBS_UDATA_DRIVER_DATA_FLAG,
42   UVERBS_UHW_OUT,
43 };
44 enum uverbs_create_cq_cmd_attr_ids {
45   CREATE_CQ_HANDLE,
46   CREATE_CQ_CQE,
47   CREATE_CQ_USER_HANDLE,
48   CREATE_CQ_COMP_CHANNEL,
49   CREATE_CQ_COMP_VECTOR,
50   CREATE_CQ_FLAGS,
51   CREATE_CQ_RESP_CQE,
52 };
53 enum uverbs_destroy_cq_cmd_attr_ids {
54   DESTROY_CQ_HANDLE,
55   DESTROY_CQ_RESP,
56 };
57 enum uverbs_actions_cq_ops {
58   UVERBS_CQ_CREATE,
59   UVERBS_CQ_DESTROY,
60 };
61 #endif
62