MFC: print GAS properly and man page updates

This commit is contained in:
njl 2007-05-14 21:32:10 +00:00
parent eaf028c697
commit 57cc4239e7
4 changed files with 11 additions and 3 deletions

View File

@ -344,7 +344,8 @@ acpi_handle_hpet(struct ACPIsdt *sdp)
acpi_print_sdt(sdp);
hpetp = (struct HPETbody *) sdp->body;
printf("\tHPET Number=%d\n", hpetp->hpet_number);
printf("\tADDR=0x%08x\n", hpetp->base_addr);
printf("\tADDR=");
acpi_print_gas(&hpetp->genaddr);
printf("\tHW Rev=0x%x\n", hpetp->block_hwrev);
printf("\tComparitors=%d\n", hpetp->block_comparitors);
printf("\tCounter Size=%d\n", hpetp->block_counter_size);

View File

@ -145,6 +145,12 @@ Store the DSDT data block from physical memory into the specified file.
.It Pa /dev/mem
.El
.Sh EXAMPLES
If a developer requests a copy of your ASL, please use the following
command to dump all tables and compress the result.
.Bd -literal -offset indent
# acpidump -dt | gzip -c9 > my_computer.asl.gz
.Ed
.Pp
This example dumps the DSDT from physical memory to foo.dsdt.
It also prints the contents of various system tables and disassembles
the AML contained in the DSDT to stdout, redirecting the output

View File

@ -46,6 +46,8 @@ usage(const char *progname)
fprintf(stderr, "usage: %s [-d] [-t] [-h] [-v] [-f dsdt_input] "
"[-o dsdt_output]\n", progname);
fprintf(stderr, "To send ASL:\n\t%s -dt | gzip -c9 > foo.asl.gz\n",
progname);
exit(1);
}

View File

@ -278,8 +278,7 @@ struct HPETbody {
:1,
block_legacy_capable:1,
block_pcivendor:16;
u_int32_t base_addr;
u_int64_t reserved1;
struct ACPIgas genaddr;
u_int8_t hpet_number;
u_int16_t clock_tick __packed;
} __packed;