xref: /utopia/UTPA2-700.0.x/projects/tmplib/include/drvNSK2OtpField.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1 //<MStar Software>
2 //******************************************************************************
3 // MStar Software
4 // Copyright (c) 2010 - 2012 MStar Semiconductor, Inc. All rights reserved.
5 // All software, firmware and related documentation herein ("MStar Software") are
6 // intellectual property of MStar Semiconductor, Inc. ("MStar") and protected by
7 // law, including, but not limited to, copyright law and international treaties.
8 // Any use, modification, reproduction, retransmission, or republication of all
9 // or part of MStar Software is expressly prohibited, unless prior written
10 // permission has been granted by MStar.
11 //
12 // By accessing, browsing and/or using MStar Software, you acknowledge that you
13 // have read, understood, and agree, to be bound by below terms ("Terms") and to
14 // comply with all applicable laws and regulations:
15 //
16 // 1. MStar shall retain any and all right, ownership and interest to MStar
17 //    Software and any modification/derivatives thereof.
18 //    No right, ownership, or interest to MStar Software and any
19 //    modification/derivatives thereof is transferred to you under Terms.
20 //
21 // 2. You understand that MStar Software might include, incorporate or be
22 //    supplied together with third party`s software and the use of MStar
23 //    Software may require additional licenses from third parties.
24 //    Therefore, you hereby agree it is your sole responsibility to separately
25 //    obtain any and all third party right and license necessary for your use of
26 //    such third party`s software.
27 //
28 // 3. MStar Software and any modification/derivatives thereof shall be deemed as
29 //    MStar`s confidential information and you agree to keep MStar`s
30 //    confidential information in strictest confidence and not disclose to any
31 //    third party.
32 //
33 // 4. MStar Software is provided on an "AS IS" basis without warranties of any
34 //    kind. Any warranties are hereby expressly disclaimed by MStar, including
35 //    without limitation, any warranties of merchantability, non-infringement of
36 //    intellectual property rights, fitness for a particular purpose, error free
37 //    and in conformity with any international standard.  You agree to waive any
38 //    claim against MStar for any loss, damage, cost or expense that you may
39 //    incur related to your use of MStar Software.
40 //    In no event shall MStar be liable for any direct, indirect, incidental or
41 //    consequential damages, including without limitation, lost of profit or
42 //    revenues, lost or damage of data, and unauthorized system use.
43 //    You agree that this Section 4 shall still apply without being affected
44 //    even if MStar Software has been modified by MStar in accordance with your
45 //    request or instruction for your use, except otherwise agreed by both
46 //    parties in writing.
47 //
48 // 5. If requested, MStar may from time to time provide technical supports or
49 //    services in relation with MStar Software to you for your use of
50 //    MStar Software in conjunction with your or your customer`s product
51 //    ("Services").
52 //    You understand and agree that, except otherwise agreed by both parties in
53 //    writing, Services are provided on an "AS IS" basis and the warranty
54 //    disclaimer set forth in Section 4 above shall apply.
55 //
56 // 6. Nothing contained herein shall be construed as by implication, estoppels
57 //    or otherwise:
58 //    (a) conferring any license or right to use MStar name, trademark, service
59 //        mark, symbol or any other identification;
60 //    (b) obligating MStar or any of its affiliates to furnish any person,
61 //        including without limitation, you and your customers, any assistance
62 //        of any kind whatsoever, or any information; or
63 //    (c) conferring any license or right under any intellectual property right.
64 //
65 // 7. These terms shall be governed by and construed in accordance with the laws
66 //    of Taiwan, R.O.C., excluding its conflict of law rules.
67 //    Any and all dispute arising out hereof or related hereto shall be finally
68 //    settled by arbitration referred to the Chinese Arbitration Association,
69 //    Taipei in accordance with the ROC Arbitration Law and the Arbitration
70 //    Rules of the Association by three (3) arbitrators appointed in accordance
71 //    with the said Rules.
72 //    The place of arbitration shall be in Taipei, Taiwan and the language shall
73 //    be English.
74 //    The arbitration award shall be final and binding to both parties.
75 //
76 //******************************************************************************
77 //<MStar Software>
78 ////////////////////////////////////////////////////////////////////////////////
79 //
80 // Copyright (c) 2008-2009 MStar Semiconductor, Inc.
81 // All rights reserved.
82 //
83 // Unless otherwise stipulated in writing, any and all information contained
84 // herein regardless in any format shall remain the sole proprietary of
85 // MStar Semiconductor Inc. and be kept in strict confidence
86 // ("MStar Confidential Information") by the recipient.
87 // Any unauthorized act including without limitation unauthorized disclosure,
88 // copying, use, reproduction, sale, distribution, modification, disassembling,
89 // reverse engineering and compiling of the contents of MStar Confidential
90 // Information is unlawful and strictly prohibited. MStar hereby reserves the
91 // rights to any and all damages, losses, costs and expenses resulting therefrom.
92 ////////////////////////////////////////////////////////////////////////////////
93 
94 #ifndef _NSK2OTPFIELD_H_
95 #define _NSK2OTPFIELD_H_
96 
97 ////////////////////////////////////////////////////////////////////////////////
98 /// @file nsk2otpfield.h
99 /// @author MStar Semiconductor Inc.
100 /// @brief
101 ////////////////////////////////////////////////////////////////////////////////
102 
103 ////////////////////////////////////////////////////////////////////////////////
104 // Header Files
105 ////////////////////////////////////////////////////////////////////////////////
106 
107 
108 ////////////////////////////////////////////////////////////////////////////////
109 // Define & data type
110 ////////////////////////////////////////////////////////////////////////////////
111 
112 typedef enum
113 {
114     ContentProtectionEnable = 0x40,
115     NDS_OTP_TagBegin = ContentProtectionEnable,
116     U_OTP_SBoot_0 = 0x41,
117     U_OTP_ena_NSK2 = 0x42,
118     U_OTP_ena_ACPUUseNSK2 = 0x43,
119     U_OTP_ena_DBUSUseNSK2 = 0x44,
120     U_OTP_ena_ForceTenSec = 0x45,
121     U_OTP_ena_SCCheck = 0x46,
122     U_OTP_ena_SWRN = 0x47,
123     U_OTP_ena_TestRCFreq = 0x48,
124     U_OTP_VenderConstSel = 0x49,
125 
126     U_OTP_RANDOM_0 = 0x4A,
127     U_OTP_NOISE_0 = 0x4B,
128     U_OTP_NDS_Parity_ChkEn_0 = 0x4C,
129     U_OTP_OTPWritePWDProtect_0 = 0x4D,
130 
131     U_OTP_concurrency_configuration = 0x4E,
132     U_OTP_nds_fc_disable = 0x4F,
133 
134     U_OTP_ena_EMMFilter = 0x52,
135     U_OTP_allow_NSKCW2CryptoDMA = 0x53,
136     U_OTP_ena_ACPU2DMA = 0x54,
137     U_OTP_ena_DMA_DESBasedCipher = 0x55,
138     U_OTP_ena_DMA_GetKeyFromKL = 0x56,
139     U_OTP_allow_ACPU2KT = 0x57,
140 
141 
142     U_OTP_allow_ACPUWrNSKKey2KT = 0x58,
143     U_OTP_allow_NSK2KT = 0x59,
144     U_OTP_ESAAlgo_invalidate = 0x5A,
145     U_OTP_NDS_ContentProtect_sel = 0x5B,
146     U_OTP_allow_CSA2Var = 0x5C,
147     U_OTP_allow_CSA2Var_nonNSK = 0x5D,
148     U_OTP_allow_CSA3NonNskVariant = 0x5E,
149     U_OTP_allow_DVBCSA2ComfCipher = 0x5F,
150     U_OTP_allow_DVBCSA3Var = 0x60,
151     U_OTP_allow_Multi2BasedCipher = 0x61,
152     U_OTP_Multi2SysKey = 0x62,
153     U_OTP_SWMulti2SysKey = 0x63,
154     U_OTP_ModifyXRC_Override = 0x64,
155     U_OTP_Permutation_Override = 0x65,
156     U_OTP_ena_TS2TSO = 0x66,
157     U_OTP_ena_TS2TSO_0 = 0x67,
158     U_OTP_ena_TS2TSO_1 = 0x68,
159     U_OTP_ContentProEn_all1 = 0x69,
160     U_OTP_ena_LSACPCM = 0x6A,
161     U_OTP_EJTAG_MODE = 0x6B,
162     U_OTP_DIG_JTAGMode = 0x6C,
163     U_OTP_SBJTAGMode = 0x6D,
164     U_OTP_SBI2CMode = 0x6E,
165     U_OTP_I2CMode = 0x6F,	//previous: 7f. changed 2014.June.04
166     U_OTP_SCANMode = 0x70,
167 
168 
169     U_OTP_ena_USBSlaveMode = 0x71,
170     U_OTP_Disable_TestInOut = 0x72,
171     U_OTP_ena_NDS_JTAG_PWD = 0x73,//???
172     U_OTP_SBoot_1 = 0x74,
173     NDS_OTP_TagEnd,
174 }NSK2_OTPField;
175 
176 #endif//_NSK2OTP_H_
177 
178