Path: blob/master/drivers/infiniband/hw/amso1100/c2_user.h
15112 views
/*1* Copyright (c) 2005 Topspin Communications. All rights reserved.2* Copyright (c) 2005 Cisco Systems. All rights reserved.3* Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.4*5* This software is available to you under a choice of one of two6* licenses. You may choose to be licensed under the terms of the GNU7* General Public License (GPL) Version 2, available from the file8* COPYING in the main directory of this source tree, or the9* OpenIB.org BSD license below:10*11* Redistribution and use in source and binary forms, with or12* without modification, are permitted provided that the following13* conditions are met:14*15* - Redistributions of source code must retain the above16* copyright notice, this list of conditions and the following17* disclaimer.18*19* - Redistributions in binary form must reproduce the above20* copyright notice, this list of conditions and the following21* disclaimer in the documentation and/or other materials22* provided with the distribution.23*24* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,25* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF26* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND27* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS28* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN29* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN30* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE31* SOFTWARE.32*33*/3435#ifndef C2_USER_H36#define C2_USER_H3738#include <linux/types.h>3940/*41* Make sure that all structs defined in this file remain laid out so42* that they pack the same way on 32-bit and 64-bit architectures (to43* avoid incompatibility between 32-bit userspace and 64-bit kernels).44* In particular do not use pointer types -- pass pointers in __u6445* instead.46*/4748struct c2_alloc_ucontext_resp {49__u32 qp_tab_size;50__u32 uarc_size;51};5253struct c2_alloc_pd_resp {54__u32 pdn;55__u32 reserved;56};5758struct c2_create_cq {59__u32 lkey;60__u32 pdn;61__u64 arm_db_page;62__u64 set_db_page;63__u32 arm_db_index;64__u32 set_db_index;65};6667struct c2_create_cq_resp {68__u32 cqn;69__u32 reserved;70};7172struct c2_create_qp {73__u32 lkey;74__u32 reserved;75__u64 sq_db_page;76__u64 rq_db_page;77__u32 sq_db_index;78__u32 rq_db_index;79};8081#endif /* C2_USER_H */828384