1*33ec1ccbSHans Petter Selasky /* 2*33ec1ccbSHans Petter Selasky * Copyright (c) 2004 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_CONFIG_REG_H 35*33ec1ccbSHans Petter Selasky #define MTHCA_CONFIG_REG_H 36*33ec1ccbSHans Petter Selasky 37*33ec1ccbSHans Petter Selasky #define MTHCA_HCR_BASE 0x80680 38*33ec1ccbSHans Petter Selasky #define MTHCA_HCR_SIZE 0x0001c 39*33ec1ccbSHans Petter Selasky #define MTHCA_ECR_BASE 0x80700 40*33ec1ccbSHans Petter Selasky #define MTHCA_ECR_SIZE 0x00008 41*33ec1ccbSHans Petter Selasky #define MTHCA_ECR_CLR_BASE 0x80708 42*33ec1ccbSHans Petter Selasky #define MTHCA_ECR_CLR_SIZE 0x00008 43*33ec1ccbSHans Petter Selasky #define MTHCA_MAP_ECR_SIZE (MTHCA_ECR_SIZE + MTHCA_ECR_CLR_SIZE) 44*33ec1ccbSHans Petter Selasky #define MTHCA_CLR_INT_BASE 0xf00d8 45*33ec1ccbSHans Petter Selasky #define MTHCA_CLR_INT_SIZE 0x00008 46*33ec1ccbSHans Petter Selasky #define MTHCA_EQ_SET_CI_SIZE (8 * 32) 47*33ec1ccbSHans Petter Selasky 48*33ec1ccbSHans Petter Selasky #endif /* MTHCA_CONFIG_REG_H */ 49