erdma-abi.h 811 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
  2. /*
  3. * Copyright (c) 2020-2022, Alibaba Group.
  4. */
  5. #ifndef __ERDMA_USER_H__
  6. #define __ERDMA_USER_H__
  7. #include <linux/types.h>
  8. #define ERDMA_ABI_VERSION 1
  9. struct erdma_ureq_create_cq {
  10. __aligned_u64 db_record_va;
  11. __aligned_u64 qbuf_va;
  12. __u32 qbuf_len;
  13. __u32 rsvd0;
  14. };
  15. struct erdma_uresp_create_cq {
  16. __u32 cq_id;
  17. __u32 num_cqe;
  18. };
  19. struct erdma_ureq_create_qp {
  20. __aligned_u64 db_record_va;
  21. __aligned_u64 qbuf_va;
  22. __u32 qbuf_len;
  23. __u32 rsvd0;
  24. };
  25. struct erdma_uresp_create_qp {
  26. __u32 qp_id;
  27. __u32 num_sqe;
  28. __u32 num_rqe;
  29. __u32 rq_offset;
  30. };
  31. struct erdma_uresp_alloc_ctx {
  32. __u32 dev_id;
  33. __u32 pad;
  34. __u32 sdb_type;
  35. __u32 sdb_offset;
  36. __aligned_u64 sdb;
  37. __aligned_u64 rdb;
  38. __aligned_u64 cdb;
  39. };
  40. #endif