![]() |
|
|||
0001 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */ 0002 /* 0003 * Copyright (c) 2005 Topspin Communications. All rights reserved. 0004 * Copyright (c) 2005, 2006 Cisco Systems. All rights reserved. 0005 * 0006 * This software is available to you under a choice of one of two 0007 * licenses. You may choose to be licensed under the terms of the GNU 0008 * General Public License (GPL) Version 2, available from the file 0009 * COPYING in the main directory of this source tree, or the 0010 * OpenIB.org BSD license below: 0011 * 0012 * Redistribution and use in source and binary forms, with or 0013 * without modification, are permitted provided that the following 0014 * conditions are met: 0015 * 0016 * - Redistributions of source code must retain the above 0017 * copyright notice, this list of conditions and the following 0018 * disclaimer. 0019 * 0020 * - Redistributions in binary form must reproduce the above 0021 * copyright notice, this list of conditions and the following 0022 * disclaimer in the documentation and/or other materials 0023 * provided with the distribution. 0024 * 0025 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 0026 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 0027 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 0028 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 0029 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 0030 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 0031 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 0032 * SOFTWARE. 0033 */ 0034 0035 #ifndef MTHCA_ABI_USER_H 0036 #define MTHCA_ABI_USER_H 0037 0038 #include <linux/types.h> 0039 0040 /* 0041 * Increment this value if any changes that break userspace ABI 0042 * compatibility are made. 0043 */ 0044 #define MTHCA_UVERBS_ABI_VERSION 1 0045 0046 /* 0047 * Make sure that all structs defined in this file remain laid out so 0048 * that they pack the same way on 32-bit and 64-bit architectures (to 0049 * avoid incompatibility between 32-bit userspace and 64-bit kernels). 0050 * In particular do not use pointer types -- pass pointers in __u64 0051 * instead. 0052 */ 0053 struct mthca_alloc_ucontext_resp { 0054 __u32 qp_tab_size; 0055 __u32 uarc_size; 0056 }; 0057 0058 struct mthca_alloc_pd_resp { 0059 __u32 pdn; 0060 __u32 reserved; 0061 }; 0062 0063 /* 0064 * Mark the memory region with a DMA attribute that causes 0065 * in-flight DMA to be flushed when the region is written to: 0066 */ 0067 #define MTHCA_MR_DMASYNC 0x1 0068 0069 struct mthca_reg_mr { 0070 __u32 mr_attrs; 0071 __u32 reserved; 0072 }; 0073 0074 struct mthca_create_cq { 0075 __u32 lkey; 0076 __u32 pdn; 0077 __aligned_u64 arm_db_page; 0078 __aligned_u64 set_db_page; 0079 __u32 arm_db_index; 0080 __u32 set_db_index; 0081 }; 0082 0083 struct mthca_create_cq_resp { 0084 __u32 cqn; 0085 __u32 reserved; 0086 }; 0087 0088 struct mthca_resize_cq { 0089 __u32 lkey; 0090 __u32 reserved; 0091 }; 0092 0093 struct mthca_create_srq { 0094 __u32 lkey; 0095 __u32 db_index; 0096 __aligned_u64 db_page; 0097 }; 0098 0099 struct mthca_create_srq_resp { 0100 __u32 srqn; 0101 __u32 reserved; 0102 }; 0103 0104 struct mthca_create_qp { 0105 __u32 lkey; 0106 __u32 reserved; 0107 __aligned_u64 sq_db_page; 0108 __aligned_u64 rq_db_page; 0109 __u32 sq_db_index; 0110 __u32 rq_db_index; 0111 }; 0112 #endif /* MTHCA_ABI_USER_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |