mthca_config_reg.h revision 219820
117706Sjulian/*
217706Sjulian * Copyright (c) 2004 Topspin Communications.  All rights reserved.
317706Sjulian * Copyright (c) 2005 Mellanox Technologies. All rights reserved.
417706Sjulian *
517706Sjulian * This software is available to you under a choice of one of two
617706Sjulian * licenses.  You may choose to be licensed under the terms of the GNU
717706Sjulian * General Public License (GPL) Version 2, available from the file
817706Sjulian * COPYING in the main directory of this source tree, or the
917706Sjulian * OpenIB.org BSD license below:
1017706Sjulian *
1117706Sjulian *     Redistribution and use in source and binary forms, with or
1217706Sjulian *     without modification, are permitted provided that the following
1317706Sjulian *     conditions are met:
1417706Sjulian *
1517706Sjulian *      - Redistributions of source code must retain the above
1617706Sjulian *        copyright notice, this list of conditions and the following
1717706Sjulian *        disclaimer.
1817706Sjulian *
1917706Sjulian *      - Redistributions in binary form must reproduce the above
2017706Sjulian *        copyright notice, this list of conditions and the following
2117706Sjulian *        disclaimer in the documentation and/or other materials
2217706Sjulian *        provided with the distribution.
2349439Sdeischen *
2417706Sjulian * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
2517706Sjulian * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2617706Sjulian * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
2717706Sjulian * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
2817706Sjulian * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
2917706Sjulian * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
3017706Sjulian * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3117706Sjulian * SOFTWARE.
3250476Speter */
3317706Sjulian
3417706Sjulian#ifndef MTHCA_CONFIG_REG_H
3517706Sjulian#define MTHCA_CONFIG_REG_H
3617706Sjulian
3717706Sjulian#include <asm/page.h>
38103388Smini
3917706Sjulian#define MTHCA_HCR_BASE         0x80680
4075369Sdeischen#define MTHCA_HCR_SIZE         0x0001c
4171581Sdeischen#define MTHCA_ECR_BASE         0x80700
4271581Sdeischen#define MTHCA_ECR_SIZE         0x00008
4371581Sdeischen#define MTHCA_ECR_CLR_BASE     0x80708
4417706Sjulian#define MTHCA_ECR_CLR_SIZE     0x00008
4517706Sjulian#define MTHCA_MAP_ECR_SIZE     (MTHCA_ECR_SIZE + MTHCA_ECR_CLR_SIZE)
4617706Sjulian#define MTHCA_CLR_INT_BASE     0xf00d8
4722315Sjulian#define MTHCA_CLR_INT_SIZE     0x00008
4822315Sjulian#define MTHCA_EQ_SET_CI_SIZE   (8 * 32)
4922315Sjulian
5022315Sjulian#endif /* MTHCA_CONFIG_REG_H */
5122315Sjulian