| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2010, 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: bvdb_rts_priv.c $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/12 $ |
|---|
| 12 | * $brcm_Date: 12/16/10 2:29p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/commonutils/vdb/35230/A0/bvdb_rts_priv.c $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/12 12/16/10 2:29p jerrylim |
|---|
| 21 | * SW35230-2579: Replaced user mode functions with kernel mode functions |
|---|
| 22 | * |
|---|
| 23 | * Hydra_Software_Devel/11 12/14/10 10:14p jhaberf |
|---|
| 24 | * SW35230-2565: Removed includes of stdio.h/stdlib.h as these cause build |
|---|
| 25 | * errors when building for kernel mode |
|---|
| 26 | * |
|---|
| 27 | * Hydra_Software_Devel/10 9/16/10 3:50p jerrylim |
|---|
| 28 | * SW35230-1335: Add config400, 401 |
|---|
| 29 | * |
|---|
| 30 | * Hydra_Software_Devel/9 7/6/10 4:03p jerrylim |
|---|
| 31 | * SW35230-297: Made usage mode obey VDB |
|---|
| 32 | * |
|---|
| 33 | * Hydra_Software_Devel/8 7/2/10 5:44p jerrylim |
|---|
| 34 | * SW35230-297: Changed config100 to the new design style |
|---|
| 35 | * |
|---|
| 36 | * Hydra_Software_Devel/7 7/2/10 3:49p jerrylim |
|---|
| 37 | * SW35230-297: Added RTS status print, Added usagemode version print, |
|---|
| 38 | * Removed cfg101(obsolete), Added RTS table ID, Adjusted win to max |
|---|
| 39 | * |
|---|
| 40 | * Hydra_Software_Devel/6 6/29/10 11:19a jerrylim |
|---|
| 41 | * SW35230-297: cleaned up old design. Corrected VDB dump |
|---|
| 42 | * |
|---|
| 43 | * Hydra_Software_Devel/5 6/23/10 5:54p jerrylim |
|---|
| 44 | * SW35230-309: Added config 200 based on Usage Mode Rev.2.0 |
|---|
| 45 | * |
|---|
| 46 | * Hydra_Software_Devel/4 6/9/10 4:06p jerrylim |
|---|
| 47 | * SW35230-258: Lowered Graphics M2MC in config100 to ensure that graphics |
|---|
| 48 | * operations do not intefere video operations |
|---|
| 49 | * |
|---|
| 50 | * Hydra_Software_Devel/3 5/28/10 4:46p jerrylim |
|---|
| 51 | * SW35230-205: Set DRAM refrsh memory client to the default (0) because |
|---|
| 52 | * all other clients have 0 as well |
|---|
| 53 | * |
|---|
| 54 | * Hydra_Software_Devel/2 5/21/10 2:16p jerrylim |
|---|
| 55 | * SW35230-205: Merged all VDB changes checked into the SW23230-205 sub |
|---|
| 56 | * branch |
|---|
| 57 | * |
|---|
| 58 | * Hydra_Software_Devel/SW35230-205/3 5/12/10 4:56p jerrylim |
|---|
| 59 | * SW35230-205: enabled FRC CE client because some FRC firmware needs it |
|---|
| 60 | * in A0 |
|---|
| 61 | * |
|---|
| 62 | * Hydra_Software_Devel/SW35230-205/2 5/10/10 3:26p jerrylim |
|---|
| 63 | * SW35230-205: moved the default configs from 1/2 to 100/101 because |
|---|
| 64 | * nexus has some dependencies on configs and especially WXGA displayr |
|---|
| 65 | * resolution is forced with config 1. And client 127 is a special |
|---|
| 66 | * register which controls the DRAM refresh rate, and should be |
|---|
| 67 | * differently programmed |
|---|
| 68 | * |
|---|
| 69 | * Hydra_Software_Devel/SW35230-205/1 5/7/10 4:22p jerrylim |
|---|
| 70 | * SW35230-205: dynamically compose the usage mode and return one of the |
|---|
| 71 | * two default RTS settings - hardware default for config1 and ASIC team |
|---|
| 72 | * simultation default fo rconfig2 |
|---|
| 73 | * |
|---|
| 74 | * Hydra_Software_Devel/1 4/30/10 3:06p jerrylim |
|---|
| 75 | * SW35230-99: Added real VDB files |
|---|
| 76 | * |
|---|
| 77 | ***************************************************************************/ |
|---|
| 78 | #include "bstd.h" |
|---|
| 79 | #include "bkni.h" |
|---|
| 80 | #include "berr.h" |
|---|
| 81 | #include "bfmt.h" |
|---|
| 82 | #include "bdbg.h" |
|---|
| 83 | #include "bvdb.h" |
|---|
| 84 | #include "bvdb_priv.h" |
|---|
| 85 | |
|---|
| 86 | BDBG_MODULE(BVDB); |
|---|
| 87 | |
|---|