asloffset.c (e5e1f58a87fc8cfe8597a1cf14ee4de2c7c16dd8) asloffset.c (278f0de60d655b6b28d4c92affe3603a49228645)
1/******************************************************************************
2 *
3 * Module Name: asloffset - Generate a C "offset table" for BIOS use.
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

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

253
254 /* Get to the NameSeg/NamePath Op (and length of the name) */
255
256 Op = Op->Asl.Child;
257
258 /* Get offset of last nameseg and the actual data */
259
260 NamepathOffset = AslGbl_CurrentAmlOffset + Length +
1/******************************************************************************
2 *
3 * Module Name: asloffset - Generate a C "offset table" for BIOS use.
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

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

253
254 /* Get to the NameSeg/NamePath Op (and length of the name) */
255
256 Op = Op->Asl.Child;
257
258 /* Get offset of last nameseg and the actual data */
259
260 NamepathOffset = AslGbl_CurrentAmlOffset + Length +
261 (Op->Asl.FinalAmlLength - ACPI_NAME_SIZE);
261 (Op->Asl.FinalAmlLength - ACPI_NAMESEG_SIZE);
262
263 DataOffset = AslGbl_CurrentAmlOffset + Length +
264 Op->Asl.FinalAmlLength;
265
266 /* Get actual value associated with the name */
267
268 Op = Op->Asl.Next;
269 switch (Op->Asl.AmlOpcode)

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

318
319 /* Get the name/namepath node */
320
321 NextOp = Op->Asl.Child;
322
323 /* Get offset of last nameseg and the actual data */
324
325 NamepathOffset = AslGbl_CurrentAmlOffset + Length +
262
263 DataOffset = AslGbl_CurrentAmlOffset + Length +
264 Op->Asl.FinalAmlLength;
265
266 /* Get actual value associated with the name */
267
268 Op = Op->Asl.Next;
269 switch (Op->Asl.AmlOpcode)

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

318
319 /* Get the name/namepath node */
320
321 NextOp = Op->Asl.Child;
322
323 /* Get offset of last nameseg and the actual data */
324
325 NamepathOffset = AslGbl_CurrentAmlOffset + Length +
326 (NextOp->Asl.FinalAmlLength - ACPI_NAME_SIZE);
326 (NextOp->Asl.FinalAmlLength - ACPI_NAMESEG_SIZE);
327
328 DataOffset = AslGbl_CurrentAmlOffset + Length +
329 (NextOp->Asl.FinalAmlLength + 1);
330
331 /* Get the SpaceId node, then the Offset (address) node */
332
333 NextOp = NextOp->Asl.Next;
334 NextOp = NextOp->Asl.Next;

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

365
366 /* Get the NameSeg/NamePath Op */
367
368 NextOp = Op->Asl.Child;
369
370 /* Get offset of last nameseg and the actual data (flags byte) */
371
372 NamepathOffset = AslGbl_CurrentAmlOffset + Length +
327
328 DataOffset = AslGbl_CurrentAmlOffset + Length +
329 (NextOp->Asl.FinalAmlLength + 1);
330
331 /* Get the SpaceId node, then the Offset (address) node */
332
333 NextOp = NextOp->Asl.Next;
334 NextOp = NextOp->Asl.Next;

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

365
366 /* Get the NameSeg/NamePath Op */
367
368 NextOp = Op->Asl.Child;
369
370 /* Get offset of last nameseg and the actual data (flags byte) */
371
372 NamepathOffset = AslGbl_CurrentAmlOffset + Length +
373 (NextOp->Asl.FinalAmlLength - ACPI_NAME_SIZE);
373 (NextOp->Asl.FinalAmlLength - ACPI_NAMESEG_SIZE);
374
375 DataOffset = AslGbl_CurrentAmlOffset + Length +
376 NextOp->Asl.FinalAmlLength;
377
378 /* Get the flags byte Op */
379
380 NextOp = NextOp->Asl.Next;
381

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

389 /* Processor (Namepath, ProcessorId, Address, Length) */
390
391 Length = Op->Asl.FinalAmlLength;
392 NextOp = Op->Asl.Child; /* Get Namepath */
393
394 /* Get offset of last nameseg and the actual data (PBlock address) */
395
396 NamepathOffset = AslGbl_CurrentAmlOffset + Length +
374
375 DataOffset = AslGbl_CurrentAmlOffset + Length +
376 NextOp->Asl.FinalAmlLength;
377
378 /* Get the flags byte Op */
379
380 NextOp = NextOp->Asl.Next;
381

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

389 /* Processor (Namepath, ProcessorId, Address, Length) */
390
391 Length = Op->Asl.FinalAmlLength;
392 NextOp = Op->Asl.Child; /* Get Namepath */
393
394 /* Get offset of last nameseg and the actual data (PBlock address) */
395
396 NamepathOffset = AslGbl_CurrentAmlOffset + Length +
397 (NextOp->Asl.FinalAmlLength - ACPI_NAME_SIZE);
397 (NextOp->Asl.FinalAmlLength - ACPI_NAMESEG_SIZE);
398
399 DataOffset = AslGbl_CurrentAmlOffset + Length +
400 (NextOp->Asl.FinalAmlLength + 1);
401
402 NextOp = NextOp->Asl.Next; /* Get ProcessorID (BYTE) */
403 NextOp = NextOp->Asl.Next; /* Get Address (DWORD) */
404
405 LsEmitOffsetTableEntry (FileId, Node, NamepathOffset, DataOffset,

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

414 /* Device/Scope/ThermalZone (Namepath) */
415
416 Length = Op->Asl.FinalAmlLength;
417 NextOp = Op->Asl.Child; /* Get Namepath */
418
419 /* Get offset of last nameseg */
420
421 NamepathOffset = AslGbl_CurrentAmlOffset + Length +
398
399 DataOffset = AslGbl_CurrentAmlOffset + Length +
400 (NextOp->Asl.FinalAmlLength + 1);
401
402 NextOp = NextOp->Asl.Next; /* Get ProcessorID (BYTE) */
403 NextOp = NextOp->Asl.Next; /* Get Address (DWORD) */
404
405 LsEmitOffsetTableEntry (FileId, Node, NamepathOffset, DataOffset,

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

414 /* Device/Scope/ThermalZone (Namepath) */
415
416 Length = Op->Asl.FinalAmlLength;
417 NextOp = Op->Asl.Child; /* Get Namepath */
418
419 /* Get offset of last nameseg */
420
421 NamepathOffset = AslGbl_CurrentAmlOffset + Length +
422 (NextOp->Asl.FinalAmlLength - ACPI_NAME_SIZE);
422 (NextOp->Asl.FinalAmlLength - ACPI_NAMESEG_SIZE);
423
424 LsEmitOffsetTableEntry (FileId, Node, NamepathOffset, 0,
425 Op->Asl.ParseOpName, 0, (UINT8) 0, Op->Asl.AmlOpcode);
426 break;
427
428 default:
429 break;
430 }

--- 149 unchanged lines hidden ---
423
424 LsEmitOffsetTableEntry (FileId, Node, NamepathOffset, 0,
425 Op->Asl.ParseOpName, 0, (UINT8) 0, Op->Asl.AmlOpcode);
426 break;
427
428 default:
429 break;
430 }

--- 149 unchanged lines hidden ---