summaryrefslogtreecommitdiff
path: root/Board/EM/Isct/AcpiTables/Isct.sd
blob: 9278d87f77bf9972c65b2208c2f4456a57f1c222 (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
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2012, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093        **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************

//**********************************************************************
// $Header: /Alaska/SOURCE/Modules/SharkBayRefCodes/ISCT/IsctAcpiTables/Isct.sd 2     8/02/13 3:30a Joshchou $
//
// $Revision: 2 $
//
// $Date: 8/02/13 3:30a $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/ISCT/IsctAcpiTables/Isct.sd $
// 
// 2     8/02/13 3:30a Joshchou
// [TAG]  		None
// [Category]  	Improvement
// [Description]  	Hide the item of timer choice on the platforms which
// don't have EC
// 
// 1     9/02/12 11:18p Bensonlai
// Intel Smart Connect Technology initially releases.
//
//
//**********************************************************************
//<AMI_FHDR_START>
//
// Name: Isct.sd
//
// Description:	Create the setup item for Isct.
//
//<AMI_FHDR_END>
//**********************************************************************

#ifdef SETUP_DATA_DEFINITION
//---------------------------------------------------------------------------
// Put NVRAM data definitions here.
// For example: UINT8 Data1;
// These definitions will be converted by the build process
// to a definitions of SETUP_DATA fields.
//---------------------------------------------------------------------------
    UINT8   IsctConfiguration;
    UINT8   ISCTNOTIFICATION;
    UINT8   ISCTWLAN;
    UINT8   ISCTWWAN;
    UINT8   ISCTRFKillSwitch;
    UINT8   IsctTimerChoice;
#endif

#if defined(VFRCOMPILE) && !defined(CONTROLS_ARE_DEFINED)
#define CONTROL_DEFINITION
#endif
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
#ifdef CONTROL_DEFINITION

#define ISCT_ONEOF_CONFIGURATION\
       oneof varid   = SETUP_DATA.IsctConfiguration,\
         prompt      = STRING_TOKEN(STR_ISCT_CONFIGURATION_PROMPT),\
         help        = STRING_TOKEN(STR_ISCT_CONFIGURATION_HELP),\
         option text = STRING_TOKEN(STR_DISABLED), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
         option text = STRING_TOKEN(STR_ENABLED), value = 1, flags =  RESET_REQUIRED, key = 0;\
       endoneof;

#define ISCT_ONEOF_NOTIFICATION\
       oneof varid   = SETUP_DATA.ISCTNOTIFICATION,\
         prompt      = STRING_TOKEN(STR_ISCT_NOTIFICATION_PROMPT),\
         help        = STRING_TOKEN(STR_ISCT_NOTIFICATION_HELP),\
         option text = STRING_TOKEN(STR_DISABLED), value = 0, flags = RESET_REQUIRED, key = 0;\
         option text = STRING_TOKEN(STR_ENABLED), value = 1, flags =  DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
       endoneof;

#define ISCT_ONEOF_WLAN\
       oneof varid   = SETUP_DATA.ISCTWLAN,\
         prompt      = STRING_TOKEN(STR_ISCT_WLAN_PROMPT),\
         help        = STRING_TOKEN(STR_ISCT_WLAN_HELP),\
         option text = STRING_TOKEN(STR_DISABLED), value = 0, flags = RESET_REQUIRED, key = 0;\
         option text = STRING_TOKEN(STR_ENABLED), value = 1, flags =  DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
       endoneof;

#define ISCT_ONEOF_WWAN\
       oneof varid   = SETUP_DATA.ISCTWWAN,\
         prompt      = STRING_TOKEN(STR_ISCT_WWAN_PROMPT),\
         help        = STRING_TOKEN(STR_ISCT_WWAN_HELP),\
         option text = STRING_TOKEN(STR_DISABLED), value = 0, flags = RESET_REQUIRED, key = 0;\
         option text = STRING_TOKEN(STR_ENABLED), value = 1, flags =  DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
       endoneof;

#define ISCT_ONEOF_RFKILLSWITCH\
       oneof varid   = SETUP_DATA.ISCTRFKillSwitch,\
         prompt      = STRING_TOKEN(STR_ISCT_RF_KILL_SWITCH_PROMPT),\
         help        = STRING_TOKEN(STR_ISCT_RF_KILL_SWITCH_HELP),\
         option text = STRING_TOKEN(STR_ISCT_SOFTWARE), value = 0, flags = DEFAULT | MANUFACTURING | RESET_REQUIRED, key = 0;\
         option text = STRING_TOKEN(STR_ISCT_HARDWARE), value = 1, flags =  RESET_REQUIRED, key = 0;\
       endoneof;

#define ISCT_ONEOF_TIMERCHIOICE\
       oneof varid   = SETUP_DATA.IsctTimerChoice,\
         prompt      = STRING_TOKEN(STR_ISCT_TIMER_SELECTION_PROMPT),\
         help        = STRING_TOKEN(STR_ISCT_TIMER_SELECTION_HELP),\
         option text = STRING_TOKEN(STR_ISCT_EC_TIMER), value = 0, flags =  DEFAULT | RESET_REQUIRED, key = 0;\
         option text = STRING_TOKEN(STR_ISCT_RTC_TIMER), value = 1, flags = MANUFACTURING | RESET_REQUIRED, key = 0;\
       endoneof;

#endif // CONTROL_DEFINITION

#ifdef CONTROLS_WITH_DEFAULTS
    ISCT_ONEOF_CONFIGURATION
    ISCT_ONEOF_NOTIFICATION
    ISCT_ONEOF_WLAN
    ISCT_ONEOF_WWAN
    ISCT_ONEOF_RFKILLSWITCH
    ISCT_ONEOF_TIMERCHIOICE
#endif // CONTROLS_WITH_DEFAULTS

//---------------------------------------------------------------------------
//                ADVANCED - CRB Configuration Form
//---------------------------------------------------------------------------
#ifdef ADVANCED_FORM_SET

  #ifndef SUPPRESS_GRAYOUT_ENDIF //old Core
    #define SUPPRESS_GRAYOUT_ENDIF endif;
  #endif

  #ifdef FORM_SET_GOTO
   // Define goto commands for the forms defined in this file
       goto ISCTCONFIGURATION_FORM_ID,
       prompt = STRING_TOKEN(STR_ISCTCONFIGURATION_FORM),
       help = STRING_TOKEN(STR_ISCTCONFIGURATION_HELP);
  #endif

  #ifdef FORM_SET_FORM
  // Define forms
    #ifndef ISCTCONFIGURATION_FORM_SETUP
    #define ISCTCONFIGURATION_FORM_SETUP

    form formid = AUTO_ID(ISCTCONFIGURATION_FORM_ID),
          title = STRING_TOKEN(STR_ISCTCONFIGURATION_FORM);

    grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER;
      ISCT_ONEOF_CONFIGURATION
    endif;

    SEPARATOR

    grayoutif ideqval SYSTEM_ACCESS.Access == SYSTEM_PASSWORD_USER;
    suppressif ideqval SETUP_DATA.IsctConfiguration == 0;
      ISCT_ONEOF_NOTIFICATION
      ISCT_ONEOF_WLAN
      ISCT_ONEOF_WWAN
      ISCT_ONEOF_RFKILLSWITCH
      #if defined (PCH_SKU) && (PCH_SKU == 1)
      #if defined (LVC_BOARD) && (LVC_BOARD == 0)
      ISCT_ONEOF_TIMERCHIOICE
      #endif
      #endif
    SUPPRESS_GRAYOUT_ENDIF

    endform;  // ISCT_FORM_ID

    #endif // ISCTCONFIGURATION_FORM_SETUP
  #endif  // FORM_SET_FORM

#endif  // ADVANCED_FORM_SET

//*************************************************************************
//*************************************************************************
//**                                                                     **
//**        (C)Copyright 1985-2012, American Megatrends, Inc.            **
//**                                                                     **
//**                       All Rights Reserved.                          **
//**                                                                     **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093           **
//**                                                                     **
//**                       Phone: (770)-246-8600                         **
//**                                                                     **
//*************************************************************************
//*************************************************************************