Path: blob/master/drivers/infiniband/hw/cxgb4/user.h
15112 views
/*1* Copyright (c) 2009-2010 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 __C4IW_USER_H__32#define __C4IW_USER_H__3334#define C4IW_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 c4iw_create_cq_resp {44__u64 key;45__u64 gts_key;46__u64 memsize;47__u32 cqid;48__u32 size;49__u32 qid_mask;50};515253enum {54C4IW_QPF_ONCHIP = (1<<0)55};5657struct c4iw_create_qp_resp {58__u64 ma_sync_key;59__u64 sq_key;60__u64 rq_key;61__u64 sq_db_gts_key;62__u64 rq_db_gts_key;63__u64 sq_memsize;64__u64 rq_memsize;65__u32 sqid;66__u32 rqid;67__u32 sq_size;68__u32 rq_size;69__u32 qid_mask;70__u32 flags;71};72#endif737475