1233545Sjchandra/*-
2233545Sjchandra * Copyright (c) 2003-2012 Broadcom Corporation
3233545Sjchandra * All Rights Reserved
4233545Sjchandra *
5233545Sjchandra * Redistribution and use in source and binary forms, with or without
6233545Sjchandra * modification, are permitted provided that the following conditions
7233545Sjchandra * are met:
8233545Sjchandra *
9233545Sjchandra * 1. Redistributions of source code must retain the above copyright
10233545Sjchandra *    notice, this list of conditions and the following disclaimer.
11233545Sjchandra * 2. Redistributions in binary form must reproduce the above copyright
12233545Sjchandra *    notice, this list of conditions and the following disclaimer in
13233545Sjchandra *    the documentation and/or other materials provided with the
14233545Sjchandra *    distribution.
15233545Sjchandra *
16233545Sjchandra * THIS SOFTWARE IS PROVIDED BY BROADCOM ``AS IS'' AND ANY EXPRESS OR
17233545Sjchandra * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18233545Sjchandra * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19233545Sjchandra * ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM OR CONTRIBUTORS BE LIABLE
20233545Sjchandra * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21233545Sjchandra * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22233545Sjchandra * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23233545Sjchandra * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24233545Sjchandra * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25233545Sjchandra * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26233545Sjchandra * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27233545Sjchandra *
28233545Sjchandra * $FreeBSD$
29233545Sjchandra */
30233545Sjchandra#ifndef __NLM_ILAKEN_H__
31233545Sjchandra#define	__NLM_ILAKEN_H__
32233545Sjchandra
33233545Sjchandra/**
34233545Sjchandra* @file_name interlaken.h
35233545Sjchandra* @author Netlogic Microsystems
36233545Sjchandra* @brief Basic definitions of XLP ILAKEN ports
37233545Sjchandra*/
38233545Sjchandra
39233545Sjchandra#define	ILK_TX_CONTROL(block)		NAE_REG(block, 5, 0x00)
40233545Sjchandra#define	ILK_TX_RATE_LIMIT(block)	NAE_REG(block, 5, 0x01)
41233545Sjchandra#define	ILK_TX_META_CTRL(block)		NAE_REG(block, 5, 0x02)
42233545Sjchandra#define	ILK_RX_CTRL(block)		NAE_REG(block, 5, 0x03)
43233545Sjchandra#define	ILK_RX_STATUS1(block)		NAE_REG(block, 5, 0x04)
44233545Sjchandra#define	ILK_RX_STATUS2(block)		NAE_REG(block, 5, 0x05)
45233545Sjchandra#define	ILK_GENERAL_CTRL1(block)	NAE_REG(block, 5, 0x06)
46233545Sjchandra#define	ILK_STATUS3(block)		NAE_REG(block, 5, 0x07)
47233545Sjchandra#define	ILK_RX_FC_TMAP0(block)		NAE_REG(block, 5, 0x08)
48233545Sjchandra#define	ILK_RX_FC_TMAP1(block)		NAE_REG(block, 5, 0x09)
49233545Sjchandra#define	ILK_RX_FC_TMAP2(block)		NAE_REG(block, 5, 0x0a)
50233545Sjchandra#define	ILK_RX_FC_TMAP3(block)		NAE_REG(block, 5, 0x0b)
51233545Sjchandra#define	ILK_RX_FC_TMAP4(block)		NAE_REG(block, 5, 0x0c)
52233545Sjchandra#define	ILK_RX_FC_TADDR(block)		NAE_REG(block, 5, 0x0d)
53233545Sjchandra#define	ILK_GENERAL_CTRL2(block)	NAE_REG(block, 5, 0x0e)
54233545Sjchandra#define	ILK_GENERAL_CTRL3(block)	NAE_REG(block, 5, 0x0f)
55233545Sjchandra#define	ILK_SMALL_COUNT0(block)		NAE_REG(block, 5, 0x10)
56233545Sjchandra#define	ILK_SMALL_COUNT1(block)		NAE_REG(block, 5, 0x11)
57233545Sjchandra#define	ILK_SMALL_COUNT2(block)		NAE_REG(block, 5, 0x12)
58233545Sjchandra#define	ILK_SMALL_COUNT3(block)		NAE_REG(block, 5, 0x13)
59233545Sjchandra#define	ILK_SMALL_COUNT4(block)		NAE_REG(block, 5, 0x14)
60233545Sjchandra#define	ILK_SMALL_COUNT5(block)		NAE_REG(block, 5, 0x15)
61233545Sjchandra#define	ILK_SMALL_COUNT6(block)		NAE_REG(block, 5, 0x16)
62233545Sjchandra#define	ILK_SMALL_COUNT7(block)		NAE_REG(block, 5, 0x17)
63233545Sjchandra#define	ILK_MID_COUNT0(block)		NAE_REG(block, 5, 0x18)
64233545Sjchandra#define	ILK_MID_COUNT1(block)		NAE_REG(block, 5, 0x19)
65233545Sjchandra#define	ILK_LARGE_COUNT0(block)		NAE_REG(block, 5, 0x1a)
66233545Sjchandra#define	ILK_LARGE_COUNT1(block)		NAE_REG(block, 5, 0x1b)
67233545Sjchandra#define	ILK_LARGE_COUNT_H0(block)	NAE_REG(block, 5, 0x1c)
68233545Sjchandra#define	ILK_LARGE_COUNT_H1(block)	NAE_REG(block, 5, 0x1d)
69233545Sjchandra
70233545Sjchandra#endif
71