162306a36Sopenharmony_ci/********************************************************************** 262306a36Sopenharmony_ci * Author: Cavium, Inc. 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Contact: support@cavium.com 562306a36Sopenharmony_ci * Please include "LiquidIO" in the subject. 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * Copyright (c) 2003-2016 Cavium, Inc. 862306a36Sopenharmony_ci * 962306a36Sopenharmony_ci * This file is free software; you can redistribute it and/or modify 1062306a36Sopenharmony_ci * it under the terms of the GNU General Public License, Version 2, as 1162306a36Sopenharmony_ci * published by the Free Software Foundation. 1262306a36Sopenharmony_ci * 1362306a36Sopenharmony_ci * This file is distributed in the hope that it will be useful, but 1462306a36Sopenharmony_ci * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 1562306a36Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or 1662306a36Sopenharmony_ci * NONINFRINGEMENT. See the GNU General Public License for more details. 1762306a36Sopenharmony_ci ***********************************************************************/ 1862306a36Sopenharmony_ci/*! \file cn68xx_regs.h 1962306a36Sopenharmony_ci * \brief Host Driver: Register Address and Register Mask values for 2062306a36Sopenharmony_ci * Octeon CN68XX devices. The register map for CN66XX is the same 2162306a36Sopenharmony_ci * for most registers. This file has the other registers that are 2262306a36Sopenharmony_ci * 68XX-specific. 2362306a36Sopenharmony_ci */ 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#ifndef __CN68XX_REGS_H__ 2662306a36Sopenharmony_ci#define __CN68XX_REGS_H__ 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci/*###################### REQUEST QUEUE #########################*/ 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#define CN68XX_SLI_IQ_PORT0_PKIND 0x0800 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci#define CN68XX_SLI_IQ_PORT_PKIND(iq) \ 3362306a36Sopenharmony_ci (CN68XX_SLI_IQ_PORT0_PKIND + ((iq) * CN6XXX_IQ_OFFSET)) 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ci/*############################ OUTPUT QUEUE #########################*/ 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci/* Starting pipe number and number of pipes used by the SLI packet output. */ 3862306a36Sopenharmony_ci#define CN68XX_SLI_TX_PIPE 0x1230 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci/*######################## INTERRUPTS #########################*/ 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ci/*------------------ Interrupt Masks ----------------*/ 4362306a36Sopenharmony_ci#define CN68XX_INTR_PIPE_ERR BIT_ULL(61) 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ci#endif 46