-
Notifications
You must be signed in to change notification settings - Fork 876
Expand file tree
/
Copy pathxsc-abi.h
More file actions
74 lines (63 loc) · 1.48 KB
/
Copy pathxsc-abi.h
File metadata and controls
74 lines (63 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2021 - 2022, Shanghai Yunsilicon Technology Co., Ltd.
* All rights reserved.
*/
#ifndef XSC_ABI_USER_H
#define XSC_ABI_USER_H
#include <linux/types.h>
#include <linux/if_ether.h> /* For ETH_ALEN. */
#include <rdma/ib_user_ioctl_verbs.h>
/* Make sure that all structs defined in this file remain laid out so
* that they pack the same way on 32-bit and 64-bit architectures (to
* avoid incompatibility between 32-bit userspace and 64-bit kernels).
* In particular do not use pointer types -- pass pointers in __u64
* instead.
*/
struct xsc_ib_alloc_ucontext_resp {
__u32 qp_tab_size;
__u32 cache_line_size;
__u16 max_sq_desc_sz;
__u16 max_rq_desc_sz;
__u32 max_send_wr;
__u32 max_recv_wr;
__u16 num_ports;
__u16 device_id;
__aligned_u64 qpm_tx_db;
__aligned_u64 qpm_rx_db;
__aligned_u64 cqm_next_cid_reg;
__aligned_u64 cqm_armdb;
__u32 send_ds_num;
__u32 recv_ds_num;
__u32 resv;
};
struct xsc_ib_create_qp {
__aligned_u64 buf_addr;
__aligned_u64 db_addr;
__u32 sq_wqe_count;
__u32 rq_wqe_count;
__u32 rq_wqe_shift;
__u32 flags;
__u32 resv;
};
struct xsc_ib_create_qp_resp {
__u32 bfreg_index;
__u32 resv;
};
struct xsc_ib_create_cq {
__aligned_u64 buf_addr;
__u32 cqe_size;
};
struct xsc_ib_create_cq_resp {
__u32 cqn;
__u32 reserved;
};
struct xsc_ib_create_ah_resp {
__u32 response_length;
__u8 dmac[ETH_ALEN];
__u8 reserved[6];
};
struct xsc_ib_alloc_pd_resp {
__u32 pdn;
};
#endif /* XSC_ABI_USER_H */