Home | History | Annotate | Download | only in acpidump

Lines Matching defs:Table

159     ACPI_TABLE_HEADER       *Table,
168 * PARAMETERS: Table - Pointer to table to be validated
172 * DESCRIPTION: Check for a valid ACPI table header
178 ACPI_TABLE_HEADER *Table)
181 if (!ACPI_VALIDATE_RSDP_SIG (Table->Signature))
185 if (!AcpiUtValidNameseg (Table->Signature))
187 fprintf (stderr, "Table signature (0x%8.8X) is invalid\n",
188 *(UINT32 *) Table->Signature);
192 /* Check for minimum table length */
194 if (Table->Length < sizeof (ACPI_TABLE_HEADER))
196 fprintf (stderr, "Table length (0x%8.8X) is invalid\n",
197 Table->Length);
210 * PARAMETERS: Table - Pointer to table to be validated
214 * DESCRIPTION: Check for a valid ACPI table checksum.
220 ACPI_TABLE_HEADER *Table)
226 if (ACPI_VALIDATE_RSDP_SIG (Table->Signature))
230 * Note: Other checksums are computed during the table dump.
232 Rsdp = ACPI_CAST_PTR (ACPI_TABLE_RSDP, Table);
239 Status = AcpiUtVerifyChecksum (Table, Table->Length);
244 fprintf (stderr, "%4.4s: Warning: wrong checksum in table\n",
245 Table->Signature);
256 * PARAMETERS: Table - Pointer to the table
258 * RETURN: Table length
260 * DESCRIPTION: Obtain table length according to table signature.
266 ACPI_TABLE_HEADER *Table)
271 /* Check if table is valid */
273 if (!ApIsValidHeader (Table))
278 if (ACPI_VALIDATE_RSDP_SIG (Table->Signature))
280 Rsdp = ACPI_CAST_PTR (ACPI_TABLE_RSDP, Table);
284 /* Normal ACPI table */
286 return (Table->Length);
294 * PARAMETERS: Table - ACPI table to be dumped
295 * Instance - ACPI table instance no. to be dumped
296 * Address - Physical address of the table
300 * DESCRIPTION: Dump an ACPI table in standard ASCII hex format, with a
307 ACPI_TABLE_HEADER *Table,
314 TableLength = ApGetTableLength (Table);
320 AcpiTbPrintTableHeader (Address, Table);
328 return (ApWriteToBinaryFile (Table, Instance));
332 * Dump the table with header for use with acpixtract utility.
337 Table->Signature, ACPI_FORMAT_UINT64 (Address));
340 ACPI_CAST_PTR (UINT8, Table), TableLength,
364 ACPI_TABLE_HEADER *Table;
376 Status = AcpiOsGetTableByIndex (i, &Table, &Instance, &Address);
393 fprintf (stderr, "Could not get ACPI table at index %u, %s\n",
399 TableStatus = ApDumpTableBuffer (Table, Instance, Address);
400 ACPI_FREE (Table);
418 * PARAMETERS: AsciiAddress - Address for requested ACPI table
422 * DESCRIPTION: Get an ACPI table via a physical address and dump it.
431 ACPI_TABLE_HEADER *Table;
448 Status = AcpiOsGetTableByAddress (Address, &Table);
451 fprintf (stderr, "Could not get table at 0x%8.8X%8.8X, %s\n",
457 TableStatus = ApDumpTableBuffer (Table, 0, Address);
458 ACPI_FREE (Table);
467 table signature
471 * DESCRIPTION: Get an ACPI table via a signature and dump it. Handles
482 ACPI_TABLE_HEADER *Table;
491 "Invalid table signature [%s]: must be exactly 4 characters\n",
496 /* Table signatures are expected to be uppercase */
517 &Table, &Address);
528 "Could not get ACPI table with signature [%s], %s\n",
533 TableStatus = ApDumpTableBuffer (Table, Instance, Address);
534 ACPI_FREE (Table);
552 * PARAMETERS: Pathname - File containing the binary ACPI table
556 * DESCRIPTION: Dump an ACPI table from a binary file
564 ACPI_TABLE_HEADER *Table;
569 /* Get the entire ACPI table from the file */
571 Table = ApGetTableFromFile (Pathname, &FileSize);
572 if (!Table)
577 if (!AcpiUtValidNameseg (Table->Signature))
584 /* File must be at least as long as the table length */
586 if (Table->Length > FileSize)
589 "Table length (0x%X) is too large for input file (0x%X) %s\n",
590 Table->Length, FileSize, Pathname);
597 "Input file: %s contains table [%4.4s], 0x%X (%u) bytes\n",
598 Pathname, Table->Signature, FileSize, FileSize);
601 TableStatus = ApDumpTableBuffer (Table, 0, 0);
604 ACPI_FREE (Table);