[syslinux:master] hdt: adding a simple way to print acpi headers
syslinux-bot for Erwan Velu
erwan.velu at free.fr
Sun Feb 6 14:06:42 PST 2011
Commit-ID: 8568d8f61de52309ba471f787800d11c5837aa0b
Gitweb: http://syslinux.zytor.com/commit/8568d8f61de52309ba471f787800d11c5837aa0b
Author: Erwan Velu <erwan.velu at free.fr>
AuthorDate: Wed, 2 Dec 2009 13:05:12 +0100
Committer: Erwan Velu <erwan.velu at free.fr>
CommitDate: Fri, 4 Dec 2009 10:19:00 +0100
hdt: adding a simple way to print acpi headers
Impact: none
Adding a unified method to display acpi hearders
---
com32/hdt/hdt-cli-acpi.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/com32/hdt/hdt-cli-acpi.c b/com32/hdt/hdt-cli-acpi.c
index 6667a14..930c5f2 100644
--- a/com32/hdt/hdt-cli-acpi.c
+++ b/com32/hdt/hdt-cli-acpi.c
@@ -33,6 +33,11 @@
#include <stdlib.h>
#include <errno.h>
+static void show_header(char *table, uint32_t address, s_acpi_description_header *h)
+{
+ more_printf("%-5s (v%03x %-6s %-7s 0x%08x %-4s 0x%08x) @ 0x%08x\n",table,h->revision, h->oem_id, h->oem_table_id, h->oem_revision, h->creator_id, h->creator_revision, address)
+}
+
void main_show_acpi(int argc __unused, char **argv __unused,
struct s_hardware *hardware)
{
@@ -44,12 +49,14 @@ void main_show_acpi(int argc __unused, char **argv __unused,
}
//ACPI: XSDT (v001 DELL PE_SC3 0x00000001 DELL 0x00000001) @ 0x00000000000f222c
- more_printf(" Table (rev oem table_id oem_rev creator creator_rev address (\n");
- more_printf("--------------------------------------------------------------\n");
+ more_printf("Table (rev oem table_id oem_rev creator creator_rev) @ address \n");
+ more_printf("---------------------------------------------------------------------\n");
if (hardware->acpi.rsdp.valid) {
s_rsdp *r = &hardware->acpi.rsdp;
- more_printf("RSDP (v%03x %6s ) @ 0x%016llx",r->revision, r->oem_id,r->address);
+ more_printf("RSDP (v%03x %6s ) @ 0x%016llx\n",r->revision, r->oem_id,r->address);
}
+ if (hardware->acpi.rsdt.valid)
+ show_header("RSDT", hardware->acpi.rsdt.address, &hardware->acpi.rsdt.header);
// more_printf("XSDT (v%3x %6s %7s %08x %4s %08x) @ %08x",
}
More information about the Syslinux-commits
mailing list