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 MLX4_ABI_USER_H
     20 #define MLX4_ABI_USER_H
     21 #include <linux/types.h>
     22 #define MLX4_IB_UVERBS_NO_DEV_CAPS_ABI_VERSION 3
     23 #define MLX4_IB_UVERBS_ABI_VERSION 4
     24 struct mlx4_ib_alloc_ucontext_resp_v3 {
     25   __u32 qp_tab_size;
     26   __u16 bf_reg_size;
     27   __u16 bf_regs_per_page;
     28 };
     29 struct mlx4_ib_alloc_ucontext_resp {
     30   __u32 dev_caps;
     31   __u32 qp_tab_size;
     32   __u16 bf_reg_size;
     33   __u16 bf_regs_per_page;
     34   __u32 cqe_size;
     35 };
     36 struct mlx4_ib_alloc_pd_resp {
     37   __u32 pdn;
     38   __u32 reserved;
     39 };
     40 struct mlx4_ib_create_cq {
     41   __u64 buf_addr;
     42   __u64 db_addr;
     43 };
     44 struct mlx4_ib_create_cq_resp {
     45   __u32 cqn;
     46   __u32 reserved;
     47 };
     48 struct mlx4_ib_resize_cq {
     49   __u64 buf_addr;
     50 };
     51 struct mlx4_ib_create_srq {
     52   __u64 buf_addr;
     53   __u64 db_addr;
     54 };
     55 struct mlx4_ib_create_srq_resp {
     56   __u32 srqn;
     57   __u32 reserved;
     58 };
     59 struct mlx4_ib_create_qp {
     60   __u64 buf_addr;
     61   __u64 db_addr;
     62   __u8 log_sq_bb_count;
     63   __u8 log_sq_stride;
     64   __u8 sq_no_prefetch;
     65   __u8 reserved[5];
     66 };
     67 #endif
     68