Path: blob/master/drivers/infiniband/hw/cxgb3/iwch_user.h
15112 views
/*1* Copyright (c) 2006 Chelsio, Inc. All rights reserved.2*3* This software is available to you under a choice of one of two4* licenses. You may choose to be licensed under the terms of the GNU5* General Public License (GPL) Version 2, available from the file6* COPYING in the main directory of this source tree, or the7* OpenIB.org BSD license below:8*9* Redistribution and use in source and binary forms, with or10* without modification, are permitted provided that the following11* conditions are met:12*13* - Redistributions of source code must retain the above14* copyright notice, this list of conditions and the following15* disclaimer.16*17* - Redistributions in binary form must reproduce the above18* copyright notice, this list of conditions and the following19* disclaimer in the documentation and/or other materials20* provided with the distribution.21*22* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,23* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF24* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND25* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS26* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN27* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN28* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE29* SOFTWARE.30*/31#ifndef __IWCH_USER_H__32#define __IWCH_USER_H__3334#define IWCH_UVERBS_ABI_VERSION 13536/*37* Make sure that all structs defined in this file remain laid out so38* that they pack the same way on 32-bit and 64-bit architectures (to39* avoid incompatibility between 32-bit userspace and 64-bit kernels).40* In particular do not use pointer types -- pass pointers in __u6441* instead.42*/43struct iwch_create_cq_req {44__u64 user_rptr_addr;45};4647struct iwch_create_cq_resp_v0 {48__u64 key;49__u32 cqid;50__u32 size_log2;51};5253struct iwch_create_cq_resp {54__u64 key;55__u32 cqid;56__u32 size_log2;57__u32 memsize;58__u32 reserved;59};6061struct iwch_create_qp_resp {62__u64 key;63__u64 db_key;64__u32 qpid;65__u32 size_log2;66__u32 sq_size_log2;67__u32 rq_size_log2;68};6970struct iwch_reg_user_mr_resp {71__u32 pbl_addr;72};73#endif747576