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