Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/acpi/acpidump/acpi.c
Show First 20 Lines • Show All 964 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
acpi_print_tcpa(event); | acpi_print_tcpa(event); | ||||
vaddr += sizeof(struct TCPAevent) + event->event_size; | vaddr += sizeof(struct TCPAevent) + event->event_size; | ||||
} | } | ||||
printf(END_COMMENT); | printf(END_COMMENT); | ||||
} | } | ||||
static void acpi_handle_tpm2(ACPI_TABLE_HEADER *sdp) | |||||
{ | |||||
ACPI_TABLE_TPM2 *tpm2; | |||||
printf (BEGIN_COMMENT); | |||||
acpi_print_sdt(sdp); | |||||
tpm2 = (ACPI_TABLE_TPM2 *) sdp; | |||||
printf ("\t\tControlArea=%lx\n", tpm2->ControlAddress); | |||||
printf ("\t\tStartMethod=%x\n", tpm2->StartMethod); | |||||
printf (END_COMMENT); | |||||
} | |||||
static const char * | static const char * | ||||
devscope_type2str(int type) | devscope_type2str(int type) | ||||
{ | { | ||||
static char typebuf[16]; | static char typebuf[16]; | ||||
switch (type) { | switch (type) { | ||||
case 1: | case 1: | ||||
return ("PCI Endpoint Device"); | return ("PCI Endpoint Device"); | ||||
▲ Show 20 Lines • Show All 782 Lines • ▼ Show 20 Lines | for (i = 0; i < entries; i++) { | ||||
else if (!memcmp(sdp->Signature, ACPI_SIG_DMAR, 4)) | else if (!memcmp(sdp->Signature, ACPI_SIG_DMAR, 4)) | ||||
acpi_handle_dmar(sdp); | acpi_handle_dmar(sdp); | ||||
else if (!memcmp(sdp->Signature, ACPI_SIG_NFIT, 4)) | else if (!memcmp(sdp->Signature, ACPI_SIG_NFIT, 4)) | ||||
acpi_handle_nfit(sdp); | acpi_handle_nfit(sdp); | ||||
else if (!memcmp(sdp->Signature, ACPI_SIG_WDDT, 4)) | else if (!memcmp(sdp->Signature, ACPI_SIG_WDDT, 4)) | ||||
acpi_handle_wddt(sdp); | acpi_handle_wddt(sdp); | ||||
else if (!memcmp(sdp->Signature, ACPI_SIG_LPIT, 4)) | else if (!memcmp(sdp->Signature, ACPI_SIG_LPIT, 4)) | ||||
acpi_handle_lpit(sdp); | acpi_handle_lpit(sdp); | ||||
else if (!memcmp(sdp->Signature, ACPI_SIG_TPM2, 4)) | |||||
acpi_handle_tpm2(sdp); | |||||
else { | else { | ||||
printf(BEGIN_COMMENT); | printf(BEGIN_COMMENT); | ||||
acpi_print_sdt(sdp); | acpi_print_sdt(sdp); | ||||
printf(END_COMMENT); | printf(END_COMMENT); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |