summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/fman/Peripherals/FM/Pcd/fm_prs.h
blob: 01857174309b0c42ce250ae500aa10b22c491b23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
/*
 * Copyright 2008-2012 Freescale Semiconductor Inc.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *     * Redistributions of source code must retain the above copyright
 *       notice, this list of conditions and the following disclaimer.
 *     * Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer in the
 *       documentation and/or other materials provided with the distribution.
 *     * Neither the name of Freescale Semiconductor nor the
 *       names of its contributors may be used to endorse or promote products
 *       derived from this software without specific prior written permission.
 *
 *
 * ALTERNATIVELY, this software may be distributed under the terms of the
 * GNU General Public License ("GPL") as published by the Free Software
 * Foundation, either version 2 of that License or (at your option) any
 * later version.
 *
 * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */


/******************************************************************************
 @File          fm_prs.h

 @Description   FM Parser private header
 *//***************************************************************************/
#ifndef __FM_PRS_H
#define __FM_PRS_H

#include "std_ext.h"

/***********************************************************************/
/*          SW parser IP_FRAG patch                                    */
/***********************************************************************/

#if ((DPAA_VERSION == 10) && defined(FM_CAPWAP_SUPPORT))
#define SW_PRS_UDP_LITE_PATCH   \
{\
        0x31,0x52,0x00,0xDA,0xFC,0x00,0x00,0x00,0x00,0x00, \
        0x00,0x00,0x50,0x2C,0x40,0x00,0x31,0x92,0x50,0x2C, \
        0x00,0x88,0x18,0x2F,0x00,0x01,0x1B,0xFE,0x18,0x71, \
        0x02,0x1F,0x00,0x08,0x00,0x83,0x02,0x1F,0x00,0x20, \
        0x28,0x1B,0x00,0x05,0x29,0x1F,0x30,0xD0,0x60,0x4F, \
        0x00,0x07,0x00,0x05,0x00,0x00,0xC3,0x8F,0x00,0x52, \
        0x00,0x01,0x07,0x01,0x60,0x3B,0x00,0x00,0x30,0xD0, \
        0x00,0xDA,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, \
        0x40,0x4C,0x00,0x00,0x02,0x8F,0x00,0x00,0x30,0xF2, \
        0x00,0x06,0x18,0x5D,0x00,0x00,0x9F,0xFF,0x30,0xF2, \
        0x00,0x06,0x29,0x1E,0x07,0x08,0x30,0xD0,0x00,0x52, \
        0x00,0x08,0x28,0x1A,0x60,0x37,0x00,0x00,0x30,0xF2, \
        0x18,0x5D,0x06,0x00,0x29,0x1E,0x30,0xF2,0x2F,0x0E, \
        0x30,0x72,0x00,0x00,0x9B,0x8F,0x00,0x06,0x2F,0x0E, \
        0x32,0xF1,0x32,0xB0,0x00,0x4F,0x00,0x57,0x00,0x28, \
        0x00,0x00,0x97,0x9E,0x00,0x4E,0x30,0x72,0x00,0x06, \
        0x2F,0x0E,0x32,0xC1,0x32,0xF0,0x00,0x4A,0x00,0x80, \
        0x00,0x02,0x00,0x00,0x97,0x9E,0x40,0x7E,0x00,0x08, \
        0x08,0x16,0x00,0x54,0x00,0x01,0x1B,0xFE,0x00,0x00, \
        0x9F,0x9E,0x40,0xB3,0x00,0x00,0x02,0x1F,0x00,0x08, \
        0x28,0x1B,0x30,0x73,0x29,0x1F,0x30,0xD0,0x60,0x9F, \
        0x00,0x07,0x00,0x05,0x00,0x00,0xC3,0x8F,0x00,0x52, \
        0x00,0x01,0x07,0x01,0x60,0x8B,0x00,0x00,0x30,0xD0, \
        0x00,0xDA,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, \
        0x40,0x9C,0x00,0x00,0x02,0x8F,0x00,0x00,0x30,0xF2, \
        0x00,0x06,0x18,0xAD,0x00,0x00,0x9F,0xFF,0x30,0xF2, \
        0x00,0x06,0x29,0x1E,0x07,0x08,0x30,0xD0,0x00,0x52, \
        0x00,0x08,0x28,0x1A,0x60,0x87,0x00,0x00,0x30,0xF2, \
        0x18,0xAD,0x06,0x00,0x29,0x1E,0x30,0xF2,0x50,0xB3, \
        0xFF,0xFF,0x18,0xB8,0x08,0x16,0x00,0x54,0x00,0x01, \
        0x1B,0xFE,0x18,0xC5,0x32,0xF1,0x28,0x5D,0x32,0xF1, \
        0x00,0x55,0x00,0x08,0x28,0x5F,0x00,0x00,0x8F,0x9F, \
        0x29,0x33,0x08,0x16,0x00,0x49,0x00,0x01,0x1B,0xFF, \
        0x00,0x01,0x1B,0xFF    \
}
#endif /* ((DPAA_VERSION == 10) && defined(FM_CAPWAP_SUPPORT)) */

#if (DPAA_VERSION == 10)
/* Version: 106.1.9 */
#define SW_PRS_OFFLOAD_PATCH                           \
{                                                      \
    0x31,0x52,0x00,0xDA,0x0A,0x00,0x00,0x00,0x00,0x00, \
    0x00,0x00,0x43,0x0A,0x00,0x00,0x00,0x01,0x1B,0xFE, \
    0x00,0x00,0x99,0x00,0x53,0x13,0x00,0x00,0x00,0x00, \
    0x9F,0x98,0x53,0x13,0x00,0x00,0x1B,0x23,0x33,0xF1, \
    0x00,0xF9,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, \
    0x28,0x7F,0x00,0x03,0x00,0x02,0x00,0x00,0x00,0x01, \
    0x32,0xC1,0x32,0xF0,0x00,0x4A,0x00,0x80,0x1F,0xFF, \
    0x00,0x01,0x1B,0xFE,0x31,0x52,0x00,0xDA,0x06,0x00, \
    0x00,0x00,0x00,0x00,0x00,0x00,0x43,0x2F,0x00,0x00, \
    0x00,0x01,0x1B,0xFE,0x31,0x52,0x00,0xDA,0x00,0x40, \
    0x00,0x00,0x00,0x00,0x00,0x00,0x53,0x95,0x00,0x00, \
    0x00,0x00,0x9B,0x8F,0x2F,0x0F,0x32,0xC1,0x00,0x55, \
    0x00,0x28,0x28,0x43,0x30,0x7E,0x43,0x45,0x00,0x00, \
    0x30,0x7E,0x43,0x45,0x00,0x3C,0x1B,0x5D,0x32,0x11, \
    0x32,0xC0,0x00,0x4F,0x00,0x81,0x00,0x00,0x83,0x8F, \
    0x2F,0x0F,0x06,0x00,0x32,0x11,0x32,0xC0,0x00,0x4F, \
    0x00,0x55,0x00,0x01,0x00,0x81,0x32,0x11,0x00,0x00, \
    0x83,0x8E,0x00,0x50,0x00,0x01,0x01,0x04,0x00,0x4D, \
    0x28,0x43,0x06,0x00,0x1B,0x3E,0x30,0x7E,0x53,0x79, \
    0x00,0x2B,0x32,0x11,0x32,0xC0,0x00,0x4F,0x00,0x81, \
    0x00,0x00,0x87,0x8F,0x28,0x23,0x06,0x00,0x32,0x11, \
    0x32,0xC0,0x00,0x4F,0x00,0x55,0x00,0x01,0x00,0x81, \
    0x32,0x11,0x00,0x00,0x83,0x8E,0x00,0x50,0x00,0x01, \
    0x01,0x04,0x00,0x4D,0x28,0x43,0x06,0x00,0x00,0x01, \
    0x1B,0xFE,0x00,0x00,0x9B,0x8E,0x53,0x90,0x00,0x00, \
    0x06,0x29,0x00,0x00,0x83,0x8F,0x28,0x23,0x06,0x00, \
    0x06,0x29,0x32,0xC1,0x00,0x55,0x00,0x28,0x00,0x00, \
    0x83,0x8E,0x00,0x50,0x00,0x01,0x01,0x04,0x00,0x4D, \
    0x28,0x43,0x06,0x00,0x00,0x01,0x1B,0xFE,0x32,0xC1, \
    0x00,0x55,0x00,0x28,0x28,0x43,0x1B,0xCF,0x00,0x00, \
    0x9B,0x8F,0x2F,0x0F,0x32,0xC1,0x00,0x55,0x00,0x28, \
    0x28,0x43,0x30,0x7E,0x43,0xBF,0x00,0x2C,0x32,0x11, \
    0x32,0xC0,0x00,0x4F,0x00,0x81,0x00,0x00,0x87,0x8F, \
    0x28,0x23,0x06,0x00,0x32,0x11,0x32,0xC0,0x00,0x4F, \
    0x00,0x81,0x00,0x00,0x83,0x8F,0x2F,0x0F,0x06,0x00, \
    0x32,0x11,0x32,0xC0,0x00,0x4F,0x00,0x55,0x00,0x01, \
    0x00,0x81,0x32,0x11,0x00,0x00,0x83,0x8E,0x00,0x50, \
    0x00,0x01,0x01,0x04,0x00,0x4D,0x28,0x43,0x06,0x00, \
    0x1B,0x9C,0x33,0xF1,0x00,0xF9,0x00,0x01,0x00,0x00, \
    0x00,0x00,0x00,0x00,0x28,0x7F,0x00,0x03,0x00,0x02, \
    0x00,0x00,0x00,0x01,0x32,0xC1,0x32,0xF0,0x00,0x4A, \
    0x00,0x80,0x1F,0xFF,0x00,0x01,0x1B,0xFE,           \
}

#else
/* version: 106.3.13 */
#define SW_PRS_OFFLOAD_PATCH                           \
{                                                      \
        0x31,0x52,0x00,0xDA,0x0E,0x4F,0x00,0x00,0x00,0x00, \
        0x00,0x00,0x51,0xE6,0x08,0x4B,0x31,0x53,0x00,0xFB, \
        0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x29,0x2B, \
        0x33,0xF1,0x00,0xFB,0x00,0xDF,0x00,0x00,0x00,0x00, \
        0x00,0x00,0x28,0x7F,0x31,0x52,0x00,0xDA,0x0A,0x00, \
        0x00,0x00,0x00,0x00,0x00,0x00,0x41,0xF0,0x00,0x00, \
        0x00,0x01,0x1B,0xFE,0x00,0x00,0x99,0x00,0x51,0xF9, \
        0x00,0x00,0x00,0x00,0x9F,0x98,0x51,0xF9,0x00,0x00, \
        0x1A,0x14,0x09,0x5F,0x00,0x20,0x00,0x00,0x09,0x4F, \
        0x00,0x20,0x00,0x00,0x34,0xB7,0x00,0xF9,0x00,0x00, \
        0x01,0x00,0x00,0x00,0x00,0x00,0x2B,0x97,0x31,0xB3, \
        0x29,0x8F,0x33,0xF1,0x00,0xF9,0x00,0x01,0x00,0x00, \
        0x00,0x00,0x00,0x00,0x28,0x7F,0x00,0x03,0x00,0x02, \
        0x00,0x00,0x00,0x01,0x1B,0xFE,0x00,0x01,0x1B,0xFE, \
        0x31,0x52,0x00,0xDA,0xFC,0x00,0x00,0x00,0x00,0x00, \
        0x00,0x00,0x52,0x22,0x40,0x00,0x31,0x92,0x52,0x22, \
        0x00,0x88,0x1A,0x25,0x08,0x05,0x00,0x00,0x1A,0x69, \
        0x02,0x1F,0x00,0x08,0x00,0x83,0x02,0x1F,0x00,0x20, \
        0x28,0x1B,0x00,0x05,0x29,0x1F,0x30,0xD0,0x62,0x45, \
        0x00,0x07,0x00,0x05,0x00,0x00,0xC3,0x8F,0x00,0x52, \
        0x00,0x01,0x07,0x01,0x62,0x31,0x00,0x00,0x30,0xD0, \
        0x00,0xDA,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, \
        0x42,0x42,0x00,0x00,0x02,0x8F,0x00,0x00,0x30,0xF2, \
        0x00,0x06,0x1A,0x53,0x00,0x00,0x9F,0xFF,0x30,0xF2, \
        0x00,0x06,0x29,0x1E,0x07,0x08,0x30,0xD0,0x00,0x52, \
        0x00,0x08,0x28,0x1A,0x62,0x2D,0x00,0x00,0x30,0xF2, \
        0x1A,0x53,0x06,0x00,0x29,0x1E,0x30,0xF2,0x29,0x0E, \
        0x30,0x72,0x00,0x00,0x9B,0x8F,0x00,0x06,0x29,0x0E, \
        0x32,0xF1,0x32,0xB0,0x00,0x4F,0x00,0x57,0x00,0x28, \
        0x00,0x00,0x97,0x9E,0x00,0x4E,0x30,0x72,0x00,0x06, \
        0x29,0x0E,0x08,0x05,0x00,0x01,0x31,0x52,0x00,0xDA, \
        0x0E,0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0x52,0x7F, \
        0x04,0x4B,0x31,0x53,0x00,0xFB,0xFF,0xF0,0x00,0x00, \
        0x00,0x00,0x00,0x00,0x29,0x2B,0x33,0xF1,0x00,0xFB, \
        0x00,0xDF,0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x7F, \
        0x31,0x52,0x00,0xDA,0x06,0x00,0x00,0x00,0x00,0x00, \
        0x00,0x00,0x42,0x89,0x00,0x00,0x00,0x01,0x1B,0xFE, \
        0x31,0x52,0x00,0xDA,0x00,0x40,0x00,0x00,0x00,0x00, \
        0x00,0x00,0x52,0xED,0x00,0x00,0x00,0x00,0x9B,0x8F, \
        0x28,0x01,0x32,0xC1,0x00,0x55,0x00,0x28,0x28,0x43, \
        0x30,0x00,0x42,0x9F,0x00,0x00,0x30,0x00,0x42,0x9F, \
        0x00,0x3C,0x1A,0xB7,0x32,0x11,0x32,0xC0,0x00,0x4F, \
        0x00,0x81,0x00,0x00,0x83,0x8F,0x28,0x01,0x06,0x00, \
        0x32,0x11,0x32,0xC0,0x00,0x4F,0x00,0x55,0x00,0x01, \
        0x00,0x81,0x32,0x11,0x00,0x00,0x83,0x8E,0x00,0x50, \
        0x00,0x01,0x01,0x04,0x00,0x4D,0x28,0x43,0x06,0x00, \
        0x1A,0x98,0x30,0x00,0x42,0xD5,0x00,0x2B,0x00,0x00, \
        0x9B,0x8E,0x42,0xC3,0x00,0x00,0x32,0xC1,0x00,0x55, \
        0x00,0x28,0x28,0x43,0x1A,0xD4,0x06,0x29,0x00,0x00, \
        0x83,0x8F,0x28,0x23,0x06,0x00,0x06,0x29,0x32,0xC1, \
        0x00,0x55,0x00,0x28,0x00,0x00,0x83,0x8E,0x00,0x50, \
        0x00,0x01,0x01,0x04,0x00,0x4D,0x28,0x43,0x06,0x00, \
        0x1A,0xEC,0x32,0x11,0x32,0xC0,0x00,0x4F,0x00,0x81, \
        0x00,0x00,0x87,0x8F,0x28,0x23,0x06,0x00,0x32,0x11, \
        0x32,0xC0,0x00,0x4F,0x00,0x55,0x00,0x01,0x00,0x81, \
        0x32,0x11,0x00,0x00,0x83,0x8E,0x00,0x50,0x00,0x01, \
        0x01,0x04,0x00,0x4D,0x28,0x43,0x06,0x00,0x1B,0x32, \
        0x00,0x00,0x9B,0x8F,0x28,0x01,0x32,0xC1,0x00,0x55, \
        0x00,0x28,0x28,0x43,0x30,0x00,0x43,0x17,0x00,0x2C, \
        0x32,0x11,0x32,0xC0,0x00,0x4F,0x00,0x81,0x00,0x00, \
        0x87,0x8F,0x28,0x23,0x06,0x00,0x32,0x11,0x32,0xC0, \
        0x00,0x4F,0x00,0x81,0x00,0x00,0x83,0x8F,0x28,0x01, \
        0x06,0x00,0x32,0x11,0x32,0xC0,0x00,0x4F,0x00,0x55, \
        0x00,0x01,0x00,0x81,0x32,0x11,0x00,0x00,0x83,0x8E, \
        0x00,0x50,0x00,0x01,0x01,0x04,0x00,0x4D,0x28,0x43, \
        0x06,0x00,0x1A,0xF4,0x09,0x5F,0x00,0x20,0x00,0x00, \
        0x09,0x4F,0x00,0x20,0x00,0x00,0x34,0xB7,0x00,0xF9, \
        0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x2B,0x97, \
        0x31,0xB3,0x29,0x8F,0x33,0xF1,0x00,0xF9,0x00,0x01, \
        0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x7F,0x00,0x03, \
        0x00,0x02,0x00,0x00,0x00,0x01,0x1B,0xFE,0x30,0x50, \
        0x53,0x37,0x00,0x00,0x00,0x01,0x1B,0xFE,0x32,0xF1, \
        0x32,0xC0,0x00,0x4F,0x00,0x81,0x00,0x02,0x00,0x00, \
        0x97,0x9E,0x43,0x44,0x00,0x08,0x08,0x16,0x00,0x54, \
        0x00,0x01,0x1B,0xFE,0x00,0x00,0x9F,0x9E,0x43,0x79, \
        0x00,0x00,0x02,0x1F,0x00,0x08,0x28,0x1B,0x30,0x73, \
        0x29,0x1F,0x30,0xD0,0x63,0x65,0x00,0x07,0x00,0x05, \
        0x00,0x00,0xC3,0x8F,0x00,0x52,0x00,0x01,0x07,0x01, \
        0x63,0x51,0x00,0x00,0x30,0xD0,0x00,0xDA,0x00,0x01, \
        0x00,0x00,0x00,0x00,0x00,0x00,0x43,0x62,0x00,0x00, \
        0x02,0x8F,0x00,0x00,0x30,0xF2,0x00,0x06,0x1B,0x73, \
        0x00,0x00,0x9F,0xFF,0x30,0xF2,0x00,0x06,0x29,0x1E, \
        0x07,0x08,0x30,0xD0,0x00,0x52,0x00,0x08,0x28,0x1A, \
        0x63,0x4D,0x00,0x00,0x30,0xF2,0x1B,0x73,0x06,0x00, \
        0x29,0x1E,0x30,0xF2,0x53,0x79,0xFF,0xFF,0x1B,0x7E, \
        0x08,0x16,0x00,0x54,0x00,0x01,0x1B,0xFE,0x1B,0x8B, \
        0x32,0xF1,0x28,0x5D,0x32,0xF1,0x00,0x55,0x00,0x08, \
        0x28,0x5F,0x00,0x00,0x8F,0x9F,0x29,0x33,0x08,0x16, \
        0x00,0x49,0x00,0x01,0x1B,0xFF,0x00,0x01,0x1B,0xFF, \
        0x08,0x07,0x00,0x02,0x00,0x00,0x8D,0x80,0x53,0x97, \
        0x00,0x01,0x30,0x71,0x00,0x55,0x00,0x01,0x28,0x0F, \
        0x00,0x00,0x8D,0x00,0x53,0x9F,0x00,0x01,0x30,0x71, \
        0x00,0x55,0x00,0x01,0x28,0x0F,0x00,0x00,0x83,0x8E, \
        0x53,0xB4,0x00,0x00,0x00,0x00,0x86,0x08,0x30,0x71, \
        0x00,0x7B,0x03,0xB4,0x33,0xB4,0x00,0xDA,0xFF,0xFF, \
        0x00,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x86,0x09, \
        0x01,0x03,0x00,0x7D,0x03,0xB4,0x1B,0xC3,0x33,0xD1, \
        0x00,0xF9,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00, \
        0x28,0x7B,0x09,0x5F,0x00,0x1A,0x00,0x00,0x09,0x4F, \
        0x00,0x1A,0x00,0x00,0x00,0x01,0x1B,0xFF,0x00,0x00, \
        0x8C,0x00,0x53,0xEB,0x00,0x01,0x34,0xF5,0x00,0xFB, \
        0xFF,0xFF,0x00,0x7F,0x00,0x00,0x00,0x00,0x2A,0x9F, \
        0x00,0x00,0x93,0x8F,0x28,0x49,0x00,0x00,0x97,0x8F, \
        0x28,0x4B,0x34,0x61,0x28,0x4D,0x34,0x71,0x28,0x4F, \
        0x34,0xB7,0x00,0xF9,0x00,0x00,0x01,0x00,0x00,0x00, \
        0x00,0x00,0x2B,0x97,0x33,0xF1,0x00,0xF9,0x00,0x01, \
        0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x7F,0x00,0x03, \
        0x00,0x02,0x00,0x00,0x00,0x01,0x1B,0xFF,0x00,0x01, \
        0x1B,0xFF, \
}

#endif /* (DPAA_VERSION == 10) */

/****************************/
/* Parser defines           */
/****************************/
#define FM_PCD_PRS_SW_TAIL_SIZE             4                   /**< Number of bytes that must be cleared at
                                                                             the end of the SW parser area */

/* masks */
#define PRS_ERR_CAP                         0x80000000
#define PRS_ERR_TYPE_DOUBLE                 0x40000000
#define PRS_ERR_SINGLE_ECC_CNT_MASK         0x00FF0000
#define PRS_ERR_ADDR_MASK                   0x000001FF

/* others */
#define PRS_MAX_CYCLE_LIMIT                 8191
#define PRS_SW_DATA                         0x00000800
#define PRS_REGS_OFFSET                     0x00000840

#define GET_FM_PCD_PRS_PORT_ID(prsPortId,hardwarePortId) \
    prsPortId = (uint8_t)(hardwarePortId & 0x0f)

#define GET_FM_PCD_INDEX_FLAG(bitMask, prsPortId)    \
    bitMask = 0x80000000>>prsPortId

#endif /* __FM_PRS_H */