]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/mips/nlm/hal/interlaken.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / mips / nlm / hal / interlaken.h
1 /*-
2  * Copyright (c) 2003-2012 Broadcom Corporation
3  * All Rights Reserved
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * 1. Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in
13  *    the documentation and/or other materials provided with the
14  *    distribution.
15  * 
16  * THIS SOFTWARE IS PROVIDED BY BROADCOM ``AS IS'' AND ANY EXPRESS OR
17  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  * ARE DISCLAIMED. IN NO EVENT SHALL BROADCOM OR CONTRIBUTORS BE LIABLE
20  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  *
28  * $FreeBSD$
29  */
30 #ifndef __NLM_ILAKEN_H__
31 #define __NLM_ILAKEN_H__
32
33 /**
34 * @file_name interlaken.h
35 * @author Netlogic Microsystems
36 * @brief Basic definitions of XLP ILAKEN ports
37 */
38
39 #define ILK_TX_CONTROL(block)           NAE_REG(block, 5, 0x00)
40 #define ILK_TX_RATE_LIMIT(block)        NAE_REG(block, 5, 0x01)
41 #define ILK_TX_META_CTRL(block)         NAE_REG(block, 5, 0x02)
42 #define ILK_RX_CTRL(block)              NAE_REG(block, 5, 0x03)
43 #define ILK_RX_STATUS1(block)           NAE_REG(block, 5, 0x04)
44 #define ILK_RX_STATUS2(block)           NAE_REG(block, 5, 0x05)
45 #define ILK_GENERAL_CTRL1(block)        NAE_REG(block, 5, 0x06)
46 #define ILK_STATUS3(block)              NAE_REG(block, 5, 0x07)
47 #define ILK_RX_FC_TMAP0(block)          NAE_REG(block, 5, 0x08)
48 #define ILK_RX_FC_TMAP1(block)          NAE_REG(block, 5, 0x09)
49 #define ILK_RX_FC_TMAP2(block)          NAE_REG(block, 5, 0x0a)
50 #define ILK_RX_FC_TMAP3(block)          NAE_REG(block, 5, 0x0b)
51 #define ILK_RX_FC_TMAP4(block)          NAE_REG(block, 5, 0x0c)
52 #define ILK_RX_FC_TADDR(block)          NAE_REG(block, 5, 0x0d)
53 #define ILK_GENERAL_CTRL2(block)        NAE_REG(block, 5, 0x0e)
54 #define ILK_GENERAL_CTRL3(block)        NAE_REG(block, 5, 0x0f)
55 #define ILK_SMALL_COUNT0(block)         NAE_REG(block, 5, 0x10)
56 #define ILK_SMALL_COUNT1(block)         NAE_REG(block, 5, 0x11)
57 #define ILK_SMALL_COUNT2(block)         NAE_REG(block, 5, 0x12)
58 #define ILK_SMALL_COUNT3(block)         NAE_REG(block, 5, 0x13)
59 #define ILK_SMALL_COUNT4(block)         NAE_REG(block, 5, 0x14)
60 #define ILK_SMALL_COUNT5(block)         NAE_REG(block, 5, 0x15)
61 #define ILK_SMALL_COUNT6(block)         NAE_REG(block, 5, 0x16)
62 #define ILK_SMALL_COUNT7(block)         NAE_REG(block, 5, 0x17)
63 #define ILK_MID_COUNT0(block)           NAE_REG(block, 5, 0x18)
64 #define ILK_MID_COUNT1(block)           NAE_REG(block, 5, 0x19)
65 #define ILK_LARGE_COUNT0(block)         NAE_REG(block, 5, 0x1a)
66 #define ILK_LARGE_COUNT1(block)         NAE_REG(block, 5, 0x1b)
67 #define ILK_LARGE_COUNT_H0(block)       NAE_REG(block, 5, 0x1c)
68 #define ILK_LARGE_COUNT_H1(block)       NAE_REG(block, 5, 0x1d)
69
70 #endif