blob: 494a9f5e7cad6d8d9c44e1398e06ea1310dfbd1e [file] [log] [blame]
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001/****************************************************************************
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 NES_ABI_USER_H
20#define NES_ABI_USER_H
21#include <linux/types.h>
22#define NES_ABI_USERSPACE_VER 2
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define NES_ABI_KERNEL_VER 2
25struct nes_alloc_ucontext_req {
26 __u32 reserved32;
27 __u8 userspace_ver;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 __u8 reserved8[3];
30};
31struct nes_alloc_ucontext_resp {
32 __u32 max_pds;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 __u32 max_qps;
35 __u32 wq_size;
36 __u8 virtwq;
37 __u8 kernel_ver;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 __u8 reserved[2];
40};
41struct nes_alloc_pd_resp {
42 __u32 pd_id;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __u32 mmap_db_index;
45};
46struct nes_create_cq_req {
47 __u64 user_cq_buffer;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __u32 mcrqf;
50 __u8 reserved[4];
51};
52struct nes_create_qp_req {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 __u64 user_wqe_buffers;
55 __u64 user_qp_buffer;
56};
57enum iwnes_memreg_type {
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 IWNES_MEMREG_TYPE_MEM = 0x0000,
60 IWNES_MEMREG_TYPE_QP = 0x0001,
61 IWNES_MEMREG_TYPE_CQ = 0x0002,
62 IWNES_MEMREG_TYPE_MW = 0x0003,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 IWNES_MEMREG_TYPE_FMR = 0x0004,
65 IWNES_MEMREG_TYPE_FMEM = 0x0005,
66};
67struct nes_mem_reg_req {
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 __u32 reg_type;
70 __u32 reserved;
71};
72struct nes_create_cq_resp {
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 __u32 cq_id;
75 __u32 cq_size;
76 __u32 mmap_db_index;
77 __u32 reserved;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79};
80struct nes_create_qp_resp {
81 __u32 qp_id;
82 __u32 actual_sq_size;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 __u32 actual_rq_size;
85 __u32 mmap_sq_db_index;
86 __u32 mmap_rq_db_index;
87 __u32 nes_drv_opt;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89};
90#endif