Deleted Added
full compact
tbxface.c (77424) tbxface.c (78986)
1/******************************************************************************
2 *
3 * Module Name: tbxface - Public interfaces to the ACPI subsystem
4 * ACPI table oriented interfaces
1/******************************************************************************
2 *
3 * Module Name: tbxface - Public interfaces to the ACPI subsystem
4 * ACPI table oriented interfaces
5 * $Revision: 38 $
5 * $Revision: 39 $
6 *
7 *****************************************************************************/
8
9/******************************************************************************
10 *
11 * 1. Copyright Notice
12 *
13 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

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

222 *
223 * RETURN: Status
224 *
225 * DESCRIPTION: This function is called to load a table from the caller's
226 * buffer. The buffer must contain an entire ACPI Table including
227 * a valid header. The header fields will be verified, and if it
228 * is determined that the table is invalid, the call will fail.
229 *
6 *
7 *****************************************************************************/
8
9/******************************************************************************
10 *
11 * 1. Copyright Notice
12 *
13 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

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

222 *
223 * RETURN: Status
224 *
225 * DESCRIPTION: This function is called to load a table from the caller's
226 * buffer. The buffer must contain an entire ACPI Table including
227 * a valid header. The header fields will be verified, and if it
228 * is determined that the table is invalid, the call will fail.
229 *
230 * If the call fails an appropriate status will be returned.
231 *
232 ******************************************************************************/
233
234ACPI_STATUS
235AcpiLoadTable (
236 ACPI_TABLE_HEADER *TablePtr)
237{
238 ACPI_STATUS Status;
239 ACPI_TABLE_DESC TableInfo;

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

334 do
335 {
336 /*
337 * Delete all namespace entries owned by this table. Note that these
338 * entries can appear anywhere in the namespace by virtue of the AML
339 * "Scope" operator. Thus, we need to track ownership by an ID, not
340 * simply a position within the hierarchy
341 */
230 ******************************************************************************/
231
232ACPI_STATUS
233AcpiLoadTable (
234 ACPI_TABLE_HEADER *TablePtr)
235{
236 ACPI_STATUS Status;
237 ACPI_TABLE_DESC TableInfo;

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

332 do
333 {
334 /*
335 * Delete all namespace entries owned by this table. Note that these
336 * entries can appear anywhere in the namespace by virtue of the AML
337 * "Scope" operator. Thus, we need to track ownership by an ID, not
338 * simply a position within the hierarchy
339 */
342
343 AcpiNsDeleteNamespaceByOwner (ListHead->TableId);
344
345 /* Delete (or unmap) the actual table */
346
347 AcpiTbDeleteAcpiTable (TableType);
348
349 } while (ListHead != &AcpiGbl_AcpiTables[TableType]);
350

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

366 * supplies an pointer to a data area sufficient to contain an ACPI
367 * ACPI_TABLE_HEADER structure.
368 *
369 * The header contains a length field that can be used to determine
370 * the size of the buffer needed to contain the entire table. This
371 * function is not valid for the RSD PTR table since it does not
372 * have a standard header and is fixed length.
373 *
340 AcpiNsDeleteNamespaceByOwner (ListHead->TableId);
341
342 /* Delete (or unmap) the actual table */
343
344 AcpiTbDeleteAcpiTable (TableType);
345
346 } while (ListHead != &AcpiGbl_AcpiTables[TableType]);
347

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

363 * supplies an pointer to a data area sufficient to contain an ACPI
364 * ACPI_TABLE_HEADER structure.
365 *
366 * The header contains a length field that can be used to determine
367 * the size of the buffer needed to contain the entire table. This
368 * function is not valid for the RSD PTR table since it does not
369 * have a standard header and is fixed length.
370 *
374 * If the operation fails for any reason an appropriate status will
375 * be returned and the contents of OutTableHeader are undefined.
376 *
377 ******************************************************************************/
378
379ACPI_STATUS
380AcpiGetTableHeader (
381 ACPI_TABLE_TYPE TableType,
382 UINT32 Instance,
383 ACPI_TABLE_HEADER *OutTableHeader)
384{

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

456 * DESCRIPTION: This function is called to get an ACPI table. The caller
457 * supplies an OutBuffer large enough to contain the entire ACPI
458 * table. The caller should call the AcpiGetTableHeader function
459 * first to determine the buffer size needed. Upon completion
460 * the OutBuffer->Length field will indicate the number of bytes
461 * copied into the OutBuffer->BufPtr buffer. This table will be
462 * a complete table including the header.
463 *
371 ******************************************************************************/
372
373ACPI_STATUS
374AcpiGetTableHeader (
375 ACPI_TABLE_TYPE TableType,
376 UINT32 Instance,
377 ACPI_TABLE_HEADER *OutTableHeader)
378{

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

450 * DESCRIPTION: This function is called to get an ACPI table. The caller
451 * supplies an OutBuffer large enough to contain the entire ACPI
452 * table. The caller should call the AcpiGetTableHeader function
453 * first to determine the buffer size needed. Upon completion
454 * the OutBuffer->Length field will indicate the number of bytes
455 * copied into the OutBuffer->BufPtr buffer. This table will be
456 * a complete table including the header.
457 *
464 * If the operation fails an appropriate status will be returned
465 * and the contents of OutBuffer are undefined.
466 *
467 ******************************************************************************/
468
469ACPI_STATUS
470AcpiGetTable (
471 ACPI_TABLE_TYPE TableType,
472 UINT32 Instance,
473 ACPI_BUFFER *RetBuffer)
474{

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

513 Status = AcpiTbGetTablePtr (TableType, Instance, &TblPtr);
514 if (ACPI_FAILURE (Status))
515 {
516 return_ACPI_STATUS (Status);
517 }
518
519 /*
520 * AcpiTbGetTablePtr will return a NULL pointer if the
458 ******************************************************************************/
459
460ACPI_STATUS
461AcpiGetTable (
462 ACPI_TABLE_TYPE TableType,
463 UINT32 Instance,
464 ACPI_BUFFER *RetBuffer)
465{

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

504 Status = AcpiTbGetTablePtr (TableType, Instance, &TblPtr);
505 if (ACPI_FAILURE (Status))
506 {
507 return_ACPI_STATUS (Status);
508 }
509
510 /*
511 * AcpiTbGetTablePtr will return a NULL pointer if the
521 * table is not loaded.
512 * table is not loaded.
522 */
523 if (TblPtr == NULL)
524 {
525 return_ACPI_STATUS (AE_NOT_EXIST);
526 }
527
528 /*
529 * Got a table ptr, assume it's ok and copy it to the user's buffer

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

551
552 RetBuffer->Length = RetBufLen;
553
554 MEMCPY ((void *) RetBuffer->Pointer, (void *) TblPtr, RetBufLen);
555
556 return_ACPI_STATUS (AE_OK);
557}
558
513 */
514 if (TblPtr == NULL)
515 {
516 return_ACPI_STATUS (AE_NOT_EXIST);
517 }
518
519 /*
520 * Got a table ptr, assume it's ok and copy it to the user's buffer

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

542
543 RetBuffer->Length = RetBufLen;
544
545 MEMCPY ((void *) RetBuffer->Pointer, (void *) TblPtr, RetBufLen);
546
547 return_ACPI_STATUS (AE_OK);
548}
549
550