18c2ecf20Sopenharmony_ci/**********************************************************************
28c2ecf20Sopenharmony_ci * Author: Cavium, Inc.
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Contact: support@cavium.com
58c2ecf20Sopenharmony_ci *          Please include "LiquidIO" in the subject.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (c) 2003-2016 Cavium, Inc.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * This file is free software; you can redistribute it and/or modify
108c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License, Version 2, as
118c2ecf20Sopenharmony_ci * published by the Free Software Foundation.
128c2ecf20Sopenharmony_ci *
138c2ecf20Sopenharmony_ci * This file is distributed in the hope that it will be useful, but
148c2ecf20Sopenharmony_ci * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
158c2ecf20Sopenharmony_ci * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or
168c2ecf20Sopenharmony_ci * NONINFRINGEMENT.  See the GNU General Public License for more details.
178c2ecf20Sopenharmony_ci ***********************************************************************/
188c2ecf20Sopenharmony_ci/*! \file cn68xx_regs.h
198c2ecf20Sopenharmony_ci *  \brief Host Driver: Register Address and Register Mask values for
208c2ecf20Sopenharmony_ci *  Octeon CN68XX devices. The register map for CN66XX is the same
218c2ecf20Sopenharmony_ci *  for most registers. This file has the other registers that are
228c2ecf20Sopenharmony_ci *  68XX-specific.
238c2ecf20Sopenharmony_ci */
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#ifndef __CN68XX_REGS_H__
268c2ecf20Sopenharmony_ci#define __CN68XX_REGS_H__
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci/*###################### REQUEST QUEUE #########################*/
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci#define    CN68XX_SLI_IQ_PORT0_PKIND             0x0800
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#define    CN68XX_SLI_IQ_PORT_PKIND(iq)           \
338c2ecf20Sopenharmony_ci	(CN68XX_SLI_IQ_PORT0_PKIND + ((iq) * CN6XXX_IQ_OFFSET))
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci/*############################ OUTPUT QUEUE #########################*/
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci/* Starting pipe number and number of pipes used by the SLI packet output. */
388c2ecf20Sopenharmony_ci#define    CN68XX_SLI_TX_PIPE                    0x1230
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci/*######################## INTERRUPTS #########################*/
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci/*------------------ Interrupt Masks ----------------*/
438c2ecf20Sopenharmony_ci#define    CN68XX_INTR_PIPE_ERR                  BIT_ULL(61)
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci#endif
46