ReactOS 0.4.15-dev-5666-gc548b97
tbprint.c File Reference
#include "acpi.h"
#include "accommon.h"
#include "actables.h"
#include "acdisasm.h"
#include "acutils.h"
Include dependency graph for tbprint.c:

Go to the source code of this file.

Macros

#define _COMPONENT   ACPI_TABLES
 

Functions

static void AcpiTbFixString (char *String, ACPI_SIZE Length)
 
static void AcpiTbCleanupTableHeader (ACPI_TABLE_HEADER *OutHeader, ACPI_TABLE_HEADER *Header)
 
void AcpiTbPrintTableHeader (ACPI_PHYSICAL_ADDRESS Address, ACPI_TABLE_HEADER *Header)
 

Macro Definition Documentation

◆ _COMPONENT

#define _COMPONENT   ACPI_TABLES

Definition at line 50 of file tbprint.c.

Function Documentation

◆ AcpiTbCleanupTableHeader()

static void AcpiTbCleanupTableHeader ( ACPI_TABLE_HEADER OutHeader,
ACPI_TABLE_HEADER Header 
)
static

Definition at line 115 of file tbprint.c.

118{
119
120 memcpy (OutHeader, Header, sizeof (ACPI_TABLE_HEADER));
121
126}
#define ACPI_OEM_ID_SIZE
Definition: actypes.h:421
#define ACPI_OEM_TABLE_ID_SIZE
Definition: actypes.h:422
#define ACPI_NAMESEG_SIZE
Definition: actypes.h:415
Definition: Header.h:9
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
char OemTableId[ACPI_OEM_TABLE_ID_SIZE]
Definition: actbl.h:113
char AslCompilerId[ACPI_NAMESEG_SIZE]
Definition: actbl.h:115
char OemId[ACPI_OEM_ID_SIZE]
Definition: actbl.h:112
char Signature[ACPI_NAMESEG_SIZE]
Definition: actbl.h:108
static void AcpiTbFixString(char *String, ACPI_SIZE Length)
Definition: tbprint.c:82

Referenced by AcpiTbPrintTableHeader().

◆ AcpiTbFixString()

static void AcpiTbFixString ( char String,
ACPI_SIZE  Length 
)
static

Definition at line 82 of file tbprint.c.

85{
86
87 while (Length && *String)
88 {
89 if (!isprint ((int) (UINT8) *String))
90 {
91 *String = '?';
92 }
93
94 String++;
95 Length--;
96 }
97}
unsigned char UINT8
#define isprint(c)
Definition: acclib.h:73
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433

Referenced by AcpiTbCleanupTableHeader(), and AcpiTbPrintTableHeader().

◆ AcpiTbPrintTableHeader()

void AcpiTbPrintTableHeader ( ACPI_PHYSICAL_ADDRESS  Address,
ACPI_TABLE_HEADER Header 
)

Definition at line 143 of file tbprint.c.

146{
147 ACPI_TABLE_HEADER LocalHeader;
148
149
150 if (ACPI_COMPARE_NAMESEG (Header->Signature, ACPI_SIG_FACS))
151 {
152 /* FACS only has signature and length fields */
153
154 ACPI_INFO (("%-4.4s 0x%8.8X%8.8X %06X",
155 Header->Signature, ACPI_FORMAT_UINT64 (Address),
156 Header->Length));
157 }
159 Header)->Signature))
160 {
161 /* RSDP has no common fields */
162
164 Header)->OemId, ACPI_OEM_ID_SIZE);
166
167 ACPI_INFO (("RSDP 0x%8.8X%8.8X %06X (v%.2d %-6.6s)",
172 LocalHeader.OemId));
173 }
174 else
175 {
176 /* Standard ACPI table with full common header */
177
178 AcpiTbCleanupTableHeader (&LocalHeader, Header);
179
180 ACPI_INFO ((
181 "%-4.4s 0x%8.8X%8.8X"
182 " %06X (v%.2d %-6.6s %-8.8s %08X %-4.4s %08X)",
183 LocalHeader.Signature, ACPI_FORMAT_UINT64 (Address),
184 LocalHeader.Length, LocalHeader.Revision, LocalHeader.OemId,
185 LocalHeader.OemTableId, LocalHeader.OemRevision,
186 LocalHeader.AslCompilerId, LocalHeader.AslCompilerRevision));
187 }
188}
#define ACPI_FORMAT_UINT64(i)
Definition: acmacros.h:71
#define ACPI_INFO(plist)
Definition: acoutput.h:237
#define ACPI_SIG_FACS
Definition: actbl.h:69
#define ACPI_VALIDATE_RSDP_SIG(a)
Definition: actypes.h:573
#define ACPI_COMPARE_NAMESEG(a, b)
Definition: actypes.h:564
#define ACPI_CAST_PTR(t, p)
Definition: actypes.h:544
static const WCHAR Signature[]
Definition: parser.c:141
_In_ ULONG Revision
Definition: rtlfuncs.h:1130
static WCHAR Address[46]
Definition: ping.c:68
UINT32 OemRevision
Definition: actbl.h:114
UINT8 Revision
Definition: actbl.h:110
UINT32 AslCompilerRevision
Definition: actbl.h:116
UINT32 Length
Definition: actbl.h:109
static void AcpiTbCleanupTableHeader(ACPI_TABLE_HEADER *OutHeader, ACPI_TABLE_HEADER *Header)
Definition: tbprint.c:115

Referenced by AcpiTbCheckDsdtHeader(), AcpiTbInstallTableWithOverride(), and AcpiTbParseRootTable().