1*33ec1ccbSHans Petter Selasky /* 2*33ec1ccbSHans Petter Selasky * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved. 3*33ec1ccbSHans Petter Selasky * Copyright (c) 2005 Mellanox Technologies. All rights reserved. 4*33ec1ccbSHans Petter Selasky * 5*33ec1ccbSHans Petter Selasky * This software is available to you under a choice of one of two 6*33ec1ccbSHans Petter Selasky * licenses. You may choose to be licensed under the terms of the GNU 7*33ec1ccbSHans Petter Selasky * General Public License (GPL) Version 2, available from the file 8*33ec1ccbSHans Petter Selasky * COPYING in the main directory of this source tree, or the 9*33ec1ccbSHans Petter Selasky * OpenIB.org BSD license below: 10*33ec1ccbSHans Petter Selasky * 11*33ec1ccbSHans Petter Selasky * Redistribution and use in source and binary forms, with or 12*33ec1ccbSHans Petter Selasky * without modification, are permitted provided that the following 13*33ec1ccbSHans Petter Selasky * conditions are met: 14*33ec1ccbSHans Petter Selasky * 15*33ec1ccbSHans Petter Selasky * - Redistributions of source code must retain the above 16*33ec1ccbSHans Petter Selasky * copyright notice, this list of conditions and the following 17*33ec1ccbSHans Petter Selasky * disclaimer. 18*33ec1ccbSHans Petter Selasky * 19*33ec1ccbSHans Petter Selasky * - Redistributions in binary form must reproduce the above 20*33ec1ccbSHans Petter Selasky * copyright notice, this list of conditions and the following 21*33ec1ccbSHans Petter Selasky * disclaimer in the documentation and/or other materials 22*33ec1ccbSHans Petter Selasky * provided with the distribution. 23*33ec1ccbSHans Petter Selasky * 24*33ec1ccbSHans Petter Selasky * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 25*33ec1ccbSHans Petter Selasky * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 26*33ec1ccbSHans Petter Selasky * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 27*33ec1ccbSHans Petter Selasky * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 28*33ec1ccbSHans Petter Selasky * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 29*33ec1ccbSHans Petter Selasky * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 30*33ec1ccbSHans Petter Selasky * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 31*33ec1ccbSHans Petter Selasky * SOFTWARE. 32*33ec1ccbSHans Petter Selasky */ 33*33ec1ccbSHans Petter Selasky 34*33ec1ccbSHans Petter Selasky #ifndef MTHCA_PROFILE_H 35*33ec1ccbSHans Petter Selasky #define MTHCA_PROFILE_H 36*33ec1ccbSHans Petter Selasky 37*33ec1ccbSHans Petter Selasky #include "mthca_dev.h" 38*33ec1ccbSHans Petter Selasky #include "mthca_cmd.h" 39*33ec1ccbSHans Petter Selasky 40*33ec1ccbSHans Petter Selasky struct mthca_profile { 41*33ec1ccbSHans Petter Selasky int num_qp; 42*33ec1ccbSHans Petter Selasky int rdb_per_qp; 43*33ec1ccbSHans Petter Selasky int num_srq; 44*33ec1ccbSHans Petter Selasky int num_cq; 45*33ec1ccbSHans Petter Selasky int num_mcg; 46*33ec1ccbSHans Petter Selasky int num_mpt; 47*33ec1ccbSHans Petter Selasky int num_mtt; 48*33ec1ccbSHans Petter Selasky int num_udav; 49*33ec1ccbSHans Petter Selasky int num_uar; 50*33ec1ccbSHans Petter Selasky int uarc_size; 51*33ec1ccbSHans Petter Selasky int fmr_reserved_mtts; 52*33ec1ccbSHans Petter Selasky }; 53*33ec1ccbSHans Petter Selasky 54*33ec1ccbSHans Petter Selasky s64 mthca_make_profile(struct mthca_dev *mdev, 55*33ec1ccbSHans Petter Selasky struct mthca_profile *request, 56*33ec1ccbSHans Petter Selasky struct mthca_dev_lim *dev_lim, 57*33ec1ccbSHans Petter Selasky struct mthca_init_hca_param *init_hca); 58*33ec1ccbSHans Petter Selasky 59*33ec1ccbSHans Petter Selasky #endif /* MTHCA_PROFILE_H */ 60