16a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris/****************************************************************************
26a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ****************************************************************************
36a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***
46a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***   This header was automatically generated from a Linux kernel header
56a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***   of the same name, to make information necessary for userspace to
66a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***   call into the kernel available to libc.  It contains only constants,
76a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***   structures, and macros generated from the original header, and thus,
86a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***   contains no copyrightable information.
96a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***
106a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***   To edit the content of this header, modify the corresponding
116a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***   source file (e.g. under external/kernel-headers/original/) then
126a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***   run bionic/libc/kernel/tools/update_all.py
136a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***
146a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***   Any manual change here will be lost the next time this script will
156a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***   be run. You've been warned!
166a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ***
176a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ****************************************************************************
186a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris ****************************************************************************/
196a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris#ifndef MTHCA_ABI_USER_H
206a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris#define MTHCA_ABI_USER_H
216a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris#include <linux/types.h>
226a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris#define MTHCA_UVERBS_ABI_VERSION 1
236a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferrisstruct mthca_alloc_ucontext_resp {
246a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 qp_tab_size;
256a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 uarc_size;
266a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris};
276a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferrisstruct mthca_alloc_pd_resp {
286a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 pdn;
296a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 reserved;
306a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris};
316a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris#define MTHCA_MR_DMASYNC 0x1
326a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferrisstruct mthca_reg_mr {
336a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 mr_attrs;
346a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 reserved;
356a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris};
366a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferrisstruct mthca_create_cq {
376a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 lkey;
386a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 pdn;
396a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u64 arm_db_page;
406a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u64 set_db_page;
416a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 arm_db_index;
426a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 set_db_index;
436a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris};
446a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferrisstruct mthca_create_cq_resp {
456a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 cqn;
466a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 reserved;
476a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris};
486a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferrisstruct mthca_resize_cq {
496a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 lkey;
506a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 reserved;
516a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris};
526a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferrisstruct mthca_create_srq {
536a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 lkey;
546a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 db_index;
556a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u64 db_page;
566a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris};
576a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferrisstruct mthca_create_srq_resp {
586a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 srqn;
596a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 reserved;
606a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris};
616a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferrisstruct mthca_create_qp {
626a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 lkey;
636a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 reserved;
646a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u64 sq_db_page;
656a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u64 rq_db_page;
666a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 sq_db_index;
676a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris  __u32 rq_db_index;
686a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris};
696a9755d20a995756487bb1aafb7e954f4fd868a7Christopher Ferris#endif
70