aslhelpers.y (4224465e820a1a7232255d980e692720169776af) aslhelpers.y (5f9b24fa4327c851ddb733b73904401afe3f0123)
1NoEcho('
2/******************************************************************************
3 *
4 * Module Name: aslhelpers.y - helper and option terms
5 *
6 *****************************************************************************/
7
8/******************************************************************************

--- 146 unchanged lines hidden (view full) ---

155
156/*******************************************************************************
157 *
158 * ASL Helper Terms
159 *
160 ******************************************************************************/
161
162OptionalBusMasterKeyword
1NoEcho('
2/******************************************************************************
3 *
4 * Module Name: aslhelpers.y - helper and option terms
5 *
6 *****************************************************************************/
7
8/******************************************************************************

--- 146 unchanged lines hidden (view full) ---

155
156/*******************************************************************************
157 *
158 * ASL Helper Terms
159 *
160 ******************************************************************************/
161
162OptionalBusMasterKeyword
163 : ',' {$$ = TrCreateLeafNode (
163 : ',' {$$ = TrCreateLeafOp (
164 PARSEOP_BUSMASTERTYPE_MASTER);}
164 PARSEOP_BUSMASTERTYPE_MASTER);}
165 | ',' PARSEOP_BUSMASTERTYPE_MASTER {$$ = TrCreateLeafNode (
165 | ',' PARSEOP_BUSMASTERTYPE_MASTER {$$ = TrCreateLeafOp (
166 PARSEOP_BUSMASTERTYPE_MASTER);}
166 PARSEOP_BUSMASTERTYPE_MASTER);}
167 | ',' PARSEOP_BUSMASTERTYPE_NOTMASTER {$$ = TrCreateLeafNode (
167 | ',' PARSEOP_BUSMASTERTYPE_NOTMASTER {$$ = TrCreateLeafOp (
168 PARSEOP_BUSMASTERTYPE_NOTMASTER);}
169 ;
170
171OptionalAccessAttribTerm
172 : {$$ = NULL;}
173 | ',' {$$ = NULL;}
174 | ',' ByteConstExpr {$$ = $2;}
175 | ',' AccessAttribKeyword {$$ = $2;}
176 ;
177
178OptionalAccessSize
168 PARSEOP_BUSMASTERTYPE_NOTMASTER);}
169 ;
170
171OptionalAccessAttribTerm
172 : {$$ = NULL;}
173 | ',' {$$ = NULL;}
174 | ',' ByteConstExpr {$$ = $2;}
175 | ',' AccessAttribKeyword {$$ = $2;}
176 ;
177
178OptionalAccessSize
179 : {$$ = TrCreateValuedLeafNode (
179 : {$$ = TrCreateValuedLeafOp (
180 PARSEOP_BYTECONST, 0);}
180 PARSEOP_BYTECONST, 0);}
181 | ',' {$$ = TrCreateValuedLeafNode (
181 | ',' {$$ = TrCreateValuedLeafOp (
182 PARSEOP_BYTECONST, 0);}
183 | ',' ByteConstExpr {$$ = $2;}
184 ;
185
186OptionalAddressingMode
187 : ',' {$$ = NULL;}
188 | ',' AddressingModeKeyword {$$ = $2;}
189 ;

--- 48 unchanged lines hidden (view full) ---

238 ;
239
240OptionalIoRestriction
241 : ',' {$$ = NULL;}
242 | ',' IoRestrictionKeyword {$$ = $2;}
243 ;
244
245OptionalListString
182 PARSEOP_BYTECONST, 0);}
183 | ',' ByteConstExpr {$$ = $2;}
184 ;
185
186OptionalAddressingMode
187 : ',' {$$ = NULL;}
188 | ',' AddressingModeKeyword {$$ = $2;}
189 ;

--- 48 unchanged lines hidden (view full) ---

238 ;
239
240OptionalIoRestriction
241 : ',' {$$ = NULL;}
242 | ',' IoRestrictionKeyword {$$ = $2;}
243 ;
244
245OptionalListString
246 : {$$ = TrCreateValuedLeafNode (
246 : {$$ = TrCreateValuedLeafOp (
247 PARSEOP_STRING_LITERAL,
248 ACPI_TO_INTEGER (""));} /* Placeholder is a NULL string */
247 PARSEOP_STRING_LITERAL,
248 ACPI_TO_INTEGER (""));} /* Placeholder is a NULL string */
249 | ',' {$$ = TrCreateValuedLeafNode (
249 | ',' {$$ = TrCreateValuedLeafOp (
250 PARSEOP_STRING_LITERAL,
251 ACPI_TO_INTEGER (""));} /* Placeholder is a NULL string */
252 | ',' TermArg {$$ = $2;}
253 ;
254
255OptionalMaxType
256 : ',' {$$ = NULL;}
257 | ',' MaxKeyword {$$ = $2;}

--- 17 unchanged lines hidden (view full) ---

275
276OptionalNameString_Last
277 : {$$ = NULL;}
278 | ',' {$$ = NULL;}
279 | ',' NameString {$$ = $2;}
280 ;
281
282OptionalNameString_First
250 PARSEOP_STRING_LITERAL,
251 ACPI_TO_INTEGER (""));} /* Placeholder is a NULL string */
252 | ',' TermArg {$$ = $2;}
253 ;
254
255OptionalMaxType
256 : ',' {$$ = NULL;}
257 | ',' MaxKeyword {$$ = $2;}

--- 17 unchanged lines hidden (view full) ---

275
276OptionalNameString_Last
277 : {$$ = NULL;}
278 | ',' {$$ = NULL;}
279 | ',' NameString {$$ = $2;}
280 ;
281
282OptionalNameString_First
283 : {$$ = TrCreateLeafNode (
283 : {$$ = TrCreateLeafOp (
284 PARSEOP_ZERO);}
285 | NameString {$$ = $1;}
286 ;
287
288OptionalObjectTypeKeyword
284 PARSEOP_ZERO);}
285 | NameString {$$ = $1;}
286 ;
287
288OptionalObjectTypeKeyword
289 : {$$ = TrCreateLeafNode (
289 : {$$ = TrCreateLeafOp (
290 PARSEOP_OBJECTTYPE_UNK);}
291 | ',' ObjectTypeKeyword {$$ = $2;}
292 ;
293
294OptionalParityType
295 : ',' {$$ = NULL;}
296 | ',' ParityTypeKeyword {$$ = $2;}
297 ;

--- 5 unchanged lines hidden (view full) ---

303 ;
304
305OptionalRangeType
306 : ',' {$$ = NULL;}
307 | ',' RangeTypeKeyword {$$ = $2;}
308 ;
309
310OptionalReadWriteKeyword
290 PARSEOP_OBJECTTYPE_UNK);}
291 | ',' ObjectTypeKeyword {$$ = $2;}
292 ;
293
294OptionalParityType
295 : ',' {$$ = NULL;}
296 | ',' ParityTypeKeyword {$$ = $2;}
297 ;

--- 5 unchanged lines hidden (view full) ---

303 ;
304
305OptionalRangeType
306 : ',' {$$ = NULL;}
307 | ',' RangeTypeKeyword {$$ = $2;}
308 ;
309
310OptionalReadWriteKeyword
311 : {$$ = TrCreateLeafNode (
311 : {$$ = TrCreateLeafOp (
312 PARSEOP_READWRITETYPE_BOTH);}
312 PARSEOP_READWRITETYPE_BOTH);}
313 | PARSEOP_READWRITETYPE_BOTH {$$ = TrCreateLeafNode (
313 | PARSEOP_READWRITETYPE_BOTH {$$ = TrCreateLeafOp (
314 PARSEOP_READWRITETYPE_BOTH);}
314 PARSEOP_READWRITETYPE_BOTH);}
315 | PARSEOP_READWRITETYPE_READONLY {$$ = TrCreateLeafNode (
315 | PARSEOP_READWRITETYPE_READONLY {$$ = TrCreateLeafOp (
316 PARSEOP_READWRITETYPE_READONLY);}
317 ;
318
319OptionalResourceType_First
316 PARSEOP_READWRITETYPE_READONLY);}
317 ;
318
319OptionalResourceType_First
320 : {$$ = TrCreateLeafNode (
320 : {$$ = TrCreateLeafOp (
321 PARSEOP_RESOURCETYPE_CONSUMER);}
322 | ResourceTypeKeyword {$$ = $1;}
323 ;
324
325OptionalResourceType
321 PARSEOP_RESOURCETYPE_CONSUMER);}
322 | ResourceTypeKeyword {$$ = $1;}
323 ;
324
325OptionalResourceType
326 : {$$ = TrCreateLeafNode (
326 : {$$ = TrCreateLeafOp (
327 PARSEOP_RESOURCETYPE_CONSUMER);}
327 PARSEOP_RESOURCETYPE_CONSUMER);}
328 | ',' {$$ = TrCreateLeafNode (
328 | ',' {$$ = TrCreateLeafOp (
329 PARSEOP_RESOURCETYPE_CONSUMER);}
330 | ',' ResourceTypeKeyword {$$ = $2;}
331 ;
332
333/* Same as above except default is producer */
334OptionalProducerResourceType
329 PARSEOP_RESOURCETYPE_CONSUMER);}
330 | ',' ResourceTypeKeyword {$$ = $2;}
331 ;
332
333/* Same as above except default is producer */
334OptionalProducerResourceType
335 : {$$ = TrCreateLeafNode (
335 : {$$ = TrCreateLeafOp (
336 PARSEOP_RESOURCETYPE_PRODUCER);}
336 PARSEOP_RESOURCETYPE_PRODUCER);}
337 | ',' {$$ = TrCreateLeafNode (
337 | ',' {$$ = TrCreateLeafOp (
338 PARSEOP_RESOURCETYPE_PRODUCER);}
339 | ',' ResourceTypeKeyword {$$ = $2;}
340 ;
341
342OptionalSlaveMode
343 : ',' {$$ = NULL;}
344 | ',' SlaveModeKeyword {$$ = $2;}
345 ;

--- 44 unchanged lines hidden (view full) ---

390 ;
391
392OptionalWordConstExpr
393 : ',' {$$ = NULL;}
394 | ',' WordConstExpr {$$ = $2;}
395 ;
396
397OptionalXferSize
338 PARSEOP_RESOURCETYPE_PRODUCER);}
339 | ',' ResourceTypeKeyword {$$ = $2;}
340 ;
341
342OptionalSlaveMode
343 : ',' {$$ = NULL;}
344 | ',' SlaveModeKeyword {$$ = $2;}
345 ;

--- 44 unchanged lines hidden (view full) ---

390 ;
391
392OptionalWordConstExpr
393 : ',' {$$ = NULL;}
394 | ',' WordConstExpr {$$ = $2;}
395 ;
396
397OptionalXferSize
398 : {$$ = TrCreateValuedLeafNode (
398 : {$$ = TrCreateValuedLeafOp (
399 PARSEOP_XFERSIZE_32, 2);}
399 PARSEOP_XFERSIZE_32, 2);}
400 | ',' {$$ = TrCreateValuedLeafNode (
400 | ',' {$$ = TrCreateValuedLeafOp (
401 PARSEOP_XFERSIZE_32, 2);}
402 | ',' XferSizeKeyword {$$ = $2;}
403 ;
401 PARSEOP_XFERSIZE_32, 2);}
402 | ',' XferSizeKeyword {$$ = $2;}
403 ;