Home | History | Annotate | Download | only in rdma
      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 MTHCA_ABI_USER_H
     20 #define MTHCA_ABI_USER_H
     21 #include <linux/types.h>
     22 #define MTHCA_UVERBS_ABI_VERSION 1
     23 struct mthca_alloc_ucontext_resp {
     24   __u32 qp_tab_size;
     25   __u32 uarc_size;
     26 };
     27 struct mthca_alloc_pd_resp {
     28   __u32 pdn;
     29   __u32 reserved;
     30 };
     31 #define MTHCA_MR_DMASYNC 0x1
     32 struct mthca_reg_mr {
     33   __u32 mr_attrs;
     34   __u32 reserved;
     35 };
     36 struct mthca_create_cq {
     37   __u32 lkey;
     38   __u32 pdn;
     39   __u64 arm_db_page;
     40   __u64 set_db_page;
     41   __u32 arm_db_index;
     42   __u32 set_db_index;
     43 };
     44 struct mthca_create_cq_resp {
     45   __u32 cqn;
     46   __u32 reserved;
     47 };
     48 struct mthca_resize_cq {
     49   __u32 lkey;
     50   __u32 reserved;
     51 };
     52 struct mthca_create_srq {
     53   __u32 lkey;
     54   __u32 db_index;
     55   __u64 db_page;
     56 };
     57 struct mthca_create_srq_resp {
     58   __u32 srqn;
     59   __u32 reserved;
     60 };
     61 struct mthca_create_qp {
     62   __u32 lkey;
     63   __u32 reserved;
     64   __u64 sq_db_page;
     65   __u64 rq_db_page;
     66   __u32 sq_db_index;
     67   __u32 rq_db_index;
     68 };
     69 #endif
     70