close Warning: Can't use blame annotator:
No changeset 2 in the repository

source: svn/newcon3bcm2_21bu/magnum/commonutils/mrc/7552/bmrc_priv.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 25.4 KB
RevLine 
1/***************************************************************************
2 *     Copyright (c) 2003-2011, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: bmrc_priv.h $
11 * $brcm_Revision: Hydra_Software_Devel/33 $
12 * $brcm_Date: 12/16/11 7:40p $
13 *
14 * Module Description:
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /magnum/commonutils/mrc/7360/bmrc_priv.h $
19 *
20 * Hydra_Software_Devel/33   12/16/11 7:40p bselva
21 * SW7360-6: Added appframework support for 7360 platform
22 *
23 * Hydra_Software_Devel/33   12/16/11 7:31p bselva
24 * SW7360-6: Added appframework support for 7360 platform
25 *
26 * Hydra_Software_Devel/33   12/16/11 7:29p bselva
27 * SW7360-6: Added appframework support for 7360 platform
28 *
29 * Hydra_Software_Devel/32   11/2/11 6:11p albertl
30 * SW7435-21: Added 7435 support to MRC.
31 *
32 * Hydra_Software_Devel/31   10/3/11 1:53p katrep
33 * SW7429-1:updated for chip bringup
34 *
35 * Hydra_Software_Devel/30   7/12/11 3:55p albertl
36 * SWDTV-7785: Added 35233 B0 compatibility.
37 *
38 * Hydra_Software_Devel/29   3/23/11 4:44p albertl
39 * SWDTV-5969: Updated MRC to be compatible with 35233 a0.
40 *
41 * Hydra_Software_Devel/28   1/5/11 8:16p albertl
42 * SW7422-106, SW7422-168 : Fixed MRC bugs pertaining to handling multiple
43 * MEMCs and rewrote portions of BMRC_Monitor logic.  Client masks now
44 * stored to match hardware.
45 *
46 * Hydra_Software_Devel/27   12/9/10 9:08p albertl
47 * SWBLURAY-23579: Fix issues with renamed memory controller.
48 *
49 * Hydra_Software_Devel/26   12/3/10 10:05p albertl
50 * SWBLURAY-23672: Added MRC support to 7640.
51 *
52 * Hydra_Software_Devel/25   11/15/10 4:35p albertl
53 * SW7231-2:  Changed number of memc to 1 for 7231, 7344, and 7346.
54 *
55 * Hydra_Software_Devel/24   11/15/10 3:51p albertl
56 * SW35125-23: Added 35125 support to MRC.
57 *
58 * Hydra_Software_Devel/23   9/15/10 6:43p albertl
59 * SW7358-9: Added initial support for 7135 in MRC.
60 *
61 * Hydra_Software_Devel/22   9/13/10 2:38p albertl
62 * SW7358-9: Added support for 7346 in MRC.
63 *
64 * Hydra_Software_Devel/21   8/30/10 4:52p albertl
65 * SW7358-9: Add support for 7358 in MRC.
66 *
67 * Hydra_Software_Devel/20   8/27/10 6:43p albertl
68 * SW7125-27: Updated for 7425.
69 *
70 * Hydra_Software_Devel/19   6/29/10 8:33p albertl
71 * SW7422-15: Added 7422 back in.
72 *
73 * Hydra_Software_Devel/18   6/25/10 5:06p pntruong
74 * SW7422-15: Rolled back support for 7422 for further review.
75 *
76 * Hydra_Software_Devel/16   11/20/09 6:05p albertl
77 * SW7468-28: Added 7468 support to MRC.
78 *
79 * Hydra_Software_Devel/15   11/20/09 1:23p albertl
80 * SW7408-24: Added 7408 support.
81 *
82 * Hydra_Software_Devel/14   9/14/09 7:40p albertl
83 * SW7630-7: Added 7630 support.
84 *
85 * Hydra_Software_Devel/13   9/10/09 6:32p jhaberf
86 * SW35230-1: Creating 35230 DTV chip build environment
87 *
88 * Hydra_Software_Devel/12   8/25/09 7:44p albertl
89 * SW7125-10: Initial 7125 support.
90 *
91 * Hydra_Software_Devel/11   7/10/09 4:23p albertl
92 * PR55875: Changed 35130 to use MEMC_GEN.
93 *
94 * Hydra_Software_Devel/10   6/16/09 6:58p albertl
95 * PR55764: Fixed build error for 7340.
96 *
97 * Hydra_Software_Devel/9   6/16/09 6:21p albertl
98 * PR55764, PR55875, PR55993: Refactored MRC to keep chip specific
99 * definitions in bmrc_priv.h and for maintainability.  Updated support
100 * for 7420 b0, 7430, 35130, and 7550.
101 *
102 * Hydra_Software_Devel/8   3/30/09 5:26p albertl
103 * PR52965: Fixed missing 7635 MRC support.
104 *
105 * Hydra_Software_Devel/7   2/17/09 6:43p albertl
106 * PR51612: Updated to correct naming conventions.
107 *
108 * Hydra_Software_Devel/6   1/27/09 8:27p tdo
109 * PR51627: add VDC 7336 PI support
110 *
111 * Hydra_Software_Devel/5   12/3/08 12:49p albertl
112 * PR46761: Changed 7420 to use two MEMCs.
113 *
114 * Hydra_Software_Devel/4   2/29/08 7:10p mward
115 * PR36876:  7118 doesn't support BCHP_MEMC_0_ARC_0_VIOLATION_INFO_CLEAR
116 * either.
117 *
118 * Hydra_Software_Devel/4   2/29/08 7:09p mward
119 * PR36876:  7118 doesn't support BCHP_MEMC_0_ARC_0_VIOLATION_INFO_CLEAR
120 * either.
121 *
122 * Hydra_Software_Devel/4   2/29/08 7:08p mward
123 * PR36876:  7118 doesn't support BCHP_MEMC_0_ARC_0_VIOLATION_INFO_CLEAR
124 * either.
125 *
126 * Hydra_Software_Devel/3   2/26/08 7:49p albertl
127 * PR36876:  Added support for 7335.
128 *
129 * Hydra_Software_Devel/2   2/26/08 12:20a albertl
130 * PR36876:  Fixed compile errors with 7401 and 7403 not supporting
131 * BCHP_MEMC_0_ARC_0_VIOLATION_INFO_CLEAR.
132 *
133 * Hydra_Software_Devel/1   2/25/08 7:09p albertl
134 * PR36876:  Initial revision.
135 *
136 ***************************************************************************/
137
138#ifndef BMRC_PRIV_H
139#define BMRC_PRIV_H
140
141#include "bchp.h"                /* Chip information */
142
143#ifdef __cplusplus
144extern "C" {
145#endif
146
147
148/* chip specific defines */
149#if (BCHP_CHIP == 3548)
150#define BMRC_P_MEMC_NUM 1
151#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
152#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
153#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
154#define BMRC_P_CLIENTS_MAX 128
155#define BMRC_P_CHECKER_USE_MEMC_GEN 0
156#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
157#define BMRC_P_CHECKER_USE_NMBX_ID 0
158#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
159
160#elif (BCHP_CHIP == 3556)
161#define BMRC_P_MEMC_NUM 1
162#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
163#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
164#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
165#define BMRC_P_CLIENTS_MAX 128
166#define BMRC_P_CHECKER_USE_MEMC_GEN 0
167#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
168#define BMRC_P_CHECKER_USE_NMBX_ID 0
169#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
170
171#elif (BCHP_CHIP == 3560)
172#define BMRC_P_MEMC_NUM 1
173#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
174#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
175#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
176#define BMRC_P_CLIENTS_MAX 64
177#define BMRC_P_CHECKER_USE_MEMC_GEN 0
178#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 0
179#define BMRC_P_CHECKER_USE_NMBX_ID 1
180#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
181
182#elif (BCHP_CHIP == 3563)
183#define BMRC_P_MEMC_NUM 2
184#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
185#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
186#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
187#define BMRC_P_CLIENTS_MAX 64
188#define BMRC_P_CHECKER_USE_MEMC_GEN 0
189#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 0
190#define BMRC_P_CHECKER_USE_NMBX_ID 0
191#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
192
193#elif (BCHP_CHIP == 7038)
194#define BMRC_P_CLIENTS_MAX 64
195#define BMRC_P_MEMC_NUM 1
196#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
197#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
198#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
199#define BMRC_P_CHECKER_USE_MEMC_GEN 0
200#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 0
201#define BMRC_P_CHECKER_USE_NMBX_ID 1
202#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
203
204#elif (BCHP_CHIP == 7118)
205#define BMRC_P_MEMC_NUM 1
206#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
207#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
208#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
209#define BMRC_P_CLIENTS_MAX 64
210#define BMRC_P_CHECKER_USE_MEMC_GEN 0
211#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
212#define BMRC_P_CHECKER_USE_NMBX_ID 0
213#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 0
214
215#elif (BCHP_CHIP == 7125)
216#define BMRC_P_MEMC_NUM 1
217#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
218#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
219#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
220#define BMRC_P_CLIENTS_MAX 128
221#define BMRC_P_CHECKER_USE_MEMC_GEN 1
222#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
223#define BMRC_P_CHECKER_USE_NMBX_ID 0
224#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
225
226#elif (BCHP_CHIP == 7135)
227#define BMRC_P_MEMC_NUM 1
228#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
229#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
230#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
231#define BMRC_P_CLIENTS_MAX 128
232#define BMRC_P_CHECKER_USE_MEMC_GEN 1
233#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
234#define BMRC_P_CHECKER_USE_NMBX_ID 0
235#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
236
237#elif (BCHP_CHIP == 7325)
238#define BMRC_P_MEMC_NUM 2
239#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
240#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
241#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
242#define BMRC_P_CLIENTS_MAX 128
243#define BMRC_P_CHECKER_USE_MEMC_GEN 0
244#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
245#define BMRC_P_CHECKER_USE_NMBX_ID 0
246#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
247
248#elif (BCHP_CHIP == 7335)
249#define BMRC_P_MEMC_NUM 2
250#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
251#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
252#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
253#define BMRC_P_CLIENTS_MAX 128
254#define BMRC_P_CHECKER_USE_MEMC_GEN 0
255#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
256#define BMRC_P_CHECKER_USE_NMBX_ID 0
257#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 0
258
259#elif (BCHP_CHIP == 7336)
260#define BMRC_P_MEMC_NUM 2
261#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
262#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
263#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
264#define BMRC_P_CLIENTS_MAX 128
265#define BMRC_P_CHECKER_USE_MEMC_GEN 0
266#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
267#define BMRC_P_CHECKER_USE_NMBX_ID 0
268#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 0
269
270#elif (BCHP_CHIP == 7340)
271#define BMRC_P_MEMC_NUM 1
272#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
273#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
274#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
275#define BMRC_P_CLIENTS_MAX 128
276#define BMRC_P_CHECKER_USE_MEMC_GEN 1
277#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
278#define BMRC_P_CHECKER_USE_NMBX_ID 0
279#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
280
281#elif (BCHP_CHIP == 7342)
282#define BMRC_P_MEMC_NUM 1
283#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
284#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
285#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
286#define BMRC_P_CLIENTS_MAX 128
287#define BMRC_P_CHECKER_USE_MEMC_GEN 1
288#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
289#define BMRC_P_CHECKER_USE_NMBX_ID 0
290#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
291
292#elif (BCHP_CHIP == 7400)
293#define BMRC_P_MEMC_NUM 3
294#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
295#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 2
296#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 2
297#define BMRC_P_CLIENTS_MAX 64
298#define BMRC_P_CHECKER_USE_MEMC_GEN 0
299#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
300#define BMRC_P_CHECKER_USE_NMBX_ID 0
301#if (BCHP_VER >= BCHP_VER_B0)
302#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
303#else
304#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 0
305#endif
306
307#elif (BCHP_CHIP == 7401)
308#define BMRC_P_MEMC_NUM 1
309#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
310#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
311#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
312#define BMRC_P_CLIENTS_MAX 64
313#define BMRC_P_CHECKER_USE_MEMC_GEN 0
314#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
315#define BMRC_P_CHECKER_USE_NMBX_ID 0
316#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 0
317
318#elif (BCHP_CHIP == 7403)
319#define BMRC_P_MEMC_NUM 1
320#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
321#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
322#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
323#define BMRC_P_CLIENTS_MAX 64
324#define BMRC_P_CHECKER_USE_MEMC_GEN 0
325#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
326#define BMRC_P_CHECKER_USE_NMBX_ID 0
327#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 0
328
329#elif (BCHP_CHIP == 7405)
330#define BMRC_P_MEMC_NUM 2
331#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
332#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
333#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
334#define BMRC_P_CLIENTS_MAX 128
335#define BMRC_P_CHECKER_USE_MEMC_GEN 0
336#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
337#define BMRC_P_CHECKER_USE_NMBX_ID 0
338#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
339
340#elif (BCHP_CHIP == 7408)
341#define BMRC_P_MEMC_NUM 1
342#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
343#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
344#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
345#define BMRC_P_CLIENTS_MAX 128
346#define BMRC_P_CHECKER_USE_MEMC_GEN 1
347#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
348#define BMRC_P_CHECKER_USE_NMBX_ID 0
349#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
350
351#elif (BCHP_CHIP == 7420)
352#define BMRC_P_MEMC_NUM 2
353#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
354#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
355#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
356#define BMRC_P_CLIENTS_MAX 128
357#if (BCHP_VER >= BCHP_VER_B0)
358#define BMRC_P_CHECKER_USE_MEMC_GEN 1
359#else
360#define BMRC_P_CHECKER_USE_MEMC_GEN 0
361#endif
362#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
363#define BMRC_P_CHECKER_USE_NMBX_ID 0
364#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
365
366#elif (BCHP_CHIP == 7422)
367#define BMRC_P_MEMC_NUM 2
368#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
369#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
370#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
371#define BMRC_P_CLIENTS_MAX 128
372#define BMRC_P_CHECKER_USE_MEMC_GEN 1
373#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
374#define BMRC_P_CHECKER_USE_NMBX_ID 0
375#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
376
377#elif (BCHP_CHIP == 7425)
378#define BMRC_P_MEMC_NUM 2
379#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
380#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
381#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
382#define BMRC_P_CLIENTS_MAX 128
383#define BMRC_P_CHECKER_USE_MEMC_GEN 1
384#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
385#define BMRC_P_CHECKER_USE_NMBX_ID 0
386#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
387
388#elif (BCHP_CHIP == 7435)
389#define BMRC_P_MEMC_NUM 2
390#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
391#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
392#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
393#define BMRC_P_CLIENTS_MAX 128
394#define BMRC_P_CHECKER_USE_MEMC_GEN 1
395#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
396#define BMRC_P_CHECKER_USE_NMBX_ID 0
397#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
398
399#elif (BCHP_CHIP == 7344)
400#define BMRC_P_MEMC_NUM 1
401#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
402#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
403#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
404#define BMRC_P_CLIENTS_MAX 128
405#define BMRC_P_CHECKER_USE_MEMC_GEN 1
406#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
407#define BMRC_P_CHECKER_USE_NMBX_ID 0
408#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
409
410#elif (BCHP_CHIP == 7346)
411#define BMRC_P_MEMC_NUM 1
412#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
413#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
414#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
415#define BMRC_P_CLIENTS_MAX 128
416#define BMRC_P_CHECKER_USE_MEMC_GEN 1
417#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
418#define BMRC_P_CHECKER_USE_NMBX_ID 0
419#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
420
421#elif (BCHP_CHIP == 7231)
422#define BMRC_P_MEMC_NUM 1
423#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
424#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
425#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
426#define BMRC_P_CLIENTS_MAX 128
427#define BMRC_P_CHECKER_USE_MEMC_GEN 1
428#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
429#define BMRC_P_CHECKER_USE_NMBX_ID 0
430#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
431
432#elif (BCHP_CHIP == 7438)
433#define BMRC_P_MEMC_NUM 1
434#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
435#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
436#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
437#define BMRC_P_CLIENTS_MAX 64
438#define BMRC_P_CHECKER_USE_MEMC_GEN 0
439#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 0
440#define BMRC_P_CHECKER_USE_NMBX_ID 1
441#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
442
443#elif (BCHP_CHIP == 7440)
444#define BMRC_P_MEMC_NUM 1
445#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
446#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
447#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
448#define BMRC_P_CLIENTS_MAX 64
449#define BMRC_P_CHECKER_USE_MEMC_GEN 0
450#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 0
451#define BMRC_P_CHECKER_USE_NMBX_ID 0
452#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 0
453
454#elif (BCHP_CHIP == 7640)
455#define BMRC_P_MEMC_NUM 1
456#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
457#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
458#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
459#define BMRC_P_CLIENTS_MAX 64
460#define BMRC_P_CHECKER_USE_MEMC_GEN 0
461#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 0
462#define BMRC_P_CHECKER_USE_NMBX_ID 0
463#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 0
464
465#elif (BCHP_CHIP == 7468)
466#define BMRC_P_MEMC_NUM 1
467#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
468#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
469#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
470#define BMRC_P_CLIENTS_MAX 128
471#define BMRC_P_CHECKER_USE_MEMC_GEN 1
472#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
473#define BMRC_P_CHECKER_USE_NMBX_ID 0
474#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
475
476#elif (BCHP_CHIP == 7550)
477#define BMRC_P_MEMC_NUM 1
478#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
479#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
480#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
481#define BMRC_P_CLIENTS_MAX 128
482#define BMRC_P_CHECKER_USE_MEMC_GEN 1
483#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
484#define BMRC_P_CHECKER_USE_NMBX_ID 0
485#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
486
487#elif (BCHP_CHIP == 7601)
488#define BMRC_P_MEMC_NUM 1
489#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
490#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
491#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
492#define BMRC_P_CLIENTS_MAX 96
493#define BMRC_P_CHECKER_USE_MEMC_GEN 0
494#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 0
495#define BMRC_P_CHECKER_USE_NMBX_ID 0
496#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 0
497
498#elif (BCHP_CHIP == 7635)
499#define BMRC_P_MEMC_NUM 1
500#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
501#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
502#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
503#define BMRC_P_CLIENTS_MAX 96
504#define BMRC_P_CHECKER_USE_MEMC_GEN 0
505#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 0
506#define BMRC_P_CHECKER_USE_NMBX_ID 0
507#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 0
508
509#elif (BCHP_CHIP == 7630)
510#define BMRC_P_MEMC_NUM 1
511#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
512#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
513#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
514#define BMRC_P_CLIENTS_MAX 64
515#define BMRC_P_CHECKER_USE_MEMC_GEN 0
516#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
517#define BMRC_P_CHECKER_USE_NMBX_ID 0
518#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
519
520#elif (BCHP_CHIP == 35230)
521#define BMRC_P_MEMC_NUM 1
522#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
523#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
524#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
525#define BMRC_P_CLIENTS_MAX 128
526#define BMRC_P_CHECKER_USE_MEMC_GEN 1
527#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
528#define BMRC_P_CHECKER_USE_NMBX_ID 0
529#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
530
531#elif (BCHP_CHIP == 35233)
532#if (BCHP_VER == A0)
533#define BMRC_P_MEMC_NUM 2
534#else
535#define BMRC_P_MEMC_NUM 1
536#endif
537#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
538#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
539#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
540#define BMRC_P_CLIENTS_MAX 128
541#define BMRC_P_CHECKER_USE_MEMC_GEN 1
542#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
543#define BMRC_P_CHECKER_USE_NMBX_ID 0
544#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
545
546#elif (BCHP_CHIP == 35125)
547#define BMRC_P_MEMC_NUM 1
548#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
549#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
550#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
551#define BMRC_P_CLIENTS_MAX 128
552#define BMRC_P_CHECKER_USE_MEMC_GEN 1
553#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
554#define BMRC_P_CHECKER_USE_NMBX_ID 0
555#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
556
557#elif (BCHP_CHIP == 7358)
558#define BMRC_P_MEMC_NUM 1
559#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
560#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
561#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
562#define BMRC_P_CLIENTS_MAX 128
563#define BMRC_P_CHECKER_USE_MEMC_GEN 1
564#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
565#define BMRC_P_CHECKER_USE_NMBX_ID 0
566#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
567
568#elif (BCHP_CHIP == 7552)
569#define BMRC_P_MEMC_NUM 1
570#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
571#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
572#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
573#define BMRC_P_CLIENTS_MAX 128
574#define BMRC_P_CHECKER_USE_MEMC_GEN 1
575#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
576#define BMRC_P_CHECKER_USE_NMBX_ID 0
577#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
578
579#elif (BCHP_CHIP == 7429)
580#define BMRC_P_MEMC_NUM 1
581#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
582#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 4
583#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
584#define BMRC_P_CLIENTS_MAX 128
585#define BMRC_P_CHECKER_USE_MEMC_GEN 1
586#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
587#define BMRC_P_CHECKER_USE_NMBX_ID 0
588#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
589#elif (BCHP_CHIP == 7360)
590#define BMRC_P_MEMC_NUM 1
591#define BMRC_P_MEMC_0_CHECKER_COUNT_MAX 4
592#define BMRC_P_MEMC_1_CHECKER_COUNT_MAX 0
593#define BMRC_P_MEMC_2_CHECKER_COUNT_MAX 0
594#define BMRC_P_CLIENTS_MAX 128
595#define BMRC_P_CHECKER_USE_MEMC_GEN 1
596#define BMRC_P_CHECKER_USE_NEW_NAME_SUFFIX 1
597#define BMRC_P_CHECKER_USE_NMBX_ID 0
598#define BMRC_P_CHECKER_USE_VIOLATION_INFO_CLEAR 1
599#else
600#error "Platform not supported in MRC."
601#endif
602
603
604/* include platform specific header files */
605#if ((BCHP_CHIP == 3560) || (BCHP_CHIP == 3563) || (BCHP_CHIP == 7038) || (BCHP_CHIP == 7118) || \
606       (BCHP_CHIP == 7400) || (BCHP_CHIP == 7401) || (BCHP_CHIP == 7403) || (BCHP_CHIP == 7438))
607#include "bchp_int_id_bvnf_intr2_2.h"
608#endif
609
610#if (BMRC_P_CHECKER_USE_MEMC_GEN)
611#include "bchp_int_id_memc_l2_0.h"
612#if (BMRC_P_MEMC_NUM > 1)
613#include "bchp_int_id_memc_l2_1.h"
614#endif
615
616#elif (BCHP_CHIP == 3563)
617#include "bchp_int_id_memc_1_intr2.h"
618
619#elif ((BCHP_CHIP == 7400) && (BCHP_VER < BCHP_VER_B0))
620#include "bchp_int_id_memc16_intr2_0.h"
621
622#elif ((BCHP_CHIP == 7400) && (BCHP_VER >= BCHP_VER_B0)) || (BCHP_CHIP == 7405)
623#include "bchp_int_id_memc16_gfx_l2.h"
624#if (BCHP_CHIP == 7405)
625#include "bchp_int_id_memc64_gfx_l2.h"
626#endif
627
628#elif (BCHP_CHIP == 7325) || (BCHP_CHIP == 7335) || (BCHP_CHIP == 7336) || (BCHP_CHIP == 7420) || \
629      (BCHP_CHIP == 3548) || (BCHP_CHIP == 3556) || (BCHP_CHIP == 35230) || (BCHP_CHIP == 35233)
630#include "bchp_int_id_memc_0_l2.h"
631#if (BMRC_P_MEMC_NUM > 1)
632#include "bchp_int_id_memc_1_l2.h"
633#endif
634
635#elif (BCHP_CHIP == 7440)
636#include "bchp_int_id_arb_top_config_regs.h"
637
638#elif (BCHP_CHIP==7601) || (BCHP_CHIP==7635) || (BCHP_CHIP==7630)
639#include "bchp_int_id_l2_reg_0.h"
640
641#elif (BCHP_CHIP==7640)
642#include "bchp_int_id_pri_arb_arc_l2_regs.h"
643#endif
644
645
646#define BMRC_P_CLIENTS_ARRAY_ELEMENT_SIZE 32
647#define BMRC_P_CLIENTS_ARRAY_SIZE (BMRC_P_CLIENTS_MAX / BMRC_P_CLIENTS_ARRAY_ELEMENT_SIZE)
648
649
650/* chip specific ARC INTR configuration */
651/* memc 0 */
652#if BMRC_P_CHECKER_USE_MEMC_GEN && (BMRC_P_MEMC_NUM > 1)
653#define BMRC_P_MEMC_0_ARC_0_INTR    BCHP_INT_ID_MEMC_L2_0_ARC_0_INTR
654#define BMRC_P_MEMC_0_ARC_1_INTR    BCHP_INT_ID_MEMC_L2_0_ARC_1_INTR
655#define BMRC_P_MEMC_0_ARC_2_INTR    BCHP_INT_ID_MEMC_L2_0_ARC_2_INTR
656#define BMRC_P_MEMC_0_ARC_3_INTR    BCHP_INT_ID_MEMC_L2_0_ARC_3_INTR
657
658#elif ((BCHP_CHIP == 7325) || (BCHP_CHIP == 7335) || (BCHP_CHIP==7336) || (BCHP_CHIP == 7420))
659#define BMRC_P_MEMC_0_ARC_0_INTR    BCHP_INT_ID_MEMC_0_L2_ARC_0_INTR
660#define BMRC_P_MEMC_0_ARC_1_INTR    BCHP_INT_ID_MEMC_0_L2_ARC_1_INTR
661#define BMRC_P_MEMC_0_ARC_2_INTR    BCHP_INT_ID_MEMC_0_L2_ARC_2_INTR
662#define BMRC_P_MEMC_0_ARC_3_INTR    BCHP_INT_ID_MEMC_0_L2_ARC_3_INTR
663
664#elif ((BCHP_CHIP == 3563) && (BCHP_VER >= BCHP_VER_C0))
665#define BMRC_P_MEMC_0_ARC_0_INTR    BCHP_INT_ID_BVNF_INTR2_2_ARC_0_INTR
666#define BMRC_P_MEMC_0_ARC_1_INTR    BCHP_INT_ID_BVNF_INTR2_2_ARC_1_INTR
667#define BMRC_P_MEMC_0_ARC_2_INTR    BCHP_INT_ID_BVNF_INTR2_2_ARC_2_INTR
668#define BMRC_P_MEMC_0_ARC_3_INTR    BCHP_INT_ID_BVNF_INTR2_2_ARC_3_INTR
669
670#else
671#define BMRC_P_MEMC_0_ARC_0_INTR    BCHP_INT_ID_ARC_0_INTR
672#define BMRC_P_MEMC_0_ARC_1_INTR    BCHP_INT_ID_ARC_1_INTR
673#define BMRC_P_MEMC_0_ARC_2_INTR    BCHP_INT_ID_ARC_2_INTR
674#define BMRC_P_MEMC_0_ARC_3_INTR    BCHP_INT_ID_ARC_3_INTR
675#endif
676
677/* memc 1 */
678#if BMRC_P_CHECKER_USE_MEMC_GEN && (BMRC_P_MEMC_NUM > 1)
679#define BMRC_P_MEMC_1_ARC_0_INTR    BCHP_INT_ID_MEMC_L2_1_ARC_0_INTR
680#define BMRC_P_MEMC_1_ARC_1_INTR    BCHP_INT_ID_MEMC_L2_1_ARC_1_INTR
681#define BMRC_P_MEMC_1_ARC_2_INTR    BCHP_INT_ID_MEMC_L2_1_ARC_2_INTR
682#define BMRC_P_MEMC_1_ARC_3_INTR    BCHP_INT_ID_MEMC_L2_1_ARC_3_INTR
683
684#elif (BCHP_CHIP == 7325) || (BCHP_CHIP == 7335) || (BCHP_CHIP==7336) || (BCHP_CHIP == 7420)
685#define BMRC_P_MEMC_1_ARC_0_INTR    BCHP_INT_ID_MEMC_1_L2_ARC_0_INTR
686#define BMRC_P_MEMC_1_ARC_1_INTR    BCHP_INT_ID_MEMC_1_L2_ARC_1_INTR
687#define BMRC_P_MEMC_1_ARC_2_INTR    BCHP_INT_ID_MEMC_1_L2_ARC_2_INTR
688#define BMRC_P_MEMC_1_ARC_3_INTR    BCHP_INT_ID_MEMC_1_L2_ARC_3_INTR
689
690#elif (BCHP_CHIP==3563)
691#define BMRC_P_MEMC_1_ARC_0_INTR    BCHP_INT_ID_MEMC_1_INTR2_ARC_0_INTR
692#define BMRC_P_MEMC_1_ARC_1_INTR    BCHP_INT_ID_MEMC_1_INTR2_ARC_1_INTR
693#define BMRC_P_MEMC_1_ARC_2_INTR    BCHP_INT_ID_MEMC_1_INTR2_ARC_2_INTR
694#define BMRC_P_MEMC_1_ARC_3_INTR    BCHP_INT_ID_MEMC_1_INTR2_ARC_3_INTR
695
696#elif (BCHP_CHIP==7400)
697#define BMRC_P_MEMC_1_ARC_0_INTR    BCHP_INT_ID_ARC_0_INTR_1
698#define BMRC_P_MEMC_1_ARC_1_INTR    BCHP_INT_ID_ARC_1_INTR_1
699#define BMRC_P_MEMC_1_ARC_2_INTR    0
700#define BMRC_P_MEMC_1_ARC_3_INTR    0
701
702#elif (BCHP_CHIP==7405)
703#define BMRC_P_MEMC_1_ARC_0_INTR    BCHP_INT_ID_ARC_0_INTR_1
704#define BMRC_P_MEMC_1_ARC_1_INTR    BCHP_INT_ID_ARC_1_INTR_1
705#define BMRC_P_MEMC_1_ARC_2_INTR    BCHP_INT_ID_ARC_0_INTR_2
706#define BMRC_P_MEMC_1_ARC_3_INTR    BCHP_INT_ID_ARC_1_INTR_2
707
708#elif (BMRC_P_MEMC_NUM > 1)
709#error "Port for MEMC 1 interrupts needed."
710
711#else
712#define BMRC_P_MEMC_1_ARC_0_INTR    0
713#define BMRC_P_MEMC_1_ARC_1_INTR    0
714#define BMRC_P_MEMC_1_ARC_2_INTR    0
715#define BMRC_P_MEMC_1_ARC_3_INTR    0
716#endif
717
718/* memc 2 */
719#if (BCHP_CHIP==7400)
720#define BMRC_P_MEMC_2_ARC_0_INTR    BCHP_INT_ID_ARC_0_INTR_2
721#define BMRC_P_MEMC_2_ARC_1_INTR    BCHP_INT_ID_ARC_1_INTR_2
722#define BMRC_P_MEMC_2_ARC_2_INTR    0
723#define BMRC_P_MEMC_2_ARC_3_INTR    0
724
725#elif (BMRC_P_MEMC_NUM > 2)
726#error "Port for MEMC 2 interrupts needed."
727
728#else
729#define BMRC_P_MEMC_2_ARC_0_INTR    0
730#define BMRC_P_MEMC_2_ARC_1_INTR    0
731#define BMRC_P_MEMC_2_ARC_2_INTR    0
732#define BMRC_P_MEMC_2_ARC_3_INTR    0
733#endif
734
735
736/* client entry structure */
737typedef struct BMRC_P_ClientEntry
738{
739    const char   *pchClientName;
740    BMRC_Client   eClient;
741    uint16_t      ausClientId[BMRC_P_MEMC_NUM];
742} BMRC_P_ClientEntry;
743
744
745/* client table macros and function prototypes */
746#define BMRC_P_GET_CLIENT_ID(memc, client) \
747    (BMRC_P_astClientTbl[(client)].ausClientId[(memc)])
748
749BMRC_Client BMRC_P_GET_CLIENT_ENUM(uint16_t usMemcId, uint16_t usClientId);
750
751
752#ifdef __cplusplus
753}
754#endif
755
756#endif
757/* End of File */
Note: See TracBrowser for help on using the repository browser.