1214152Sed/* 2214152Sed * Copyright (c) 2009-2013 Chelsio, Inc. All rights reserved. 3214152Sed * 4214152Sed * This software is available to you under a choice of one of two 5214152Sed * licenses. You may choose to be licensed under the terms of the GNU 6214152Sed * General Public License (GPL) Version 2, available from the file 7214152Sed * COPYING in the main directory of this source tree, or the 8214152Sed * OpenIB.org BSD license below: 9214152Sed * 10214152Sed * Redistribution and use in source and binary forms, with or 11214152Sed * without modification, are permitted provided that the following 12214152Sed * conditions are met: 13214152Sed * 14214152Sed * - Redistributions of source code must retain the above 15214152Sed * copyright notice, this list of conditions and the following 16214152Sed * disclaimer. 17214152Sed * 18214152Sed * - Redistributions in binary form must reproduce the above 19214152Sed * copyright notice, this list of conditions and the following 20214152Sed * disclaimer in the documentation and/or other materials 21214152Sed * provided with the distribution. 22214152Sed * 23214152Sed * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 24214152Sed * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 25214152Sed * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 26214152Sed * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 27214152Sed * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 28214152Sed * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 29214152Sed * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 30214152Sed * SOFTWARE. 31214152Sed * 32214152Sed * $FreeBSD: stable/11/sys/dev/cxgbe/iw_cxgbe/user.h 331769 2018-03-30 18:06:29Z hselasky $ 33214152Sed */ 34214152Sed#ifndef __C4IW_USER_H__ 35214152Sed#define __C4IW_USER_H__ 36214152Sed 37214152Sed#define C4IW_UVERBS_ABI_VERSION 3 38214152Sed 39214152Sed/* 40214152Sed * Make sure that all structs defined in this file remain laid out so 41214152Sed * that they pack the same way on 32-bit and 64-bit architectures (to 42214152Sed * avoid incompatibility between 32-bit userspace and 64-bit kernels). 43214152Sed * In particular do not use pointer types -- pass pointers in __u64 44214152Sed * instead. 45214152Sed */ 46214152Sedstruct c4iw_create_cq_resp { 47214152Sed __u64 key; 48214152Sed __u64 gts_key; 49214152Sed __u64 memsize; 50214152Sed __u32 cqid; 51214152Sed __u32 size; 52214152Sed __u32 qid_mask; 53214152Sed __u32 reserved; /* explicit padding (optional for i386) */ 54214152Sed}; 55214152Sed 56214152Sedstruct c4iw_create_qp_resp { 57214152Sed __u64 ma_sync_key; 58214152Sed __u64 sq_key; 59214152Sed __u64 rq_key; 60214152Sed __u64 sq_db_gts_key; 61214152Sed __u64 rq_db_gts_key; 62214152Sed __u64 sq_memsize; 63214152Sed __u64 rq_memsize; 64214152Sed __u32 sqid; 65214152Sed __u32 rqid; 66214152Sed __u32 sq_size; 67214152Sed __u32 rq_size; 68214152Sed __u32 qid_mask; 69214152Sed __u32 flags; 70214152Sed}; 71214152Sed 72214152Sedstruct c4iw_alloc_ucontext_resp { 73214152Sed __u64 status_page_key; 74214152Sed __u32 status_page_size; 75214152Sed __u32 reserved; /* explicit padding (optional for i386) */ 76214152Sed}; 77214152Sed#endif 78214152Sed