xref: /freebsd/sys/contrib/ncsw/inc/flib/fman_common.h (revision c2c014f24c10f90d85126ac5fbd4d8524de32b1c)
1*852ba100SJustin Hibbits /*
2*852ba100SJustin Hibbits  * Copyright 2008-2013 Freescale Semiconductor Inc.
3*852ba100SJustin Hibbits  *
4*852ba100SJustin Hibbits  * Redistribution and use in source and binary forms, with or without
5*852ba100SJustin Hibbits  * modification, are permitted provided that the following conditions are met:
6*852ba100SJustin Hibbits  *     * Redistributions of source code must retain the above copyright
7*852ba100SJustin Hibbits  *       notice, this list of conditions and the following disclaimer.
8*852ba100SJustin Hibbits  *     * Redistributions in binary form must reproduce the above copyright
9*852ba100SJustin Hibbits  *       notice, this list of conditions and the following disclaimer in the
10*852ba100SJustin Hibbits  *       documentation and/or other materials provided with the distribution.
11*852ba100SJustin Hibbits  *     * Neither the name of Freescale Semiconductor nor the
12*852ba100SJustin Hibbits  *       names of its contributors may be used to endorse or promote products
13*852ba100SJustin Hibbits  *       derived from this software without specific prior written permission.
14*852ba100SJustin Hibbits  *
15*852ba100SJustin Hibbits  *
16*852ba100SJustin Hibbits  * ALTERNATIVELY, this software may be distributed under the terms of the
17*852ba100SJustin Hibbits  * GNU General Public License ("GPL") as published by the Free Software
18*852ba100SJustin Hibbits  * Foundation, either version 2 of that License or (at your option) any
19*852ba100SJustin Hibbits  * later version.
20*852ba100SJustin Hibbits  *
21*852ba100SJustin Hibbits  * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
22*852ba100SJustin Hibbits  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23*852ba100SJustin Hibbits  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24*852ba100SJustin Hibbits  * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
25*852ba100SJustin Hibbits  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26*852ba100SJustin Hibbits  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27*852ba100SJustin Hibbits  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
28*852ba100SJustin Hibbits  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29*852ba100SJustin Hibbits  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30*852ba100SJustin Hibbits  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*852ba100SJustin Hibbits  */
32*852ba100SJustin Hibbits 
33*852ba100SJustin Hibbits 
34*852ba100SJustin Hibbits #ifndef __FMAN_COMMON_H
35*852ba100SJustin Hibbits #define __FMAN_COMMON_H
36*852ba100SJustin Hibbits 
37*852ba100SJustin Hibbits /**************************************************************************//**
38*852ba100SJustin Hibbits   @Description       NIA Description
39*852ba100SJustin Hibbits *//***************************************************************************/
40*852ba100SJustin Hibbits #define NIA_ORDER_RESTOR                        0x00800000
41*852ba100SJustin Hibbits #define NIA_ENG_FM_CTL                          0x00000000
42*852ba100SJustin Hibbits #define NIA_ENG_PRS                             0x00440000
43*852ba100SJustin Hibbits #define NIA_ENG_KG                              0x00480000
44*852ba100SJustin Hibbits #define NIA_ENG_PLCR                            0x004C0000
45*852ba100SJustin Hibbits #define NIA_ENG_BMI                             0x00500000
46*852ba100SJustin Hibbits #define NIA_ENG_QMI_ENQ                         0x00540000
47*852ba100SJustin Hibbits #define NIA_ENG_QMI_DEQ                         0x00580000
48*852ba100SJustin Hibbits #define NIA_ENG_MASK                            0x007C0000
49*852ba100SJustin Hibbits 
50*852ba100SJustin Hibbits #define NIA_FM_CTL_AC_CC                        0x00000006
51*852ba100SJustin Hibbits #define NIA_FM_CTL_AC_HC                        0x0000000C
52*852ba100SJustin Hibbits #define NIA_FM_CTL_AC_IND_MODE_TX               0x00000008
53*852ba100SJustin Hibbits #define NIA_FM_CTL_AC_IND_MODE_RX               0x0000000A
54*852ba100SJustin Hibbits #define NIA_FM_CTL_AC_FRAG                      0x0000000e
55*852ba100SJustin Hibbits #define NIA_FM_CTL_AC_PRE_FETCH                 0x00000010
56*852ba100SJustin Hibbits #define NIA_FM_CTL_AC_POST_FETCH_PCD            0x00000012
57*852ba100SJustin Hibbits #define NIA_FM_CTL_AC_POST_FETCH_PCD_UDP_LEN    0x00000018
58*852ba100SJustin Hibbits #define NIA_FM_CTL_AC_POST_FETCH_NO_PCD         0x00000012
59*852ba100SJustin Hibbits #define NIA_FM_CTL_AC_FRAG_CHECK                0x00000014
60*852ba100SJustin Hibbits #define NIA_FM_CTL_AC_PRE_CC                    0x00000020
61*852ba100SJustin Hibbits 
62*852ba100SJustin Hibbits 
63*852ba100SJustin Hibbits #define NIA_BMI_AC_ENQ_FRAME                    0x00000002
64*852ba100SJustin Hibbits #define NIA_BMI_AC_TX_RELEASE                   0x000002C0
65*852ba100SJustin Hibbits #define NIA_BMI_AC_RELEASE                      0x000000C0
66*852ba100SJustin Hibbits #define NIA_BMI_AC_DISCARD                      0x000000C1
67*852ba100SJustin Hibbits #define NIA_BMI_AC_TX                           0x00000274
68*852ba100SJustin Hibbits #define NIA_BMI_AC_FETCH                        0x00000208
69*852ba100SJustin Hibbits #define NIA_BMI_AC_MASK                         0x000003FF
70*852ba100SJustin Hibbits 
71*852ba100SJustin Hibbits #define NIA_KG_DIRECT                           0x00000100
72*852ba100SJustin Hibbits #define NIA_KG_CC_EN                            0x00000200
73*852ba100SJustin Hibbits #define NIA_PLCR_ABSOLUTE                       0x00008000
74*852ba100SJustin Hibbits 
75*852ba100SJustin Hibbits #define NIA_BMI_AC_ENQ_FRAME_WITHOUT_DMA        0x00000202
76*852ba100SJustin Hibbits #define NIA_BMI_AC_FETCH_ALL_FRAME              0x0000020c
77*852ba100SJustin Hibbits 
78*852ba100SJustin Hibbits #endif /* __FMAN_COMMON_H */
79